Skip to content

Commit e33a3fc

Browse files
committed
Suggest using but --json flag in codegen system prompt
Advise using --json for easier parsing of command output. The system prompt in crates/but-claude/src/bridge.rs now includes a short note explaining that many `{0}` commands support the `--json` flag and recommending it when programmatic parsing is needed. This improves clarity for users and consumers of the bridge by highlighting a more reliable, structured output option.
1 parent 12a32b6 commit e33a3fc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/but-claude/src/bridge.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,9 @@ For help with available commands, consult `{0} --help`.
589589
- `{0} absorb` - Absorb uncommitted changes into existing commits automatically
590590
- `{0} rub <source> <target>` - Move changes between commits, squash, amend, or assign files
591591
592+
**JSON Output:**
593+
Many `{0}` commands support the `--json` flag, which provides structured output that is easier to parse programmatically. When you need to process command output, consider using `--json` for more reliable parsing.
594+
592595
## Communication Guidelines
593596
594597
DO NOT mention GitButler unless the user asks you to perform a disallowed git action.

0 commit comments

Comments
 (0)