Skip to content
Agentmart
Submit a tool

brutal-swarm

Drain a BRUTAL.md task graph through parallel isolated workers and stacked pull requests.

Skill by sssemil

IndexedMIT★ 2
Write a review

Chalk Labs

Need help deploying brutal-swarm?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/sssemil-brutal-swarm

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Drain a BRUTAL.md task graph through parallel isolated workers and stacked pull requests. Managed workers use append-only phases with fresh execution context.

Use cases: productivity

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/brutal-swarm

What's inside

Skill name
brutal-swarm
Description
Drain a BRUTAL.md task graph through parallel isolated workers and stacked pull requests. Managed workers use append-only phases with fresh execution context.
License
MIT
Instructions
94 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (13)

  • SKILL.md
  • openai.yaml · agents/
  • parallel-execution.md · references/
  • runtime_config.py · scripts/
  • swarm_wave.py · scripts/
  • test_runtime_config.py · scripts/
  • test_swarm_wave.py · scripts/
  • test_tmux_worker.py · scripts/
  • test_worker_context.py · scripts/
  • test_worktree_manager.py · scripts/
  • tmux_worker.py · scripts/
  • worker_context.py · scripts/
  • worktree_manager.py · scripts/

SKILL.md (first lines)

# Brutal Swarm

Schedule exact-task workers without taking ownership of their tickets or pull
requests.

## Required Context

1. Read `../brutal-shared/integration-resolver.md`,
   `../brutal-shared/support/contracts.md`, `../brutal-worker/SKILL.md`, and
   `references/parallel-execution.md` completely.
2. Resolve one work store and code host, load both support modules, and retain
   their normalized identities.
3. Read applicable repository workflow rules.

## Start A Run

1. Discover resumable `in_progress`/`in_review` work and stack-ready `todo`
   artifacts of kind `task` or `review_finding`. Select one plan graph.
2. Resolve the explicit or default root branch and record its remote head.
   Never inherit uncommitted changes from the initiating worktree.
3. Ask for the maximum concurrent ticket workers on every run. Use the smaller
   of that answer and platform capacity.
4. Resolve `execution.worker_runtime` with `scripts/runtime_config.py` before
   claiming or provisioning. Missing means `tmux`; accept only `tmux` or
   `subagent` and never fall back implicitly.
5. For a local work store, resolve its canonical absolute root against the
   primary worktree.

## Drain The Graph

Use `scripts/swarm_wave.py` on fresh normalized provider reads for every wave.
Resume owned attempts before starting `todo` work.

For each selected artifact:

1. Provision or safely resume its sibling worktree serially with
   `scripts/worktree_manager.py`.
2. Pass the exact managed handoff from the execution reference. Use
   `scripts/tmux_worker.py` for tmux, or one persistent native collaboration
   worker for the subagent runtime. Instruct it to use `$brutal-worker` for only
   that task.
3. After handoff, do not claim, comment, transition, implement, push, review, or
   edit that task/PR. The swarm may re-read state, advance managed phases, and
   relay progress.
4. Preserve progress on failure. Remove only a verified empty worktree after
   claim loss. Exclude blocked descendants while independent work continues.

For tmux, count only live panes toward the concurrency cap. Retained dead panes
occupy no slot. When a pane returns a valid zero-exit checkpoint, revalidate the
task, ownership, PR, branch/base/head, and checks; write a mutable phase
snapshot; then call `tmux_worker.py advance` with the active attempt id and
revalidated snapshot. The controller derives the next phase. Never resume a
completed checkpoint or reuse its Codex thread across phases.

Managed prompts contain only the phase, context-file path, and result path.
Bulk ticket, diff, check, and finding data stays in one run-local context file.

Prioritize an interrupted same-phase resume before new work, still within the
cap. Use exact-thread `resume` only for that interruption. Every phase and retry
gets an append-only attempt directory; never overwrite or accept a stale
attempt, missing exit record, or partial result.

After terminal `clean`, remove the worktree only when the returned local head
equals the verified pushed PR head. Keep branches while PRs remain open. A
`zero_findings` or `materially_clean` review gate is stack-ready; literal
`pr.clean` remains a compatibility input, not the only readiness signal.

Rebuild the graph whenever a worker reaches a checkpoint or terminal result.
Continue until no resumable, reconcilable, or stack-ready artifact remains.
Do not stop after the first wave.

## Reconcile Existing Stacks

Prioritize exact-task handoffs that complete merged tickets, update children
after a base advances, or resume matching owned work. A child worker merges the
new base normally, resolves conflicts, verifies, pushes, retargets when needed,
and re-enters the material-correctness review/fix loop. Never merge a PR,
force-push, or let a parent worker edit a child.

## Operational Output

Keep full tmux JSONL, test, diff, and provider output in protected run/attempt
logs. Relay only status, duration, checkpoint summary, and on failure the last
200 lines or 16 KiB, whichever is smaller. Logs and sessions are observability,
not workflow truth.

## Final Response

Report integrations, graph, requested/effective concurrency, runtime, worker
and phase attempts, task/session/worktree/branch/PR mappings, completion kinds,
residual lower-severity findings, blocked results, retained evidence, safe
attach/cleanup commands, and reasons remaining artifacts are not stack-ready.

From sssemil/SKILLS, MIT.

More from sssemil/SKILLS

Signals

Stars
2
Forks
0
Open issues
0
Last commit (this folder)
Jul 22, 2026 (3 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from sssemil

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get brutal-swarm running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying brutal-swarm?

CallGet help
Cite this page

brutal-swarm skill. Agent Mart. https://agentmart.dev/skills/sssemil-brutal-swarm (last updated 2026-10-24)