MIT · Pure Rust · ap v2.93.0 · Zero External Dependencies

Yan Chen (xgbtxy)

Independent Rust & AI tooling builder focused on deterministic coding-agent primitives, upstream open-source fixes, and formal internet standards verification.

"I don't think technology has walls anymore—we're in the best era to learn quickly, pick up useful information, and build the right thing at the right time, hhh."
v2.93.0
xgbtxy/ap · 7 crates · MIT
74 PRs
Officially merged upstream PRs
3 Verified
Official IETF RFC errata · 0 rejected
5 Demos
1080p isolated terminal runs
Interactive Benchmark Calculator

ap Context-Waste & Token-Savings Estimator

Model monthly input-token overhead avoided by symbol-scoped AST reads, SQLite FTS5 log sieving, and Hashline edits.

Workload Parameters

120 turns/day
20 250 500
18K tokens
4K 32K 60K
$3.00 / 1M
$1.00 $8.00 $15.00

120 x 18K x 30d = 64.8M baseline -> 58.0% = 37.6M saved @ $3.00/1M

Projected Monthly Impact (30-Day Window)

Est. Monthly Tokens Saved
37.6M
-58.0% (Balanced Mixed)
Est. Monthly Cost Saved
$112.75
~$1,353.02 / yr
Projected Speedup Range
1.52x–2.36x
Selected profile ~1.88x
Monthly baseline input: 64.8M Estimated reduction: 58.0%
Honest benchmark note: Estimates use empirical trace bounds (101,108 tool-call traces on xgbtxy/ap v2.93.0, 36.7%–83.3% token-waste reduction, 1.52x–2.36x speedup). Actual savings depend on repo size and task mix; run ap bench locally—including its negative controls—to measure your own repo.
ap v2.93.0 Quickstart (Direct CLI · Zero MCP Schema Overhead)
# 1. Map workspace symbols via Tree-sitter in milliseconds
ap map --depth 2

# 2. Read content-hashed line anchors (fail-closed edits)
ap splice view src/lib.rs --hashline

# 3. Compress noisy test output into SQLite FTS5 digest
ap sieve run -- cargo test

# 4. Measure locally on your own repo (includes negative controls)
ap bench
Interactive Client-Side Playground · 100% Local JS

Try ap sieve Log Compression

Test how deterministic log sieving strips repetitive passing/build noise while preserving failure frames, tracebacks, and data-race stacks. Runs 100% locally in your browser—zero network calls.

Raw Terminal / CI Log Input

0 lines · 0 B (~0 tokens) 0 failure/signal lines preserved

Deterministic Sieved Digest Preview

Raw Size / Est. Tokens
0 B
~0 tokens
Sieved Digest / Tokens
0 B
~0 tokens
Context Saved
0.0%
0 -> 0 lines
Digest retained: 15.0% Noise collapsed to FTS5: 85.0%
Sieved Digest Output (Verbatim Indexed in FTS5)

            
Run Locally With ap v2.93.0
ap sieve run -- cargo test
Engineering Notes · Long-Form

Featured Essays

Deep-dive writeups on deterministic coding-agent substrates, zero-false-positive upstream OSS verification, IETF RFC errata, and honest negative controls.

RSS Feed (feed.xml)
2026-12-04 ~6 min read Essay #2 · New Open Source · IETF RFC · Verification

74 Merged Upstream PRs & 3 Verified IETF RFC Errata: Why Zero-False-Positive Local Checks Earn Maintainer Trust

Why busy maintainers merge small, test-backed diffs across Apache, CNCF, OCI, HTTP, and AI SDK repos—plus spotting an unclosed CDDL brace in RFC 8995 §5.7 (EID 9352) and a 4-rule local pre-flight checklist.

74 PRs merged across Apache, CNCF, OCI & AI SDKs
3 Verified IETF RFC errata · 0 Held · 0 Rejected
4-Rule Gate local pre-flight checklist before PR
Zero Noise when NOT to open a micro-PR
2026-12-03 ~6 min read Essay #1 · Flagship Rust · Agent Harness · Benchmarks

Stop Scripting How Your Coding Agent Thinks — Make the Tool Substrate Deterministic Instead

Lessons from auditing 101,108 coding-agent tool calls, shipping 74 merged upstream PRs across Go/Rust/Python, and building a zero-dependency Rust harness (xgbtxy/ap + ap-harness-lite).

101,108 tool-call traces audited
-95.9% cargo test log cut (32.3 KB -> 1.3 KB)
74 PRs verified upstream PRs & 3 IETF errata
Negative Controls includes when NOT to use ap
Verified Public Artifacts

Engineering Track Record

Every item below maps to a public repository, merged upstream pull request, or authoritative standards record.

xgbtxy/ap v2.93.0

MIT License Pure Rust · 7 Crates 6 Tree-sitter Grammars SQLite FTS5 5-Platform Binaries

Single pure-Rust binary uniting 7 crates (atlas, splice, probe, sieve, guard, recall, baton), 6 compiled Tree-sitter grammars (Py/TS/JS/Go/Rust/C), embedded SQLite FTS5, 37 MCP tools, and 5-platform prebuilt binaries + SHA256SUMS.

24.1x cached ap audit (10.03s -> 416ms)
62.3x 10k-rule FTS5 ap recall (20.57ms -> 0.33ms)
62.5% -> 100% mutation-kill improvement
Hashline + Lease content-hashed anchors + TTL file leases

74 Officially Merged Mainline Upstream PRs Fresh Verified Merges · 2026-12-03

3 Officially Verified IETF RFC Technical Errata (0 Held · 0 Rejected)

Additional independent systems manuscripts are currently under peer review — public identity indexed via ORCID 0009-0003-3963-6428.

Free MIT Companion Bundle

Deterministic Multi-Agent Harness Lite Kit

Open-source recipes and validation schemas designed to save the first two days of wiring reliable coding-agent workflows around ap.

Download Lite Kit v1.1.0 (MIT) ->
MODULE 01 · SIEVE

FTS5 Sieve Recipes

Digest patterns for noisy CI logs, JSONL streams, and CSV tables with verifiable before/after token counts.

MODULE 02 · TASK-DAG

Task-DAG JSON Schema + Validator

Disjoint-scope task dependency schema plus example refactor, test-fix, and doc-sync DAG definitions.

MODULE 03 · ANCHORS & LEASES

Hashline & File-Lease Templates

Drop-in patterns for content-hashed line anchors (L:HH|...) and cooperative TTL leases across parallel agents.

MODULE 04 · BENCHMARK

Reproducible ap bench Guide

Self-contained instructions to measure speedup and token delta locally, including negative controls.

MODULE 05 · OFFLINE TOKEN AUDIT (NEW IN v1.1.0)

Zero-Install Offline Token-Waste Auditor (Python 3 Stdlib)

Run in under 0.1s with zero dependencies and no ap binary required: audits raw CI logs, JSONL streams, and a 70 B negative control with --json output and 24/24 CI-verified unit tests.