bunderlog

Docs

Louie

Building with Claude Code. Guidelines for any project and each stack, given when a task calls for them; workflows that plan, build, verify and merge agreed work; templates for new products.

Install it for the project and turn workflows on:

claude plugin install louie@bunderlog --scope project
{ "enableWorkflows": true }

The workflows are JavaScript that Claude Code runs; you install no Node for them. Where workflows are off, Claude runs the louie:verifier agent by name instead.

Commands

Command What it does
/louie:plan <Ticket> Plans an agreed Ticket. Changes nothing.
/louie:implement <Tickets> Takes one to five agreed Tickets to pull requests.
/louie:merge <pull requests> Merges pull requests /louie:implement opened, one at a time, each checked again first.
/louie:verify [target] Checks a change against what the project agreed. Changes nothing.
/louie:new <path> Starts a new product from a template.

A Ticket is its key or URL in the tracker the project names, or its file in .about/tickets/.

The code host

/louie:implement and /louie:merge open, read, wait on and merge pull requests on GitHub or on Bitbucket Cloud. Louie tells which from the repository’s origin: bitbucket.org is Bitbucket Cloud, anything else GitHub. You configure nothing for it.

They reach the code host through Louie’s own MCP server, code-host, which starts with each session where Louie is on. It holds the rules a merge rests on: it merges only the commit the verification passed, only onto the default branch the rebase used, and never deletes a branch.

  • GitHub goes through gh, signed in as you.
  • Bitbucket Cloud goes through its API with the token in BITBUCKET_TOKEN: an Atlassian API token with BITBUCKET_EMAIL set to its account’s email, or a repository or workspace access token without it. It needs to read the repository and Pipelines, and read and write pull requests. The token never reaches Claude: Louie masks it in every answer.

Name the merge method in CLAUDE.md or AGENTS.md in the host’s own terms (rebase on GitHub, squash or merge_commit on Bitbucket Cloud), unless the host allows only one. To let a run go without a permission prompt for each call, allow mcp__plugin_louie_code-host in your settings’ permissions.allow.

The map shows every command of the three plugins on one page, and how each of Louie’s workflows runs, stage by stage.

/louie:plan

One louie:planner agent reads the Ticket, the ADRs, glossary terms and PRD it touches, and the code, and returns one plan: what changes where, which acceptance criterion each change serves, the tests that will check each change (one for each criterion a test can check and for the tricky logic it adds, or how a criterion no test can check is checked instead), a confidence (high, medium, low), the assumptions made, and the decisions only you can make, each with options and a recommendation.

The script, not the agent, decides the verdict from the plan’s fields: ready; needs-decision when a decision is yours; done:nothing-to-build, naming the commit on the default branch that already meets the criteria; blocked:no-criteria when the Ticket has none; blocked:low-confidence; blocked:tooling when a tool it needed, such as the tracker’s client, failed; or blocked:no-ticket when none was named. Write your answers into the Ticket, or an ADR, and push before implementing.

/louie:implement

Takes one to five Tickets. It prepares each in turn, then plans them all at once, and builds none until every plan is in, so every Open decision comes in one report. Every stage is a fresh agent, told only the Ticket, the plan and what the stages before it returned; a script decides where the run goes.

  1. Prepare. Stops without changing anything when there is no remote, the tracker’s client is missing or the Ticket’s file isn’t there, the local default branch has unpushed commits, or .about/ has uncommitted changes. Otherwise it adds a worktree at .claude/worktrees/<slug> on a new branch from the remote’s default branch. Your own checkout stays as it is.
  2. Plan. Runs /louie:plan in the worktree. A Ticket whose plan isn’t ready ends as its plan does, and the worktree and branch it made, which hold nothing yet, are removed.
  3. Overlap. Of the ready Tickets, in the order you named them, one whose plan changes a file an earlier one changes ends blocked:overlaps, naming that Ticket and the files. Run it again once that pull request is merged.
  4. Implement. louie:implementer reads Louie’s testing Guideline and builds test-first: it writes each test the plan names and sees it fail before it writes the code that passes it. It commits in the project’s format until the project’s checks pass on the last commit. It never skips a Git hook. A Ticket kept in .about/tickets/ is deleted by the change that delivers it.
  5. Verify and review. Runs /louie:verify on the branch’s commits and, beside it, louie:reviewer, which looks for bugs in the same commits and tries to disprove each one before it reports it, since a false one costs a round. A blocking departure, a criterion not met or a bug sends the findings back to be fixed, and a criterion met with no test goes back for its test; at most two reworks, and the run stops sooner when a round fails on the same as the one before. A round whose only failures are criteria met with no test goes on to the pull request instead of stopping, since a criterion only you can check by hand never gets a test.
  6. Push. A stage of its own pushes the branch and names the commit the branch ends at on the remote. Unless that is the commit the last verification passed, the run opens no pull request.
  7. Pull request. Opens a pull request to the default branch listing each criterion with its verdict, the plan’s assumptions for you to review, the review’s findings that aren’t bugs and the verification report. It is a draft when a criterion is still met with no test after a rework, a departure was found, or something could not be checked.

