Multi-Runtime Installation Guide
Deterministic installation across Claude Code, OpenAI Codex, Cursor, Gemini CLI, Copilot, OpenCode, and Antigravity.
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.
git clone https://github.com/Phoenixarjun/Agent-Toolkit.git
cd Agent-Toolkit
python -m pip install -r requirements.txt
python scripts/validate.pySupported Vendor Adapters
The installer translates portable canonical artifacts into vendor-native discovery directories and configuration files across seven major AI coding assistants:
| Adapter | CLI Flag / Aliases | Discovery Root | Entrypoint 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:
python scripts/install.py list2. 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:
python scripts/install.py plan --profile software-engineering --agent cursor --into ../my-apppython scripts/install.py plan --skill code-review --agent claude-code --on-conflict rename --into ../my-app3. 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`:
python scripts/install.py apply --profile software-engineering --agent cursor --into ../my-apppython scripts/install.py apply --skill security-audit --agent codex --force --into ../my-apppython scripts/install.py apply --skill tdd --agent gemini-cli --interactive --into ../my-app4. 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:
python scripts/install.py doctor --into ../my-appConflict Detection & Resolution Policies
When an existing file or skill directory already exists in the target destination, the installer applies your configured policy:
| Policy | CLI Flag | Behavior | Safety Guarantee |
|---|---|---|---|
| abort (Default) | --on-conflict abort | Halts execution immediately if any collision is found. | Zero target files modified. |
| keep | --on-conflict keep | Preserves 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 rename | Installs 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:
# 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.