IV

goblin-warband

Runs several Claude Code sessions on one repository without collisions.

v1.1.0 6 skills 1,972 lines of TypeScript Goblin Approve

Install

claude plugin install goblin-warband@goblin-mode
IV.1

On the Registration of a Project's Shared Resources

Once per repository, before the first raid

The repository has one local database, one dev server port and a few rules that exist only in its owner's head.

How Human Suffer Before

  1. Human tell each session the rule from MEMORY. Out of own head.
  2. Fourth session get short version. Human tired by then. Fourth session know nothing.
  3. One rule human forget to say. That rule get broken. Always that one.

With goblin-warband

  1. /goblin-warband:configure-warband interviews once and writes .claude/goblin-warband.json into the project.
  2. It records the shared resources, the commands that touch each and how to tell from the machine whether one is busy.
  3. It records the taboos (actions only a person may take), the project's check commands and the unwritten conventions, now written.
  4. It notes whether the project is solo or shared, with the team's working hours.
Goblin Ruling (Is Final)

Human with one session say no need config. Human should get more session. Then need config.

IV.2

On the Commencement of a Raid and the Issue of Orders

When several tasks are ready to build in parallel

Four tasks are independent enough to build at once, one session each.

How Human Suffer Before

  1. Human make four worktree BY HAND. Copy env file four time. Install four time.
  2. Human open four terminal and type four instruction. No brief. No reason given.
  3. Each session use whatever model terminal say. One time ALL of them run small model. Nobody notice for hours.

With goblin-warband

  1. In the session that will be chief, run /goblin-warband:declare-raid with the task ids. It refuses to make a chief of a small model.
  2. It makes a worktree per task with environment files linked and dependencies installed, and picks each raider's model and effort with a stated reason.
  3. It asks about any convention it cannot read, sets numbered decrees and writes each raider its orders.
  4. It puts one launch line per raider on the tribute list. Run each in a new terminal and type nothing else there; a hook tells each raider its task and where its orders are.
Goblin Ruling (Is Final)

For two task, interview take longer than just typing. Goblin say worth it. Interview is best part.

IV.3

Access to the Database by More Than One Session

When sessions share a resource only one may use at a time

The test setup resets the local database. Two sessions reach that step in the same minute.

How Human Suffer Before

  1. Two session touch database same time. NO PERMIT. Nobody in charge. Goblin cannot watch.
  2. One session now fix code that was never broken. Twenty minute. Poor session.
  3. Human say "ask first". Session ask first. Then one day session forget.

With goblin-warband

  1. The second raider's reset is refused by a hook. The refusal names who has dibs on the database and how to ask.
  2. The attempt appears on the slate as a request. Open the slate with /show-slate and press g to grant dibs for a set number of minutes, or let the chief grant them once the machine shows the database free.
  3. /extend-dibs gives a holder longer; x on the slate, or /release-dibs, releases them. Overdue dibs show in red.
  4. While a raider has dibs, the project's own "are you sure?" prompt for that command is answered for it.
Goblin Ruling (Is Final)

Dibs only stop accident. Sneaky hand-written file get past it. So do not write sneaky file. Easy.

IV.4

On Matters Reserved to the Human

When a session needs a merge, a hosted query or a measurement

One session needs a row count from the production database. Another is ready to push.

How Human Suffer Before

  1. Session ask for thing in own terminal. Human not looking. Session wait and wait.
  2. Human run query, copy answer, paste in right window. Human is PIPE now.
  3. Push go out before check run. No gate. Just push. Goblin feel sick.

With goblin-warband

  1. Hosted reads, hosted writes and merges are taboo: no raider is ever allowed them. Each puts what it needs on the tribute list as a complete command with its directory.
  2. Run the query, then /pay-tribute 3 @counts.txt. The output goes straight to the raider that wanted it and the tribute is settled.
  3. For something long, /agree-tribute 4 moves it to a running group until it finishes.
  4. With the push gate on, git push is refused until the project's checks have passed for that exact commit.
Goblin Ruling (Is Final)

Human still pay tribute. But now tribute have NUMBERS.

IV.5

On the Maintenance of an Accurate Slate

During a long raid, to see every session's state in one place

Three hours in. One session has gone quiet, the chief's context has been cleared and a decision has changed.

How Human Suffer Before

  1. Human read four terminal to know four thing. No board. No ledger.
  2. Decision change. Human paste it four time and HOPE. Hope is not protocol.
  3. Context get cleared. Human explain whole run again from start. From memory!

With goblin-warband

  1. The slate shows each raider's state, branch, spoils, context fill and time since its last report. Raiders report their own state changes.
  2. /goblin-warband:summon-raiders puts the check-in questions to every raider and returns one list of what the person needs to do.
  3. A changed decree is set once and broadcast. Raiders mark messages from the chief as verified, so an instruction's source is known.
  4. After a clear, the slate shows rebind?; /reclaim-post chief from the chief's session reattaches the raid. A hook tells each compaction what to keep.
  5. Each raider watches its own spoils, pausing outside the team's hours. A reconcile command lists where the ledger and reality have drifted.
Goblin Ruling (Is Final)

Thirteen rule to learn. Goblin learn every one the hard way. Now human learn them the easy way. All thirteen.

IV.6

On the Orderly Conclusion of a Raid

