Import existing tool configuration
Import moves your current tool setup into editable sources in .agnostic-ai/, so you keep your current instructions. Install agnostic-ai first, then start from the project root with a clean Git working tree so you can review and undo the import.
Import the existing setup
For a project not yet using agnostic-ai:
agnostic-ai init --from claude
Use --from all to detect every tool, then select only the coding tools the project uses. In a project already using agnostic-ai, preview an import before writing:
agnostic-ai import claude --dry-run --diff
agnostic-ai import claude
Import writes source specs and does not sync. The import command does not change selected targets.
Review what was imported
Compare .agnostic-ai/AGNOSTIC_AI.md and imported specs with the original files. With several tools, review their import order before syncing. A hand-written root AGENTS.md contributes missing sections with --from all.
Before committing, check scripts called by hooks and settings, and MCP connection variables. Skill folders and some tool scripts are imported; other referenced scripts must stay in your project. MCP import details explain credential references and connection differences.
Generate and check
agnostic-ai sync --dry-run --backup
agnostic-ai sync --backup
agnostic-ai sync --check
The first sync adds generated headers and replaces root instruction files with the shared instructions. Read the resulting native files before starting a new coding-tool session.
Commit or ignore outputs
Choose a Git strategy. If you commit outputs, keep the first sync in its own commit.
To ignore files Git already tracks, run sync --untrack. It runs git rm --cached, keeping your working copy, but other clones lose those files on the next pull. Teammates must run agnostic-ai sync after pulling, or install checkout hooks first.
From now on, edit .agnostic-ai/ sources and sync, as Daily use shows.
Review imports from several tools
Preview several tools at once with Re-running import with no edits leaves every spec as it is. After you edit a tool's own file, import brings the edit back into the spec, or stops when that would lose content. See keep existing specs and bring tool edits back. Local specs stay out of the shared source. For directory-specific instruction files, sync replaces a hand-written file only when the specs contain all its text. Otherwise it stops and quotes the missing line. Move that line into a spec, or set the original aside: Keep the saved copy until you have checked the output. It restores the backups but never undoes spec edits; use Git for a lasting copy. After an upgrade, Breaking change: Breaking change: An upgrade can move or skip files that older versions wrote for scoped rules. Run Codex skills moved from agnostic-ai import claude codex --dry-run --diff. Imports can merge shared instructions and keep conflicting versions, so resolve differences against the original files before generating files.Re-import after editing a native tool file
Keep directory-specific and alternate instruction files
Keep directory-specific instructions
import codex and import gemini keep nested instruction directories as scope. import claude imports .claude/rules/ when that directory exists. Otherwise, it imports nested CLAUDE.md files as directory-scoped rules. If .claude/rules/ exists alongside nested CLAUDE.md files, create a rule with agnostic-ai new rule <name> --scope <directory> and copy each nested file’s text into it.mv services/payments/AGENTS.md services/payments/AGENTS.md.before-agnostic
--backup does not bypass this directory-specific check. Root instruction files have a separate backup and overwrite rule.Restore generated files from backups
Back up and restore
sync --backup saves a .bak copy before overwriting a file. To undo generated files:agnostic-ai revert
agnostic-ai cleanup removes the backups. See revert and cleanup.Upgrade an older agnostic-ai setup
Upgrading from older versions
agnostic-ai migrate --dry-run shows which old spec forms it can rewrite, and agnostic-ai migrate applies them. See migrate. The changes below need more than migrate.Unmarked MCP literals
lint and sync fail on an MCP env or headers value that is neither a ${NAME} reference nor marked !literal (LINT035). Run agnostic-ai migrate --only secrets, then fix the values it leaves to you. See secrets and plain settings.Scope and pattern unions
scope plus globs or paths now applies to both, not their overlap. Remove scope when a rule should match only its patterns, and remove globs: "**/*" when it should match only its scope. Preview with agnostic-ai render. See scoped context.sync, then sync --check, to remove them.Codex skills moved in 0.75
.codex/skills/ to .agents/skills/. Add .agents/skills/** to .npmignore, .vscodeignore, or .dockerignore where you exclude them. agnostic-ai doctor names generated paths that a packaging ignore file misses; confirm with npm pack --dry-run, vsce ls, or your Docker context.