PISCES...
Open source · MIT · pisces-cli v0.1.2 · Python ≥ 3.10

FIND THE FLAW.
FIX THE FLAW.
PROVE IT WORKS.

Pisces is an AI-assisted, self-healing, human-governed security remediation patcher for Python. It detects vulnerabilities with 7 AST + regex rules, generates a minimal patch with an LLM, validates the fix against your own test suite — and rolls back automatically if anything breaks. Nothing gets patched without your approval.

— what is pisces?

Security scanners find problems. AI codegen guesses at fixes. Pisces closes the loop — it detects, patches, judges its own patch, runs your tests, heals when they fail, and asks you before touching a single line. Remediation you can audit.

01 / THE SIGIL
Two fish · one loop

DETECTION & REMEDIATION.

move your cursor — the ink resolves under it, forever circling.
02 / PIPELINE
Three stages

DETECT → REMEDIATE
→ VALIDATE.

01

Detect

Seven built-in AST + regex rules scan your .py files. Fully deterministic — no LLM in the loop. Findings are cached to .pisces/cache. Exit code 1 when findings meet your severity threshold — perfect for CI.

S001 — S007
02

Remediate

An LLM generates a minimal, targeted patch with full source and AST context. An adversarial LLM judge reviews it before it reaches you. Every patch is applied atomically — checkpoint, temp file, rename — and rolls back on any failure.

Judge-reviewed
03

Validate

Your test command (pytest by default) verifies the fix. Tests fail? Pisces re-enters the healing loop, up to your attempt limit. Exhausted? The original file is restored, untouched. Every repair is logged with diffs and judge scores.

HITL approval gate
03 / SECURITY RULES
7 rules · AST + regex

NOTHING SLIPS PAST THE FISH.

RuleIDSeverityWhat it detects
04 / LLM PROVIDERS
Six providers · your key

YOUR KEY. YOUR MODEL.
YOUR CALL.

API credentials are read from environment variables only and never stored in pisces.toml. The scanner never calls an LLM — LLMs are used only for explanations, patch generation, and optional patch judging.

05 / INSTALL
Install in 30 seconds

FROM ZERO TO REMEDIATION FAST.

install — pisces-cli

Python ≥ 3.10. Run pisces watch . in a separate terminal to keep context.json updated before tracing changes with pisces scan. Bring an API key for your LLM provider — or run fully local with Ollama / LM Studio.

quickstart — recursive demo

Set your provider's key with export first — it lives in your shell, never in pisces.toml.

06 / DOCUMENTATION
Every command

READ THE MANUAL.
OR DON'T — IT'S THIS SIMPLE.

7Security rules built-in
6LLM providers
0Patches without approval
100%Atomic · rollback-safe

STOP PATCHING BY HAND.
LET THE FISH WATCH.

Install Pisces today. Detect, remediate, validate — with you firmly in charge.