feat: projection slot V1 — cross-agent config sync (#31) - #36
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
plugin/skills/*/SKILL.md) vs project-level (from{project}/AGENTS.md).cursor/rules/*.mdc), Codex (AGENTS.md), Gemini CLI (GEMINI.md)<!-- cockpit:start --> ... <!-- cockpit:end -->), overwrite for dedicated filesemit,diff(dry-run),list; flags:--scope,--project,--target,--all--scope user+--project,--all+ others)Design & Plan
docs/specs/2026-04-24-plugin-system-projection-design.mddocs/specs/2026-04-24-plugin-system-projection-plan.mdTest plan
npx tsc --noEmitcleanconfig.test.tsemoji failures (unrelated)npm run buildsucceedsprojection listshows three targets with correct pathsprojection diff --scope user --target cursorpreviews NEW FILE with frontmatter + inlined skill contentcockpit doctorshows Projection section with per-target statusArchitecture mirrors prior plugin phases
Same driver+registry+CLI pattern as runtime/workspace/tracker/notifier. Each emitter implements the
ProjectionEmitterinterface. The marker-merge helper is shared across shared-file emitters (codex, gemini). Cursor emitter overwrites dedicated.mdcfiles.Known limitations (follow-ups)
plugin/skills/lives). Running from outside the repo emits an empty user-level source. Worth revisiting when Karpathy-principles etc. want to project from an installed location rather than the source checkout.