Skip to content

docs(goals): adopt advisor + plan-big/execute-small patterns in agent personas - #28

Merged
Eyalm321 merged 1 commit into
mainfrom
feat/goal-org-advisor-pattern
Jul 20, 2026
Merged

docs(goals): adopt advisor + plan-big/execute-small patterns in agent personas#28
Eyalm321 merged 1 commit into
mainfrom
feat/goal-org-advisor-pattern

Conversation

@Eyalm321

Copy link
Copy Markdown
Owner

Why

Checked the goal orchestrator against two Anthropic patterns: the advisor tool and the plan-big/execute-small managed-agents cookbook.

Verdict: the org already is the coordinator pattern — fable/opus plans, sonnet executes, context isolated per worktree pane, distilled reports up — and on durability (SQLite queue with leases/backoff/dead-letter, session-daemon resume, account rotation) it's ahead of both docs. So this isn't a rewrite; it imports the five ideas we were missing, all as persona-prompt edits.

What

Import Source Change
Advisor consult advisor tool Static tiers → mid-task escalation. A sonnet impl agent that hits a strategic fork consults its live spec agent (opus/fable) over the existing message bus (send_message/read_messages) and continues on sonnet — opus-grade calls at sonnet rates, instead of guessing or a coarse nack→re-spec round-trip. Spec agent stamps advisor=<paneId> on each payload; the same channel runs spec→orchestrator, and the orchestrator answers as the top-tier advisor.
Don't decompose when it doesn't pay cookbook #9 Small/atomic goals built inline rather than always fanning out — our worktree + claude-boot floor is far higher than a web-fetch worker.
Right-size briefs cookbook #7 Batch trivia into one subtask; no dedicated worktree agent for a two-line edit.
Verify the premise cookbook #8 Spec agent sanity-checks its own decomposition before fan-out — acceptance only audits what got built.
Synchronization barrier cookbook #4 Spec agent waits for the whole wave before verifying / reporting done.

Grounded in real primitives: send_message {to,from,body} / read_messages {paneId,after} (verified against mcp-gate/gate.mjs), $HYPERPANES_PANE_ID per pane.

Files

resources/claude/goal-orchestrator/{SKILL,SPEC,IMPL}.md + a rationale section in docs/goals-system-plan.md. Prompt/docs only — no code, no behavior change to the runtime.

🤖 Generated with Claude Code

… personas

Reviewed the goal org against Anthropic's advisor tool and the plan-big/execute-small
managed-agents cookbook. The org already is the coordinator pattern (fable/opus plan,
sonnet execute, per-worktree context isolation, distilled reports up) and is ahead on
durability. Imports the rest as persona-prompt edits:

  * Advisor consult (advisor tool): an impl agent (sonnet) that hits a strategic fork
    consults its live spec agent (opus/fable) over the existing message bus
    (send_message/read_messages) and continues on sonnet — opus-grade decisions at
    sonnet rates, instead of guessing or a full nack->re-spec round-trip. Spec agent
    stamps advisor=<paneId> on each payload; the same channel runs spec->orchestrator,
    and the orchestrator answers as the top-tier advisor.
  * Don't decompose when it doesn't pay (cookbook #9): small/atomic goals built inline.
  * Right-size briefs / delegation floor cost (cookbook #7): batch trivia, don't spawn a
    worktree agent per two-line edit.
  * Verify the premise, not just the artifact (cookbook #8): spec agent sanity-checks its
    own decomposition before fan-out.
  * Synchronization barrier (cookbook #4): wait for the whole wave before verifying/done.

SKILL/SPEC/IMPL.md + a rationale section in goals-system-plan.md. Prompt-only; no code.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Eyalm321
Eyalm321 merged commit 768b7df into main Jul 20, 2026
27 checks passed
@Eyalm321
Eyalm321 deleted the feat/goal-org-advisor-pattern branch July 20, 2026 04:55
Eyalm321 added a commit that referenced this pull request Jul 20, 2026
…r pattern

Since v0.0.24:
  * feat(mobile): per-device pairing tokens — pair mints, devices/revoke manage (#27)
  * docs(goals): advisor + plan-big/execute-small patterns in agent personas (#28)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant