Skip to main content

Troubleshooting & Failure Remediation

Actionable remediation for installer conflicts, modified managed blocks, missing dependencies, and verification errors.

Operations2026-11-21scripts/install.py
A practical troubleshooting guide derived from real failure states in scripts/install.py and docs/installation.md: resolving conflict aborts, restoring backups, repairing managed entrypoints, and doctor diagnostics.

Troubleshooting Principles

When an installation or verification operation fails, Agent Toolkit fails safely and halts before writing corrupted state. Review the error message, identify the relevant failure category, and apply the verified remediation below.

Resolving Conflict Aborts

Error: 'Target file already exists. Aborting execution (policy: abort).'

Cause: The target directory already contains a skill or configuration file with the same name. By default, the installer aborts to prevent accidental data loss.

Remediation:

  • To preview conflicts: Run 'python scripts/install.py plan --profile <name> --agent <agent> --into <path>'.
  • To preserve user files and skip conflicting items: Add '--on-conflict keep'.
  • To backup and replace conflicting files: Add '--on-conflict replace' (or '--force'). An atomic backup will be created under .agent-toolkit/backups/<timestamp>/.
  • To install alongside under an alias: Add '--on-conflict rename'.
bashResolve with Automatic Backup & Replace
python scripts/install.py apply --profile software-engineering --agent cursor --on-conflict replace --into ../my-app

Repairing Managed Blocks

Error: 'Managed block delimiters corrupted or missing in entrypoint file.'

Cause: The marker comments ('<!-- BEGIN:agent-toolkit -->' or '<!-- END:agent-toolkit -->') inside your project entrypoint (CLAUDE.md, AGENTS.md, etc.) were accidentally modified or deleted.

Remediation:

  • Inspect the entrypoint file and restore the matching BEGIN and END comment tags.
  • Ensure any custom project instructions are placed outside the BEGIN and END marker block.
  • Re-run 'python scripts/install.py apply' to regenerate the managed block cleanly.

Restoring from Backups

When you install with '--on-conflict replace', the installer saves the replaced files into a timestamped directory inside your target project under '.agent-toolkit/backups/<timestamp>/'.

If an update caused regressions, inspect the backup directory and copy the preserved files back to their original locations.

Diagnosing Capability Names

Error: 'Capability not found in catalog: <name>'

Cause: The requested skill or profile ID does not match any registered item in catalog/catalog.yaml.

Remediation: Run 'python scripts/install.py list' to inspect the exact registered IDs.

bashVerify Valid Names
python scripts/install.py list

Running Doctor Diagnostics

If an installed capability fails to load or triggers unexpected errors in your coding assistant, run the doctor command to audit manifest integrity, adapter wiring, and trust boundaries:

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

Next Guides