agent-runtime
Overview
nils-agent-runtime is the Rust crate (in crates/agent-runtime/) that
ships the agent-runtime binary
for graysurf/agent-runtime-kit.
The binary owns deterministic runtime-kit tooling: render / install /
audit / doctor flows, runtime state maintenance, and workflow-oriented helpers
that should not live in provider wrappers such as forge-cli.
Package vs binary name
| Field | Value |
|---|---|
| Directory | crates/agent-runtime |
| Package name | nils-agent-runtime |
| Binary name | agent-runtime |
Use the package name (-p nils-agent-runtime) for cargo commands and the
binary name (agent-runtime) for installed-binary invocations.
Subcommands
Core runtime-kit operations:
render— rendercore/+targets/<product>/intobuild/<product>/.install— activate rendered output against a product's runtime home.uninstall— remove installed renderer output from a product's runtime home.doctor— diagnose host setup, runtime roots, and required CLI floors.audit-drift— detect source-vs-rendered, rendered-vs-live, and unsafe drift.gc-backups— prune old backups under<state_home>/backups/.list-skills— enumerate the skillsinstallwould activate for a product, in deterministic text or JSON.restore-backups— restore a runtime home from a recorded backup snapshot.purge-state— purge runtime-managed state (use with caution).pr-body render— render standardized feature / bug PR or MR bodies forforge-cli pr create/forge-cli pr deliverflows.
list-skills
agent-runtime list-skills enumerates the skills that agent-runtime install
would activate for a given source-root + product. It is read-only and does
not mutate any live home; passing --live-home is accepted for parity with
install but is not required.
# Diff-friendly text output (one skill per line, tab-separated).
# Machine-readable JSON. `schema` pins the v1 contract.
JSON v1 schema (cli.agent-runtime.list-skills.v1):
skillsis sorted byidfor deterministic diffs.discoverableistrue/falsefor--product codex; omitted for other products.warningsmirrorsdoctor::skill_surfacewarning codes (currentlycodex.active-skill.file-symlink) and is always present in JSON output. Pass--include-warningsto surface them inline in text output too.
Pipe the JSON to jq -r '.skills[].id' | sort to recover the canonical
<domain>.<skill> list used by sandbox install rehearsal pins under
agent-runtime-kit/tests/sandbox/<product>/expected-skills.txt.
PR body rendering
agent-runtime pr-body render takes agent-authored section files and renders
the fixed Markdown scaffolding. It intentionally does not infer PR narrative
from git history or diffs.
Feature body example:
Bug body example:
The rendered body always uses ## Summary and ## Test plan so it satisfies
the body-section gate enforced by forge-cli.