Repository navigation
Bob shell 2 integration
Bob Shell 2.x Integration
Upgrades the harness to be compatible with Bob Shell 2.x, which introduced a breaking CLI change and a new transcript format.
CLI command change
Bob 2.x replaced the flat-flag invocation with a run subcommand:
| Before (1.x) | After (2.x) | |
|---|---|---|
| Command | bob --accept-license -p <prompt> --chat-mode=<mode> --yolo |
bob run --accept-license --mode <mode> <prompt> |
| Version | 1.0.5 |
2.0.1 |
The --yolo flag is no longer needed — headless mode auto-approves by default.
Transcript parsing
Bob 2.x changed its output format from ---output--- block markers to separator-delimited
(──────────) turn transcripts with labeled Assistant (N) segments.
The Slack bot's clean_output() function now:
- Detects the 2.x separator format and extracts the last
Assistantsegment. - Falls back to the 1.x
---output---block logic for backward compatibility. - Falls back further to plain noise-stripping if neither format is detected.
Files changed
Dockerfile/docker-compose.yml— version pin bumped to2.0.1api/server.py— updated_bob_cmd()to emit the newrunsubcommand shapeapi/slack_bot.py— added_extract_bob2_answer()and updatedclean_output()api/test_server.py— assertions updated to match the new command structure