r/ClaudeCode • • 20h ago

Built with Claude I let Claude Code agents mind my open-source repo by rules I wrote in plain text. Nearly three weeks in, the only bottleneck left is me (open source, MIT)

I maintain OpenScreen, an open-source screen recorder (8k stars). I built Rusuban to keep up with its issues and PRs, and it has been minding the repo for nearly three weeks. The video is the live board, not a mock-up.

**What it is**

A small server on my own machine. It reads the repo's issues, PRs, reviews and CI runs, and starts headless `claude -p` sessions to deal with them. Open source, MIT: https://github.com/EtienneLescot/rusuban

**How Claude Code is used**

- A judge session reads each issue and PR against rules I wrote in plain text, in `.rusuban/rules/` in the repo itself. Without rules, it only watches.

  • What the rules allow is done by worker sessions, each in a worktree of Rusuban's own clone, never my checkout: comment, rebase, fix a review thread, run a proof.
  • A fork's CI is approved only after a session has read the diff for secrets, network calls, install hooks and workflow changes.
  • Agents never merge. The server does, with no model involved, behind locks: CI green on the exact head it checked, no open review thread, no locked path.
  • What the rules don't cover comes to me as a card: what the agent already did, one question, a recommended answer. One click and it carries on.

**What I learned**

- Rules beat prompts. When several cards ask the same thing, the tool proposes the rule that would answer them, as a PR I merge. That is how I want the rules to grow: from answers I already gave, not from guessing ahead.

  • Keep the merge out of the model's hands. Checks that involve no model are what make automatic merges acceptable to me.
  • A card is only worth it if it says what was already done. "Should I merge?" is useless. "I read the diff, reran the two failed jobs, the author tested it on Windows 11: merge on their run, or lend me your desktop for the proof?" is a decision I can take in ten seconds.
  • The bottleneck moves to you. Today the board shows 79 open items: 31 are on the agents and 35 decisions are waiting for me, some for days. 20 PRs merged this week, 6 of them without me.

`npm install -g rusuban`, with `gh` and `claude` logged in. Windows, macOS and Linux. More at https://rusuban.dev

What rules would you give agents on your own repo, and what would you never let them do?

0 Upvotes

1 comment sorted by

•

u/AutoModerator 20h ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.