bux
bux copied to clipboard
v11: /goal is a verbatim CLI passthrough; bot is a dumb pipe
Stacked on #218 (v10). Final simplification per Magnus's 'the bot is a dumb pipe, the agent does everything' framing.
What's gone
- /goal handler in the bot — no more special-casing. The literal '/goal X' text now flows through as a normal turn input. Codex (with
[features] goals = true) interprets it as its native plan→act→test slash command. Claude treats it as a goal-shaped prompt and the in-prompt autopilot doctrine drives behavior. - /autopilot and /copilot commands — no per-topic mode toggle. Box is copilot by default; /goal triggers autopilot via the CLI.
_start_agency_goal_from_command(~100 LOC) — was spawning topics, building custom prompts, queueing heartbeats._agency_goal_prompt(~60 LOC) — custom mode-aware prompt._record_miniapp_goal/_get_goal_mode/_set_goal_mode(~150 LOC) — per-topic mode persistence._append_private_goal(~30 LOC) — the AGENT writes to goals.md when it notices new goals; bot doesn't.
−397 LOC from telegram_bot.py. 7789 → 7392.
System prompt: 128 → 80 lines
Tightened around 'agent does everything':
- /goal section explains codex's native slash-command path vs claude's prompt-engineered autopilot.
- 'You manage goals and memory yourself' — write to
private/goals.mdwhen you notice user goals. - Helper-script inventory (tg-send, tg-buttons, tg-schedule, new-topic, agency-report).
- Card composition: the 2-option pattern + a pointer to
agency-report --help.
Tests
21 pass (was 33; deleted the 12 tests for mode/prompt/decoration that no longer exist).
🤖 Generated with Claude Code
Summary by cubic
Makes /goal a verbatim CLI passthrough and removes all goal/mode logic from the bot. The agent now owns goal handling end-to-end, simplifying the bot and cutting 397 LOC.
-
Refactors
- Removed
/goal,/autopilot, and/copilothandlers;/goal <X>now flows as a normal turn. - Deleted goal-specific helpers and mode/state persistence; the bot no longer writes to
private/goals.md. - Updated command help to reflect passthrough behavior.
- Tightened
system-prompt.mdaround “bot is a dumb pipe; agent does everything,” including/goalbehavior forcodexandclaude. - Dropped 12 mode/prompt tests tied to the removed code.
- Removed
-
Migration
- Enable goals in
codex([features] goals = true) so native/goalworks. - Stop using
/autopilotand/copilot; use/goalor regular prompts. - The agent must persist goals to
/opt/bux/repo/private/goals.mditself.
- Enable goals in
Written for commit 94ceb45ae3416688e747292d29eccf4ca43be4e7. Summary will update on new commits. Review in cubic