Codebridge React Router Harness
This workspace validates a VS Code agent-hook composition and exposes it through a local MCP server.
Harness Architecture
flowchart LR
U[User request] --> A[codebridge-react-router-harness]
A --> R[react-router-harness coordinator]
A --> H[codebridge-harness worker]
A --> CM[commit-context-harness]
A --> P[React principle agents]
A --> X[recursive-processor]
X --> X
P --> D[design]
P --> V[developer]
P --> UX[UX]
R --> H
H --> M[codebridge-harness MCP]
H --> T[PowerShell hook harness]
S[SessionStart hook] --> C[Composition context]
C --> A
T --> Q[tests/test-suite.json]
Composition
codebridge-react-router-harness is the entry agent. It can delegate integration work to react-router-harness, harness implementation to codebridge-harness, and focused analysis to the three principle agents:
codebridge-react-design-principlefor design, accessibility, responsiveness, and performance.codebridge-react-developer-principlefor component architecture, composition, specialization, state, and abstractions.codebridge-react-ux-principlefor navigation, feedback, attention, and journeys.commit-context-harnessfor drafting commit messages from ContextChanges data without invoking git.
recursive-processor splits work only when there are more than four comparable, independent items. Nested subagent invocation is enabled through .vscode/settings.json.
The SessionStart hook injects this routing orientation into every session. The hook harness verifies that injection together with the pre-tool permission decisions and post-tool error-report context.
Generic Plugin Import
The repository is now shaped around a single canonical Agent Plugins 1.0 package:
plugin.jsonis the portable root manifest for clients that support Agent Plugins 1.0.mcp.jsonis the portable MCP server definition for the sharedcodebridge-harnessserver.skills/contains portable skill packages discovered by compatible clients.com.github.copilot/contains VS Code and Copilot-specific agents, hooks, and rules..claude-plugin/plugin.json,.mcp.json, andhooks/hooks.jsonprovide Claude and legacy compatibility adapters that point back to the same scripts and MCP server..plugin/plugin.jsonis retained as a legacy OpenPlugin-style adapter.
The package should be imported from the repository root. Workspace-only files such as .vscode/mcp.json, .claude/settings.json, rules/, agents/, and .hooks/ remain useful while developing this repo locally, but the root plugin files are the import surface.
Validation
Run the hook behavior suite:
powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\tests\run-harness.ps1
Validate the complete customization composition and MCP contract:
powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\tests\validate-customizations.ps1