bunqueue-working-sessions
Skill601 starsChanged 18 days agoMITView on GitHub
Runs the bunqueue agent-harness session lifecycle. Use when starting, resuming or ending a bunqueue coding session, when handing off work, when ./init.sh fails, when claiming, adding or editing a work item in feature_list.json or progress.md, when asked what evidence marks an item done, or when those files conflict in a rebase or fail the harness contract test. Covers one in-progress item per branch, Definition of Done evidence and session-handoff.md. Not for the content of a fix or a release, or for running the gates.
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/bunqueue/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- sdk/CLAUDE.mdCLAUDE.md
- bunqueue-devSkill
- bunqueue-fixing-bugsSkill
- bunqueue-releasingSkill
- bunqueue-running-gatesSkill
- bunqueue-running-machine-gatesSkill
- bunqueue-working-autonomouslySkill
- bunqueueSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 25
Read progress.md (Current State and the newest Session Log entry) and git log --oneline -5.
- Very specific: line 64
Leave ./init.sh green. Commit only when the user asked, through the gates.
- Very specific: line 65
After a push, the session is not over until the CI run of the pushed commit is green: watch it and handle a red or flaky run as …
- Very specific: line 77
Run bun test test/agent-harness test/agent-skills after resolving.
- Distinctive: line 97
Never run git reset, git checkout, git clean, or discard unrelated edits unless the user explicitly requests it (AGENTS.md), and never a …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Working sessions in bunqueue
The Startup Workflow, Working Rules, Definition of Done and End of Session are in CLAUDE.md and AGENTS.md; the state files and their contract are described in docs/agents/README.md. This skill is how to carry them out without breaking the files other sessions edit at the same time. Nothing in a state file authorizes a commit, push, version bump, release or publication.
Start
pwdandgit branch --show-current: know which worktree and branch you are in../init.sh(init.sh). It stops at the first failure; a green run prints the work items in progress, blocked or ready, then the agent skills and the next steps. A red baseline is repaired before any new scope; if you cannot repair it, record it under Blockers inprogress.md.- Read
progress.md(Current State and the newest Session Log entry) andgit log --oneline -5.
Claim one work item
- Pick one item of feature_list.json whose dependencies are
all
done, or add one (kebab-caseid,issuewhen known) at its id-sorted position: the contract test checks the order. - Set
statustoin-progressandbranchto the branch name without the account prefix.git branch --show-current | sed 's#^[^/]*/##'turns<user>/tls-sighup-reloadintotls-sighup-reload; the stripped name, never the full one, goes into committed files. - Without the prefix two people's branches can share a name, and the
one-item-per-branch check then reads them as one branch. Name the branch
<topic>; when someone else may pick the same topic, add a short unique suffix (tls-sighup-reload-k7). - A branch owns at most one
in-progressitem. If this branch already owns one (a release in progress, for example), finish or block it first, or work on another branch. - Edit only your own item. Unrelated findings become new
not-starteditems.
Record evidence as you go
evidence is what actually ran, written so the next session can check it: date and
base commit, each command with exact totals, artifact paths, the gated tree hash, the
commit, and the skeptic verdict. Prefix it PARTIAL while gates are pending. Examples
and the Definition of Done mapping: references/evidence.md.
A done item needs evidence and may depend only on done items.
End the session
progress.md: update only your item's lines in Current State (with the**Last Updated:**date, done, next, Blockers/Risks) and prepend a dated Session Log entry under the heading.feature_list.json: your item'sstatus,evidence,branch.- Multi-session work: fill the sections of session-handoff.md into that Session Log entry, including which explicit user requests exist so far.
- Record every risk, blocker and check you could not run; a gate that did not run is a blocker, not a pass.
- Leave
./init.shgreen. Commit only when the user asked, through the gates. - After a push, the session is not over until the CI run of the pushed commit is green: watch it and handle a red or flaky run as bunqueue-running-gates describes.
Rebase conflicts in the state files
| File | Resolution |
feature_list.json | keep both items, in id order; rename the newer id if two sessions chose the same one |
progress.md **Last Updated:** | the newest date |
progress.md Session Log | keep both entries, newest first |
progress.md Current State | keep each session's own lines |
Run bun test test/agent-harness test/agent-skills after resolving; it checks ids,
order, dependencies and the one-item-per-branch rule.
Gotchas
- The account prefix leaks easily: a
branchcopied fromgit branch --show-current, a Session Log line or a handoff that names<user>/<branch>. - Two sessions that each add an item at the end of
features[]conflict on the same lines; inserting at the id-sorted position avoids most conflicts. ./init.shis the startup check, not a gate: it runs no product suite, and of the harness and skills contracts only the fast ones. Process-heavy Machine and CLI deadline/cancellation tests remain in the unit suite, with their inventory and discovery checked bytest/agent-harness-init.test.ts../init.sh --fulladdsbun run test:sandbox, on the current working tree../init.sh --workspaceprints the directory, branch andHEADand stops. A notice that the git steps are skipped means the directory is not the root of a checkout: a sanitized Machine snapshot (no.git) skips them by design, so rungit diff --checkon the host instead.init.shwrites ignored output only (node_modules,dist,sdk/typescript/dist,docs/node_modules); a dirtygit statusafter it means something else changed.- Never run
git reset,git checkout,git clean, or discard unrelated edits unless the user explicitly requests it (AGENTS.md), and never a baregit stash: the stash is shared by every worktree of the repository.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

