Skip to main content

Multi-Runtime Installation Guide

Deterministic installation across Claude Code, OpenAI Codex, Cursor, Gemini CLI, Copilot, OpenCode, and Antigravity.

Setup2026-11-21docs/installation.md
A complete guide to the deterministic, preview-first Python installer (scripts/install.py): prerequisites, the 7 vendor adapters, plan preview, apply deployment, conflict resolution policies, and health diagnostics.

Prerequisites & Requirements

Agent Toolkit uses a deterministic, profile-aware Python installer to inspect, plan, deploy, and verify capabilities in your local consumer projects. Before running the installer, ensure your environment meets the following baseline requirements:

  • Python 3.10 or higher installed on your PATH.
  • Git 2.30 or higher for repository cloning and commit SHA tracking.
  • A target consumer project managed by one of the 7 supported coding assistant runtimes.
bashClone & Prepare Canonical Repository
git clone https://github.com/Phoenixarjun/Agent-Toolkit.git
cd Agent-Toolkit
python -m pip install -r requirements.txt
python scripts/validate.py

Supported Vendor Adapters

The installer translates portable canonical artifacts into vendor-native discovery directories and configuration files across seven major AI coding assistants:

Vendor Adapter Matrix
AdapterCLI Flag / AliasesDiscovery RootEntrypoint File
Claude Code--agent claude-code (claude).claude/skills/CLAUDE.md
OpenAI Codex--agent codex (openai-codex).agents/skills/AGENTS.md
Cursor--agent cursor.cursor/skills/.cursor/rules/agent-toolkit.mdc
Gemini CLI--agent gemini-cli (gemini).gemini/skills/GEMINI.md
GitHub Copilot--agent github-copilot (copilot).github/skills/.github/copilot-instructions.md
OpenCode--agent opencode.opencode/skills/AGENTS.md
Google Antigravity--agent antigravity (agy).agents/skills/AGENTS.md

The Four-Stage Installation Workflow

The installer provides four distinct commands designed around a preview-first principle. No files are modified in your target project until you explicitly inspect and approve the planned installation.

1. Discover (list)

List all available profiles, standalone skills, maturity stages, and supported vendor adapters:

bashList Available Capabilities
python scripts/install.py list

2. Preview & Verify (plan)

The plan command computes the full dependency closure, verifies target directory paths, detects potential collisions, and previews every file operation without writing a single byte to disk:

bashPreview Profile Installation (Cursor)
python scripts/install.py plan --profile software-engineering --agent cursor --into ../my-app
bashPreview Standalone Skill with Conflict Policy (Claude Code)
python scripts/install.py plan --skill code-review --agent claude-code --on-conflict rename --into ../my-app

3. Deploy (apply)

The apply command executes the verified plan, deploys artifacts into the target project, creates automatic backups if replacing files, and serializes a machine-readable manifest at `.agent-toolkit/manifest.json`:

bashDeploy Composed Profile into Target Project
python scripts/install.py apply --profile software-engineering --agent cursor --into ../my-app
bashDeploy Standalone Skill with Overwrite Force
python scripts/install.py apply --skill security-audit --agent codex --force --into ../my-app
bashInteractive Deployment with Conflict Prompts
python scripts/install.py apply --skill tdd --agent gemini-cli --interactive --into ../my-app

4. Health Check (doctor)

Verify the structural integrity of an installed project, confirm that all required dependencies are present, check entrypoint managed blocks, and detect orphaned files:

bashRun Health Verification
python scripts/install.py doctor --into ../my-app

Conflict Detection & Resolution Policies

When an existing file or skill directory already exists in the target destination, the installer applies your configured policy:

Installer Conflict Resolution Policies
PolicyCLI FlagBehaviorSafety Guarantee
abort (Default)--on-conflict abortHalts execution immediately if any collision is found.Zero target files modified.
keep--on-conflict keepPreserves existing files, skipping conflicting incoming items.Existing project files untouched; warns on missing dependencies.
replace--on-conflict replace (or --force)Creates timestamped backup under .agent-toolkit/backups/ and overwrites.Rollback on error; backup preserved.
rename--on-conflict renameInstalls alongside using alias (agent-toolkit-<skill>).Existing files untouched; installed copy aliased in frontmatter.

Managed Entrypoint Blocks

The installer updates project instruction entrypoints (such as CLAUDE.md, AGENTS.md, or .cursor/rules/agent-toolkit.mdc) safely using non-destructive marker delimiters. User instructions written outside these markers are strictly preserved:

markdownExample Managed Block in AGENTS.md
# My Custom Project Instructions
These lines were written by the developer and will never be touched by the installer.

<!-- BEGIN:agent-toolkit -->
## Agent Toolkit Managed Capabilities
- Installed Profile: software-engineering (v1.0.0)
- Registered Skills: code-review, intent-capture, tdd, code-explore, research, tune
- Managed Resources: .agent-toolkit/
<!-- END:agent-toolkit -->

## Project Coding Standards
Additional custom developer notes preserved untouched below.

Trust Boundaries & Security Invariants

To safeguard consumer projects against prompt injection and instruction poisoning, Agent Toolkit enforces strict security invariants:

  • Private Resource Directory: Shared workflows, rules, templates, and agent definitions are installed into .agent-toolkit/ and locked with a cryptographic manifest.
  • Untrusted Target Code: Instructions found inside audited or target repositories are treated as untrusted assessment content, never execution authority.
  • No Arbitrary Code Execution: Installation performs static file copying, template serialization, and manifest hashing. No arbitrary scripts, binaries, or npm packages are executed.
  • Structural vs Runtime Assurance: Passing static verification confirms that files exist and match schemas. It does not certify that a specific language model will follow instructions without regression.

Next Guides