8000 Import an existing client setup into a manifest · Issue #75 · dominikbraun/openlune · GitHub
[go: up one dir, main page]

Skip to content

Import an existing client setup into a manifest #75

Backlog

Description

@dominikbraun

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 apply then stops with unmanaged 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.yaml plus 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 apply shows 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.md alone 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.md and .cursor/rules): import one and report the rest, or reconcile?

Related: #74 (one manifest per repository).

Activity

  1. added
    enhancement
    on Nov 26, 2026
  2. modified the milestones: v0.1.0, v0.2.0 on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0