The skill explains how callers launch, inspect, deliver work to, and stop a harness session, and how to interpret runtime replies and effects. It also describes launch intents, confinement and account-seat behavior, and setup and build routes.
Problems with a kendex-owned skill go through kendex report; check ownership in the file first.
Before changing this skill's scripts, runtime or tests, read DEVELOPMENT.md.
.agents/skills/agent-runtime/scripts/setup # once per source revision, into the user cache
.agents/skills/agent-runtime/scripts/setup --detach --hold PATH # from a caller that must answer while it builds
.agents/skills/agent-runtime/scripts/agent-runtime <verb> --help # each verb's flags and defaults; --help alone lists the verbsThis package owns launch, account selection under the caller's policy, session identity, delivery, handoff and stop for one harness session. It holds no GitHub policy, issue classification, report format, personal task or fleet schedule. A caller supplies its intent and policy and reads typed results.
launch, inspect, deliver and stop.AGENT_RUNTIME_HOST=hc, read Herdr host setup for the required guarded entry.agent-runtime unattended-words --harness <claude|codex|copilot|pi> for the common launch settings and the arguments that disable the question tool.
result.words is an ordered array with one string per argument.result.env to the child process environment. An older runtime may omit this map.copilot-context-words reads the context tier for a specific home and model.session model, process lead, which becomes its program, and accounts pick --env.--help states its output.protocol is agent-runtime-v1.ok is true with a result, or false with a refusal of key, fields and text.agent-runtime: <key> field=value ... on stderr and exits 1.agent-runtime: usage and exits 2.not-started, confirmed, failed or unconfirmed.unconfirmed effect before you ask for the same effect again.deliver without --transport, run deliver --no-paste with the same text and the reply's turns_before as --turns-before.deliver --transport paste answers pasted, and nothing on this machine confirms it.--transport paste's turn on the remote side before you paste again.deliver --force only for a tmux probe. Workflows use the screen check.stop, by its recorded identity.launch --intent reads a JSON object whose members are the fields of LaunchIntent in runtime/src/launch.rs.grants takes the fields of Grants in runtime/src/confine.rs.launch ignores a member it does not know.launch refuses an intent that lacks a required member, such as harness, cwd or grants.file, with json-invalid before anything starts.launch writes the launch record.inspect heals it as the harness comes up.agent-runtime process lead --worker <name> --account <config dir> -- <program>.workers folder. process group --worker <name> and process stop --worker <name> read it.<name> is one path component with no leading ..process stop --worker <name> removes the record once the stop reads the group stopped or already gone.group-live, and one the stop could not read refuses stop-unreadable. Each keeps the record.process stop --file never removes its record.A launch intent that names grants runs the harness inside a kernel boundary. On Linux the runtime runs it under bwrap:
/tmp.The wrapper applies each Grants member only as the intent spells it:
writable: each path is bound back writable.read_only: each path is bound read-only after the writable binds, so it stays read-only inside a writable path.read_only path must exist; the wrapper refuses a missing one.runtime_dir: the user's runtime folder is hidden, and with it the tmux and session-bus sockets. With no runtime_dir, the folder stays in reach.seats: the account paths the launch records.seat_mounts: ordered source and destination binds for a seat view, each with an explicit read-only or writable mode. The wrapper applies them after the ordinary writable and read-only paths.Grants in runtime/src/confine.rs names the other members.When a launch runs unconfined:
unconfined cause runs unconfined under it.Check the answer after a launch that must run confined:
grants member launches the harness unconfined, with no refusal.confinement.state is confined, or unconfined with a cause.confinement comes from an intent that named no grants.confined says only that the wrapper runs.grants that is omitted or misspelled is ignored, and the record still reads confined.command_line shows the binds the wrapper applies.An account seat:
writable. Harness::home_writes names the code entries that orch lists in read_only with the seat's settings file.Inside the boundary:
AGENT_RUNTIME_CONFINED is 1.AGENT_RUNTIME_GRANTS names the grants file.scripts/agent-runtime runs the binary built from the sources beside it.gh to look for this key's published build. It verifies the publication and checksum before installing the executable in the cache.agent-runtime: setup-building key=<key> run=<path to scripts/setup> on stderr, runs scripts/setup with its lines on stderr, then answers. A failed build exits 69 with the setup's refusal as the last stderr line.agent-runtime: setup-required key=<key> run=<path to scripts/setup> on stderr and exits 69.scripts/lib/key.sh first. Where the binary is absent it runs setup --detach instead of the wrapper.setup --help states every answer and cause of setup and setup --detach.setup --runtime DIR --name NAME builds another skill's runtime crate that depends on this one.scripts/lib/key.sh.scripts/setup and scripts/orch-runtime are that pair.DEVELOPMENT.md in the catalog.vanillagreencom/kendex
73c7d8e
kendexkendex reportsetupagent-runtimeagent-runtime unattended-wordsagent-runtime launchagent-runtime inspectagent-runtime deliveragent-runtime stopagent-runtime sessionagent-runtime session modelagent-runtime processagent-runtime process leadagent-runtime process groupagent-runtime process stopagent-runtime accountsagent-runtime accounts pickghbwraptmuxIf you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.