A Ticket’s run ends with one of:

Verdict When
done:pr-opened The pull request is open, ready for review.
done:draft-pr The pull request is open as a draft.
blocked:prepare Prepare stopped, changing nothing, and says why: no remote, no Ticket, unpushed decisions, or no-token when BITBUCKET_TOKEN isn’t set.
blocked:needs-decision The plan has a decision for you. Other plan verdicts, such as done:nothing-to-build or blocked:no-criteria, end the run as they are.
blocked:overlaps An earlier Ticket’s plan changes the same files.
blocked:checks The project’s checks could not pass.
blocked:unimplementable The plan contradicts the code.
blocked:push The push failed.
blocked:pull-request The pushed branch ends at another commit than the verified one, or the pull request could not be opened.
blocked:tooling A stage or a Workflow returned nothing.
failed:rework-budget Still failing after two reworks.
failed:not-converging A rework failed on the same as the round before.

On several Tickets the run returns each Ticket’s verdict and one of its own: done:all, done:some or blocked:none; or blocked:no-ticket or blocked:too-many (more than five) before any agent runs.

A run uses at most 22 agents for each Ticket, and one more for a worktree it removes. On one Ticket that stays under Claude Code’s warning for large workflows; a run on several can pass it. It needs a remote, the tracker’s command-line client if a tracker is named, the code host’s sign-in (see The code host), and the project’s checks named in CLAUDE.md or the README (such as mise run check).

/louie:merge

Takes one to five pull requests that /louie:implement opened and you have read, each its number, #number or URL, on GitHub or Bitbucket Cloud. Naming a pull request here is your consent to merge it. It takes them one at a time, in the order you named them: each starts once the one before has merged or stopped, so each is rebased onto the default branch as it is then. A pull request that stops leaves the others to go on.

  1. Prepare. Stops without changing anything when the pull request is closed, a draft, not aimed at the default branch, or in another repository; when its Ticket can’t be found; or when the merge method can’t be told from what the project names (CLAUDE.md, AGENTS.md or an ADR) or the only one the code host allows. Otherwise it adds a worktree at the pull request’s head, so your own checkout and the branch’s worktree stay as they are.
  2. Rebase. Rebases onto the default branch and resolves each conflict where both sides’ intents can be kept. It also reads what merged since the pull request’s base, and drops a change one of those commits already makes, such as a second link to the same page. Where keeping one Ticket’s intent drops another’s, with or without a conflict, it stops and names the files, the options and the one it recommends. The project’s checks must pass on the last commit.
  3. Verify and review. Runs /louie:verify against the Ticket and louie:reviewer on the rebased commits, every time, conflict or not. A failure is reworked, at most twice, as in /louie:implement.
  4. Push. Pushes with a lease on the head commit Prepare saw, so it never overwrites a commit someone pushed since. The script then checks the pushed branch ends at the commit the last verification passed.
  5. CI. Waits, an hour at most, for the pull request’s checks on the code host.
  6. Merge. Merges by the project’s method, only while the head is still the verified commit and the default branch hasn’t moved since the rebase. It deletes no branch.

A pull request’s run ends with one of:

