v13: /goal stays copilot; autopilot only on explicit 'don't ask me' opt-in

MA
7mo ago
+6-5

Stacked on #220 (v12). Fixes the '/goal X' vs 'my goal is X' confusion you called out.

New model

  • /goal is a continuous goal-mode signal, but stays in copilot by default. Agent keeps working across turns: scan → draft → post card → end turn. User taps Yes/Skip/More → new turn picks up via --resume. State persists in agency.db / goals.md / notebook.md. No 30-min cap.

  • Autopilot unlocks only on explicit user opt-in. Phrases in the user's own prompt like 'don't ask me', 'just do it yourself', 'no approvals', 'full autonomy', 'don't bother me', 'act on your own' flip the topic to autopilot.

  • Natural-language goals = same as /goal. 'Make my startup successful' with no slash command gets the same continuous copilot treatment.

Note on codex /goal native loop

The bot dispatches via codex exec --json which doesn't honor slash commands. So codex's native /goal loop (gated by [features] goals = true, v7) isn't actually triggered by the bot — our continuous-copilot behavior is entirely prompt-driven now. The goals = true config still ships for users who run codex in TUI mode interactively. If you want bot-driven codex /goal TUI streaming, that's a v14+ pty/tmux integration.

Tests

21 + 11 pass. Mini app imports cleanly.

🤖 Generated with Claude Code


Summary by cubic

Make /goal a continuous copilot mode: the agent keeps working across turns, posts approval cards, and has no timeout. Autopilot now requires explicit opt-in (e.g., "don't ask me", "just do it"); natural-language goals behave the same as /goal, and the system prompt plus Telegram /help text are updated to match.