agentc
GitHubagentc-sh/agentc
agentc
GitHubagentc-sh/agentc
›Introduction
Get started›Concepts in 5 minutes›Build your first agent›Add your first tool›Serve and connect
Concepts›Architecture overview›The manifest›The compilation pipeline›Archetypes›The graph›Tools and capabilities›Runtime libraries›Skills›Agents and prompts›Serving and protocols›Observability
Guides›Author a manifest›Write a tool›Give your agent a filesystem›Control network egress›Connect external tools via MCP›Connect agents via A2A›Use the bash tool›Control tool access with capabilities›Write templated prompts›Manage prompts with Langfuse›Pass context from the client›Configure a model provider›Connect a CopilotKit frontend›Deploy a standalone binary›Deploy with Docker and PostgreSQL›Instrument with OpenTelemetry›Extend code generation with blocks
Reference
Manifest
Runtime
Standard library
›TypeScript
Filesystem
HTTP
›Observability

TypeScript

The node modules and globals the runtime implements for TypeScript components.

The modules below are implemented as a subset of their Node counterparts. Each one is available as both node:name and name.

Modules

Symbols
node:buffer

Binary data, base64 helpers, and buffer limits.

node:console

The Console class.

node:timers

Timeout, interval, immediate, and microtask scheduling.

node:url

URL parsing, URL search params, and URL conversion helpers.

node:os

Host operating system facts exposed to guest code.

node:stream/web

WHATWG stream classes and related interfaces.

node:buffer

Properties
Buffer
interface and constructor

The Uint8Array subclass used for binary data, plus its constructor object and static methods.

atob
(data: string) => string

Decodes a base64-encoded string.

btoa
(data: string) => string

Encodes a string as base64.

constants
{ MAX_LENGTH: number; MAX_STRING_LENGTH: number }

Buffer size limits.

node:console

Properties
Console
class

The class form of the console API. The console global exposes a larger surface.

node:timers

Properties
setTimeout
(callback: () => void, delay?: number) => number

Schedules a callback to run once.

clearTimeout
(id?: number) => void

Cancels a timeout.

setInterval
(callback: () => void, delay?: number) => number

Schedules a callback to run repeatedly.

clearInterval
(id?: number) => void

Cancels an interval.

setImmediate
(callback: () => void) => number

Schedules a callback to run on the next immediate turn.

queueMicrotask
(callback: () => void) => void

Schedules a callback as a microtask.

node:url

Properties
URL
class

Parses, formats, and mutates URLs.

URLSearchParams
class

Reads and writes URL query parameters.

HttpOptions
interface

The object shape returned by urlToHttpOptions.

urlToHttpOptions
(url: URL) => HttpOptions

Converts a URL into an HTTP options object.

domainToUnicode
(domain: string) => string

Converts a domain name to its Unicode form.

domainToASCII
(domain: string) => string

Converts a domain name to its ASCII form.

fileURLToPath
(url: string | URL) => string

Converts a file URL into a path string.

pathToFileURL
(path: string) => URL

Converts a path string into a file URL.

format
(url: URL, options?: unknown) => string

Formats a URL as a string.

node:os

Properties
arch
() => string

Returns the CPU architecture.

availableParallelism
() => number

Returns the runtime's view of available parallelism.

devNull
stringread-only

The platform null device path.

endianness
() => 'LE' | 'BE'

Returns the CPU endianness.

EOL
stringread-only

The platform line ending.

getPriority
(who?: number) => number

Reads a process priority value.

homedir
() => string

Returns the current home directory.

platform
() => string

Returns the current platform identifier.

release
() => string

Returns the operating system release.

setPriority
(priority: number) => void; (who: number, priority: number) => void

Sets a process priority value.

tmpdir
() => string

Returns the temporary directory path.

type
() => string

Returns the operating system name.

userInfo
(options?: unknown) => UserInfo

Returns the current user information.

version
() => string

Returns the operating system version.

UserInfo
interface

The user information shape returned by userInfo.

node:stream/web

Properties
ReadableStream
class

A readable WHATWG stream.

ReadableStreamDefaultReader
class

The default reader for a ReadableStream.

ReadableStreamBYOBReader
class

A bring-your-own-buffer reader for byte streams.

ReadableStreamDefaultController
class

The default controller for a readable stream.

ReadableByteStreamController
class

The controller for a readable byte stream.

ReadableStreamBYOBRequest
class

A pending BYOB read request.

WritableStream
class

A writable WHATWG stream.

WritableStreamDefaultWriter
class

The default writer for a WritableStream.

WritableStreamDefaultController
class

The default controller for a writable stream.

TransformStream
class

