/agentkit:resource-safe-executionfrom agentkit
Apply Linux-only deterministic systemd cgroup limits with bounded-run to resource-intensive developer commands. Use for dependency installation or upgrades, compilers, typechecks, builds, test suites, linters, Playwright or browser work, code generation, Cargo, Go, and pytest, especially on shared or production-adjacent Linux hosts where an unbounded process could disrupt Kubernetes, ingress, tunnels, or other services.
Ships in agentkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
On Linux, use bounded-run for every resource-intensive command. Never fall back to an unbounded
command when preflight or containment fails.
On non-Linux hosts, the installer omits bounded-run because its systemd and cgroup boundary cannot
run there. Local heavy-command containment therefore stands down. OpenCode delegation protection
remains active. Claude hook protection requires jq, awk, and cat; when one is missing, the hook
warns and intentionally fails open. Do not route work through container engines, remote execution,
or service managers unless the user approved a platform-native runner with verified limits.
| Profile | Workload | Memory high/max | CPU | Tasks | Time |
|---|---|---|---|---|---|
canary | First execution of unknown code | 1G / 2G | 2 | 64 | 60s |
default | Established checks and test suites | 6G / 8G | 2 | 256 | 10m |
compile | Compilers, typechecks, builds | 8G / 12G | 4 | 512 | 15m |
browser | Playwright and browser builds | 12G / 16G | 4 | 1024 | 20m |
Start new compiler versions, dependency upgrades, unfamiliar generators, and incident
reproductions with canary. Increase only after the canary finishes cleanly.
Pass the executable and arguments after --. Do not pass a shell string.
bounded-run --profile canary -- bunx tsc --noEmit --singleThreaded
bounded-run --profile compile -- bun run typecheck
bounded-run --profile browser -- bunx playwright test
bounded-run --profile default -- cargo test
For a project-only AgentKit install, invoke ./.claude/tools/bounded-run. The one-shot Claude
plugin bundles the runner and its denial message prints the resolved plugin-cache path. A global
install places bounded-run in ~/.local/bin, with agentkit-run kept as a compat
symlink from the tool's previous name.
The runner preserves argv and the current directory, but exposes only a curated environment. Retrieve credentials at runtime through the project's approved secrets mechanism; never put secrets in argv.
canary; observe exit status and host health.If bounded-run reports a missing or misconfigured agent-work.slice, insufficient headroom,
high load, or memory pressure, stop. Propose the required infrastructure correction and wait for
approval.
Hosts sized differently from the defaults pin their slice values in root-owned
/etc/agentkit/resource-guard.conf (MEMORY_HIGH, MEMORY_MAX, MEMORY_SWAP_MAX, CPU_QUOTA,
TASKS_MAX); the runner verifies the live slice against that file and falls back to its built-in
expectations when the file is absent.
Do not wrap docker, podman, or systemd-run. They can delegate work into a daemon, container,
or sibling service outside the transient cgroup. Use a separately approved dedicated runner or
verified engine-native limits for delegated workloads.
PreToolUse hooks and Codex prefix rules catch common accidental bypasses, but they are defense-in-depth rather than a sandbox for hostile scripts. Codex rules cover direct prefixes only; they do not recursively parse shell payloads or scripts. A script can deliberately contact a daemon or user-systemd socket after launch. Preserve the host-level service limits and reserved capacity that protect the agent host, ingress, and tunnels even if a child evades the workload slice.
bounded-run propagates the wrapped workload's exit status. Treat a non-zero exit status as
failure. For builds and test suites, also confirm the expected tool summary (test result:,
N pass, or a compiler summary line) before reporting success. A zero status with no expected
summary, or empty output, does not prove that the intended workload ran. Preserve both signals and
investigate whenever the exit status and tool output disagree.
Do not restart, reconfigure, or replace live tunnels, ingress, Kubernetes, networking, or remote access as part of a build or toolchain upgrade. Those are separate production changes requiring their own approval, health checks, and rollback.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub developerinlondon/agentkit --plugin agentkit20 skills in this plugin
/agentauthzAdminister an agentauthz host over its MCP tools (authz_describe, authz_check, authz_grant, authz_grants, authz_revoke, authz_policies, authz_audit_query): read the descriptor before touching vocabulary, grant curated policies bounded down, probe-check both directions after every change, verify in the audit trail. Triggers: granting or revoking access, authoring or validating authz policy, "why was this denied", bounds, condition keys, agentauthz, authz MCP tools./architectStudy a system and produce living architecture documentation — explanatory pages with high-quality diagrams. Use AUTOMATICALLY when the user asks to document, explain, map, or review an architecture ("how does this system work", "architecture diagram of this repo", "create/refresh the design docs"), or to keep architecture pages current after changes. Orchestrates the diagram and publish-page skills./autonomous-workflowOther plugins' skills for the same job