Verdict When
done:merged The pull request is merged.
blocked:closed, blocked:draft, blocked:not-default, blocked:other-repo, blocked:no-ticket, blocked:merge-method, blocked:no-token Prepare stopped, changing nothing. blocked:no-token: BITBUCKET_TOKEN isn’t set.
blocked:needs-decision The rebase has a decision for you: settle it and run the pull request again.
blocked:nothing-to-merge After the rebase nothing is left beyond the default branch.
blocked:checks The project’s checks could not pass.
blocked:unimplementable A rework contradicts the code.
blocked:unverified The verification passed but left a criterion unchecked.
blocked:push The push failed, or the branch moved since Prepare read it.
blocked:push-mismatch The pushed branch ends at another commit than the verified one.
blocked:ci A check on the code host failed; the run names it and links to it.
blocked:ci-timeout The checks were still running after an hour.
blocked:base-moved The default branch moved since the rebase. Run the pull request again.
blocked:merge The code host refused the merge, or the pull request’s head moved since the push.
blocked:tooling A stage or a Workflow returned nothing.
failed:rework-budget Still failing after two reworks.
failed:not-converging A rework failed on the same as the round before.

The run returns each pull request’s verdict and one of its own: done:all, done:some or blocked:none; or blocked:no-pr or blocked:too-many (more than five) before any agent runs. It uses at most 22 agents for each pull request, and needs the code host’s sign-in. Removing the merged branch and its worktrees, and closing a Ticket in a tracker, stay yours.

/louie:verify

Four louie:verifier agents run in parallel, one per source of agreement: the ADRs, the glossary, the Guidelines, and the acceptance criteria of the Ticket or PRD. Each departure comes with file:line. Each criterion gets met-tested, met-untested, not-met or not-checked. A script joins the findings and decides: the change fails on a blocking departure or a criterion not met. The report lists what each verifier read, and names under Not checked a verifier that read nothing, or read a Ticket or PRD and returned no criterion, so a pass that checked nothing doesn’t look like one that did.

The target is a commit range, a branch, a pull request, a Ticket or a PRD; by default, the current branch’s commits since the default branch plus the working tree. It is not a bug hunt (that is code review, and louie:reviewer inside /louie:implement and /louie:merge) and doesn’t run the app (that is Claude Code’s /verify).

Guidelines

Guidelines are files of working rules: principles, design, testing, debugging, writing-for-agents, ci, dependencies, and one per stack: go, python, typescript, vue. They reach Claude two ways, with nothing to configure:

  • At session start, one line per Guideline that fits the repository and that no hook gives, plus the rules for every task in full.
  • By a hook, the whole file, once per session, at the moment it matters: opening a .ts or .vue file gives typescript and vue, a .go file gives go and a .py file gives python, and so does a shell command that names the file (cat, sed, a script); opening a CLAUDE.md, an AGENTS.md, a skill or an agent’s file gives writing-for-agents; editing a test gives testing, a C or C++ test in test/ or tests/ and a Robot Framework suite among them; creating a code file gives design and principles; a failed test run gives debugging, ctest, robot and make test among them; a red CI run gives ci; adding a dependency gives dependencies. A hook can add only 10,000 characters to Claude’s context, so when one file calls for more Guidelines than fit, the rest are named for Claude to read, and each comes whole at its next signal.

The project’s own CLAUDE.md, config and linters win where they disagree with a Guideline. Measured on real sessions, a rule handed over this way was read before the first edit in 15 of 22 cases; named only at session start, 5 of 79.

The project’s own decisions reach Claude the same way: the first time Claude reads, edits or writes a file in a session, a hook names the project’s ADRs and PRDs that mention it, so Claude reads what was decided before it changes the file.

/louie:new

Starts a new Go and Vue product in an empty folder outside any Git repository. It asks for the product name and the GitHub owner, writes the template and runs git init on main:

  • apps/api: Go on Postgres, with sqlc and goose migrations
  • apps/app: Vue 3 with Tailwind and Vitest, in a pnpm workspace
  • Kamal deploy config and a Dockerfile, mise run dev and mise run deploy
  • .claude/settings.json, .githooks/ with Hathi, .hathi.yml, CI, CLAUDE.md and an ADR for the stack

Then it hands you one line to run yourself, so the first commit carries no AI credit:

! cd ~/code/shop && mise trust && mise run setup && git add -A && git commit -m "chore: scaffold from louie go-vue 0.74.2"