CommunityCodierung & Entwicklunggithub.com

bare-agents

Fires many bare headless Claude agents at once on the user's own plan: readers with no tools on small slices of code or documents (about 1,550 tokens each), or doers with only the tools and skills you name that run tests and fix things in their own folders; in parallel or staged model to model, every answer checked. Use when the user asks for many agents or workers at once, headless or bare Claude workers, a cheap model run over every file or function, or a fan-out to scan or review a codebase, hunt bugs, check docs against code or live-test skills. Not for one plan run task by task with in-session subagents (subagent-driven-development). Asks before it starts unless you named it.

Was ist bare-agents?

bare-agents is a Claude Code agent skill that fires many bare headless Claude agents at once on the user's own plan: readers with no tools on small slices of code or documents (about 1,550 tokens each), or doers with only the tools and skills you name that run tests and fix things in their own folders; in parallel or staged model to model, every answer checked. Use when the user asks for many agents or workers at once, headless or bare Claude workers, a cheap model run over every file or function, or a fan-out to scan or review a codebase, hunt bugs, check docs against code or live-test skills. Not for one plan run task by task with in-session subagents (subagent-driven-development). Asks before it starts unless you named it.

Funktioniert mit✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Achillesfeel/bare-agents/tree/HEAD/skills/bare-agents

Installed? Explore more Codierung & Entwicklung skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

In Ihrer bevorzugten KI fragen

Öffnet einen neuen Chat, in dem dieser Agent-Skill bereits geladen ist.

Dokumentation

Bare Agents

Before you start

If the user typed /bare-agents or asked for bare agents by name, go straight on to Plan the wave.

If you chose this skill yourself, ask first with AskUserQuestion, because it starts headless agents that spend the user's own plan usage, and a wave cannot be called back once it starts. Work out the numbers first and put them in the question:

  • Run it: start N agents on MODEL, J at a time. Cap: up to $X each and $Y in all for doers (--budget-usd); one turn each for readers, about $Z in all going by the Playbook.
  • Run the light version: one or two agents on a sample of the units first, then ask again before the rest.
  • Not now: carry on without it.

With nobody to ask (a headless run), go on only when the task you were given names this skill.

How bare agents work

The idea. A bare agent starts with almost nothing: its own short system prompt instead of Claude Code's, no MCP servers, none of the user's settings except their guard hooks, and only the tools and skills you give it. That keeps it at a few thousand tokens instead of the 43,000 a normal subagent carries, so many can run at once for little. You do the thinking (what to cut, which model, what to ask); agents do the work; you check what comes back.

Two kinds of agent. Pick the lightest that can do the job.

KindLauncherGetsLoads at start (Sonnet)For
Readerscripts/run_worker.pyno tools, one turn, a JSON answer~1,550finding, judging, proposing edits
Doerscripts/run_tool_worker.pynamed tools (Bash, Read, Write...), optional skills, many turns, its own folder~6,100 with six tools; ~9,400 with skills on toorunning tests, building, rendering, fixing and proving the fix

Skills on (--skills on) loads the skills in each folder's .claude/skills/ through the Skill tool, so an agent can follow a full skill (for example skill-creator's test loop) without it being pasted into the prompt. The skill list adds about 3,700 tokens, because Claude Code's bundled skills are listed too. A skill's body loads only when the agent calls it.

The guard. Both launchers start one probe agent exactly as the real ones start, and refuse to start any (exit 12) if it loads too much: 3,000 tokens for readers, 12,000 for doers, 15,000 for doers with skills on. Do not work around it. Never fan out with the Agent tool: each of its subagents carries the full context (about 43,000 tokens), and 19 of them at once cost a visible share of the user's usage limit in a few minutes. Never pass --dangerously-skip-permissions: the doer launcher grants tools by name (--allowedTools), so permission checks stay on, and the safety check blocks the bypass anyway. If a bare launch is blocked, stop and ask the user; do not fall back to subagents.

The user's guards go with every doer. The doer launcher reads the PreToolUse hooks in ~/.claude/settings.json and passes them to each agent with --settings, so an agent is held to the same rules as the session that started it. A bare agent would otherwise skip them. The launcher prints how many hook groups it passed; zero means the user has none.

Agents draw on the user's own plan limits. Before a wave, say how many agents, which model and the share of the usage window you expect it to take. Run three or four at a time, so a limit stops little work part-way. A doer run has no resume: after a limit (exit 11), start again with only the unfinished folders.

Skilled agents: a bare doer with one or two skills