When every task has its pull request

Every task has a pull request. Two have merged. Four worktrees are still on disk.

How Human Suffer Before

  1. Human delete each worktree by hand. Must check inside first. Might be work in there!
  2. Human work out which pull request sit on which. In head. No stack.
  3. Then human update plan. Also by hand. Human hand very tired now.

With goblin-warband

  1. /dismiss-raider <task> reclaims a merged task's worktree mid-raid. It refuses if the raider is live, the tree is dirty or anything is still running there.
  2. /goblin-warband:declare-victory links the spoils into a stack, prunes what is left and runs the project's checks on the top of the stack.
  3. It offers the roadbook follow-ups and archives the raid's ledger.
Goblin Ruling (Is Final)

Ending raid not land the spoils. Is different job. Goblin do one job at a time, properly.

How to Use It

Install and first run

Add the marketplace once, then install the mod.

claude plugin marketplace add JasonWarrenUK/goblin-mode claude plugin install goblin-warband@goblin-mode

Needs python3 (3.9 or later, standard library only) on PATH, lsof and pgrep for the probes and psql where a resource probes a database. The slate draws in the terminal and needs Claude Code 2.1.287 or later; the hooks, the CLI and the skills work on any version. goblin-scout is optional: /goblin-warband:declare-raid uses its ready waypoints and trails when it finds a roadbook.

Run /goblin-warband:configure-warband once per project. It interviews you and writes .claude/goblin-warband.json. Then, in an Opus session that will be the chief, run /goblin-warband:declare-raid with the task ids.

Open the slate with /show-slate. The launch lines wait on the tribute list, one per raider; run each in a new terminal window and type nothing else into it. It works when each raider appears on the slate and its launch line closes by itself.

Configure it

The project's settings live in .claude/goblin-warband.json, written and revised by /goblin-warband:configure-warband: the shared resources and the commands they gate, the taboos, the check commands, the optional push gate, the conventions nobody wrote down and whether the project is solo or shared.

Settings for your machine are in /config or under pluginConfigs in settings.json: the master switch, whether holding dibs answers a project's own prompt for you and how often an open slate refreshes.

OptionWhat it doesDefault
enabled
Warband on
The one switch for all of it. Off, nothing is registered and the command hooks still run but the slate, the tools and the dibs approval do not.true
approve_in_slot
Approve gated commands under held dibs
While this session holds the dibs on a resource and runs the command from its own worktree, a project hook's ask on that command is answered allow, so the person does not type it. Only resources marked approve_in_slot in the project config; never a taboo.true
refresh_seconds
Slate refresh
How often the slate rereads the ledger while open, in seconds.15
Commands and skills
CommandWhat it does
/show-slateOpen the warband’s slate, or close it
/read-slateThe slate as text, with the machine probed
/start-raidStart a raid on this repository, this session as chief
/end-raidEnd the raid and archive its ledger
/grant-dibsGive a raider the dibs on a shared resource, as you
/extend-dibsGive the holder of the dibs more time
/release-dibsRelease the dibs on a resource, whoever holds them
/agree-tributeMark a tribute agreed: you have typed it and it runs on
/pay-tributeMark a tribute paid, with the result for the raider who wanted it
/reclaim-postRebind the chief or a raider to this session after a /clear
/dismiss-raiderRetire a raider whose work has landed and reclaim its worktree
/show-spoilsOpen the spoils page
/claim-spoilsPut a PR from outside the raid on the spoils page
/ignore-spoilsLeave a PR off the spoils page
/goblin-warband:configure-warbandWrite or revise a project's .claude/goblin-warband.json by interview: the shared resources and how to detect them busy, the gated commands, the check commands, the convention files, the conventions that live only in the user's head and the taboos
/goblin-warband:declare-raidStart a multi-session raid from the chief's session: pick the tasks, create one worktree per task, record the raid in the ledger, write the shared guidance and each raider's orders, and hand the user one launch line per raider
/goblin-warband:declare-victoryClose a raid: link the PRs into a stack once they exist, prune each worktree after its session has closed, keep one stack worktree, run the project's checks on the top layer, offer the roadbook follow-ups, archive the ledger
/goblin-warband:join-raidHow a raider works inside a goblin-warband raid: read the orders, answer the five questions, report state changes, request and release dibs, put everything only the user can type on the tribute list, and open the PR the way the raid decided
/goblin-warband:lead-raidHow the chief's session runs a goblin-warband raid after kick-off: collect the oaths, settle the decrees and criteria, grant dibs from the machine's state, keep the slate and the tribute list true, decide what keeps sessions consistent and escalate the rest
/goblin-warband:summon-raidersAsk every raider the three check-in questions, wait for the replies, and give the user one list of the tribute they owe, in three buckets, every command complete with its directory
Turn it off or remove it

End any raid first: /goblin-warband:declare-victory from the chief's session stacks the spoils, prunes the worktrees and archives the ledger. Turning enabled off then unregisters the slate, the commands and the tools. The command hooks still run until the plugin is gone, the dibs gate and the push gate among them.

To remove it, run claude plugin uninstall goblin-warband@goblin-mode. The ledger stays in ~/.claude/goblin-warband/, with past raids archived under runs/. The project keeps .claude/goblin-warband.json, and push-gate records stay under the git common directory.