Skip to main content
New aislop v0.10.2: safer GitHub Action pins, reproducible init workflows, and cleaner rule docs. Read the changelog →

Agent handoff.

aislop fix resolves the safe stuff. For the rest (as any casts, oversized functions, complex refactors) it hands off to your coding agent with a prompt containing every remaining diagnostic and where to find it.

How it works

Run aislop fix first. It auto-resolves everything that's mechanically safe. Whatever's left is where judgment starts.

Then run aislop fix --<agent>. aislop builds a prompt listing every remaining diagnostic with file paths, line numbers, rule IDs, and severity, then launches your agent's CLI with that prompt pre-filled.

# safe fixes first
$ npx aislop fix
# hand off to Claude Code
$ npx aislop fix --claude
New in 0.6.0

Skip handoff entirely: install a hook

aislop hook install wires aislop into the agent's own lifecycle. Every time the agent edits a file, aislop scans the changed files and feeds back score + findings + next steps. The agent self-corrects before the turn ends. No fix call needed.

# Claude Code
$ npx aislop hook install --claude
See the agent-hooks guide →

Supported agents

Fourteen agents supported. The flag invokes the agent's local CLI, so you need that agent installed.

--claude
Claude Code
--codex
OpenAI Codex CLI
--cursor
Cursor agent
--gemini
Gemini CLI
--windsurf
Windsurf
--aider
Aider
--goose
Block Goose
--amp
Sourcegraph Amp
--antigravity
Antigravity
--deep-agents
Deep Agents
--kimi
Kimi CLI
--opencode
OpenCode
--warp
Warp AI
--vscode
VS Code Copilot

Agent-agnostic: --prompt

If your agent isn't listed, or you want to paste the prompt into a web UI, use --prompt. aislop prints the full handoff prompt to stdout; pipe it wherever:

# copy on macOS
$ npx aislop fix --prompt | pbcopy
$ npx aislop fix --prompt > prompt.txt

What's in the prompt

  • The current score and label (Healthy / Needs Work / Critical)
  • Every remaining diagnostic, grouped by file, with line numbers and rule IDs
  • Short description of what each rule catches, so the agent knows why the issue matters
  • Priority hint: errors first, then high-severity warnings, then the rest
  • Instruction to leave auto-fixable items alone (aislop fix handles those)
Skip the handoff: let the agent run it itself

Install aislop as an agent skill

Run npx skills add scanaislop/skills and every coding agent on your machine (Claude Code, Cursor, Codex, Gemini CLI, Windsurf, Cline, and 30+ more) picks up the quality gate every turn, not just at handoff. The agent runs the scan, auto-fixes the mechanical findings, and only reports “done” when the bar is met.

See the skill install guide →