Skip to content

feat: REA mode auto-activates a model-matched investigator workflow - #35

Merged
AlleyBo55 merged 1 commit into
masterfrom
feat/goal-and-rea-mcp
Nov 2, 2026
Merged

AlleyBo55 merged 1 commit into
masterfrom
feat/goal-and-rea-mcp

Conversation

@AlleyBo55

Copy link
Copy Markdown
Owner

When REA tools are connected (after 'gocode rea setup'), BuildSystemPrompt now detects the mcp_rea_* tools and appends a REA workflow chosen by the active model, encoding an investigate -> challenge -> rebuild pipeline:

  • Claude Opus -> Deep Investigator: trace one feature end to end, build an evidence map. No evidence, no claim.
  • Grok -> Adversarial Reviewer: attack the explanation, mark each
    conclusion SUPPORTED / WEAK / UNSUPPORTED. Assume it is wrong.
  • GPT/Codex/o* -> Rebuilder + Verifier: build only from CONFIRMED rows, fill a
    parity matrix. Unknown never reaches the code.

No injection without REA tools, and no injection for models with no defined workflow. Each prompt carries the same boundary: analyze only authorized software; no DRM bypass, credentials, anti-cheat, or proprietary code.

BuildSystemPrompt gains a model parameter (both call sites pass resolvedModel). README highlights the feature with the honest caveat that REA is an external Node tool and 'gocode rea status' is the source of truth.

Covered by internal/repl/rea_prompts_test.go: detection, per-model routing, auto-activation, and the two no-injection cases.

When REA tools are connected (after 'gocode rea setup'), BuildSystemPrompt now
detects the mcp_rea_* tools and appends a REA workflow chosen by the active
model, encoding an investigate -> challenge -> rebuild pipeline:

- Claude Opus  -> Deep Investigator: trace one feature end to end, build an
  evidence map. No evidence, no claim.
- Grok         -> Adversarial Reviewer: attack the explanation, mark each
  conclusion SUPPORTED / WEAK / UNSUPPORTED. Assume it is wrong.
- GPT/Codex/o* -> Rebuilder + Verifier: build only from CONFIRMED rows, fill a
  parity matrix. Unknown never reaches the code.

No injection without REA tools, and no injection for models with no defined
workflow. Each prompt carries the same boundary: analyze only authorized
software; no DRM bypass, credentials, anti-cheat, or proprietary code.

BuildSystemPrompt gains a model parameter (both call sites pass resolvedModel).
README highlights the feature with the honest caveat that REA is an external
Node tool and 'gocode rea status' is the source of truth.

Covered by internal/repl/rea_prompts_test.go: detection, per-model routing,
auto-activation, and the two no-injection cases.
@AlleyBo55
AlleyBo55 merged commit c06c54a into master Nov 2, 2026
2 checks passed
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