Repository navigation
Backlog
Labels
enhancementNew feature or request
Milestone
Description
Problem
A repository worth onboarding usually has client configuration already: a CLAUDE.md or AGENTS.md, a .mcp.json, .cursor/rules. OpenLune gives its maintainer no way in:
- The existing setup has to be translated into a manifest by hand.
- The first
applythen stops withunmanaged collision at <path> (even matching bytes cannot be adopted). The maintainer must delete a working setup before OpenLune has produced anything.
The brief lists adoption of existing files as not implemented and as a later possibility.
Proposal
openlune import --client <id>- Reads the named client's native project configuration and writes
openlune/manifest.yamlplus the source files it references. - Lists what it could not carry over because the manifest has no equivalent, for example permission settings. This is the mirror image of a deviation.
- Resolves the collision with the files it read. Preferred: import takes ownership of them, so the next
applyshows any normalisation as an ordinary reviewed update. The alternative is telling the maintainer to remove them. - Starts with one source client and all four resource kinds (instructions, agents, skills, MCP servers). Claude Code is the natural first one;
AGENTS.mdalone already covers instructions for Codex, Copilot and Cursor.
Instead of init
No scaffold command. A starter manifest is a few lines, and a scaffold is a second place the schema has to be kept in sync. What a newcomer actually hits is this, from plan in a repository without a manifest:
✗ manifest "openlune/manifest.yaml": open directory: openat openlune: no such file or directory
That message should say where the manifest goes and what a minimal one looks like, and point at import.
Open questions
- Whether generated files are committed or ignored (Let maintainers choose whether generated client files are committed #73) decides how the handover works. If they are ignored, import ends with the maintainer removing the originals from Git. If they stay committed, every contributor's checkout needs the ownership handover, not only the maintainer's.
- Does import refuse when a manifest already exists, or merge into it?
- How are imported MCP servers declared: as the literal launch command the client had, or mapped to managed installs where the command is recognisable?
- A setup that exists for several clients at once (
CLAUDE.mdand.cursor/rules): import one and report the rest, or reconcile?
Related: #74 (one manifest per repository).
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity