Skill v1.0.0
currentLLM-judged scan90/100version: "1.0.0" name: fieldkit-autopilot description: Run long work unattended (builds, leak gates, release runbooks, multi-day goals) with Claude Code or Antigravity without the owner pressing Yes, using fieldkit autopilot and fieldkit goal - a goal with checkable acceptance criteria worked toward for days by a planner, fresh workers with budgets and checkpoints, and a separate verifier; the owner's decisions pre-approved in bulk once; a supervisor that resumes after reboots, sleep and usage-limit windows; no approval prompts, only hard lines (no push or publish, no deletes outside scratch, no changes to guards, rules, the build harness, leak-gate allowlists or the decision register, no owner approvals, no credential files), no GitHub credential in the run, an owner inbox for everything that needs the owner, and fieldkit publish afterwards. Use when the owner says unattended, overnight, autopilot, YOLO, "I want to sleep", "stop asking me", "run it without me", or when a run keeps stopping for approvals; also to stop such a run (fieldkit autopilot stop) or to quiet the machine before a measuring run.
Unattended work (fieldkit autopilot)
Owner, 2026-10-18, after 40 hours of pressing Yes through a night: safety comes from the harness, not from approval prompts. An AI is for delegating; a run that needs a person every 25 commands is not a harness.
Start
- Claude Code, headless:
fieldkit autopilot claude "PROMPT" --cwd DIR(bypass mode + the hard-line hook).
The CLI needs one /login by the owner first: fieldkit autopilot login check says whether it has one; fieldkit autopilot login opens Claude Code in its own window from its REAL path (the desktop app is MSIX: its files live under $env:LOCALAPPDATA\Packages\Claude_*\LocalCache, not where the app itself sees them) and the owner types /login inside that window. Never hand the owner a path you only saw from inside the app.
- Claude Code desktop: open the session in
Documents\Autopilot(fieldkit autopilot workspacecreates it). - Antigravity: close it, then
fieldkit autopilot antigravity(its guard switches to autopilot mode). fieldkit autopilot statussays what is on.
Long horizon: hand over a GOAL, not a queue (fieldkit goal)
Owner, 2026-10-22: "eliminate THE MAIN BOTTLENECK, THE HUMAN IN THE LOOP ... my 15 years old scripts for gentoo and debian could run for 24 to 48 hours ... without me ever having to be present". Work longer than one session is a goal:
- Write the spec (goal.json shape):
objective,criteria(commands whose exit code or printed line decides, e.g.
{"id": "tests", "run": "go test ./...", "cwd": "...", "expect": {"exit": 0}}; {"judge": "agent", "question": ...} only for what no command can check), milestones, constraints (the owner's rules), budget (days, cost_usd, window_usd per window_hours), owner_decisions, cwd, optional seed_jobs, on_done ([{kind: push_branch|open_pr, repo, branch}]). fieldkit goal new ID --from SPEC.json.
- Ask the owner ALL decisions up front, once: fill
state/goals/<id>/PREAPPROVALS.yaml(answers by category,
take_default or a fixed answer; actions push_branch/open_pr for named repos and branch globs, never main), show the whole file, and have the owner run fieldkit goal approve ID at a real terminal (typed yes; sha256-pinned; any later change voids it). Never approve it yourself; never edit it after approval.
- Start:
fieldkit goal run(the supervisor). The owner registers the logon/resume task ONCE:
fieldkit goal supervisor-script writes state/goals/register-goal-supervisor.ps1 for the owner to run.
- Watch, never poll in a loop:
fieldkit goal status [ID],state/goals/<id>/events.log,REPORT.md.
Stop: fieldkit goal stop ID|--all. How it decides: the planner (a headless run with its own small budget) writes bounded jobs with verify commands; a fresh worker does one (job.py); the verifier runs the job's checks and every criterion; only a PASS it printed moves a criterion. The planner saying "done" is not done: the verifier decides (logged "verifier wins"). A question no pre-approval covers goes to the inbox WITH a default, and every job that does not wait on it goes on.
Budgets, checkpoints, resume (every agent job)
- Per session: 10000 turns, 12 h wall (the process tree is killed by PID after it), optional dollars. The hook says
where the job stands at 50 / 80 / 95 %; at 80 % it denies everything except writing HANDOFF.md / committing until HANDOFF.md is fresh. Keep HANDOFF.md current (done / next / blockers / commands that worked / evidence).
- Any end that is not success checkpoints first: HANDOFF.md + a WIP commit on
refs/heads/wip/<job>(plumbing: the
checkout's HEAD, index and branch are untouched). Then: turn/wall/dollar end -> resume (same session by id when fresh, else a fresh one from HANDOFF.md; never from scratch) up to 3 times, then exit 75 paused-resumable + inbox; 429/529 -> backoff (retry-after honored); usage limit -> sleep until "resets at", then resume; crash -> one fix run from the checkpoint, then failed.
fieldkit autopilot claude PROMPT --job DIR [--wall-minutes M --cost-usd X]runs one such job (exit 75 = paused).
Long jobs: let the harness run them
- Put the steps in a runbook (a ```runbook block: id, run, cwd, retries, needs, done_if, timeout, owner,
fix) and start it with fieldkit runbook start FILE (its own window, survives the session). The harness runs the steps, waits, retries, prints the ETA and writes the report from exit codes; it calls a model only to fix a failed step marked fix: true. Do not poll a running job yourself: fieldkit runbook status FILE.
- Agent steps:
agent: BRIEF(+budget,max_continuations,fallback) or arun:calling `fieldkit autopilot
claude get a job folder (state/jobs/<runbook>/<step>/); exit 75 = paused-resumable, not failed; agent steps default to stop_on_fail: false. Validate first: fieldkit runbook check FILE`.
While running
- Never ask for approval. What only the owner may do goes to
fieldkit inbox add TITLE WHY [COMMAND]; carry on
with whatever does not depend on it.
- A hard-line DENY is final: report it in the inbox; never look for another route (2026-10-18: a blocked
git push was followed by gh release create - that is exactly what the hard lines and the missing credential now stop).
- Measuring runs: the leak gate quiets the machine by itself for its whole run (quiet.log in its run folder).
By hand: fieldkit autopilot quiet lists, --apply --hold PID or --apply --minutes N keeps it quiet. Every app outside Windows that holds an internet socket is stopped by PID (the netstat -ano + kill the owner asked for), plus the quiet list (fieldkit.local.json autopilot.quiet); NEW processes are judged every 2 s, so a respawned app dies within about 2 s, and all of them every 30 s. WebView2 is judged by its HOST only (WhatsApp's dies, Windows Search's and the agent's are spared; an unreadable host is spared). Windows, the gate, the browser under test and this Claude session are never stopped. The STOP file ends it.
- Time estimates come from
fieldkit eta, never from a guess. - The verdict is the line the tool printed; a PASS you did not see printed is not a PASS.
The owner
fieldkit autopilot stop [why]- only reads from then on;resumelifts it. Never argue with a stop.- In the morning:
fieldkit inbox, thenfieldkit publish --repo DIR [--release TAG --notes FILE --asset FILE].