You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Claude Code v2.1.139 introduced the `/goal` command:
Set completion conditions for autonomous work across turns.
Our agents (Barsik, Murzik, Persik, Ryzhik, Pushok) run heartbeat-driven autonomy loops. On each heartbeat they:
Send a heartbeat
Check inbox
Pull next task
Do background work
Update saved context
The decision logic for "is this task done?" / "should I keep working on this overnight?" is currently ad-hoc, scattered across each agent's soul/CLAUDE.md and saved context. `/goal` may offer a more structured way to declare "keep iterating until X" and let the harness track completion.
Questions to answer
What's the actual semantic of `/goal` — does it persist across turns / sessions, or only within a single Claude Code session?
Does it gate other tools, or is it advisory?
How does it interact with our heartbeat triggers (which inject fresh prompts each hour)?
Is there a way to query the current `/goal` programmatically from the SDK?
Why this matters
If `/goal` survives across heartbeats, we could replace some of the imperative "check the saved-context priority_items" logic with declared goals. That cleans up our autonomy story and makes agent intent inspectable.
If it's session-local only, this is a no-op for our use case and we close.
Spike plan
Read the docs / source for `/goal` in claude-code repo
Context
Claude Code v2.1.139 introduced the `/goal` command:
Our agents (Barsik, Murzik, Persik, Ryzhik, Pushok) run heartbeat-driven autonomy loops. On each heartbeat they:
The decision logic for "is this task done?" / "should I keep working on this overnight?" is currently ad-hoc, scattered across each agent's soul/CLAUDE.md and saved context. `/goal` may offer a more structured way to declare "keep iterating until X" and let the harness track completion.
Questions to answer
Why this matters
If `/goal` survives across heartbeats, we could replace some of the imperative "check the saved-context priority_items" logic with declared goals. That cleans up our autonomy story and makes agent intent inspectable.
If it's session-local only, this is a no-op for our use case and we close.
Spike plan
Effort
~2 hours. Spike-grade — no code changes expected from this issue, just a writeup.
Sources
🤖 Opened by Barsik