Skip to content
View shiki-yusuke's full-sized avatar

Block or report shiki-yusuke

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
shiki-yusuke/README.md

Yusuke Shiki

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を作っています。

Try agent-cost first

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 report

On the first run, uvx may download the package. The agent-cost CLI reads the logs on your machine and does not upload them.

Featured projects

  • 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.

Selected writing

The Evidence Loop

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.

Live evidence-pipeline status

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-data branch. Verified deployment

Principles

  • 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.

Other projects

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.

Evidence so far

  • spec-lane has 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:v1 has a frozen public contract (agent-metrics-v1.0.0) and conformance fixtures in ai-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/v0 contract 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-lane 0.7.0, lane estimate records 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-cost claim corpus with evidence-docs surfaced two code paths without regression tests. The tests were added in PR #2 and PR #3.

Published packages

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.

Experience

  • Frontend: TypeScript, React
  • Developer tooling: Node.js, Python, CLI, SQLite
  • AI-assisted development: Claude Code, Codex CLI
  • Previous backend experience: Ruby, Ruby on Rails

Links

Pinned Loading

  1. spec-lane spec-lane Public

    Local-first delivery workflow for AI-assisted changes with premise checks, acceptance gates, spec consensus, cost calibration, and agent-metrics emission.

    TypeScript 1

  2. evidence-docs evidence-docs Public

    Claim corpus tooling for AI-assisted codebases: evidence-anchored architecture observations with provenance verification (git blob digests), deterministic Markdown/JSONL projections, and a context-…

    Python 1

  3. agent-cost agent-cost Public

    Measure AI coding agent token usage and estimate costs from local logs (Claude Code / Codex CLI) — zero dependencies, zero network

    Python 1

  4. ai-agent-skills-playbook ai-agent-skills-playbook Public

    Reusable AI-agent skill/guardrail knowledge base (Spec Impact Analyzer, pre-implementation impact scan), generalized across products

    JavaScript 1

  5. evigate evigate Public

    Verify AI coding agents' 'done' claims against execution evidence — local CLI with deterministic detectors and a mutation-tested evaluation harness

    TypeScript 1

  6. acyclic-eval acyclic-eval Public

    Acyclic mutation-based evaluation for LLM and rule-based judges — measure judge accuracy without letting the judge grade its own exam. Zero runtime deps.

    TypeScript 1