prawn.

Technical Reference & FAQ

Frequently Asked Questions & Architecture Details

Detailed technical answers, how Prawn compares to linters and prompt compressors, data boundaries, and team pilots.

Why not free linters, passive code readers, or Microsoft LLMLingua?

Comparing how different approaches handle failing tests and code context in AI coding agents:

Capability Without Prawn (Pure Agent) Prompt Compressors (LLMLingua) Free Linters & AST Tools Prawn MCP (Test-Verified)
Fixes Errors in 1 Step ✖ No (multi-turn guesses) ✖ No (text compressor only) ✖ Partial (whitespace / simple rules) ✔ Yes (test-verified automated repairs)
Local Test Verification ✖ Agent manually tests ✖ None ✖ None (lint rules only) ✔ Yes (runs your tests before showing result)
Lossy Compression None (full context read) ✖ High risk (drops words/tokens) None ✔ Zero lossy compression (code is exact)
Local Rollback Backup ✖ No automatic rollback ✖ No ✖ Git stash / manual ✔ Automatic owner-only 0600 undo snapshot & prawn undo
Surgical Context Slices ✖ Reads entire large files ✖ Statistical token pruning ✖ Raw dumps without scoped slices ✔ Exact symbol & dependency slices at 0 credits
Cost on 0% Savings Full model tokens burned Compute cost burned Free ✔ 0 repair credits deducted if no test fixed

Comprehensive Technical Questions

Why shouldn't I just use Microsoft LLMLingua, ESLint --fix, or a free AST MCP from GitHub?

Linters flag errors and fix formatting, but they cannot fix cross-file import mismatches, type boundaries, or failing business logic assertions. Prompt compressors like LLMLingua drop tokens statistically, which can delete crucial variable declarations or type definitions and cause silent hallucinations.

Prawn uses specialized, test-verified repair rules and runs your project's local test suite (npm test, pytest, cargo test) before presenting any change. If a repair does not pass your tests, it is discarded, and no repair credit is consumed.

Does saving tokens hurt code quality or strip important context?

No. Prawn never performs lossy compression. When pruning context via prawn_prune_context, it returns complete, syntactically exact AST slices including imports, type signatures, and enclosing blocks. When healing code via prawn_heal_code, every repair is verified by your existing test runner. In the measured v2.0.12 cohort, aggregate pass parity holds on 13 of 14 receipts. Individual task regressions occur in two receipts: an Antigravity test timeout with no file edits, and a Claude Node-version environment failure. Unchanged tests and exact slices do not guarantee that every repair is correct or that every relevant dependency is selected. See the full results and exceptions.

Does Prawn help with new features and refactors, or only bug fixes?

Inside existing repositories, Prawn helps across refactors, large-file edits, and multi-step feature sessions: prawn_prune_context slices large files verbatim for 0 credits, prawn_heal_code resolves post-edit import/type breakages, and measured v2.0.12 receipts show -16.4% Claude USD / -16.6% Codex fresh on 4-file refactors plus -29.0% to -43.4% fewer gross tokens even on later greenfield steps in a warm sprint (0 Prawn calls, 0 credits). Only cold empty-folder scaffolding from scratch (zero existing files and no failing test yet) saves about 0% directly—and consumes 0 repair credits.

I pay a flat monthly fee for Claude Code or Cursor—why do token savings matter to me?

Even on flat-rate £20/month plans, coding agents enforce rate limits, 5-hour session caps, and weekly allowances. When an agent spends 4 to 8 turns repeatedly reading 2,000-line files and trying failing fixes, it burns through your session allowance rapidly—pushing heavy developers toward £100–£200/month higher-tier subscriptions or extra API top-ups. By solving supported errors deterministically in 1 step (zero extra cloud LLM calls) and reading only exact AST symbols, Prawn preserves your allowance for complex architectural work (starting free, or ~£8.25/month on the annual Founder Pass). Across 200 live cloud-model paired slots on v2.0.12 (14 immutable receipts), Prawn measured -60.7% gross tokens (-38.5% CLI-reported USD estimate, 1.75× faster) on Claude Code warm 5-step sprints, -70.9% fresh tokens on OpenAI Codex CLI real GitHub OSS repos, -58.0% gross tokens (1.80× faster) on Google Antigravity warm sprints, -21.8% fresh tokens across 20 consecutive unedited upstream MIT GitHub bug-fix commits, and -52.1% gross tokens (-26.7% CLI-reported USD estimate) on Claude Code single-shot 5-category benchmarks. See /benchmarks for all 14 receipts including candid boundary and overhead disclosures.

Does Prawn upload my private repository or train on my source code?

No. Prawn runs in local-only mode by default (0 uploads, 0 disk edits) and never clones or scans your full repository. All test executions happen locally on your workstation. In workspaces where you explicitly opt into cloud repair, only the single failing file slice (capped at 32 KiB) and the test error message are sent to the private gateway for repair generation. Code is processed in memory and never stored, logged to disk, or used to train any AI model. Optional account-linked error-code diagnostics (never source code) are off by default and strictly opt-in under Developer Portal → Security.

What if a repair compiles (tsc passes) but breaks my business logic?

Prawn requires your project's test suite to pass before keeping any edit. Before modifying any file, Prawn automatically saves an owner-only (0600) local undo snapshot under ~/.prawn/gateway-receipts/ so your repository stays clean without stray backup files. You can instantly restore your exact prior bytes with the prawn undo command or through the prawn_undo MCP tool.

Can I cancel or get a refund if it doesn't save turns on my repo?

Yes. All self-serve purchases include a no-questions-asked 14-day full refund policy processed through Paddle. You can cancel your subscription at any time with one click in the Developer Portal.

Can I stack Prawn with native prompt caching, Serena, or RTK?

Yes — Prawn is designed to complement your existing stack rather than replace it. Native provider prompt caching discounts repeated static prefixes; symbol indexers such as Serena excel at broad codebase exploration; and terminal filters such as RTK trim noisy CLI output. Prawn focuses on verified test-failure repair and exact verbatim large-file symbol slicing, so stacking them together covers the full debugging workflow without overlapping responsibilities.

Do you offer enterprise or B2B contracts for engineering teams?

Yes. For engineering teams and enterprise deployments, we provide private cloud gateway instances, custom seat pools, SLA commitments, and custom repair rules tailored to your internal design system and libraries. Contact support@prawncode.com for enterprise pilots.

B2B & Engineering Teams

Deploy Prawn across your organization with centralized seat management, tailored internal repair rule packs, and dedicated private gateway instances with zero code retention and offline-verifiable Ed25519 cryptographic receipts.

  • Team Domain Linking: Automatic developer seat assignment via corporate email domain.
  • Local-only mode (0 uploads): Zero source code ever leaves developer workstations for complete IP isolation.
  • Custom Monorepo Rules: Tailored repair rules for your internal APIs, frameworks, and architecture patterns.
  • Cryptographic Receipts: RFC 8032 Ed25519 signed proof for every applied repair.

Contact our engineering team at support@prawncode.com to discuss team trials and bespoke onboarding.

Benchmark USD estimates are CLI-reported or rate-card equivalents, not reconciled provider charges. Token savings do not establish an equal reduction in a subscription bill.