Frontend engineer building open-source tools for reliable AI-assisted development.
I build tools to verify AI-assisted code changes, measure token usage, and estimate costs from local agent logs.
TypeScript / Reactでフロントエンドを開発しながら、AIを使った変更を検証し、ローカルログからトークン使用量と推定コストを把握するためのOSSを作っています。
This command requires uvx and shows token usage and estimated cost for your local
Claude Code or Codex CLI sessions.
uvx --from coding-agent-cost agent-cost reportOn the first run, uvx may download the package. The agent-cost CLI reads the logs
on your machine and does not upload them.
- spec-lane helps you check assumptions before implementation and link acceptance criteria to verification evidence.
- agent-cost measures token usage from local agent logs and estimates the cost.
- evidence-docs checks technical claims against the source revisions they cite.
- A
spec-laneprediction succeeded, but the CLI failed before it could save the result. Zenn (日本語) · DEV (English) - A mock in an
agent-costerror-handling test caused pytest’s own file operations to fail during output capture. Zenn (日本語) · DEV (English)
I use evidence-bound delivery to decide what I can claim about each change. I start with its intent and acceptance criteria, then check them against execution evidence and record token usage and estimated cost for that change. Gaps stay explicit and guide the next change.
intent
│
▼
spec-lane (control / premise checks / acceptance gates)
│
▼
implementation
┌──────────┴──────────┐
▼ ▼
measure / observe evidence / learn
agent-cost evidence-docs
→ spec-lane (attribution) → provenance-checked claims
→ agent-metrics:v1 (emit) → gaps / drift surfaced
→ agent-metrics-harvester
→ agent-metrics-report
→ status page
└──────────┬──────────┘
▼
release / deploy
release-evidence (sealed evidence bundle → same-digest
│ promotion → live read-back verification)
▼
learning
│
▼
next intent
separate axis, not wired into the loop above (post-hoc verification):
evigate verifies an agent's "done" claim against execution evidence
acyclic-eval evaluates the verifier/judge itself
agent-metrics:v1 is a normative, tool-neutral protocol (spec'd in
ai-agent-skills-playbook), not a
spec-lane-specific format. spec-lane is a reference emitter; agent-metrics-harvester is the
reference harvester. The protocol has a frozen contract, agent-metrics-v1.0.0.
acyclic-eval is evaluation infrastructure; evigate is a real adapter that consumes it. They
share the same evidence-first thinking as the rest of the loop but check an agent's claims about
work already done, rather than controlling or measuring the work itself.
The public dashboard shows
measurements from published agent-metrics:v1 records. The freshness panel flags when
there is no recent valid event. For the outcome of the latest scheduled collection and
deployment, see the workflow run history.
Dashboard costs are estimates based on measured tokens and list prices. Actual charges can differ. Missing or failed measurements stay unknown, and records without a known price are excluded from cost totals. None of these cases counts as zero.
- On 2026-11-24, data collection failed and GitHub Actions skipped deployment. Workflow run
- On 2026-08-22, the workflow deployed the dashboard to GitHub Pages, read back the published manifest, verified its digest against the sealed bundle, and saved the evidence to the
metrics-databranch. Verified deployment
- Verify premises before implementation.
- Bind acceptance criteria to evidence.
- Keep consequential gates explicit for a human reviewer.
- Measure actual agent usage rather than assuming it.
- Make missing or stale coverage visible instead of hiding it.
- Do not fold unpriced or unknown cost into a total, or round it down to
$0. - Withhold a headline number when the sample size or coverage is insufficient, rather than rendering a confident-looking figure.
- Reject a claim whose declared source has drifted from what's on disk (a commit-hash provenance check), rather than trusting the label on it.
- Do not let an evaluator select its own exam.
| Project | Description |
|---|---|
| agent-metrics-harvester | Collects and stores agent-metrics:v1 records from GitHub pull requests and reports estimated cost per merged PR. See pipeline status. |
| release-evidence | Deployment state machine that seals a Release Evidence Bundle (source tree digest, review provenance, artifact digests, build pins) before any deploy, promotes only the same digest across environments, and verifies the live site against what was sealed. Implements the frozen release-evidence/v0 contract; exercised on this profile's own status-page deploys. |
| evigate | Verifies AI coding agents' completion claims against actual execution evidence. Stable, specialized adapter over acyclic-eval. |
| acyclic-eval | Mutation-based evaluation framework designed to avoid circular dependencies between test generation and the judge under evaluation. Published as acyclic-eval on npm. |
| ai-agent-skills-playbook | Reusable AI-agent skills, guardrails, procedures, and evaluation patterns, including the agent-metrics:v1 protocol spec, the frozen release-evidence/v0 deployment-evidence contract, and their conformance fixtures. |
| spec-impact-analyzer | Case study: designing, blind-replay evaluating (90% recall), and piloting an AI-driven spec impact analysis workflow — a completed write-up, not an ongoing tool. |
spec-lanehas driven four of its own public changes end to end through the full lane workflow (an agent-metrics emitter, a round of dogfood fixes, a measurement-path fix, and a message-catalog conformance closure).agent-metrics:v1has a frozen public contract (agent-metrics-v1.0.0) and conformance fixtures inai-agent-skills-playbook.- The harvester has collected markers from GitHub PR comments and fetched them again without duplicating stored records.
agent-metrics-report's cost-per-merged-PR figure is deliberately withheld when the sample size or cost coverage is insufficient, rather than rendered as a confident number.- The
release-evidence/v0contract was drafted, architect-reviewed, implemented, and only then frozen — after a real production deploy exercised it end to end. The exercise itself caught two contract defects before the freeze, and the live site's manifest digest was independently recomputed outside the pipeline and matched the sealed bundle. - As of
spec-lane0.7.0,lane estimaterecords an honest abstention (INSUFFICIENT_POPULATION, no fabricated number) when its population can't support a prediction — and refuses to adopt an abstention as a baseline. - Building the
agent-costclaim corpus withevidence-docssurfaced two code paths without regression tests. The tests were added in PR #2 and PR #3.
| Package | Install | Purpose |
|---|---|---|
spec-lane |
npm install -g spec-lane |
Delivery workflow CLI for AI-assisted changes |
acyclic-eval |
npm install acyclic-eval |
Mutation-based evaluation library and CLI |
evidence-docs |
pip install evidence-docs |
Provenance-checked claim corpora for codebases |
coding-agent-cost |
pip install coding-agent-cost |
Token/cost measurement from local agent logs (CLI: agent-cost) |
coding-agent-cost is the PyPI distribution name for the agent-cost repository (the name
agent-cost itself is blocked by PyPI's similarity rule against an unrelated project); the
installed command is still agent-cost. evigate is a public repository not currently
published to a package registry; install from source per its README.
- Frontend: TypeScript, React
- Developer tooling: Node.js, Python, CLI, SQLite
- AI-assisted development: Claude Code, Codex CLI
- Previous backend experience: Ruby, Ruby on Rails



