Skip to content

Discovery & import

agentcfg ships a built-in catalog of known AI agent install directories: ~/.claude, ~/.codex, ~/.copilot, ~/.gemini (also used by the Antigravity CLI), ~/.config/opencode, ~/.pi/agent, ~/.agents. Discovery is opt-in:

  • init does not scan anywhere outside the source directory.
  • discover lists items in those catalog paths only when they already exist on disk, and only when you run the command explicitly.
  • Registration as a target requires --add <name> or --add-all.

Use import to copy items found on a target back into the agentcfg source tree, so they become the single source of truth:

Terminal window
agentcfg import claude --all # copy every item from claude into source
agentcfg import codex CLAUDE.md # copy a single item

See the CLI reference for every discover and import flag.