Repository navigation
feat: investigate a problem or an idea with a coding agent - #259
Merged
Merged
Conversation
`StableBar triage` writes facts about this Mac and a playbook into ~/Library/Caches/StableBar/triage, then hands the terminal to claude or codex, asking which one when both are installed. `--agent` picks one and `--model` passes a model through. Without either agent, it prints where the files are. The playbook in .github/triage/PLAYBOOK.md is embedded in the app, and a test keeps the two identical. The agent follows main's copy when it is newer, but the safety rules sit in the opening prompt, where a newer playbook can't relax them. Closes #257
M4n0x
force-pushed
the
feat/257-triage-command
branch
from
October 23, 2026 07:58
3871c5a to
cc71625
Compare
|
🎉 This PR is included in version 0.7.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This was referenced Nov 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Users with a problem or an idea for StableBar gather versions, displays, logs and existing issues by hand, or file without them. Many already have a coding agent that could do it on their Mac, but it would start without the facts or the rules for searching and filing. Fixes #257.
Changes
StableBar [--config PATH] triage [--agent claude|codex] [--model MODEL](Triage.swift,LaunchCommand.swift). It findsclaudeandcodexonPATHand asks which one to use when both are installed (a number or a name). StableBar then replaces itself with that agent, started in the run folder with a one-line prompt that points atprompt.md. Without a terminal to ask in, it asks for--agent. Without either agent, it prints the paths of its two files so they can be pasted into another agent.Facts about this Mac go to
~/Library/Caches/StableBar/triage/<time>/context.md:PATH, and other StableBar processes--validateresult, and whether a bar runs it (newRuntimeControl.isRunning)It never creates the configuration file or starts its scripts.
The playbook,
.github/triage/PLAYBOOK.md, is embedded inTriage.playbook, and a test fails when the two differ. It covers problems and ideas:main's playbook when it's newerSafety rules in the opening prompt. These rules come in the prompt built into the release, ahead of the playbook, so a newer playbook from
maincan't relax them:No label.
gh issue createsilently drops labels for users without push access. The playbook ends each issue withFiled with StableBar triage by <model> via <agent>.instead. The prefilled form link keeps the form's labels.Guide: a Triage section in
docs/command-line.md, and its row indocs/README.md.The JSON configuration doesn't change, so decoding, layers and Settings editing aren't affected.
Testing
swift test: 315 XCTest and 446 Swift Testing tests pass.13 new tests cover:
PATHlookup, choosing an agent and the menuI ran the debug binary with fake
claudeandcodexscripts on a scratchPATHand a scratch configuration. I tried:--agent codex, and a requested agent that is missingexpect(an invalid answer, then2)The fake agent received
--modelwhen given, plus the prompt, and started in the run folder.With
dist/StableBar.app, the context showed the dev revision, the Beta track, both displays with the built-in one's notch, and the bar running from Applications.Not checked: a full session with the real
claudeorcodex, and posting an issue through the playbook.Merging
One commit, so any merge style keeps its changelog entry.
Claude Opus 5.5 via Claude Code