aislop agent is the local repair workflow for findings that need judgment. It keeps the deterministic scanner in charge, creates an isolated git worktree by default, runs safe mechanical fixes, streams a headless provider session, verifies the result with aislop scan --json, and leaves the diff for review.
Use it when aislop fix has cleared the obvious cleanup and the remaining findings need a coding agent to understand context.
To teach the agent the aislop standard before a repair session, paste the prompt on For agents or run npx skills add scanaislop/skills.
Basic usage
Provider setup
aislop does not ask for OpenAI, Anthropic, or other API keys. Provider CLIs use their own local auth.codex, claude, and opencode. The saved default lives in .aislop/agent/provider.json and is added to the repo’s local Git exclude so it stays out of commits.
Plan before editing
Useagent plan to preview what will happen before a repair session starts.
--background --apply without --yes.
Apply and publish
By default, isolated sessions leave the repaired worktree for review. Apply or publish only after you inspect the diff.Session review commands
Every session writes a local JSONL transcript under.aislop/agent/sessions/. Raw provider output stays in the transcript, while the terminal stream normalizes provider JSONL into readable progress.
Background sessions
Use--background when you want the repair to continue locally while you move on.
--apply --background requires --yes because a detached run cannot prompt.
Monitor mode
Monitor mode watches git changes and reacts after local edits settle. By default it scans and reports only. Automatic edits require both--repair and --in-place because the monitor edits the checkout you are actively using.