Skip to content

Bob shell 2 integration

Choose a tag to compare

@BrUn3y BrUn3y released this 27 Aug 16:24
· 20 commits to main since this release
d3c61f8

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:

  1. Detects the 2.x separator format and extracts the last Assistant segment.
  2. Falls back to the 1.x ---output--- block logic for backward compatibility.
  3. Falls back further to plain noise-stripping if neither format is detected.

Files changed

  • Dockerfile / docker-compose.yml — version pin bumped to 2.0.1
  • api/server.py — updated _bob_cmd() to emit the new run subcommand shape
  • api/slack_bot.py — added _extract_bob2_answer() and updated clean_output()
  • api/test_server.py — assertions updated to match the new command structure