Skip to content

feat(plugin): self-contained mode engine — plugin works without MCP server (#1192)#1194

Merged
JeremyDev87 merged 3 commits into
masterfrom
taskmaestro/1775218629/pane-2
Apr 3, 2026
Merged

feat(plugin): self-contained mode engine — plugin works without MCP server (#1192)#1194
JeremyDev87 merged 3 commits into
masterfrom
taskmaestro/1775218629/pane-2

Conversation

@JeremyDev87

Copy link
Copy Markdown
Owner

Summary

  • Add ModeEngine class (hooks/lib/mode_engine.py) that generates complete PLAN/ACT/EVAL/AUTO mode instructions without requiring MCP server
  • Modify user-prompt-submit.py to use ModeEngine for self-contained mode output instead of mandating parse_mode MCP call
  • Add 22 unit tests for ModeEngine (path resolution, agent defaults, template generation, graceful fallback)
  • Update 4 existing integration tests for new output format

Closes #1192

Test plan

  • python3 -m pytest hooks/lib/test_mode_engine.py — 22 tests passed
  • python3 -m pytest hooks/test_user_prompt_submit.py — 32 tests passed
  • yarn workspace codingbuddy test — 5808 tests passed
  • Manual: invoke PLAN: test in Claude Code without MCP server running — should output mode instructions

…erver (#1192)

Add ModeEngine class that reads .ai-rules/ files directly and outputs
complete PLAN/ACT/EVAL/AUTO mode instructions. The hook no longer
requires the MCP server to be running for basic mode functionality.
parse_mode MCP is suggested as optional enhancement.
@vercel

vercel Bot commented Apr 3, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
codingbuddy-landing Ready Ready Preview, Comment Apr 3, 2026 0:42am

…tests

- Remove duplicate AgentStack interface (specialist_agents vs specialists conflict)
- Unify on specialist_agents to match JSON schema and stack files
- Update agent-stack.service, agent.handler, and their specs
- Update e2e tests for new self-contained mode engine output format

@JeremyDev87 JeremyDev87 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Conductor Review — APPROVE

CI: 25/25 ALL PASS

Review: APPROVE — 0 issues

Plan Verification (#1192):

  • mode_engine.py created with ModeEngine class
  • Rules path resolution (env → project → plugin → package)
  • PLAN/ACT/EVAL/AUTO mode templates generated
  • user-prompt-submit.py modified for self-contained output
  • MCP parse_mode as optional enhancement
  • Multilingual keyword support maintained
  • E2E tests updated for new output format
  • AgentStack type conflict resolved (specialist_agents unified)

@JeremyDev87 JeremyDev87 self-assigned this Apr 3, 2026
@JeremyDev87 JeremyDev87 merged commit ac74a58 into master Apr 3, 2026
25 checks passed
@JeremyDev87 JeremyDev87 deleted the taskmaestro/1775218629/pane-2 branch April 3, 2026 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(plugin): self-contained mode engine — plugin works without MCP server

1 participant