v7: /goal IS autopilot, drop topic emoji, silence allowed, codex goals=true
Stacked on #214 (v6). Reshapes the mode model per your "/goal IS autopilot, the whole box is copilot otherwise" clarification.
Mode model (final)
- Whole box defaults to copilot. Every topic, every DM. Draft + ask before anything visible.
/goal <X>is the ONLY autopilot trigger. Spawns a fresh topic, agent works end-to-end without approvals until done/blocked/impossible. No cards, just progress updates + result./autopilotand/copilotper-topic toggles remain as fallbacks but aren't doctrinally primary.- Dropped š/š topic-title emoji prefix entirely. No
_decorate_topic_title, noeditForumTopicon mode switch, no rename logic. Topics aren't visually labeled by mode anymore ā the mode lives in the agent's behavior, not the title.
System prompt ā additions you specifically asked for
- "Silence is allowed." If a heartbeat fires and nothing's actionable, send nothing. Empty turns are fine; filler isn't. (OpenClaw HEARTBEAT.md pattern.)
- Onboarding a new topic. When the user creates a topic manually (not via /goal), the agent asks ONE question: "What should I help you with here? Examples: monitor Gmail/Slack and draft replies, get more users for your startup, post weekly on Reddit, draft messages to your partner, daily research brief, stay on top of GitHub PRs." Saves to
private/goals.mdand starts a heartbeat. - Daily summary. Once per day (evening heartbeat), generate a shareable image-card of the day's work and ask "Should I post this on X?" Tap Yes/Skip.
- agency.db as preference history. Explicitly framed for the agent ā read it to learn what the user accepts vs ignores.
- File trimmed to 124 lines (was 161).
Codex /goal config ā enabled by default
Research confirmed: it's [features]\ngoals = true in ~/.codex/config.toml (Codex CLI v0.128.0+, experimental).
Both install.sh and bootstrap.sh now write this idempotently. If the user has a custom [features] block, we leave it alone with a warning rather than clobber. Codex's native /goal slash command now works out of the box.
agency-report ā drop legacy
- Removed
--draft,--reasoning,--description,--draft-title,--draft-emoji,--reasoning-title,--reasoning-emoji,--draft-html,--reasoning-html. Only--block(JSON) remains. - Auto-generates one draft block from
--promptwhen no--blockis passed (so the user always sees what'll fire on Yes-tap). - File: ~750 lines ā still ~750 (mostly argparse + image rendering), but the API is now half the size.
schedule alias
/usr/local/bin/schedule ā tg-schedule symlink. Both names work ā agent + user can use either.
Test plan
- 29 tests pass
- Shell + Python syntax checks
- On a box:
/goal Xin a forum ā verify a new topic spawns with an autopilot-ack message + heartbeat queued (atq) - Create a new topic manually + send any message ā verify the goal-elicitation question fires
-
codexafter install/bootstrap ā verify/goalis available ([features] goals = trueis set) -
which scheduleā resolves to tg-schedule
š¤ Generated with Claude Code
Summary by cubic
Simplifies modes: /goal always launches an autopilot topic, and everything else defaults to copilot. Drops topic-title emojis, allows quiet heartbeats, enables Codex goals by default, streamlines agency-report, and adds a schedule alias.
-
New Features
/goal <X>opens a new AUTOPILOT topic;/autopilotand/copilotstill toggle a topic as needed.- Removed š/š title prefixes and all rename logic; mode lives in behavior, not titles.
- System prompt: silence on empty heartbeats, one-question onboarding for new topics (saved to
private/goals.mdwith a heartbeat), and a daily shareable summary card;agency.dbtreated as preference history. install.shandbootstrap.shnow set[features] goals = truein~/.codex/config.tomlsocodex/goalworks out of the box (idempotent).- Added
scheduleas an alias totg-schedule.
-
Migration
agency-report: removed--draft,--reasoning,--description, and their--*-htmlvariants; use repeatable--blockJSON. If only--promptis provided, a single draft block is auto-generated.- Topic mode emojis are gone; remove any scripts or expectations that rely on them.
/goalnow always starts in autopilot; use/copilotif you need to flip a topic back.