Runtime Design
The Toolang runtime is built around the idea of a home.
Home
A home contains:
- top-level
.tooagent files toolang.tomltoolang.lock- local caps under
skills/,services/,prompts/, andpsyches/ - resolved artifacts under
.caps/ - per-agent state under
agents/<agent_name>/
Global storage
Toolang also uses global storage under ~/.toolang/:
~/.toolang/
store/
registry/
cache/
hotel/
agents.dbWhat each part does
store/: global object store for resolved artifactsregistry/: cached registry metadata, includingcaps.shcache/: transient download cachehotel/: materialized homes for URL-based executionagents.db: table of running agents across homes
Resolution
Capability resolution follows this order:
- source files
toolang.lock- home
.caps/ - global
~/.toolang/store/ - remote registry
- rematerialize into home
.caps/
References
agent_refresolves to an agent sourcerun_refresolves to a running agenthouse_nois the short persistent identifier used for runtime lookup
For the full design spec, see the repository document:
runtime-design.md.