@xaccefy/pi-casefile
Offensive security case tracker for Pi Agent — bug bounties, CTFs, security audits
Package details
Install @xaccefy/pi-casefile from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@xaccefy/pi-casefile- Package
@xaccefy/pi-casefile- Version
0.10.0- Published
- Aug 26, 2026
- Downloads
- 2,843/mo · 244/wk
- Author
- xaccefy
- License
- MIT
- Types
- extension
- Size
- 343.6 KB
- Dependencies
- 2 dependencies · 4 peers
Pi manifest JSON
{
"extensions": [
"./src/index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-casefile
Security case ledger for the Pi agent — evidence tracking with machine-verified PoC gates.
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_onlyreplay against an operator-approved control - Differential confirmation —
inter_host(attack vs control host) orintra_target(attack vs baseline request) so "it worked" means the discriminator fired, not "the agent said so" - Blind/OOB classes confirm through an operator-run oracle with per-run tokens and source-separation attestation
- 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
| Tool | Purpose |
|---|---|
CaseAdd / CaseList / CaseUpdate / CaseContext |
case lifecycle and context retrieval |
EvidenceAdd |
attach raw evidence to a case |
PromoteFinding → harness replay → ConfirmFinding |
gated finding pipeline |
| Scratchpad | phase-scoped working notes, resume-safe |
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: @xaccefy/pi-shared, undici.
Development
bun install
bun test --isolate # 222 tests
bun run typecheck
License
MIT