The libraries the runtime provides to component code, and the environment they run in.
The runtime provides these libraries to every component it executes. Each library has its own page describing what it does and a page per language describing its surface.
| Library | Purpose | Languages |
|---|---|---|
| tools | Host classes and types used to define and invoke tools. | TypeScript, Python |
| fs | A POSIX-style virtual filesystem assembled by the runtime. | TypeScript, Python |
| http | An HTTP client whose outbound requests pass the runtime's egress policy. | TypeScript, Python |
Any compiled output containing a component in one of a library's languages contains that library.
Each library's page names the module each language imports. Every JavaScript tool also receives
agentc:tools, and every Python tool receives agentc_tools. The manifest controls the
filesystem's contents and the network policy, not whether these libraries are present.
The runtime also implements a subset of the language's standard library. That subset is enumerated in Standard library.
agentc provides type stub packages to enable IDE autocompletion and type checking for the runtime surface. These packages carry type declarations and no implementation, ensuring your editor accurately reports what the runtime provides.
Depending on these packages is optional. A component that does not depend on them compiles and runs identically, and the only thing their absence costs is editor knowledge.
For TypeScript, the type stub package is @agentc-sh/runtime. It includes declarations for the runtime modules.
Installing it requires a version of 11.10.0 or later for npm and 9.0.0 for pnpm. This is because it resolves as a git subdirectory dependency, and older package manager versions do not honor the subdirectory fragment.
For more information on how to install it, see the README.
For Python, the type stub package is agentc-runtime. It includes one stub package for each runtime module.
It is a development dependency, so the compiler never bundles it into a component. It resolves as a git subdirectory dependency, pinned to a release tag.
For more information on how to install it, see the README.
© 2026 pogue.dev. All rights reserved.
CC BY 4.0