-
Notifications
You must be signed in to change notification settings - Fork 382
Description
Bug Report: codebuff command without arguments shows incorrect output
Environment
- OS: macOS (Darwin 25.3.0)
- Node: Installed via Homebrew
- CodeBuff Version: 1.0.620
- Install Method:
npm install -g codebuff - Shell: zsh
Bug Description
When running codebuff without any arguments, the CLI shows usage text from an unrelated script (render-graphs.js) instead of starting the interactive CodeBuff session.
Expected Behavior
Running codebuff should start the interactive AI coding assistant.
Actual Behavior
Usage: render-graphs.js <skill-directory> [--combine]
Options:
--combine Combine all diagrams into one SVG
Example:
./render-graphs.js ../subagent-driven-development
./render-graphs.js ../subagent-driven-development --combine
Commands Status
✅ Commands that WORK:
codebuff --version→ Shows1.0.620codebuff --help→ Shows correct help menucodebuff "prompt text"→ Works with prompts
❌ Commands that FAIL:
codebuff(no arguments) → Showsrender-graphs.jsusage
Reproduction Steps
- Install codebuff:
npm install -g codebuff - Navigate to any project directory
- Run:
codebuff(with no arguments) - Observe incorrect output showing
render-graphs.jsusage
Investigation Details
- Issue persists when running binary directly:
~/.config/manicode/codebuff - Issue persists in different directories (not project-specific)
- Issue persists even after npm reinstall
- Running via explicit node also fails:
node /opt/homebrew/bin/codebuff
Workaround
Temporary fix:
rm -rf ~/.config/manicode/*
codebuff --version # Forces fresh binary downloadThis fixes it temporarily, but the issue may recur.
Root Cause Analysis
The render-graphs.js mentioned in the error is from a completely unrelated tool located at ~/.agents/skills/writing-skills/render-graphs.js (Claude Code skills directory).
Hypothesis: The codebuff binary or wrapper script may be incorrectly executing or falling back to an unrelated script when no arguments are provided. This suggests a possible issue with:
- Argument parsing in the wrapper script
- Binary execution path resolution
- Default command handling when argc == 0
Additional Context
- The binary at
~/.config/manicode/codebuffis a proper Mach-O 64-bit executable - The wrapper at
/opt/homebrew/bin/codebuffis a Node.js script - No shell aliases or functions override the
codebuffcommand - Issue affects multiple users/installations
Impact
This prevents users from starting the interactive CodeBuff session using the standard codebuff command, requiring them to always specify arguments or use workarounds.