API Reference
The dotagents package is a CLI umbrella plus a set of _*.py helper modules that
form its API. Generated from docstrings, organized by module:
- CLI — the
dotagents.clipackage: theDotagentsumbrella,main(), and the extension API a command module imports (DotAgentsArgs,resolve_user_store). - Commands — the built-in command classes (
init,overlays,context,env,about,build-pyz). - Agents — the agent registry: the
Agentbase type, the per-harness adapters, active-agent detection and identity stamping. - Overlays — the
Overlaytype: name rules, discovery, the manifest, installing an overlay's files, its setup script, and recomposing the managed block over a set of overlays. - Scope — the
Scopeevery walk takes (the stores and their precedence), the user-store and project-root resolution, and the overlay-source entry point. - Sources — overlay repos: directories of overlays, registry
files, git specs, and the precedence the
overlayscommands resolve names through. - Context — assembling the effective context for agents.
- Environment — chained env-file assembly and
env.pyexecution. - Merge — the managed-block merge for
init'sAGENTS.md, the harness-entry@include, thecontext --write-agentblock, and other comment syntaxes (e.g. TOML) viabegin_marker/end_marker/append. - Filesystem — the one text-file writer every module uses: LF-only on every platform, optionally atomic.
- Hooks — additive, idempotent merge of dotagents' hooks into an agent's own settings/config file.
- Skills — publishing an overlay's skills into a scope's shared dir.
- Wrappers — the
dotagents/dotagents.cmdwrapper scriptsinitwrites into abin/dir. - Resources — the package's own data: the bundled base overlay
and the base
AGENTS.mdblock rendered for a store, reachable from a plain install and from a.pyz.
The package also ships AGENTS.md, a header-file-style summary of this API for an
agent reading an installed copy.