A duplex stream that transforms input into output.

TransformStreamDefaultController
class

The controller for a transform stream.

ByteLengthQueuingStrategy
class

A queueing strategy based on byte length.

CountQueuingStrategy
class

A queueing strategy based on item count.

QueuingStrategy
interface

The shared queueing strategy shape.

ReadableStreamGetReaderOptions
interface

Options passed to getReader.

StreamPipeOptions
interface

Options passed to pipeThrough and pipeTo.

ReadableWritablePair
interface

The readable and writable pair shape used by pipeThrough.

ReadableStreamReadResult
interface

The result object returned by stream reads.

Globals

The runtime also installs a small set of globals so component code can use the same values without importing them explicitly.

Properties
fetch
typeof import('agentc:http').fetch

The same fetch function exported by agentc:http.

Headers
typeof import('agentc:http').Headers

The same Headers class exported by agentc:http.

Response
typeof import('agentc:http').Response

The same Response class exported by agentc:http.

Dirent
typeof import('agentc:fs').Dirent

The same Dirent class exported by agentc:fs.

Stats
typeof import('agentc:fs').Stats

The same Stats class exported by agentc:fs.

FileHandle
typeof import('agentc:fs').FileHandle

The same FileHandle class exported by agentc:fs.

Buffer
typeof import('node:buffer').Buffer

The Buffer constructor from node:buffer.

Blob
class

A binary large object with size, type, text(), arrayBuffer(), bytes(), and slice().

File
class

A file-like object with name, lastModified, size, type, text(), arrayBuffer(), bytes(), and slice().

console
object

The global console object with assert, clear, count, countReset, debug, error, info, log, time, timeEnd, timeLog, trace, and warn.

setTimeout
typeof import('node:timers').setTimeout

The timeout scheduler from node:timers.

clearTimeout
typeof import('node:timers').clearTimeout

The timeout canceller from node:timers.

setInterval
typeof import('node:timers').setInterval

The interval scheduler from node:timers.

clearInterval
typeof import('node:timers').clearInterval

The interval canceller from node:timers.

setImmediate
typeof import('node:timers').setImmediate

The immediate scheduler from node:timers.

queueMicrotask
typeof import('node:timers').queueMicrotask

The microtask scheduler from node:timers.

URL
typeof import('node:url').URL

The URL class from node:url.

URLSearchParams
typeof import('node:url').URLSearchParams

The URLSearchParams class from node:url.

ReadableStream
typeof import('node:stream/web').ReadableStream

The readable stream class from node:stream/web.

ReadableStreamDefaultReader
typeof import('node:stream/web').ReadableStreamDefaultReader

The default reader class from node:stream/web.

ReadableStreamBYOBReader
typeof import('node:stream/web').ReadableStreamBYOBReader

The BYOB reader class from node:stream/web.

ReadableStreamDefaultController
typeof import('node:stream/web').ReadableStreamDefaultController

The default controller class from node:stream/web.

ReadableByteStreamController
typeof import('node:stream/web').ReadableByteStreamController

The byte stream controller class from node:stream/web.

ReadableStreamBYOBRequest
typeof import('node:stream/web').ReadableStreamBYOBRequest

The BYOB request class from node:stream/web.

WritableStream
typeof import('node:stream/web').WritableStream

The writable stream class from node:stream/web.

WritableStreamDefaultWriter
typeof import('node:stream/web').WritableStreamDefaultWriter

The default writer class from node:stream/web.

WritableStreamDefaultController
typeof import('node:stream/web').WritableStreamDefaultController

The default controller class from node:stream/web.

TransformStream
typeof import('node:stream/web').TransformStream

The transform stream class from node:stream/web.

TransformStreamDefaultController
typeof import('node:stream/web').TransformStreamDefaultController

The transform controller class from node:stream/web.

ByteLengthQueuingStrategy
typeof import('node:stream/web').ByteLengthQueuingStrategy

The byte-length queueing strategy from node:stream/web.

CountQueuingStrategy
typeof import('node:stream/web').CountQueuingStrategy

The count-based queueing strategy from node:stream/web.

process
{ readonly env: Record<string, string | undefined> }read-only

The runtime populates env from the process environment and sets nothing else on this object.

What is not here

If a module or global is not listed on this page, the runtime does not provide it. The filesystem is an agentc runtime library rather than part of this surface. See agentc:fs.

← PreviousStandard libraryNext →Filesystem

© 2026 pogue.dev. All rights reserved.

Creative CommonsCC BY 4.0
On this pageModulesnode:buffernode:consolenode:timersnode:urlnode:osnode:stream/webGlobalsWhat is not here

Search docs

Search the agentc documentation