Skip to content

feat: projection slot V1 — cross-agent config sync (#31) - #36

Merged
tu11aa merged 25 commits into
developfrom
feature/projection-slot
May 1, 2026
Merged

feat: projection slot V1 — cross-agent config sync (#31)#36
tu11aa merged 25 commits into
developfrom
feature/projection-slot

Conversation

@tu11aa

@tu11aa tu11aa commented Apr 24, 2026

Copy link
Copy Markdown
Owner

Summary

Ships cockpit projection — emits cockpit's canonical content (skills at user level, AGENTS.md at project level) to each supported agent's expected path. Completes the multi-agent direction from 50c63b3 by fixing the "missing many things" experience when opening cockpit-managed projects in Cursor/Codex/Gemini CLI.

Closes #31. Follow-ups: #34 (MCP sync), #35 (role identity).

What's in V1

  • Two-tier projection: user-level (from plugin/skills/*/SKILL.md) vs project-level (from {project}/AGENTS.md)
  • Three targets: Cursor (.cursor/rules/*.mdc), Codex (AGENTS.md), Gemini CLI (GEMINI.md)
  • Marker-merge for shared files (<!-- cockpit:start --> ... <!-- cockpit:end -->), overwrite for dedicated files
  • CLI: emit, diff (dry-run), list; flags: --scope, --project, --target, --all
  • Doctor probe for destination writability
  • Argument validation: unknown project/target, mutually exclusive flags (--scope user + --project, --all + others)
  • README + Supported Agents table updated

Design & Plan

Test plan

  • All unit tests pass — marker (8), canonical-source (7), cursor (7), codex (7), gemini (6), registry (3), CLI (8) = 46 new tests
  • npx tsc --noEmit clean
  • Full suite: 171 passing, 2 pre-existing config.test.ts emoji failures (unrelated)
  • npm run build succeeds
  • Smoke: projection list shows three targets with correct paths
  • Smoke: projection diff --scope user --target cursor previews NEW FILE with frontmatter + inlined skill content
  • Smoke: cockpit doctor shows Projection section with per-target status

Architecture mirrors prior plugin phases

Same driver+registry+CLI pattern as runtime/workspace/tracker/notifier. Each emitter implements the ProjectionEmitter interface. The marker-merge helper is shared across shared-file emitters (codex, gemini). Cursor emitter overwrites dedicated .mdc files.

Known limitations (follow-ups)

tu11aa added 25 commits April 24, 2026 11:42
@tu11aa
tu11aa merged commit e10eb73 into develop May 1, 2026
@tu11aa
tu11aa deleted the feature/projection-slot branch May 1, 2026 02:25
@tu11aa tu11aa mentioned this pull request May 5, 2026
2 tasks
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.

cockpit projection: cross-agent config sync (AGENTS.md + MCP delegation)

1 participant