← Catalog

@xaccefy/pi-casefile

Offensive security case tracker for Pi Agent — bug bounties, CTFs, security audits

Extension

Install

Install with PiG

pig install npm:@xaccefy/pi-casefile

Install with Pi

pi install npm:@xaccefy/pi-casefile
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./src/index.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.11.1 (README.md). PiG does not review it.

pi-casefile

Security case ledger for the Pi agent — evidence tracking with machine-verified PoC gates.

npm License: MIT

What it is

A structured ledger for offensive-security work — bug bounties, CTFs, audits — built around one idea: an agent's claim is not evidence until the machine replays it.

Cases move hypothesis → investigating → confirmed → reported. Promotion between phases is gated:

  • Zero exit is necessary but never proof — direct-response findings require nonce-bound body evidence plus a DNS-pinned, conclusive target_only attack-vs-baseline replay against the case target (recorded at promote; the bundle's baseline binding and differential are re-validated at confirm)
  • Differential confirmation — the attack request must satisfy the claimed predicate while a legitimate same-host baseline request must not, so "it worked" means the discriminator fired, not "the agent said so"
  • Only the main agent makes the semantic decision and commits phase transitions

Designed for human + AI workflows: every confirmed finding carries a reproducible evidence trail a human can audit.

Tools

ToolPurpose
CaseAdd / CaseList / CaseSearch / CaseGet / CaseUpdate / CaseLink / CaseUnlink / CaseContextcase lifecycle, search, links, and report context
EvidenceAddattach raw evidence to a case
CoverageAddrecord tested (asset × class) cells — found or clean
PromoteFinding → harness replay → ConfirmFindinggated finding pipeline
ScratchpadWrite / ScratchpadRead / ScratchpadClearworking notes, resume-safe (no pipeline orchestration)

Install

pi install npm:@xaccefy/pi-casefile

Peer-depends on a Pi-compatible agent host (@earendil-works/pi-coding-agent, pi-ai, pi-tui, typebox). Runtime deps: undici.

Development

bun install
bun test --isolate
bun run typecheck

License

MIT