Set up agnostic-ai with a coding agent
Paste this into your coding agent, opened in your project.Set up agnostic-ai in this repository. Follow https://agnostic-ai.org/agent-setup.txt exactly. Preserve existing AI tool behavior. Before any sync, check for existing CLAUDE.md, AGENTS.md, and similar files, and ask me what to do with their content. Finish with agnostic-ai sync --check. Summarize the targets selected and every file changed.
Open your coding agent in the project folder. It asks which tools the project uses and whether Git should track the generated files. Setup is done when Use this checklist when a user asks you to install or set up agnostic-ai in a repository. Preserve the existing tool setup, store source instructions in If missing, ask the user before installing. The script downloads the latest release and checks it against the published checksums: Run If the repository has only one of Ask the user whether Git should track the generated files. Pass Replace Use Check that the targets, output paths, and kept instructions match the project. Fix errors in the specs. Read warnings about instructions or fields a tool cannot use. A passing sync check means files match their sources; it does not mean every tool can enforce every rule. See Tool behavior before changing restrictions or hiding warnings. Check the generated files and Report: Setup is done only when agnostic-ai sync --check passes. Then try a first session and learn the daily loop. To set up by hand instead, follow the manual walkthrough.Read the full checklist your coding agent follows
What the agent does
.agnostic-ai/, and finish with a passing sync --check.Setup rules
git status --short. Never discard user changes. If the tree is not clean, tell the user before writing so they can tell your changes from theirs.CLAUDE.md, AGENTS.md, and GEMINI.md. Tell the user what they hold and ask whether to import them before any sync..agnostic-ai/, and project settings in agnostic-ai.yaml. The tool files are generated.1. Install or verify the CLI
agnostic-ai --version
# macOS or Linux
curl -fsSL https://raw.githubusercontent.com/Chemaclass/agnostic-ai/main/scripts/install.sh | bash
# Windows PowerShell
irm https://raw.githubusercontent.com/Chemaclass/agnostic-ai/main/scripts/install.ps1 | iex
--version again. If the command is not found, add the install directory to PATH. Installation covers other methods.2. Detect the project state
State Signal Action Already set up agnostic-ai.yaml and .agnostic-ai/ existKeep its selected tools and Git policy. Skip init. Go to step 4.Existing tool files CLAUDE.md, AGENTS.md, GEMINI.md, .cursor/, .github/copilot-instructions.mdImport during init.Fresh Neither Plain init.agnostic-ai.yaml or .agnostic-ai/, inspect it before initializing; do not replace a partial setup. If you are unsure which tools to enable, ask the user. A tool installed on the machine may not be one the repository uses.3. Initialize
--gitignore=on to ignore them (teammates run sync after cloning) or --gitignore=off to commit them (CI runs sync --check).claude,codex with the project's tools:# macOS or Linux, existing tool files
printf '%s\n' 'claude,codex' | agnostic-ai init --from all --gitignore=on
# macOS or Linux, fresh project
printf '%s\n' 'claude,codex' | agnostic-ai init --gitignore=on
# Windows PowerShell, existing tool files
'claude,codex' | agnostic-ai init --from all --gitignore=on
# Windows PowerShell, fresh project
'claude,codex' | agnostic-ai init --gitignore=on
--from all adds each source's missing sections to .agnostic-ai/AGNOSTIC_AI.md and names them. Check that file for duplicates before you sync. Import tells you when a section needs a manual merge. See Migration.--demo only if the user asks. Add rules only for conventions the repository or user already states.4. Validate and preview
agnostic-ai validate
agnostic-ai lint
agnostic-ai sync --dry-run
5. Sync and prove the result
agnostic-ai sync
agnostic-ai sync --check
git status --short
git diff -- .
.gitignore. Inspect ignored output files directly: git diff does not show them. If Git tracks the generated files, include them with their specs when committing..agnostic-ai/, as the first agnostic-ai sync lists it;.agnostic-ai/;validate, lint, and sync --check;agnostic-ai sync --check exits 0.