promptpartner/agentsmith/autonomous-run
Claude Code and agent skill by promptpartner/agentsmith
- community
Checking that the SKILL.md file is still in the repository.
Prepare, start, inspect, resume, or stop a finite local overnight coding run after a human has accepted a Wayfinder terminal spec; coordinates a declared Claude/Codex maker and independent checker without pushing, merging, or writing to external systems.
Install
npx vskill@latest install promptpartner/agentsmith/autonomous-runSKILL.md
The same SKILL.md was published earlier as promptpartner/agentsmith/autonomous-run.
Autonomous run — bounded overnight execution
This skill is for a finite approved implementation, not a recurring watcher. For recurring work use the autonomous-loops profile. For unresolved product or architecture decisions, run Wayfinder first.
Hard gate
Do not begin implementation unless all of these are true:
- The terminal spec is committed under
docs/specs/withstatus: accepted,accepted_by, and
accepted_at. An agent may author only status: draft.
- A separate implementation-ticket ID is named. The decision ticket is not executable work.
- The operator explicitly invokes or authorizes
start. Producing or checking a spec never
self-authorizes implementation.
Linear and every other external system still follow the installed write-consent rule. The v1 controller has no external-write adapter at all.
Prepare the contract
Use .agentsmith/autonomous-run.py in an installed project; the source checkout uses scripts/autonomous-run.py. The installed template is .harness/templates/autonomous-run.json (the harness source checkout uses templates/autonomous-run.json):
prepare refuses blank or placeholder models and efforts and names the fields to fill. Ask the operator which models to use; never invent one. prepare and start also refuse a schema-2 spec with no list item under ## Acceptance and evidence, ## Edge cases or ## Non-goals, and a "stale assumption": an ## Assumptions item ` path or path::symbol that no longer holds at base_ref. Fix the spec and have the operator re-accept it; do not weaken the item. prepare and start also refuse a new run while as many runs wait on the operator as attention_limit in the risk policy allows (default 5). Show the operator agentsmith inbox and let them land a waiting run (deliver), rework it (prepare --rework-of <run-id>), or delete its run branch; never raise the limit yourself. Review the manifest's exact allowed/denied paths, verifier, models, attempt cap, wall-clock limit, budgets, and optional scope.resources keys such as port:3000 or db:local/test`. Resource keys coordinate cooperating local runs; they do not replace operating- system port binding or database isolation. Commit the manifest before execution; the controller refuses an uncommitted contract. Concurrent worktrees share writable Git metadata needed for local commits, so this guard prevents accidental collisions between cooperating runs; it is not a security boundary for mutually untrusted makers.
Before any Git metadata write in this repository (git worktree remove or prune, a branch delete, a history rewrite), run the read-only guard and continue only on exit 0: python3 .agentsmith/autonomous-run.py status --all-terminal && <git command>. Exit 1 names the live or unfinished run; exit 2 means it cannot tell, which you treat as live.
Size budgets per run. Class the work by the lines it should change (S up to about 350, M up to about 800, L up to about 2,500; split anything larger), cap at the highest usage measured for an accepted run of that class plus at least 20% headroom, and write the class, the measurement and who set it in limits.budget_rationale. A run stops at the first report over a cap, even by 1%; a finished maker's candidate is checkpointed first, so resume can verify and check it. Keep max_attempts at 3. Every runtime a role uses needs its cap (codex_goal_tokens, claude_max_usd); zero or a missing cap refuses at prepare and start. Only the operator may choose "unbounded" instead, and only with budget_rationale saying who chose it and why. When the maker and the checker run the same runtime, limits.checker_reserve (default 0.25, from 0.05 to 0.5) of that cap is held for checking; a maker with nothing above it does not start, and the run escalates with "budget reserved for checking". A run also escalates early, with a reason starting run-shape guard:, after 2 identical rejections in a row or 1 maker turn that changed nothing (limits.max_identical_rejections, limits.max_silent_turns): read the last rejection before you prepare another run, because resuming repeats the stop.
To rework a finished run, prepare a new run with --rework-of <run-id> --note <file>; the note is pinned by hash and goes to the maker, the new run keeps it as operator-feedback.md in its own folder, and it starts with a fresh attempt budget. Never reopen an accepted run.
Start and supervise
Only after explicit operator authorization:
The controller creates an isolated local branch/worktree, launches a fresh maker, validates its receipt, scope and Git transition, then creates a disposable detached worktree for the sandboxed deterministic verifier and a fresh checker. Before the first attempt is judged, the verifier runs once on the base commit; each attempt lists the checks that passed there and fail now as regressions. An empty or timed-out suite rejects the attempt as incomplete, never as a pass, without a checker. A rejection becomes the next maker's input. Three failed attempts, invalid state, denied scope, immutable-deadline or reported-budget exhaustion, Git metadata drift, protected verification edits, or checker mutation escalates instead of widening authority. A known infrastructure failure (network, sign-in, overload, sandbox start, client crash) relaunches the role without spending an attempt; the same failure twice in a row stops the run, and a work graph then starts no new child. A Claude checker that accepts after a denied tool call is not trusted and is relaunched the same way. Report the named failure; the operator fixes it and resumes. Verification fails closed unless macOS sandbox-exec or Linux bubblewrap is available. Before creating anything, start runs one trivial sandboxed command per role and one through the verifier sandbox; if the host cannot run them, it refuses and names the role and reason.
Existing baseline tests, the accepted spec, runtime launchers, and verification policy are protected even with broad maker scope, and moving or renaming one of them counts as changing it. So are agent instructions at any depth (AGENTS.md, AGENTS.override.md, CLAUDE.md, CLAUDE.local.md, GEMINI.md, and .claude/, .codex/, .agents/, .cursor/ folders), because the checker loads them from the candidate; if a task needs one changed, the operator commits that change first. A moved file counts as two changed paths, the old one and the new one; both must be inside the allowed scope. Every commit in the candidate's history counts, not only the end-to-end diff: a path added and later removed still refuses the run. Add custom acceptance inputs via verify.protected_paths; changing protected inputs requires separate operator review outside this run. New regression tests remain allowed. Both roles receive trusted-path write restrictions through their native policies; Codex uses a strict named filesystem profile, and Claude combines Bash denyWrite with file-tool Edit denials. Native clients and the host remain trusted. Checkers inspect the controller verifier evidence, and an accepting checker cites it per criterion as criterion :: file[:line] :: excerpt; an acceptance whose citations do not check out is a checker defect and the attempt is reworked. Each role's receipt summary is its report: a first line VERDICT: <STATUS>, then ## Summary with 3 to 5 bullets; a maker report adds ## Assumptions without authority (or - none). A maker report without it fails the attempt before verification; a checker acceptance without it is a checker defect. At acceptance the run records the risk tier from the policy committed at the base (status <id> shows risk_tier); a declared risk_tier only raises it, and the tier decides nothing yet. Before relying on a checker client and model, run calibrate <manifest>: it judges a clean and a defective built-in candidate and records the result, which later runs show as checker_calibration. Until that record reads passed for this model version, the checker is advisory: a run it accepts ends awaiting-human (exit 3), and deliver refuses it. A human reviews the held commit and re-runs with an explicit approval: calibrate until it passes, then prepare a rework.
Before start creates local Git or state artifacts, and before resume restarts work, the controller serializes a repository-local collision scan. Ancestor/descendant fixed prefixes from scope.allowed_paths conflict; a glob with no fixed prefix reserves the repository; identical resource keys conflict. Live malformed state fails closed, while stopped or demonstrably dead controllers no longer reserve their scopes.
While .harness/AUTONOMY_PAUSED exists, prepare, start and resume refuse; live runs keep running until stop <id>. Never create or delete that file on your own; it is the operator's. Use status <id>, stop <id>, or resume <id>. Stop/resume retains the worktree and audit state. Resume revalidates a checkpointed candidate and reruns verification/checking in the same attempt. Dirty or unreceipted maker commits require operator review. Raw logs survive controller crashes; earlier invocations are archived. Report usage_accounting_incomplete when a crash leaves unreported spend unknown. A surviving role process group must be stopped before recovery. An accepted run ends at a local commit for human review. Do not push, open a pull request, merge, deploy, rewrite history, or write to Linear from the run itself; landing is the separate attended step below, and only with the operator's yes.
Land an accepted run (attended)
Roles have no network and no credentials, and the controller never pushes. Landing happens here, in an attended session, with one yes from the operator:
- Run
python3 .agentsmith/autonomous-run.py deliver <run-id> --dry-run. If it refuses, report
the reasons and stop.
- Show the operator the push command, the pull-request title and body, the tier, the base
staleness and the Auto-merge eligible line. When the body has a demo transcript the operator has not opened, ask them to run python3 .agentsmith/autonomous-run.py evidence <run-id> themselves and watch it, then run step 1 again. Do not run evidence for them: it records that the operator opened the transcript.
- Ask once: "Push <accepted-sha> to agentsmith/<run-id> and open a pull request with this body?"
Anything but a clear yes ends the step. The yes covers only this push and this pull request.
- Push the exact accepted commit, never a moving branch name:
git push origin <accepted-sha>:refs/heads/agentsmith/<run-id>.
- Save the body to a file and open the pull request:
gh pr create --base <base-branch> --head agentsmith/<run-id> --title "<title>" --body-file <file>.
- Run
agentsmith ci watch --pr <number>and report its one end state and next step. Do not fix,
rerun or comment on CI from this step.
- After a green watch, run
deliver <run-id> --eligibility --sha <accepted-sha> --pr <number>
and report the eligibility line. It is information only. A human merges; never merge, approve or enable auto-merge from this step.
Report
Give the run ID, status, attempt count, branch/worktree, accepted commit or escalation reason, and the actual verification evidence. State explicitly that external actions were not taken.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/autonomous-run/SKILL.md
Popularity
- Repository stars
- 173
- Repository forks
- 6
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/promptpartner/agentsmith/autonomous-run)