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:
initdoes not scan anywhere outside the source directory.discoverlists 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:
agentcfg import claude --all # copy every item from claude into sourceagentcfg import codex CLAUDE.md # copy a single itemSee the CLI reference for every discover and import flag.