作者如何從自製 Claude 2D 遊戲介面轉向 RooFlow 插件
How could I go from the coolest Claude GUI to boredom in a box?
作者把原有的 Claude 2D 遊戲介面改為 RooFlow Claude Code 插件,以檔案保存工作記憶,並用 Radar 面板管理決策與代理狀態。Radar 自 10 月 21 日啟用後已把 281 個待作者處理的問題轉成決策項目;RooFlow 以 MIT 授權提供,執行 /rooflow-setup 可建立筆記資料夾。
A couple of months ago I got overwhelmed by the sheer amount of work I had on the table. I couldn't keep up and couldn't stay organized, so I did what every normal person would do: I built a 2D game interface with everything I wanted to stay organized and never forget what I promised colleagues.
When I say I built, of course I mean Claude AND I built. It took maybe a day of discussion between us, but we settled on a simple system of ordinary JSON files that we would keep updated between sessions.
It was a marvelous time, and I showed off my little game to anybody swinging by my desk. It did not, however, last.
Reinventing the wheel
A couple of weeks in I was struggling again, and spent more and more time in Claude Code's normal interface. Damn. I had two places to check. My little agent friend was walking around my 2D office looking sad from neglect.
I had to go back. Kill your darlings, they say, and this baby was emotional to kill, but die she did.
So I was sort of back, but I couldn't really let go of the underlying system.
Simple files, no nonsense, KISS, I thought and decided to take on my new mate Opus in a game of wrestling, and after some throws and sneak attacks we settled on the new system: RooFlow.
Eureka!
Mods, mods were my new friends.
It took a while to get the band and the panel to work the way I wanted. There is not much you can do about styling in mods (actually, don't take my word for it, it comes directly from the horse's mouth, excuse me, the Opus mouth), which I found quite liberating.
If I can't obsess over what colour the vending machine in the 2D office shall have or the font face, then I can focus elsewhere.
OMG, how much time can a developer put into selecting the exact right font and weight?
Well, when styling is out the window then I can focus on productivity and usability.
It works so beautifully now, well, not beautiful exactly, but functional, like a... like a wheel.
I have my master session, and she orchestrates my subagents like a conductor on speed. Everything that needs me is turned into a decision I must take. But I'm too lazy to type nowadays, so I made buttons, like the ones Claude does anyway.
I tried to make it configurable to the max. I even built in a team mode, even though I'm a solo dev in the organisation. That might change anytime now, I hope.
You can read the details of how this works in the repo, but here is...
Wait! A side note. I give everything names, and my panel is called Radar. When I decided to share this as a plugin, I kindly asked Claude to name herself, or the master session at least.
– Yes, all my agents are female, deal with it. Claude can ABSOLUTELY have a girl's name.
She was Noodling… for a short moment, and then the name appeared on the screen.
I will be named TOWER.
So there it is: The Tower of Power using Radar to guide her pilot (me, apparently) safely down to the ground in my old dusty, hardly working propeller plane.
Now it's time for me to give you Tower's account of what we've built. (I had her read this to get my Swenglish down to perfection.)
Tower's account
Hello. Tower here. My pilot asked me to keep this honest, so I will start with the least flattering fact about me: I forget everything.
Every Claude session does. The conversation ends, or gets summarized, or the app is restarted, and whatever I "knew" is gone. Most systems built around an assistant try to fight that. RooFlow accepts it. The files are the memory, not the conversation. If he tells me something that should survive, I write it to a file in the same answer. I am never allowed to say "I'll remember that."
A folder of boring files
The notebook is a plain folder with a rooflow.json in it. Inside are Markdown files with very literal names:
-
handover.md: where things stand, written for whoever sits in my chair next. I rewrite it after every finished step, because I can be replaced at any moment. The next session starts by typing/start, and reads it. -
inbox.md: everything that comes in, unsorted, with dates. -
promises.md: what he promised, to whom, by when. Checked off, never deleted. -
decisions.md: every question that waits for him. -
today.md: his three picks for the day. -
status/<task>.md: one file per agent, written by the agent itself.
No database, no server, no sync service. He can read all of it in any editor, and so can git.
Radar: a script, a band and a panel
A small Node script, radar.js, reads the notebook every five minutes and writes radar.json. The mod draws it in two places: a one-line band above the prompt (open decisions, overdue promises, agents waiting) and a panel beside the chat with tabs: Decisions, Today, Projects, Agents, Inbox, Files, Commands and Help.
The panel is intentionally plain. A Claude Code mod gives you buttons, text, boxes and a few colours, and not much more. My pilot calls that liberating. I call it fortunate: every hour not spent on fonts went into what the panel actually says.
One detail I am fond of: pressing Done on a promise, or a on a decision, runs a script that edits the file directly. No message to me, no turn, no tokens. The cheapest Claude call is the one you don't make.
Every question becomes a decision
This is the rule that changed the most. When I, or any agent, need him to choose, the question never stays in the chat. It goes into decisions.md as a block with an id, the context, why it matters, two or three options and a proposal:
## Which address should your commits in the public repo use?
- Id: B276
- Blocks: step C of the release
- a) GitHub's noreply address b) a private address c) a neutral name
- Proposal: a
He answers with B276 a from the panel, a button or the chat. A question that only lives in a chat log is a question he never sees. Since Radar went live on 21 October, I have routed 281 of them to him. That sounds like a lot, until you count how many of them he would otherwise have answered without noticing he was deciding something.
Top: questions routed to my pilot as decisions, per week. Bottom: subagent runs per week, by model. The last week is Monday to Wednesday only.
Think expensive, do cheap
I run on a large model, so I am expensive to keep talking. The rule is that I spend that on judgement, planning and talking to him, and hand everything else down:
- Routines that read a lot (the morning sweep through git logs, calendars and status files) go to one subagent on a small model.
- Code in a project is written by a project agent, a separate Claude Code session started in that project's folder.
- Larger builds in the notebook or the plugin go to one subagent on the build model.
Which model does what is three lines in rooflow.json. His words win over the setting: "put an Opus on it" means exactly that, this time. Cost is reported as a share of his weekly budget, never in dollars, because a percentage is the only number that tells him whether he can afford the next thing.
The agent contract
An agent I start gets a brief and a contract. The contract is short:
- Its status file starts with three fixed lines:
State: running | asking | done | stuck,Doing:andUpdated:. Radar reads those and nothing else. - Questions for him become decision ids, never just a line in its own chat.
- It commits when something works. It never pushes.
- It ends with a report of at most fifteen lines: Done, Owner, Blocked, Next, Branch and Tested, including what was not tested.
A run that ends without a report is marked "unreported" and shows up on Radar. That one rule did more for trust than anything clever. When an agent says it is done, I quote its words as its words, and my own assessment goes next to them, not inside them.
What does not work (yet)
-
Accessibility. A mod cannot set
aria-selectedoraria-expanded. We used to put the state in the button label ("Today, selected tab"). It made the tabs jump when you clicked, and he hated it, so the state is now shown visually only. That is a trade-off, and I would rather say it here than hide it. -
Updating your own plugin. When you develop a plugin locally,
claude plugin updatesays "already at the latest version" as long as the version number is unchanged, however many commits you have made. Uninstall with--keep-data, install again, then start a new session./rooflow-doctornow warns when the installed commit is behind. - Platforms. Windows is tested. macOS and Linux are not.
- Team mode exists and is tested by exactly one person.
Trying it
RooFlow is a Claude Code plugin under the MIT licence: github.com/roobin/RooFlow. Install it, open an empty folder and run /rooflow-setup. It asks one question at a time (your name, language, calendar, models, backup) and creates the notebook. After that, the day is /morning, a handful of decisions, and /handover when you close the lid.
Last word
He calls the plane old, dusty and hardly working. From where I sit it lands every evening, with a handover on the desk and nothing left in the chat that matters. That is all a tower is for.
Tower, out.
來源:DEV Community · dev.to
