agent-runtime
БесплатноЗапускает вложенные скриптыНе проверенLoad to launch, inspect, deliver to or stop one coding-harness session through the agent-runtime CLI or Rust library.
от vanillagreencom★ 93 звезды на GitHubОб этом скилле
Project Instructions
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.
Agent Runtime
.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 verbs
This 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.
Rules
- Start, read, hand work to and stop a session through
launch,inspect,deliverandstop. - Write no harness flag, process classifier or stop sequence of your own.
- The reply:
- Every verb prints one JSON reply on stdout, except
session model,process lead, which becomes its program, andaccounts pick --env. - Each exception's
--helpstates its output. - A reply's
protocolisagent-runtime-v1. okis true with aresult, or false with arefusalofkey,fieldsandtext.- A refusal also prints
agent-runtime: <key> field=value ...on stderr and exits 1. - A malformed command line prints
agent-runtime: usageand exits 2. - Route on the key, never the text.
- Refuse a reply whose protocol you do not know.
- Every verb prints one JSON reply on stdout, except
- An effect:
- An effect reports one outcome:
not-started,confirmed,failedorunconfirmed. - Reconcile an
unconfirmedeffect before you ask for the same effect again. - For
deliverwithout--transport, rundeliver --no-pastewith the same text and the reply'sturns_beforeas--turns-before. - A
deliver --transportpaste answerspasted, and nothing on this machine confirms it. - Confirm a
--transportpaste's turn on the remote side before you paste again.
- An effect reports one outcome:
deliver --forceis for a probe that knows better, never for a workflow.- Stop a session with
stop, by its recorded identity. - Never stop a session by process name or by a pid alone.
- The launch intent:
launch --intentreads a JSON object whose members are the fields ofLaunchIntentinruntime/src/launch.rs.grantstakes the fields ofGrantsinruntime/src/confine.rs.launchignores a member it does not know.- An optional member the intent omits takes its default.
launchrefuses an intent that lacks a required member, such asharness,cwdorgrants.file, withjson-invalidbefore anything starts.- That refusal writes no launch record.
- The launch record:
launchwrites the launch record.inspectheals it as the harness comes up.- Pass the same file to every later verb.
- A worker that runs outside an orch lane:
- Charge it to its account: start it with
agent-runtime process lead --worker <name> --account <config dir> -- <program>. - The runtime places the record in the account records'
workersfolder.process group --worker <name>andprocess 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.- A group still live after the grace refuses
group-live, and one the stop could not read refusesstop-unreadable. Each keeps the record. process stop --filenever removes its record.
- Charge it to its account: start it with
Confinement
A launch intent that names grants runs the harness inside a kernel boundary. On Linux the runtime runs it under bwrap:
- The whole tree is read-only, with a private
/tmp. - Every process the harness starts runs inside too.
- A controller's intent names no grants, so a controller runs unconfined.
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.- Each
read_onlypath 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 noruntime_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.Grantsinruntime/src/confine.rsnames the other members.
When a launch runs unconfined:
- Copilot CLI runs unco
Установить agent-runtime в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл agent-runtime?
Load to launch, inspect, deliver to or stop one coding-harness session through the agent-runtime CLI or Rust library.
Как установить скилл agent-runtime?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл agent-runtime запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic