diff --git a/README.ja.md b/README.ja.md index 070b1ab..3537d3a 100644 --- a/README.ja.md +++ b/README.ja.md @@ -28,6 +28,22 @@ エージェントの実行には [Flue](https://flueframework.com) を使います。run ごとの fresh conversation、ローカルでの sandbox 実行、複数モデル対応が得られ、将来は Cloudflare Sandbox への移行余地もあります。 +## 測定モデル + +Agent DX が答える問いは 1 つです:**コーディングエージェントが Hono で仕事をするとき、どれだけ確実に・どれだけ安く成功するか — そして何がそれを変えるか。** これを 3 つの問いに分け、それぞれに計測器を置きます。 + +| 問い | 何を訊くか | 主指標 | 動かすもの(実測済み) | +| ---------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| **Adoption** — 選ばれるか | 中立なプロンプトで、エージェントはそもそも Hono に手を伸ばすか | runtime × scenario × model ごとの Hono 採用率 | 説得ではなくプロジェクトの状態:`package.json` の依存には従い、テンプレートは丸写しされる。プロンプトの具体度で段階的に上がる | +| **Value** — 使う意味があるか | 同じタスク・同じ仕様で、素のハンドラ vs Hono — 何が変わるか | success、トークン、所要時間、書いたコード行数 | Hono があるとコードが約 3 分の 1 減り、トークンが 16〜31% 減り、成功率は落ちない(現在は実験スクリプトで計測しており、suite ではない) | +| **Practical** — 使いこなせるか、レールは効くか | Hono プロジェクトと変更依頼を渡して、頼まれたものを納品できるか — Hono CLI・skill・`AGENTS.md`・実行可能な仕様の有無で | success(隠された決定論的チェック)、トークン、所要時間 | レールは弱いハーネスでは成功率を、強いハーネスではコストを改善する。実行可能な受け入れ仕様(`expect` 付き `hono request --batch checks.jsonl`)が最も成績が良い形。導線に載らない機能は使われない | + +どの層でも列は同じです:**success rate**(「頼まれたものを作ったか」)がゴール、**トークンと所要時間**が請求書、**コード行数**はエージェントに書かせた定型処理の量。それ以外 — CLI 使用率、コマンド内訳、skill の発火、エラーからの回復、選ばれたフレームワーク — はすべて結果を説明するための**診断値**であり、目標にはしません(アーキテクチャルール 8)。 + +制御する軸は 4 つ:**モデル**(週次の定点用に安い高 run 数モデル+実際のエージェントがデフォルトにするモデル)、**ハーネス**(軽量エージェントの代理としての Flue、差分が再現するか確かめるための本物の Claude Code)、**タスクの型**(構築と変更のタスクは判別力がある。症状が与えられたデバッグは読解で解けるので、診断行動の観察にしか使わない)、**仕様の渡し方**(散文か実行可能か — success を最も動かす変数)。 + +意図的に測らないもの:使用率そのもの(目標にしない)、症状つきデバッグの成否(有能なモデルは読んで 100% にする)、trivial なタスク(何をしても 100%)。タスクは実験で価値を示したものだけを採用します(アーキテクチャルール 9)。 + ## ローカルでの実行方法 ```sh diff --git a/README.md b/README.md index 8befa05..aad45f6 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,22 @@ The main goal of this project: compare a **baseline** against a **candidate** Agents run on [Flue](https://flueframework.com), which gives us fresh conversations per run, local sandboxed execution, and multi-model support, with room to move runs into Cloudflare Sandbox later. +## Measurement model + +Agent DX answers one question: **when a coding agent works with Hono, how reliably and how cheaply does it succeed — and what changes that?** We split it into three questions, each with its own instrument. + +| Question | What it asks | Primary metrics | What moves it (measured) | +| ----------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| **Adoption** — is Hono chosen? | Given a neutral prompt, does the agent reach for Hono at all? | Hono adoption rate per runtime × scenario × model | Project state, not persuasion: a dependency in `package.json` is followed, templates are copied; prompt specificity raises it in steps | +| **Value** — is Hono worth using? | Same task, same spec: plain handler vs Hono — what changes? | Success, tokens, duration, lines of code written | Hono removes about a third of the code and 16–31% of the tokens without lowering success (currently measured with experiment scripts, not a suite) | +| **Practical** — can the agent use it well, and do the rails help? | Given a Hono project and a change request, does the agent deliver what was asked — with and without the Hono CLI, skill, `AGENTS.md`, or an executable spec? | Success (hidden deterministic checks), tokens, duration | Rails lift success on lean harnesses and cost on strong ones; an executable acceptance spec (`hono request --batch checks.jsonl` with `expect`) is the best-performing form; features not on a discovery surface are never used | + +The columns that matter are the same everywhere: **success rate** ("did the agent build what was asked?") is the goal; **tokens and duration** are the bill; **lines of code** is how much boilerplate the agent was made to write. Everything else — CLI usage rate, command mix, skill activation, error recovery, which framework was picked — is a **diagnostic** that explains a result and is never a target (architecture rule 8). + +We control four axes: **model** (a cheap high-run model as the weekly canary plus the model real agents default to), **harness** (Flue as a stand-in for lean agents, real Claude Code to check that deltas reproduce), **task shape** (build and change tasks discriminate; debugging tasks with a stated symptom are solved by reading and only serve to observe diagnosis behavior), and **how the spec is delivered** (prose vs executable — the variable that moves success the most). + +We deliberately do not measure usage as a goal, debugging-with-symptom success (any capable model reads its way to 100%), or trivial tasks (everything scores 100%). A task earns its place only by experiment (architecture rule 9). + ## How to run locally ```sh