A doer can carry skills without carrying the whole skill list. --skill <folder> copies a skill into every working folder and switches every other skill off at start-up, so the agent lists only what you gave it (about 9,900 tokens at start with two skills and five tools, against 12,300 for skills on with nothing trimmed). Give one core skill and start the prompt with its /name, which loads it for certain, typed-only skills included. Add one or two helpers that start on their own when the task reaches for them. Keep to three skills at most: every extra description is read on every turn.

python3 "${CLAUDE_SKILL_DIR}/scripts/run_tool_worker.py" --prompt-file task.md --dirs work/*/ \
  --model sonnet --effort medium --tools Bash,Read,Edit,Glob,Grep \
  --skill "<skills>/debugging" --skill "<skills>/verification-before-completion" \
  --budget-usd 1 --jobs 6 --out run.jsonl

task.md starts with the core skill: /debugging {NAME} fails its tests. Find the cause, fix it, prove it. <skills> is the folder that holds the skill folders (for a plugin, its skills/).

Bare essentials: the tools each kind of agent needs

KindToolsAdd when
ReaderRead,Glob,Grepnever writes; reports in its final message
ReporterRead,Glob,Grep,Writemust leave a file (a report, a plan, notes)
FixerBash,Read,Edit,Glob,Grepruns tests and changes existing files
BuilderBash,Read,Write,Edit,Glob,Grepalso creates new files

A tool you do not name is not there. Start from the smallest row that can do the job.

Sixteen agents worth keeping

The skill names below are the ones these agents were built with. They do not come with this plugin: use skills you have that do the same job, and pass their folders with --skill.

AgentPrompt starts withHelpers (--skill)KindModelUse it for
Debugger/debuggingverification-before-completionFixersonneta failing test, crash or wrong output: root cause, fix, proof
Bug prover/red-green-proofdebuggingBuildersonneta suspected bug: a test that fails before the fix and passes after
Reviewer/review-prdifferential-reviewReader + Bashopusa diff or branch: defects, risk, a merge verdict
Security auditor/security-auditdifferential-reviewReaderopusexisting code: injection, auth, crypto, with confidence levels
Refactorer/refactor-opsverification-before-completionFixersonnetextract, rename, move, split, guarded by the tests
Test doctor/test-engineeringdebuggingFixersonneta slow, flaky or weak test suite
Test-first builder/test-driven-developmentverification-before-completionBuildersonnetnew behaviour, written test first
Shell fixer/bash-opsdebuggingFixersonnetwriting or repairing a shell script or CI step
Python setup/modern-pythonverification-before-completionBuildersonneta Python project's tooling: uv, ruff, ty
CI reader/gha-log-readerdebuggingReader + Bashsonneta failing GitHub Actions run: cause and fix
Deep reader/deepreadwriting-clearly-and-conciselyReportersonneta long document: claims, evidence, a map
Source checker/source-auditnoneReporter (+ WebFetch to open links)sonneta draft with citations: does each source say what is claimed
Editor/writing-clearly-and-conciselynoneReporter + Edithaikutightening a README, report or message
Planner/writing-plansspec-driven-developmentReporteropusrequirements into an ordered, sized task list
Skill tester/skill-creatordebuggingBuildersonnetlive-testing one skill: cases, runs, fixes
Grader/self-evalnoneReaderopusan honest score for finished work

Confirmed live: Debugger (sonnet, medium, two skills, five tools: 9,886 tokens at start, 7 turns, $0.08; it loaded both skills and proved the fix by putting the bug back). The rest are starting points: confirm each on a real job and add a line to the Playbook.

Plan the wave

Read the Playbook below. From the chat, work out what the user is after and offer a plan in a few lines: what to slice, which type of work, which model, how many agents and how many at once, the cap per agent and in all, and what each will be asked. Wait for a yes, even when the user typed the command: the plan is where the spend is agreed. A yes to the question in Before you start that already gave these numbers counts. The Playbook is a starting guess, not a rule; choose what fits the job.

How

  1. Slice the work into small units that each make sense alone: a packet per reader, a throwaway folder (a git copy, so its changes show as a diff) per doer. Commands: references/commands.md.
  2. Prompt. A worker cannot ask questions, so give it what it needs: what the code or document is and where it runs, what to look for, what a change must keep, and what to return (the lines, what is wrong, a fix, how to test it). Add a short brief per slice in a .task file beside its packet, naming where to look hardest. A vague prompt finds nothing.
  3. Fire the agents with the launcher for their kind, the chosen model and --jobs (--effort if the user names one). Give doers a budget per agent (--budget-usd) and say the total to the user before starting. To stage a job across models, run one tier, check its answers, and build the next tier's input from them, so each model picks up where the last stopped.
  4. Check every answer before using it: re-read the cited lines, and drop what does not hold. A finding you cannot reproduce on this machine (another OS or tool version) is unverified, not wrong. Then look for what no single slice could see, such as behaviour across units. Change code only if the user asked, and prove each change with a test.

After

When the user confirms the output was useful, add one line to the Playbook under its type of work, and adjust a model line if the run showed it was off. Tell the user, edit this file in the skill's source repository, and replace a line rather than add a near-duplicate. This update is required: it is how the Playbook grows.

Playbook

Types of work

Code analysis. One unit per slice; ask what is wrong in it and where. Confirmed:

  • A 169-file scan: sonnet doers as scanners, medium effort, about ten turns each. They finished but missed two real holes, so use them for triage, not sign-off.

Debugging. Workers find faults and propose the smallest fix; you apply each one and prove it with a test that fails before and passes after. Re-check fixes with a stronger model before accepting them. Confirmed:

  • A 131-line Python CLI and its SKILL.md: haiku, one function per slice; real faults found, fixes applied and proven by tests.
  • The prefetch helper's 22 known faults: 15 haiku and 15 sonnet workers at medium effort, one fault each ($0.06 and $0.72). All 30 proposals passed a targeted check; one per fault was merged by hand, mostly sonnet's.
  • Script bugs in ten design-pack skills that live testing had left open: two opus doers, skill-creator on, six tools, medium effort, one folder each ($11.03, 84 and 105 turns). Both reproduced each bug first, proved each fix with a test that failed before, and found more of the same kind. Merge doers' changes file by file: copying whole folders let one agent's untouched copy overwrite the other's fixes.
  • Five review findings across a skill set: one fable doer, low effort, six skills, one run. It fixed all five and removed dead code on the way, in 38 commits, each with tests.

Speed. One function per slice; ask for slow patterns (repeated work, needless I/O, blocking waits) and a faster version. You benchmark before accepting any. Confirmed:

  • (none yet)

Stress testing. Workers propose hostile and edge-case inputs for their slice; one session with tools runs them and reports. Workers cannot run code themselves. Confirmed:

  • (none yet)

Staged review. Readers in tiers, each fed the checked output of the last: a cheap model reads and maps, a mid model proposes exact edits, a strong model accepts, revises or rejects each and writes test prompts. Check every tier before the next starts (apply the edits and rebuild before the last tier sees them). Confirmed:

  • 19 skills of three design packs: haiku read, sonnet fixed, opus reviewed, all medium effort; 55 edits shipped, $4.46. Haiku over-reported broken paths that the build rewrites, so the coordinator note before the next tier mattered. The prompts quoted the exact skill-creator sections each tier owned; the user later found that too narrow for live testing.

Live testing. Doers, one per unit, each in its own folder with the skill under test and skill-creator in .claude/skills/, told to load skill-creator and test for real: write cases, run them, check the outputs, fix and re-run. Give the whole method by skill and only the target by prompt; do not pre-pick what to look for. Confirmed:

  • 19 design-pack skills: sonnet, medium effort, skill-creator on and six tools, one folder each, --jobs 7. All 19 finished cleanly, with 56 graded cases, $7.68 in all (about $0.40 and 20 turns each). Every skill got real text fixes, proven by re-runs. Several broke silently as written, such as blank sprite icons, a bundle that never built and a wrong CSS cube. The read-only staged review before it ($4.46) had judged all 19 "works" and missed every one of these, so run doers whenever the claim is "it works". Doers may edit only the text under test: script bugs they found came back as notes for a follow-up.

Other. Any job that splits into small independent units: docs against the code they describe, test gaps, classifying, summarising. Confirmed:

  • A cited research review: one fable doer, low effort, research skills and web tools, one run.

Models (a starting guess; refine from confirmed runs)

  • haiku: wide and cheap. First passes, faults inside one function, triage. Can over-report; check before trusting.
  • sonnet: the all-rounder. Main hunts, fix proposals, docs against code. Needs a clear question. As a scanner it is triage, not sign-off: it misses real holes.
  • opus: judgment. Checking fixes, subtle or security logic, real-world facts, final passes, stress-test runners. Costly; run fewer at once.
  • fable: one doer can carry a whole job end to end: fixes with a test each, or a cited review. Confirmed at low effort, one agent at a time; untested in a wide wave.
  • effort: medium was enough for every tier of the staged review; low was enough for fable doers.

Where it runs

  • Cloud session (claude.ai/code): start the launcher under a trimmed environment. It passes every CLAUDE_* variable to its agents, and a cloud session sets its own (session ID, messaging socket and token, effort), which would reach every agent. Sign-in goes through ANTHROPIC_*, which stays:

    env $(env | grep -o '^CLAUDE_[A-Z_]*' | sed 's/^/-u /') python3 "${CLAUDE_SKILL_DIR}/scripts/run_tool_worker.py" ...
    

Verwandte Skills