Benchmark run gpt-6-luna-all-r5-c10-descriptive-20260926
This page contains exactly the publishable benchmark observations recorded in run gpt-6-luna-all-r5-c10-descriptive-20260926; it does not select or aggregate them. Return to the run index or view aggregate metrics.
Interactive browser
Rows are pre-aggregated by task, target, prompt variant, MCP-instruction mode, context, arm, and restriction. Numeric values show median (p50), IQR, p90, maximum, and sample count. Boolean checks show pass counts and success rates. Filters apply to these summary groups; per-run observations remain available on their run pages.
Loading benchmark results…
Baseline vs semedit
Comparison evaluates baseline and semedit values within each restriction policy, target, and context group. Negative changes mark improvements for these lower-is-better metrics; positive changes mark degradations.
Detailed observations
Empirical telemetry measuring wall-clock latency, token usage, tool turns, and compiler correctness when AI coding agents perform code modifications.
Every benchmark pairs Vanilla LLM (standard file editing tools) against Semedit MCP (deterministic AST compiler operations).
Benchmark Methodology & Transparency
- Reproducibility & Provenance: Self-contained txtar archives define test scenarios. Links below resolve to commit-anchored GitHub source files for published commits, or cryptographic SHA-256 fingerprints for uncommitted local fixtures.
- Model Cost: Tables report model-specific credit consumption where a target model has a declared schedule: (uncached input × input credits + cached input × cached credits + (reasoning + visible output) × output credits) / 1,000,000. Thinking tokens use the output rate. ADR-0043 defines the per-million-token credit rates.
- Multi-Level Correctness Oracle: Four validation levels evaluate each trial:
- Level 1 (Mutation Policy): Restricts file modifications strictly to authorized paths.
- Level 2 (AST Invariants): Compiler AST verification of required symbols, imports, and relative declaration ordering.
- Level 3 (Clean Build): Strict compilation validation with zero compiler or typecheck errors.
- Level 4 (Test Suite): Unit and integration test suite execution.
- Isolated Sandboxing: Each trial executes in an ephemeral directory with pristine git and module state.
Test case: task-04-insert-public
Target: codex/gpt-6-luna/medium
default prompt · descriptive MCP instructions · write semedit restriction
| Setting | Value |
|---|---|
| Test case | task-04-insert-public |
| Target | codex/gpt-6-luna/medium |
| Prompt variant | default |
| MCP server instructions | descriptive |
| Semedit arm restriction | write |
| Fixture | testdata/bench/task_04_insert_public.txtar |
Vanilla LLM Prompt:
Do not edit tests. You are forbidden to modify protected files: “go.mod”, “go.sum”.
Add public constructor func InitServer() *Server placed before private helpers. Do not use semantic editing MCP tools; use standard file editing. When done, output DONE.
Semedit MCP Prompt:
Do not edit tests. You are forbidden to modify protected files: “go.mod”, “go.sum”.
Add public constructor func InitServer() *Server placed before private helpers. Use semedit semantic tools for supported source code modifications. Shell commands for builds and tests are allowed. When done, output DONE.
Initial Workspace State (Before Edit)
package api
type Server struct {
Port int
}
func (s *Server) Start() {}
func (s *Server) internalRun() {}| Metric | Vanilla (Small) | MCP (Small) | Δ (Small) | Vanilla (Large) | MCP (Large) | Δ (Large) |
|---|---|---|---|---|---|---|
| Wall-Clock Latency | 19.90s | 46.69s | +134.6% | 67.33s | 38.88s | -42.3% |
| Process Start → First Event | 1.56s | 1.96s | — | 0.78s | 1.01s | — |
| First Event → First Tool Call | 9.76s | 13.36s | — | 9.55s | 7.14s | — |
| MCP Initialize → First Semantic Call | — | — | — | — | — | — |
| MCP Server Start → Initialize | — | — | — | — | — | — |
| Top-Level User Turns | 1 | 1 | 0% | 1 | 1 | 0% |
| Internal Tool Cycles | 2 | 6 | +200.0% | 6 | 3 | -50.0% |
| Initial Load / Discovery Turns | 2 | 1 | -50.0% | 4 | 1 | -75.0% |
| MCP Discovery / Schema Turns | 0 | 0 | — | 0 | 0 | — |
| Tool Invocations (per run) | 2 | 6 | +200.0% | 6 | 3 | -50.0% |
| Output Tokens | 312 | 486 | +55.8% | 1055 | 329 | -68.8% |
| Reasoning / Thinking Tokens | 88 | 0 | -100.0% | 165 | 47 | -71.5% |
| Total Input Tokens | 76072 | 128427 | +68.8% | 136432 | 100680 | -26.2% |
| Cached Input Tokens | 66560 | 111360 | +67.3% | 127232 | 87808 | -31.0% |
| Uncached Input Tokens | 9512 | 17067 | +79.4% | 9200 | 12872 | +39.9% |
| Cost | 0.0454 | 0.0766 | +68.6% | 0.0701 | 0.0588 | -16.0% |
| Cached vs Uncached Token Ratio | 7.00:1 | 6.52:1 | -6.8% | 13.83:1 | 6.82:1 | -50.7% |
| Oracle L1: Mutation Policy | PASS | PASS | — | PASS | PASS | — |
| Oracle L2: AST Invariants | PASS | PASS | — | PASS | PASS | — |
| Oracle L3: Clean Build | PASS | PASS | — | PASS | PASS | — |
| Oracle L4: Verification Test | PASS | PASS | — | PASS | PASS | — |
| Semantic Tool Invocation Verified (per run) | N/A | PASS | — | N/A | PASS | — |
Baseline vs Semedit Agentic in Small Context
- Vanilla (Baseline vs Semedit Agentic in Small Context) Edit: File api/server.go modified (9 lines -> 13 lines)
- Semedit MCP (Baseline vs Semedit Agentic in Small Context) Edit: File api/server.go modified (9 lines -> 13 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | ✓ ✓ |
| 2 | ✓ ✓ | semedit/semantic_outline (✓ ✓) |
| 3 | — | semedit/semantic_inspect_symbol (✓ ✓) |
| 4 | — | semedit/semantic_inspect_symbol (✓ ✓) |
| 5 | — | ✓ ✓ |
| 6 | — | semedit/semantic_insert_function (✓ ✓) |
Baseline vs Semedit Agentic in Large Context
- Vanilla (Baseline vs Semedit Agentic in Large Context) Edit: File api/server.go modified (9 lines -> 13 lines)
- Semedit MCP (Baseline vs Semedit Agentic in Large Context) Edit: File api/server.go modified (9 lines -> 13 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | ✓ ✓ |
| 2 | ✓ ✓ | ? ✗ |
| 3 | ✓ ✓ | semedit/semantic_insert_function (✓ ✓) |
| 4 | ? ✗ | — |
| 5 | ? ✗ | — |
| 6 | ✓ ✓ | — |
default prompt · descriptive MCP instructions · write semedit restriction
| Setting | Value |
|---|---|
| Test case | task-04-insert-public |
| Target | codex/gpt-6-luna/medium |
| Prompt variant | default |
| MCP server instructions | descriptive |
| Semedit arm restriction | write |
| Fixture | testdata/bench/task_04_insert_public.txtar |
Vanilla LLM Prompt:
Do not edit tests. You are forbidden to modify protected files: “go.mod”, “go.sum”.
Add public constructor func InitServer() *Server placed before private helpers. Do not use semantic editing MCP tools; use standard file editing. When done, output DONE.
Semedit MCP Prompt:
Do not edit tests. You are forbidden to modify protected files: “go.mod”, “go.sum”.
Add public constructor func InitServer() *Server placed before private helpers. Use semedit semantic tools for supported source code modifications. Shell commands for builds and tests are allowed. When done, output DONE.
Initial Workspace State (Before Edit)
package api
type Server struct {
Port int
}
func (s *Server) Start() {}
func (s *Server) internalRun() {}| Metric | Vanilla (Small) | MCP (Small) | Δ (Small) | Vanilla (Large) | MCP (Large) | Δ (Large) |
|---|---|---|---|---|---|---|
| Wall-Clock Latency | 22.68s | 55.00s | +142.5% | 27.22s | 45.89s | +68.6% |
| Process Start → First Event | 2.17s | 2.37s | — | 0.81s | 0.91s | — |
| First Event → First Tool Call | 10.78s | 11.07s | — | 6.22s | 8.52s | — |
| MCP Initialize → First Semantic Call | — | — | — | — | — | — |
| MCP Server Start → Initialize | — | — | — | — | — | — |
| Top-Level User Turns | 1 | 1 | 0% | 1 | 1 | 0% |
| Internal Tool Cycles | 2 | 6 | +200.0% | 4 | 4 | 0% |
| Initial Load / Discovery Turns | 2 | 2 | 0% | 4 | 1 | -75.0% |
| MCP Discovery / Schema Turns | 0 | 0 | — | 0 | 0 | — |
| Tool Invocations (per run) | 2 | 6 | +200.0% | 4 | 4 | 0% |
| Output Tokens | 339 | 795 | +134.5% | 444 | 522 | +17.6% |
| Reasoning / Thinking Tokens | 97 | 198 | +104.1% | 128 | 167 | +30.5% |
| Total Input Tokens | 76144 | 212595 | +179.2% | 115040 | 133179 | +15.8% |
| Cached Input Tokens | 66560 | 189440 | +184.6% | 105984 | 118272 | +11.6% |
| Uncached Input Tokens | 9584 | 23155 | +141.6% | 9056 | 14907 | +64.6% |
| Cost | 0.0461 | 0.1177 | +155.5% | 0.0563 | 0.0754 | +34.0% |
| Cached vs Uncached Token Ratio | 6.94:1 | 8.18:1 | +17.8% | 11.70:1 | 7.93:1 | -32.2% |
| Oracle L1: Mutation Policy | PASS | PASS | — | PASS | PASS | — |
| Oracle L2: AST Invariants | PASS | PASS | — | PASS | PASS | — |
| Oracle L3: Clean Build | PASS | PASS | — | PASS | PASS | — |
| Oracle L4: Verification Test | PASS | PASS | — | PASS | PASS | — |
| Semantic Tool Invocation Verified (per run) | N/A | PASS | — | N/A | PASS | — |
Baseline vs Semedit Agentic in Small Context
- Vanilla (Baseline vs Semedit Agentic in Small Context) Edit: File api/server.go modified (9 lines -> 13 lines)
- Semedit MCP (Baseline vs Semedit Agentic in Small Context) Edit: File api/server.go modified (9 lines -> 13 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | ✓ ✓ |
| 2 | ✓ ✓ | ✓ ✓ |
| 3 | — | semedit/semantic_insert_function (✓ ✗): calculate function offset: section placement violation: strategy "private_start", target symbol "InitServer", in /Users/alessandro/sources/semantic-editor/.scratch/benchmarks/run_codex_semedit_small-default_task-04-insert-public_1790456047051019000/api/server.go |
| 4 | — | semedit/semantic_insert_function (✓ ✓) |
| 5 | — | ✓ ✓ |
| 6 | — | ✓ ✓ |
Baseline vs Semedit Agentic in Large Context
- Vanilla (Baseline vs Semedit Agentic in Large Context) Edit: File api/server.go modified (9 lines -> 13 lines)
- Semedit MCP (Baseline vs Semedit Agentic in Large Context) Edit: File api/server.go modified (9 lines -> 13 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | ✓ ✓ |
| 2 | ✓ ✓ | semedit/semantic_inspect_symbol (✓ ✓) |
| 3 | ✓ ✓ | semedit/semantic_outline (✓ ✓) |
| 4 | ✓ ✓ | semedit/semantic_insert_function (✓ ✓) |
default prompt · descriptive MCP instructions · write semedit restriction
| Setting | Value |
|---|---|
| Test case | task-04-insert-public |
| Target | codex/gpt-6-luna/medium |
| Prompt variant | default |
| MCP server instructions | descriptive |
| Semedit arm restriction | write |
| Fixture | testdata/bench/task_04_insert_public.txtar |
Vanilla LLM Prompt:
Do not edit tests. You are forbidden to modify protected files: “go.mod”, “go.sum”.
Add public constructor func InitServer() *Server placed before private helpers. Do not use semantic editing MCP tools; use standard file editing. When done, output DONE.
Semedit MCP Prompt:
Do not edit tests. You are forbidden to modify protected files: “go.mod”, “go.sum”.
Add public constructor func InitServer() *Server placed before private helpers. Use semedit semantic tools for supported source code modifications. Shell commands for builds and tests are allowed. When done, output DONE.
Initial Workspace State (Before Edit)
package api
type Server struct {
Port int
}
func (s *Server) Start() {}
func (s *Server) internalRun() {}| Metric | Vanilla (Small) | MCP (Small) | Δ (Small) | Vanilla (Large) | MCP (Large) | Δ (Large) |
|---|---|---|---|---|---|---|
| Wall-Clock Latency | 30.47s | 62.79s | +106.1% | 24.91s | 42.11s | +69.0% |
| Process Start → First Event | 1.55s | 2.73s | — | 1.07s | 1.05s | — |
| First Event → First Tool Call | 11.75s | 10.77s | — | 8.09s | 10.61s | — |
| MCP Initialize → First Semantic Call | — | — | — | — | — | — |
| MCP Server Start → Initialize | — | — | — | — | — | — |
| Top-Level User Turns | 1 | 1 | 0% | 1 | 1 | 0% |
| Internal Tool Cycles | 4 | 5 | +25.0% | 2 | 6 | +200.0% |
| Initial Load / Discovery Turns | 2 | 1 | -50.0% | 2 | 4 | +100.0% |
| MCP Discovery / Schema Turns | 0 | 0 | — | 0 | 0 | — |
| Tool Invocations (per run) | 4 | 5 | +25.0% | 2 | 6 | +200.0% |
| Output Tokens | 508 | 565 | +11.2% | 361 | 546 | +51.2% |
| Reasoning / Thinking Tokens | 91 | 204 | +124.2% | 98 | 138 | +40.8% |
| Total Input Tokens | 95958 | 149374 | +55.7% | 76574 | 126337 | +65.0% |
| Cached Input Tokens | 85760 | 130560 | +52.2% | 68608 | 113152 | +64.9% |
| Uncached Input Tokens | 10198 | 18814 | +84.5% | 7966 | 13185 | +65.5% |
| Cost | 0.0544 | 0.0893 | +64.1% | 0.0428 | 0.0698 | +63.1% |
| Cached vs Uncached Token Ratio | 8.41:1 | 6.94:1 | -17.5% | 8.61:1 | 8.58:1 | -0.4% |
| Oracle L1: Mutation Policy | PASS | PASS | — | PASS | PASS | — |
| Oracle L2: AST Invariants | PASS | PASS | — | PASS | PASS | — |
| Oracle L3: Clean Build | PASS | PASS | — | PASS | PASS | — |
| Oracle L4: Verification Test | PASS | PASS | — | PASS | PASS | — |
| Semantic Tool Invocation Verified (per run) | N/A | PASS | — | N/A | PASS | — |
Baseline vs Semedit Agentic in Small Context
- Vanilla (Baseline vs Semedit Agentic in Small Context) Edit: File api/server.go modified (9 lines -> 13 lines)
- Semedit MCP (Baseline vs Semedit Agentic in Small Context) Edit: File api/server.go modified (9 lines -> 13 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | ✓ ✓ |
| 2 | ✓ ✓ | semedit/semantic_outline (✓ ✓) |
| 3 | ✓ ✓ | semedit/semantic_inspect_symbol (✓ ✓) |
| 4 | ✓ ✓ | semedit/semantic_inspect_symbol (✓ ✓) |
| 5 | — | semedit/semantic_insert_function (✓ ✓) |
Baseline vs Semedit Agentic in Large Context
- Vanilla (Baseline vs Semedit Agentic in Large Context) Edit: File api/server.go modified (9 lines -> 13 lines)
- Semedit MCP (Baseline vs Semedit Agentic in Large Context) Edit: File api/server.go modified (9 lines -> 13 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | ✓ ✓ |
| 2 | ✓ ✓ | ✓ ✓ |
| 3 | — | ✓ ✓ |
| 4 | — | ? ✗ |
| 5 | — | semedit/semantic_insert_function (✓ ✓) |
| 6 | — | semedit/semantic_outline (✓ ✓) |
default prompt · descriptive MCP instructions · write semedit restriction
| Setting | Value |
|---|---|
| Test case | task-04-insert-public |
| Target | codex/gpt-6-luna/medium |
| Prompt variant | default |
| MCP server instructions | descriptive |
| Semedit arm restriction | write |
| Fixture | testdata/bench/task_04_insert_public.txtar |
Vanilla LLM Prompt:
Do not edit tests. You are forbidden to modify protected files: “go.mod”, “go.sum”.
Add public constructor func InitServer() *Server placed before private helpers. Do not use semantic editing MCP tools; use standard file editing. When done, output DONE.
Semedit MCP Prompt:
Do not edit tests. You are forbidden to modify protected files: “go.mod”, “go.sum”.
Add public constructor func InitServer() *Server placed before private helpers. Use semedit semantic tools for supported source code modifications. Shell commands for builds and tests are allowed. When done, output DONE.
Initial Workspace State (Before Edit)
package api
type Server struct {
Port int
}
func (s *Server) Start() {}
func (s *Server) internalRun() {}| Metric | Vanilla (Small) | MCP (Small) | Δ (Small) | Vanilla (Large) | MCP (Large) | Δ (Large) |
|---|---|---|---|---|---|---|
| Wall-Clock Latency | 27.41s | 46.34s | +69.1% | 72.59s | 52.61s | -27.5% |
| Process Start → First Event | 2.87s | 2.79s | — | 3.26s | 1.77s | — |
| First Event → First Tool Call | 9.97s | 11.31s | — | 23.07s | 19.55s | — |
| MCP Initialize → First Semantic Call | — | — | — | — | — | — |
| MCP Server Start → Initialize | — | — | — | — | — | — |
| Top-Level User Turns | 1 | 1 | 0% | 1 | 1 | 0% |
| Internal Tool Cycles | 4 | 5 | +25.0% | 7 | 4 | -42.9% |
| Initial Load / Discovery Turns | 3 | 2 | -33.3% | 3 | 2 | -33.3% |
| MCP Discovery / Schema Turns | 0 | 0 | — | 0 | 0 | — |
| Tool Invocations (per run) | 4 | 5 | +25.0% | 7 | 4 | -42.9% |
| Output Tokens | 489 | 478 | -2.2% | 803 | 399 | -50.3% |
| Reasoning / Thinking Tokens | 57 | 115 | +101.8% | 131 | 72 | -45.0% |
| Total Input Tokens | 95418 | 114496 | +20.0% | 155649 | 125748 | -19.2% |
| Cached Input Tokens | 86784 | 101120 | +16.5% | 144384 | 98048 | -32.1% |
| Uncached Input Tokens | 8634 | 13376 | +54.9% | 11265 | 27700 | +145.9% |
| Cost | 0.0501 | 0.0661 | +32.0% | 0.0759 | 0.0996 | +31.2% |
| Cached vs Uncached Token Ratio | 10.05:1 | 7.56:1 | -24.8% | 12.82:1 | 3.54:1 | -72.4% |
| Oracle L1: Mutation Policy | PASS | PASS | — | PASS | PASS | — |
| Oracle L2: AST Invariants | PASS | PASS | — | PASS | PASS | — |
| Oracle L3: Clean Build | PASS | PASS | — | PASS | PASS | — |
| Oracle L4: Verification Test | PASS | PASS | — | PASS | PASS | — |
| Semantic Tool Invocation Verified (per run) | N/A | PASS | — | N/A | PASS | — |
Baseline vs Semedit Agentic in Small Context
- Vanilla (Baseline vs Semedit Agentic in Small Context) Edit: File api/server.go modified (9 lines -> 13 lines)
- Semedit MCP (Baseline vs Semedit Agentic in Small Context) Edit: File api/server.go modified (9 lines -> 13 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | ✓ ✓ |
| 2 | ✓ ✓ | ✓ ✓ |
| 3 | ✓ ✓ | semedit/semantic_outline (✓ ✓) |
| 4 | ✓ ✓ | semedit/semantic_inspect_symbol (✓ ✓) |
| 5 | — | semedit/semantic_insert_function (✓ ✓) |
Baseline vs Semedit Agentic in Large Context
- Vanilla (Baseline vs Semedit Agentic in Large Context) Edit: File api/server.go modified (9 lines -> 13 lines)
- Semedit MCP (Baseline vs Semedit Agentic in Large Context) Edit: File api/server.go modified (9 lines -> 13 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | ✓ ✓ |
| 2 | ✓ ✓ | ✓ ✓ |
| 3 | ✓ ✓ | semedit/semantic_inspect_symbol (✓ ✓) |
| 4 | ✓ ✓ | semedit/semantic_insert_function (✓ ✓) |
| 5 | ✓ ✓ | — |
| 6 | ✓ ✓ | — |
| 7 | ✓ ✓ | — |
default prompt · descriptive MCP instructions · write semedit restriction
| Setting | Value |
|---|---|
| Test case | task-04-insert-public |
| Target | codex/gpt-6-luna/medium |
| Prompt variant | default |
| MCP server instructions | descriptive |
| Semedit arm restriction | write |
| Fixture | testdata/bench/task_04_insert_public.txtar |
Vanilla LLM Prompt:
Do not edit tests. You are forbidden to modify protected files: “go.mod”, “go.sum”.
Add public constructor func InitServer() *Server placed before private helpers. Do not use semantic editing MCP tools; use standard file editing. When done, output DONE.
Semedit MCP Prompt:
Do not edit tests. You are forbidden to modify protected files: “go.mod”, “go.sum”.
Add public constructor func InitServer() *Server placed before private helpers. Use semedit semantic tools for supported source code modifications. Shell commands for builds and tests are allowed. When done, output DONE.
Initial Workspace State (Before Edit)
package api
type Server struct {
Port int
}
func (s *Server) Start() {}
func (s *Server) internalRun() {}| Metric | Vanilla (Small) | MCP (Small) | Δ (Small) | Vanilla (Large) | MCP (Large) | Δ (Large) |
|---|---|---|---|---|---|---|
| Wall-Clock Latency | — | 51.89s | — | 21.86s | 47.03s | +115.1% |
| Process Start → First Event | — | 2.04s | — | 0.15s | 0.16s | — |
| First Event → First Tool Call | — | 10.55s | — | 11.70s | 6.33s | — |
| MCP Initialize → First Semantic Call | — | — | — | — | — | — |
| MCP Server Start → Initialize | — | — | — | — | — | — |
| Top-Level User Turns | — | 1 | — | 1 | 1 | 0% |
| Internal Tool Cycles | — | 4 | — | 2 | 4 | +100.0% |
| Initial Load / Discovery Turns | — | 1 | — | 2 | 2 | 0% |
| MCP Discovery / Schema Turns | — | 0 | — | 0 | 0 | — |
| Tool Invocations (per run) | — | 4 | — | 2 | 4 | +100.0% |
| Output Tokens | — | 525 | — | 333 | 481 | +44.4% |
| Reasoning / Thinking Tokens | — | 208 | — | 0 | 165 | — |
| Total Input Tokens | — | 159174 | — | 76363 | 107995 | +41.4% |
| Cached Input Tokens | — | 135680 | — | 60416 | 92928 | +53.8% |
| Uncached Input Tokens | — | 23494 | — | 15947 | 15067 | -5.5% |
| Cost | — | 0.1018 | — | 0.0591 | 0.0690 | +16.6% |
| Cached vs Uncached Token Ratio | — | 5.78:1 | — | 3.79:1 | 6.17:1 | +62.8% |
| Oracle L1: Mutation Policy | — | PASS | — | PASS | PASS | — |
| Oracle L2: AST Invariants | — | PASS | — | PASS | PASS | — |
| Oracle L3: Clean Build | — | PASS | — | PASS | PASS | — |
| Oracle L4: Verification Test | — | PASS | — | PASS | PASS | — |
| Semantic Tool Invocation Verified (per run) | — | PASS | — | N/A | PASS | — |
Baseline vs Semedit Agentic in Small Context
- Semedit MCP (Baseline vs Semedit Agentic in Small Context) Edit: File api/server.go modified (9 lines -> 13 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | not published | ✓ ✓ |
| 2 | not published | semedit/semantic_outline (✓ ✓) |
| 3 | not published | semedit/semantic_insert_function (✓ ✓) |
| 4 | not published | semedit/semantic_outline (✓ ✓) |
Baseline vs Semedit Agentic in Large Context
- Vanilla (Baseline vs Semedit Agentic in Large Context) Edit: File api/server.go modified (9 lines -> 13 lines)
- Semedit MCP (Baseline vs Semedit Agentic in Large Context) Edit: File api/server.go modified (9 lines -> 13 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | ✓ ✓ |
| 2 | ✓ ✓ | ✓ ✓ |
| 3 | — | semedit/semantic_outline (✓ ✓) |
| 4 | — | semedit/semantic_insert_function (✓ ✓) |
Test case: task-07-generate-template-main
Target: codex/gpt-6-luna/medium
crypto_rand prompt · descriptive MCP instructions · write semedit restriction
| Setting | Value |
|---|---|
| Test case | task-07-generate-template-main |
| Target | codex/gpt-6-luna/medium |
| Prompt variant | crypto_rand |
| MCP server instructions | descriptive |
| Semedit arm restriction | write |
| Fixture | testdata/scripts/generate_template_main.txtar |
Vanilla LLM Prompt:
You are forbidden to modify protected files: “go.mod”, “go.sum”.
In main.go, implement main() to execute a text/template that prints ‘Hello World’ along with a random integer from crypto/rand, ensuring all necessary standard library packages are imported cleanly. Do not use semantic editing MCP tools; use standard file editing. When done, output DONE.
Semedit MCP Prompt:
You are forbidden to modify protected files: “go.mod”, “go.sum”.
In main.go, implement main() to execute a text/template that prints ‘Hello World’ along with a random integer from crypto/rand, ensuring all necessary standard library packages are imported cleanly. Use semedit semantic tools for supported source code modifications. Shell commands for builds and tests are allowed. When done, output DONE.
Initial Workspace State (Before Edit)
package main
func main() {
}| Metric | Vanilla (Small) | MCP (Small) | Δ (Small) | Vanilla (Large) | MCP (Large) | Δ (Large) |
|---|---|---|---|---|---|---|
| Wall-Clock Latency | 29.92s | 62.54s | +109.0% | — | — | — |
| Process Start → First Event | 0.64s | 0.95s | — | — | — | — |
| First Event → First Tool Call | 14.79s | 15.40s | — | — | — | — |
| MCP Initialize → First Semantic Call | — | — | — | — | — | — |
| MCP Server Start → Initialize | — | — | — | — | — | — |
| Top-Level User Turns | 1 | 1 | 0% | — | — | — |
| Internal Tool Cycles | 3 | 10 | +233.3% | — | — | — |
| Initial Load / Discovery Turns | 2 | 1 | -50.0% | — | — | — |
| MCP Discovery / Schema Turns | 0 | 0 | — | — | — | — |
| Tool Invocations (per run) | 3 | 10 | +233.3% | — | — | — |
| Output Tokens | 616 | 960 | +55.8% | — | — | — |
| Reasoning / Thinking Tokens | 183 | 289 | +57.9% | — | — | — |
| Total Input Tokens | 76680 | 166364 | +117.0% | — | — | — |
| Cached Input Tokens | 68608 | 149760 | +118.3% | — | — | — |
| Uncached Input Tokens | 8072 | 16604 | +105.7% | — | — | — |
| Cost | 0.0473 | 0.0946 | +99.8% | — | — | — |
| Cached vs Uncached Token Ratio | 8.50:1 | 9.02:1 | +6.1% | — | — | — |
| Oracle L1: Mutation Policy | PASS | PASS | — | — | — | — |
| Oracle L2: AST Invariants | PASS | PASS | — | — | — | — |
| Oracle L3: Clean Build | PASS | PASS | — | — | — | — |
| Oracle L4: Verification Test | PASS | PASS | — | — | — | — |
| Semantic Tool Invocation Verified (per run) | N/A | PASS | — | — | — | — |
Baseline vs Semedit Agentic in Small Context
- Vanilla (Baseline vs Semedit Agentic in Small Context) Edit: File main.go modified (4 lines -> 20 lines)
- Semedit MCP (Baseline vs Semedit Agentic in Small Context) Edit: File main.go modified (4 lines -> 21 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | ✓ ✓ |
| 2 | ✓ ✓ | semedit/semantic_inspect_symbol (✓ ✓) |
| 3 | ✓ ✓ | semedit/semantic_replace_body (✓ ✓) |
| 4 | — | ✓ ✓ |
| 5 | — | semedit/semantic_inspect_symbol (✓ ✓) |
| 6 | — | ✓ ✓ |
| 7 | — | semedit/semantic_organize_imports (✓ ✓) |
| 8 | — | ✓ ✓ |
| 9 | — | ✓ ✓ |
| 10 | — | semedit/semantic_inspect_symbol (✓ ✓) |
Baseline vs Semedit Agentic in Large Context
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | not published | not published |
crypto_rand prompt · descriptive MCP instructions · write semedit restriction
| Setting | Value |
|---|---|
| Test case | task-07-generate-template-main |
| Target | codex/gpt-6-luna/medium |
| Prompt variant | crypto_rand |
| MCP server instructions | descriptive |
| Semedit arm restriction | write |
| Fixture | testdata/scripts/generate_template_main.txtar |
Vanilla LLM Prompt:
You are forbidden to modify protected files: “go.mod”, “go.sum”.
In main.go, implement main() to execute a text/template that prints ‘Hello World’ along with a random integer from crypto/rand, ensuring all necessary standard library packages are imported cleanly. Do not use semantic editing MCP tools; use standard file editing. When done, output DONE.
Semedit MCP Prompt:
You are forbidden to modify protected files: “go.mod”, “go.sum”.
In main.go, implement main() to execute a text/template that prints ‘Hello World’ along with a random integer from crypto/rand, ensuring all necessary standard library packages are imported cleanly. Use semedit semantic tools for supported source code modifications. Shell commands for builds and tests are allowed. When done, output DONE.
Initial Workspace State (Before Edit)
package main
func main() {
}| Metric | Vanilla (Small) | MCP (Small) | Δ (Small) | Vanilla (Large) | MCP (Large) | Δ (Large) |
|---|---|---|---|---|---|---|
| Wall-Clock Latency | 35.72s | 35.44s | -0.8% | — | — | — |
| Process Start → First Event | 1.69s | 1.45s | — | — | — | — |
| First Event → First Tool Call | 18.44s | 8.66s | — | — | — | — |
| MCP Initialize → First Semantic Call | — | — | — | — | — | — |
| MCP Server Start → Initialize | — | — | — | — | — | — |
| Top-Level User Turns | 1 | 1 | 0% | — | — | — |
| Internal Tool Cycles | 4 | 2 | -50.0% | — | — | — |
| Initial Load / Discovery Turns | 2 | 0 | -100.0% | — | — | — |
| MCP Discovery / Schema Turns | 0 | 0 | — | — | — | — |
| Tool Invocations (per run) | 4 | 2 | -50.0% | — | — | — |
| Output Tokens | 462 | 261 | -43.5% | — | — | — |
| Reasoning / Thinking Tokens | 15 | 0 | -100.0% | — | — | — |
| Total Input Tokens | 96239 | 87103 | -9.5% | — | — | — |
| Cached Input Tokens | 87808 | 75776 | -13.7% | — | — | — |
| Uncached Input Tokens | 8431 | 11327 | +34.3% | — | — | — |
| Cost | 0.0490 | 0.0505 | +3.1% | — | — | — |
| Cached vs Uncached Token Ratio | 10.41:1 | 6.69:1 | -35.8% | — | — | — |
| Oracle L1: Mutation Policy | PASS | PASS | — | — | — | — |
| Oracle L2: AST Invariants | PASS | PASS | — | — | — | — |
| Oracle L3: Clean Build | PASS | PASS | — | — | — | — |
| Oracle L4: Verification Test | PASS | PASS | — | — | — | — |
| Semantic Tool Invocation Verified (per run) | N/A | PASS | — | — | — | — |
Baseline vs Semedit Agentic in Small Context
- Vanilla (Baseline vs Semedit Agentic in Small Context) Edit: File main.go modified (4 lines -> 20 lines)
- Semedit MCP (Baseline vs Semedit Agentic in Small Context) Edit: File main.go modified (4 lines -> 22 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | semedit/semantic_inspect_symbol (✓ ✓) |
| 2 | ✓ ✓ | semedit/semantic_replace_body (✓ ✓) |
| 3 | ✓ ✓ | — |
| 4 | ? ✗ | — |
Baseline vs Semedit Agentic in Large Context
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | not published | not published |
crypto_rand prompt · descriptive MCP instructions · write semedit restriction
| Setting | Value |
|---|---|
| Test case | task-07-generate-template-main |
| Target | codex/gpt-6-luna/medium |
| Prompt variant | crypto_rand |
| MCP server instructions | descriptive |
| Semedit arm restriction | write |
| Fixture | testdata/scripts/generate_template_main.txtar |
Vanilla LLM Prompt:
You are forbidden to modify protected files: “go.mod”, “go.sum”.
In main.go, implement main() to execute a text/template that prints ‘Hello World’ along with a random integer from crypto/rand, ensuring all necessary standard library packages are imported cleanly. Do not use semantic editing MCP tools; use standard file editing. When done, output DONE.
Semedit MCP Prompt:
You are forbidden to modify protected files: “go.mod”, “go.sum”.
In main.go, implement main() to execute a text/template that prints ‘Hello World’ along with a random integer from crypto/rand, ensuring all necessary standard library packages are imported cleanly. Use semedit semantic tools for supported source code modifications. Shell commands for builds and tests are allowed. When done, output DONE.
Initial Workspace State (Before Edit)
package main
func main() {
}| Metric | Vanilla (Small) | MCP (Small) | Δ (Small) | Vanilla (Large) | MCP (Large) | Δ (Large) |
|---|---|---|---|---|---|---|
| Wall-Clock Latency | 26.75s | 40.19s | +50.3% | — | — | — |
| Process Start → First Event | 1.13s | 1.61s | — | — | — | — |
| First Event → First Tool Call | 7.57s | 6.60s | — | — | — | — |
| MCP Initialize → First Semantic Call | — | — | — | — | — | — |
| MCP Server Start → Initialize | — | — | — | — | — | — |
| Top-Level User Turns | 1 | 1 | 0% | — | — | — |
| Internal Tool Cycles | 3 | 4 | +33.3% | — | — | — |
| Initial Load / Discovery Turns | 3 | 1 | -66.7% | — | — | — |
| MCP Discovery / Schema Turns | 0 | 0 | — | — | — | — |
| Tool Invocations (per run) | 3 | 4 | +33.3% | — | — | — |
| Output Tokens | 471 | 714 | +51.6% | — | — | — |
| Reasoning / Thinking Tokens | 0 | 325 | — | — | — | — |
| Total Input Tokens | 95966 | 131812 | +37.4% | — | — | — |
| Cached Input Tokens | 87808 | 93952 | +7.0% | — | — | — |
| Uncached Input Tokens | 8158 | 37860 | +364.1% | — | — | — |
| Cost | 0.0482 | 0.1311 | +171.9% | — | — | — |
| Cached vs Uncached Token Ratio | 10.76:1 | 2.48:1 | -76.9% | — | — | — |
| Oracle L1: Mutation Policy | PASS | PASS | — | — | — | — |
| Oracle L2: AST Invariants | PASS | PASS | — | — | — | — |
| Oracle L3: Clean Build | PASS | PASS | — | — | — | — |
| Oracle L4: Verification Test | PASS | PASS | — | — | — | — |
| Semantic Tool Invocation Verified (per run) | N/A | PASS | — | — | — | — |
Baseline vs Semedit Agentic in Small Context
- Vanilla (Baseline vs Semedit Agentic in Small Context) Edit: File main.go modified (4 lines -> 23 lines)
- Semedit MCP (Baseline vs Semedit Agentic in Small Context) Edit: File main.go modified (4 lines -> 24 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | ✓ ✓ |
| 2 | ✓ ✓ | semedit/semantic_inspect_symbol (✓ ✓) |
| 3 | ✓ ✓ | semedit/semantic_replace_body (✓ ✓) |
| 4 | — | semedit/semantic_inspect_symbol (✓ ✓) |
Baseline vs Semedit Agentic in Large Context
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | not published | not published |
crypto_rand prompt · descriptive MCP instructions · write semedit restriction
| Setting | Value |
|---|---|
| Test case | task-07-generate-template-main |
| Target | codex/gpt-6-luna/medium |
| Prompt variant | crypto_rand |
| MCP server instructions | descriptive |
| Semedit arm restriction | write |
| Fixture | testdata/scripts/generate_template_main.txtar |
Vanilla LLM Prompt:
You are forbidden to modify protected files: “go.mod”, “go.sum”.
In main.go, implement main() to execute a text/template that prints ‘Hello World’ along with a random integer from crypto/rand, ensuring all necessary standard library packages are imported cleanly. Do not use semantic editing MCP tools; use standard file editing. When done, output DONE.
Semedit MCP Prompt:
You are forbidden to modify protected files: “go.mod”, “go.sum”.
In main.go, implement main() to execute a text/template that prints ‘Hello World’ along with a random integer from crypto/rand, ensuring all necessary standard library packages are imported cleanly. Use semedit semantic tools for supported source code modifications. Shell commands for builds and tests are allowed. When done, output DONE.
Initial Workspace State (Before Edit)
package main
func main() {
}| Metric | Vanilla (Small) | MCP (Small) | Δ (Small) | Vanilla (Large) | MCP (Large) | Δ (Large) |
|---|---|---|---|---|---|---|
| Wall-Clock Latency | 27.91s | 43.86s | +57.1% | — | — | — |
| Process Start → First Event | 0.71s | 0.64s | — | — | — | — |
| First Event → First Tool Call | 7.73s | 9.89s | — | — | — | — |
| MCP Initialize → First Semantic Call | — | — | — | — | — | — |
| MCP Server Start → Initialize | — | — | — | — | — | — |
| Top-Level User Turns | 1 | 1 | 0% | — | — | — |
| Internal Tool Cycles | 3 | 6 | +100.0% | — | — | — |
| Initial Load / Discovery Turns | 3 | 1 | -66.7% | — | — | — |
| MCP Discovery / Schema Turns | 0 | 0 | — | — | — | — |
| Tool Invocations (per run) | 3 | 6 | +100.0% | — | — | — |
| Output Tokens | 505 | 702 | +39.0% | — | — | — |
| Reasoning / Thinking Tokens | 0 | 240 | — | — | — | — |
| Total Input Tokens | 96039 | 133591 | +39.1% | — | — | — |
| Cached Input Tokens | 81664 | 118272 | +44.8% | — | — | — |
| Uncached Input Tokens | 14375 | 15319 | +6.6% | — | — | — |
| Cost | 0.0627 | 0.0796 | +27.1% | — | — | — |
| Cached vs Uncached Token Ratio | 5.68:1 | 7.72:1 | +35.9% | — | — | — |
| Oracle L1: Mutation Policy | PASS | PASS | — | — | — | — |
| Oracle L2: AST Invariants | PASS | FAIL | — | — | — | — |
| Oracle L3: Clean Build | PASS | FAIL | — | — | — | — |
| Oracle L4: Verification Test | PASS | FAIL | — | — | — | — |
| Semantic Tool Invocation Verified (per run) | N/A | PASS | — | — | — | — |
Baseline vs Semedit Agentic in Small Context
- Vanilla (Baseline vs Semedit Agentic in Small Context) Edit: File main.go modified (4 lines -> 27 lines)
- Semedit MCP (Baseline vs Semedit Agentic in Small Context) Edit: File main.go modified (4 lines -> 24 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | ✓ ✓ |
| 2 | ✓ ✓ | semedit/semantic_lookup (✓ ✓) |
| 3 | ✓ ✓ | ✓ ✓ |
| 4 | — | semedit/semantic_inspect_symbol (✓ ✓) |
| 5 | — | semedit/semantic_replace_body (✓ ✓) |
| 6 | — | ✓ ✓ |
Baseline vs Semedit Agentic in Large Context
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | not published | not published |
crypto_rand prompt · descriptive MCP instructions · write semedit restriction
| Setting | Value |
|---|---|
| Test case | task-07-generate-template-main |
| Target | codex/gpt-6-luna/medium |
| Prompt variant | crypto_rand |
| MCP server instructions | descriptive |
| Semedit arm restriction | write |
| Fixture | testdata/scripts/generate_template_main.txtar |
Vanilla LLM Prompt:
You are forbidden to modify protected files: “go.mod”, “go.sum”.
In main.go, implement main() to execute a text/template that prints ‘Hello World’ along with a random integer from crypto/rand, ensuring all necessary standard library packages are imported cleanly. Do not use semantic editing MCP tools; use standard file editing. When done, output DONE.
Semedit MCP Prompt:
You are forbidden to modify protected files: “go.mod”, “go.sum”.
In main.go, implement main() to execute a text/template that prints ‘Hello World’ along with a random integer from crypto/rand, ensuring all necessary standard library packages are imported cleanly. Use semedit semantic tools for supported source code modifications. Shell commands for builds and tests are allowed. When done, output DONE.
Initial Workspace State (Before Edit)
package main
func main() {
}| Metric | Vanilla (Small) | MCP (Small) | Δ (Small) | Vanilla (Large) | MCP (Large) | Δ (Large) |
|---|---|---|---|---|---|---|
| Wall-Clock Latency | 19.46s | 33.17s | +70.5% | — | — | — |
| Process Start → First Event | 0.64s | 0.51s | — | — | — | — |
| First Event → First Tool Call | 6.00s | 6.66s | — | — | — | — |
| MCP Initialize → First Semantic Call | — | — | — | — | — | — |
| MCP Server Start → Initialize | — | — | — | — | — | — |
| Top-Level User Turns | 1 | 1 | 0% | — | — | — |
| Internal Tool Cycles | 4 | 5 | +25.0% | — | — | — |
| Initial Load / Discovery Turns | 4 | 1 | -75.0% | — | — | — |
| MCP Discovery / Schema Turns | 0 | 0 | — | — | — | — |
| Tool Invocations (per run) | 4 | 5 | +25.0% | — | — | — |
| Output Tokens | 480 | 445 | -7.3% | — | — | — |
| Reasoning / Thinking Tokens | 98 | 0 | -100.0% | — | — | — |
| Total Input Tokens | 95542 | 116351 | +21.8% | — | — | — |
| Cached Input Tokens | 84736 | 101120 | +19.3% | — | — | — |
| Uncached Input Tokens | 10806 | 15231 | +40.9% | — | — | — |
| Cost | 0.0554 | 0.0689 | +24.4% | — | — | — |
| Cached vs Uncached Token Ratio | 7.84:1 | 6.64:1 | -15.3% | — | — | — |
| Oracle L1: Mutation Policy | PASS | PASS | — | — | — | — |
| Oracle L2: AST Invariants | PASS | PASS | — | — | — | — |
| Oracle L3: Clean Build | PASS | PASS | — | — | — | — |
| Oracle L4: Verification Test | PASS | PASS | — | — | — | — |
| Semantic Tool Invocation Verified (per run) | N/A | PASS | — | — | — | — |
Baseline vs Semedit Agentic in Small Context
- Vanilla (Baseline vs Semedit Agentic in Small Context) Edit: File main.go modified (4 lines -> 20 lines)
- Semedit MCP (Baseline vs Semedit Agentic in Small Context) Edit: File main.go modified (4 lines -> 20 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | ✓ ✓ |
| 2 | ✓ ✓ | semedit/semantic_inspect_symbol (✓ ✓) |
| 3 | ✓ ✓ | semedit/semantic_outline (✓ ✓) |
| 4 | ✓ ✓ | semedit/semantic_replace_body (✓ ✓) |
| 5 | — | ✓ ✓ |
Baseline vs Semedit Agentic in Large Context
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | not published | not published |
default prompt · descriptive MCP instructions · write semedit restriction
| Setting | Value |
|---|---|
| Test case | task-07-generate-template-main |
| Target | codex/gpt-6-luna/medium |
| Prompt variant | default |
| MCP server instructions | descriptive |
| Semedit arm restriction | write |
| Fixture | testdata/scripts/generate_template_main.txtar |
Vanilla LLM Prompt:
You are forbidden to modify protected files: “go.mod”, “go.sum”.
In main.go, implement main() to execute a text/template that prints ‘Hello World’ along with a random integer, ensuring all necessary standard library packages are imported cleanly. Do not use semantic editing MCP tools; use standard file editing. When done, output DONE.
Semedit MCP Prompt:
You are forbidden to modify protected files: “go.mod”, “go.sum”.
In main.go, implement main() to execute a text/template that prints ‘Hello World’ along with a random integer, ensuring all necessary standard library packages are imported cleanly. Use semedit semantic tools for supported source code modifications. Shell commands for builds and tests are allowed. When done, output DONE.
Initial Workspace State (Before Edit)
package main
func main() {
}| Metric | Vanilla (Small) | MCP (Small) | Δ (Small) | Vanilla (Large) | MCP (Large) | Δ (Large) |
|---|---|---|---|---|---|---|
| Wall-Clock Latency | 37.03s | 41.42s | +11.9% | — | — | — |
| Process Start → First Event | 0.26s | 0.17s | — | — | — | — |
| First Event → First Tool Call | 13.97s | 13.62s | — | — | — | — |
| MCP Initialize → First Semantic Call | — | — | — | — | — | — |
| MCP Server Start → Initialize | — | — | — | — | — | — |
| Top-Level User Turns | 1 | 1 | 0% | — | — | — |
| Internal Tool Cycles | 4 | 3 | -25.0% | — | — | — |
| Initial Load / Discovery Turns | 2 | 1 | -50.0% | — | — | — |
| MCP Discovery / Schema Turns | 0 | 0 | — | — | — | — |
| Tool Invocations (per run) | 4 | 3 | -25.0% | — | — | — |
| Output Tokens | 789 | 632 | -19.9% | — | — | — |
| Reasoning / Thinking Tokens | 201 | 301 | +49.8% | — | — | — |
| Total Input Tokens | 96228 | 108857 | +13.1% | — | — | — |
| Cached Input Tokens | 85760 | 93952 | +9.6% | — | — | — |
| Uncached Input Tokens | 10468 | 14905 | +42.4% | — | — | — |
| Cost | 0.0600 | 0.0724 | +20.7% | — | — | — |
| Cached vs Uncached Token Ratio | 8.19:1 | 6.30:1 | -23.1% | — | — | — |
| Oracle L1: Mutation Policy | PASS | PASS | — | — | — | — |
| Oracle L2: AST Invariants | PASS | FAIL | — | — | — | — |
| Oracle L3: Clean Build | PASS | FAIL | — | — | — | — |
| Oracle L4: Verification Test | PASS | FAIL | — | — | — | — |
| Semantic Tool Invocation Verified (per run) | N/A | PASS | — | — | — | — |
Baseline vs Semedit Agentic in Small Context
- Vanilla (Baseline vs Semedit Agentic in Small Context) Edit: File main.go modified (4 lines -> 12 lines)
- Semedit MCP (Baseline vs Semedit Agentic in Small Context) Edit: File main.go modified (4 lines -> 15 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | ✓ ✓ |
| 2 | ✓ ✓ | semedit/semantic_inspect_symbol (✓ ✓) |
| 3 | ? ✗ | semedit/semantic_replace_body (✓ ✓) |
| 4 | ✓ ✓ | — |
Baseline vs Semedit Agentic in Large Context
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | not published | not published |
default prompt · descriptive MCP instructions · write semedit restriction
| Setting | Value |
|---|---|
| Test case | task-07-generate-template-main |
| Target | codex/gpt-6-luna/medium |
| Prompt variant | default |
| MCP server instructions | descriptive |
| Semedit arm restriction | write |
| Fixture | testdata/scripts/generate_template_main.txtar |
Vanilla LLM Prompt:
You are forbidden to modify protected files: “go.mod”, “go.sum”.
In main.go, implement main() to execute a text/template that prints ‘Hello World’ along with a random integer, ensuring all necessary standard library packages are imported cleanly. Do not use semantic editing MCP tools; use standard file editing. When done, output DONE.
Semedit MCP Prompt:
You are forbidden to modify protected files: “go.mod”, “go.sum”.
In main.go, implement main() to execute a text/template that prints ‘Hello World’ along with a random integer, ensuring all necessary standard library packages are imported cleanly. Use semedit semantic tools for supported source code modifications. Shell commands for builds and tests are allowed. When done, output DONE.
Initial Workspace State (Before Edit)
package main
func main() {
}| Metric | Vanilla (Small) | MCP (Small) | Δ (Small) | Vanilla (Large) | MCP (Large) | Δ (Large) |
|---|---|---|---|---|---|---|
| Wall-Clock Latency | 31.86s | 40.10s | +25.9% | — | — | — |
| Process Start → First Event | 0.13s | 0.15s | — | — | — | — |
| First Event → First Tool Call | 12.70s | 16.69s | — | — | — | — |
| MCP Initialize → First Semantic Call | — | — | — | — | — | — |
| MCP Server Start → Initialize | — | — | — | — | — | — |
| Top-Level User Turns | 1 | 1 | 0% | — | — | — |
| Internal Tool Cycles | 3 | 4 | +33.3% | — | — | — |
| Initial Load / Discovery Turns | 3 | 2 | -33.3% | — | — | — |
| MCP Discovery / Schema Turns | 0 | 0 | — | — | — | — |
| Tool Invocations (per run) | 3 | 4 | +33.3% | — | — | — |
| Output Tokens | 623 | 608 | -2.4% | — | — | — |
| Reasoning / Thinking Tokens | 281 | 246 | -12.5% | — | — | — |
| Total Input Tokens | 95657 | 104428 | +9.2% | — | — | — |
| Cached Input Tokens | 85760 | 91904 | +7.2% | — | — | — |
| Uncached Input Tokens | 9897 | 12524 | +26.5% | — | — | — |
| Cost | 0.0575 | 0.0650 | +13.0% | — | — | — |
| Cached vs Uncached Token Ratio | 8.67:1 | 7.34:1 | -15.3% | — | — | — |
| Oracle L1: Mutation Policy | PASS | PASS | — | — | — | — |
| Oracle L2: AST Invariants | PASS | PASS | — | — | — | — |
| Oracle L3: Clean Build | PASS | PASS | — | — | — | — |
| Oracle L4: Verification Test | PASS | PASS | — | — | — | — |
| Semantic Tool Invocation Verified (per run) | N/A | PASS | — | — | — | — |
Baseline vs Semedit Agentic in Small Context
- Vanilla (Baseline vs Semedit Agentic in Small Context) Edit: File main.go modified (4 lines -> 14 lines)
- Semedit MCP (Baseline vs Semedit Agentic in Small Context) Edit: File main.go modified (4 lines -> 17 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | ✓ ✓ |
| 2 | ✓ ✓ | ✓ ✓ |
| 3 | ✓ ✓ | semedit/semantic_replace_body (✓ ✓) |
| 4 | — | ✓ ✓ |
Baseline vs Semedit Agentic in Large Context
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | not published | not published |
default prompt · descriptive MCP instructions · write semedit restriction
| Setting | Value |
|---|---|
| Test case | task-07-generate-template-main |
| Target | codex/gpt-6-luna/medium |
| Prompt variant | default |
| MCP server instructions | descriptive |
| Semedit arm restriction | write |
| Fixture | testdata/scripts/generate_template_main.txtar |
Vanilla LLM Prompt:
You are forbidden to modify protected files: “go.mod”, “go.sum”.
In main.go, implement main() to execute a text/template that prints ‘Hello World’ along with a random integer, ensuring all necessary standard library packages are imported cleanly. Do not use semantic editing MCP tools; use standard file editing. When done, output DONE.
Semedit MCP Prompt:
You are forbidden to modify protected files: “go.mod”, “go.sum”.
In main.go, implement main() to execute a text/template that prints ‘Hello World’ along with a random integer, ensuring all necessary standard library packages are imported cleanly. Use semedit semantic tools for supported source code modifications. Shell commands for builds and tests are allowed. When done, output DONE.
Initial Workspace State (Before Edit)
package main
func main() {
}| Metric | Vanilla (Small) | MCP (Small) | Δ (Small) | Vanilla (Large) | MCP (Large) | Δ (Large) |
|---|---|---|---|---|---|---|
| Wall-Clock Latency | 29.60s | 38.72s | +30.8% | — | — | — |
| Process Start → First Event | 0.18s | 0.19s | — | — | — | — |
| First Event → First Tool Call | 13.08s | 13.71s | — | — | — | — |
| MCP Initialize → First Semantic Call | — | — | — | — | — | — |
| MCP Server Start → Initialize | — | — | — | — | — | — |
| Top-Level User Turns | 1 | 1 | 0% | — | — | — |
| Internal Tool Cycles | 4 | 4 | 0% | — | — | — |
| Initial Load / Discovery Turns | 2 | 1 | -50.0% | — | — | — |
| MCP Discovery / Schema Turns | 0 | 0 | — | — | — | — |
| Tool Invocations (per run) | 4 | 4 | 0% | — | — | — |
| Output Tokens | 673 | 616 | -8.5% | — | — | — |
| Reasoning / Thinking Tokens | 160 | 215 | +34.4% | — | — | — |
| Total Input Tokens | 95563 | 134268 | +40.5% | — | — | — |
| Cached Input Tokens | 84736 | 116224 | +37.2% | — | — | — |
| Uncached Input Tokens | 10827 | 18044 | +66.7% | — | — | — |
| Cost | 0.0587 | 0.0846 | +44.1% | — | — | — |
| Cached vs Uncached Token Ratio | 7.83:1 | 6.44:1 | -17.7% | — | — | — |
| Oracle L1: Mutation Policy | PASS | PASS | — | — | — | — |
| Oracle L2: AST Invariants | PASS | FAIL | — | — | — | — |
| Oracle L3: Clean Build | PASS | FAIL | — | — | — | — |
| Oracle L4: Verification Test | PASS | FAIL | — | — | — | — |
| Semantic Tool Invocation Verified (per run) | N/A | PASS | — | — | — | — |
Baseline vs Semedit Agentic in Small Context
- Vanilla (Baseline vs Semedit Agentic in Small Context) Edit: File main.go modified (4 lines -> 14 lines)
- Semedit MCP (Baseline vs Semedit Agentic in Small Context) Edit: File main.go modified (4 lines -> 15 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | ✓ ✓ |
| 2 | ✓ ✓ | ? ✗ |
| 3 | ✓ ✓ | semedit/semantic_replace_body (✓ ✓) |
| 4 | ✓ ✓ | ✓ ✓ |
Baseline vs Semedit Agentic in Large Context
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | not published | not published |
default prompt · descriptive MCP instructions · write semedit restriction
| Setting | Value |
|---|---|
| Test case | task-07-generate-template-main |
| Target | codex/gpt-6-luna/medium |
| Prompt variant | default |
| MCP server instructions | descriptive |
| Semedit arm restriction | write |
| Fixture | testdata/scripts/generate_template_main.txtar |
Vanilla LLM Prompt:
You are forbidden to modify protected files: “go.mod”, “go.sum”.
In main.go, implement main() to execute a text/template that prints ‘Hello World’ along with a random integer, ensuring all necessary standard library packages are imported cleanly. Do not use semantic editing MCP tools; use standard file editing. When done, output DONE.
Semedit MCP Prompt:
You are forbidden to modify protected files: “go.mod”, “go.sum”.
In main.go, implement main() to execute a text/template that prints ‘Hello World’ along with a random integer, ensuring all necessary standard library packages are imported cleanly. Use semedit semantic tools for supported source code modifications. Shell commands for builds and tests are allowed. When done, output DONE.
Initial Workspace State (Before Edit)
package main
func main() {
}| Metric | Vanilla (Small) | MCP (Small) | Δ (Small) | Vanilla (Large) | MCP (Large) | Δ (Large) |
|---|---|---|---|---|---|---|
| Wall-Clock Latency | 28.47s | 53.63s | +88.4% | — | — | — |
| Process Start → First Event | 0.13s | 0.17s | — | — | — | — |
| First Event → First Tool Call | 8.48s | 6.06s | — | — | — | — |
| MCP Initialize → First Semantic Call | — | — | — | — | — | — |
| MCP Server Start → Initialize | — | — | — | — | — | — |
| Top-Level User Turns | 1 | 1 | 0% | — | — | — |
| Internal Tool Cycles | 2 | 7 | +250.0% | — | — | — |
| Initial Load / Discovery Turns | 1 | 2 | +100.0% | — | — | — |
| MCP Discovery / Schema Turns | 0 | 0 | — | — | — | — |
| Tool Invocations (per run) | 2 | 7 | +250.0% | — | — | — |
| Output Tokens | 621 | 1358 | +118.7% | — | — | — |
| Reasoning / Thinking Tokens | 213 | 259 | +21.6% | — | — | — |
| Total Input Tokens | 57132 | 220343 | +285.7% | — | — | — |
| Cached Input Tokens | 48384 | 198400 | +310.1% | — | — | — |
| Uncached Input Tokens | 8748 | 21943 | +150.8% | — | — | — |
| Cost | 0.0444 | 0.1247 | +180.8% | — | — | — |
| Cached vs Uncached Token Ratio | 5.53:1 | 9.04:1 | +63.5% | — | — | — |
| Oracle L1: Mutation Policy | PASS | PASS | — | — | — | — |
| Oracle L2: AST Invariants | PASS | FAIL | — | — | — | — |
| Oracle L3: Clean Build | PASS | FAIL | — | — | — | — |
| Oracle L4: Verification Test | PASS | FAIL | — | — | — | — |
| Semantic Tool Invocation Verified (per run) | N/A | PASS | — | — | — | — |
Baseline vs Semedit Agentic in Small Context
- Vanilla (Baseline vs Semedit Agentic in Small Context) Edit: File main.go modified (4 lines -> 17 lines)
- Semedit MCP (Baseline vs Semedit Agentic in Small Context) Edit: File main.go modified (4 lines -> 15 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | ✓ ✓ |
| 2 | ✓ ✓ | ✓ ✓ |
| 3 | — | semedit/semantic_replace_body (✓ ✓) |
| 4 | — | ? ✗ |
| 5 | — | semedit/semantic_organize_imports (✓ ✓) |
| 6 | — | ✓ ✓ |
| 7 | — | ✓ ✓ |
Baseline vs Semedit Agentic in Large Context
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | not published | not published |
default prompt · descriptive MCP instructions · write semedit restriction
| Setting | Value |
|---|---|
| Test case | task-07-generate-template-main |
| Target | codex/gpt-6-luna/medium |
| Prompt variant | default |
| MCP server instructions | descriptive |
| Semedit arm restriction | write |
| Fixture | testdata/scripts/generate_template_main.txtar |
Vanilla LLM Prompt:
You are forbidden to modify protected files: “go.mod”, “go.sum”.
In main.go, implement main() to execute a text/template that prints ‘Hello World’ along with a random integer, ensuring all necessary standard library packages are imported cleanly. Do not use semantic editing MCP tools; use standard file editing. When done, output DONE.
Semedit MCP Prompt:
You are forbidden to modify protected files: “go.mod”, “go.sum”.
In main.go, implement main() to execute a text/template that prints ‘Hello World’ along with a random integer, ensuring all necessary standard library packages are imported cleanly. Use semedit semantic tools for supported source code modifications. Shell commands for builds and tests are allowed. When done, output DONE.
Initial Workspace State (Before Edit)
package main
func main() {
}| Metric | Vanilla (Small) | MCP (Small) | Δ (Small) | Vanilla (Large) | MCP (Large) | Δ (Large) |
|---|---|---|---|---|---|---|
| Wall-Clock Latency | 29.32s | 34.91s | +19.1% | — | — | — |
| Process Start → First Event | 0.14s | 0.13s | — | — | — | — |
| First Event → First Tool Call | 8.96s | 9.69s | — | — | — | — |
| MCP Initialize → First Semantic Call | — | — | — | — | — | — |
| MCP Server Start → Initialize | — | — | — | — | — | — |
| Top-Level User Turns | 1 | 1 | 0% | — | — | — |
| Internal Tool Cycles | 5 | 5 | 0% | — | — | — |
| Initial Load / Discovery Turns | 5 | 2 | -60.0% | — | — | — |
| MCP Discovery / Schema Turns | 0 | 0 | — | — | — | — |
| Tool Invocations (per run) | 5 | 5 | 0% | — | — | — |
| Output Tokens | 729 | 719 | -1.4% | — | — | — |
| Reasoning / Thinking Tokens | 286 | 222 | -22.4% | — | — | — |
| Total Input Tokens | 134725 | 163332 | +21.2% | — | — | — |
| Cached Input Tokens | 123136 | 141824 | +15.2% | — | — | — |
| Uncached Input Tokens | 11589 | 21508 | +85.6% | — | — | — |
| Cost | 0.0724 | 0.1010 | +39.4% | — | — | — |
| Cached vs Uncached Token Ratio | 10.63:1 | 6.59:1 | -37.9% | — | — | — |
| Oracle L1: Mutation Policy | PASS | PASS | — | — | — | — |
| Oracle L2: AST Invariants | PASS | PASS | — | — | — | — |
| Oracle L3: Clean Build | PASS | PASS | — | — | — | — |
| Oracle L4: Verification Test | PASS | PASS | — | — | — | — |
| Semantic Tool Invocation Verified (per run) | N/A | PASS | — | — | — | — |
Baseline vs Semedit Agentic in Small Context
- Vanilla (Baseline vs Semedit Agentic in Small Context) Edit: File main.go modified (4 lines -> 14 lines)
- Semedit MCP (Baseline vs Semedit Agentic in Small Context) Edit: File main.go modified (4 lines -> 14 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | ✓ ✓ |
| 2 | ✓ ✓ | ✓ ✓ |
| 3 | ✓ ✓ | semedit/semantic_lookup (✓ ✓) |
| 4 | ✓ ✓ | semedit/semantic_replace_body (✓ ✓) |
| 5 | ✓ ✓ | ✓ ✓ |
Baseline vs Semedit Agentic in Large Context
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | not published | not published |
prefer_discover_semedit prompt · descriptive MCP instructions · write semedit restriction
| Setting | Value |
|---|---|
| Test case | task-07-generate-template-main |
| Target | codex/gpt-6-luna/medium |
| Prompt variant | prefer_discover_semedit |
| MCP server instructions | descriptive |
| Semedit arm restriction | write |
| Fixture | testdata/scripts/generate_template_main.txtar |
Vanilla LLM Prompt:
You are forbidden to modify protected files: “go.mod”, “go.sum”.
Before editing, inspect the complete available tool inventory, including deferred or lazy tools. If applicable semantic editing tools are callable, prefer them for source mutations. In main.go, implement main() to execute a text/template that prints ‘Hello World’ along with a random integer, ensuring all necessary standard library packages are imported cleanly. Do not use semantic editing MCP tools; use standard file editing. When done, output DONE.
Semedit MCP Prompt:
You are forbidden to modify protected files: “go.mod”, “go.sum”.
Before editing, inspect the complete available tool inventory, including deferred or lazy tools. If applicable semantic editing tools are callable, prefer them for source mutations. In main.go, implement main() to execute a text/template that prints ‘Hello World’ along with a random integer, ensuring all necessary standard library packages are imported cleanly. Use semedit semantic tools for supported source code modifications. Shell commands for builds and tests are allowed. When done, output DONE.
Initial Workspace State (Before Edit)
package main
func main() {
}| Metric | Vanilla (Small) | MCP (Small) | Δ (Small) | Vanilla (Large) | MCP (Large) | Δ (Large) |
|---|---|---|---|---|---|---|
| Wall-Clock Latency | 44.94s | 51.31s | +14.2% | — | — | — |
| Process Start → First Event | 0.14s | 0.22s | — | — | — | — |
| First Event → First Tool Call | 18.93s | 17.61s | — | — | — | — |
| MCP Initialize → First Semantic Call | — | — | — | — | — | — |
| MCP Server Start → Initialize | — | — | — | — | — | — |
| Top-Level User Turns | 1 | 1 | 0% | — | — | — |
| Internal Tool Cycles | 3 | 4 | +33.3% | — | — | — |
| Initial Load / Discovery Turns | 3 | 2 | -33.3% | — | — | — |
| MCP Discovery / Schema Turns | 0 | 0 | — | — | — | — |
| Tool Invocations (per run) | 3 | 4 | +33.3% | — | — | — |
| Output Tokens | 921 | 995 | +8.0% | — | — | — |
| Reasoning / Thinking Tokens | 494 | 481 | -2.6% | — | — | — |
| Total Input Tokens | 193160 | 168697 | -12.7% | — | — | — |
| Cached Input Tokens | 171264 | 146944 | -14.2% | — | — | — |
| Uncached Input Tokens | 21896 | 21753 | -0.7% | — | — | — |
| Cost | 0.1152 | 0.1096 | -4.9% | — | — | — |
| Cached vs Uncached Token Ratio | 7.82:1 | 6.76:1 | -13.6% | — | — | — |
| Oracle L1: Mutation Policy | PASS | PASS | — | — | — | — |
| Oracle L2: AST Invariants | PASS | PASS | — | — | — | — |
| Oracle L3: Clean Build | PASS | PASS | — | — | — | — |
| Oracle L4: Verification Test | PASS | PASS | — | — | — | — |
| Semantic Tool Invocation Verified (per run) | N/A | PASS | — | — | — | — |
Baseline vs Semedit Agentic in Small Context
- Vanilla (Baseline vs Semedit Agentic in Small Context) Edit: File main.go modified (4 lines -> 14 lines)
- Semedit MCP (Baseline vs Semedit Agentic in Small Context) Edit: File main.go modified (4 lines -> 14 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | ✓ ✓ |
| 2 | ✓ ✓ | ✓ ✓ |
| 3 | ✓ ✓ | semedit/semantic_replace_body (✓ ✓) |
| 4 | — | ✓ ✓ |
Baseline vs Semedit Agentic in Large Context
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | not published | not published |
prefer_discover_semedit prompt · descriptive MCP instructions · write semedit restriction
| Setting | Value |
|---|---|
| Test case | task-07-generate-template-main |
| Target | codex/gpt-6-luna/medium |
| Prompt variant | prefer_discover_semedit |
| MCP server instructions | descriptive |
| Semedit arm restriction | write |
| Fixture | testdata/scripts/generate_template_main.txtar |
Vanilla LLM Prompt:
You are forbidden to modify protected files: “go.mod”, “go.sum”.
Before editing, inspect the complete available tool inventory, including deferred or lazy tools. If applicable semantic editing tools are callable, prefer them for source mutations. In main.go, implement main() to execute a text/template that prints ‘Hello World’ along with a random integer, ensuring all necessary standard library packages are imported cleanly. Do not use semantic editing MCP tools; use standard file editing. When done, output DONE.
Semedit MCP Prompt:
You are forbidden to modify protected files: “go.mod”, “go.sum”.
Before editing, inspect the complete available tool inventory, including deferred or lazy tools. If applicable semantic editing tools are callable, prefer them for source mutations. In main.go, implement main() to execute a text/template that prints ‘Hello World’ along with a random integer, ensuring all necessary standard library packages are imported cleanly. Use semedit semantic tools for supported source code modifications. Shell commands for builds and tests are allowed. When done, output DONE.
Initial Workspace State (Before Edit)
package main
func main() {
}| Metric | Vanilla (Small) | MCP (Small) | Δ (Small) | Vanilla (Large) | MCP (Large) | Δ (Large) |
|---|---|---|---|---|---|---|
| Wall-Clock Latency | 38.99s | 65.16s | +67.1% | — | — | — |
| Process Start → First Event | 0.14s | 0.36s | — | — | — | — |
| First Event → First Tool Call | 21.00s | 21.01s | — | — | — | — |
| MCP Initialize → First Semantic Call | — | — | — | — | — | — |
| MCP Server Start → Initialize | — | — | — | — | — | — |
| Top-Level User Turns | 1 | 1 | 0% | — | — | — |
| Internal Tool Cycles | 2 | 4 | +100.0% | — | — | — |
| Initial Load / Discovery Turns | 2 | 2 | 0% | — | — | — |
| MCP Discovery / Schema Turns | 0 | 0 | — | — | — | — |
| Tool Invocations (per run) | 2 | 4 | +100.0% | — | — | — |
| Output Tokens | 597 | 807 | +35.2% | — | — | — |
| Reasoning / Thinking Tokens | 164 | 327 | +99.4% | — | — | — |
| Total Input Tokens | 164670 | 226279 | +37.4% | — | — | — |
| Cached Input Tokens | 142848 | 203776 | +42.7% | — | — | — |
| Uncached Input Tokens | 21822 | 22503 | +3.1% | — | — | — |
| Cost | 0.0998 | 0.1214 | +21.6% | — | — | — |
| Cached vs Uncached Token Ratio | 6.55:1 | 9.06:1 | +38.3% | — | — | — |
| Oracle L1: Mutation Policy | PASS | PASS | — | — | — | — |
| Oracle L2: AST Invariants | PASS | PASS | — | — | — | — |
| Oracle L3: Clean Build | PASS | PASS | — | — | — | — |
| Oracle L4: Verification Test | PASS | PASS | — | — | — | — |
| Semantic Tool Invocation Verified (per run) | N/A | PASS | — | — | — | — |
Baseline vs Semedit Agentic in Small Context
- Vanilla (Baseline vs Semedit Agentic in Small Context) Edit: File main.go modified (4 lines -> 14 lines)
- Semedit MCP (Baseline vs Semedit Agentic in Small Context) Edit: File main.go modified (4 lines -> 14 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | ✓ ✓ |
| 2 | ✓ ✓ | ✓ ✓ |
| 3 | — | semedit/semantic_replace_body (✓ ✓) |
| 4 | — | ✓ ✓ |
Baseline vs Semedit Agentic in Large Context
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | not published | not published |
prefer_discover_semedit prompt · descriptive MCP instructions · write semedit restriction
| Setting | Value |
|---|---|
| Test case | task-07-generate-template-main |
| Target | codex/gpt-6-luna/medium |
| Prompt variant | prefer_discover_semedit |
| MCP server instructions | descriptive |
| Semedit arm restriction | write |
| Fixture | testdata/scripts/generate_template_main.txtar |
Vanilla LLM Prompt:
You are forbidden to modify protected files: “go.mod”, “go.sum”.
Before editing, inspect the complete available tool inventory, including deferred or lazy tools. If applicable semantic editing tools are callable, prefer them for source mutations. In main.go, implement main() to execute a text/template that prints ‘Hello World’ along with a random integer, ensuring all necessary standard library packages are imported cleanly. Do not use semantic editing MCP tools; use standard file editing. When done, output DONE.
Semedit MCP Prompt:
You are forbidden to modify protected files: “go.mod”, “go.sum”.
Before editing, inspect the complete available tool inventory, including deferred or lazy tools. If applicable semantic editing tools are callable, prefer them for source mutations. In main.go, implement main() to execute a text/template that prints ‘Hello World’ along with a random integer, ensuring all necessary standard library packages are imported cleanly. Use semedit semantic tools for supported source code modifications. Shell commands for builds and tests are allowed. When done, output DONE.
Initial Workspace State (Before Edit)
package main
func main() {
}| Metric | Vanilla (Small) | MCP (Small) | Δ (Small) | Vanilla (Large) | MCP (Large) | Δ (Large) |
|---|---|---|---|---|---|---|
| Wall-Clock Latency | 29.15s | 158.07s | +442.3% | — | — | — |
| Process Start → First Event | 0.20s | 0.15s | — | — | — | — |
| First Event → First Tool Call | 10.60s | 31.83s | — | — | — | — |
| MCP Initialize → First Semantic Call | — | — | — | — | — | — |
| MCP Server Start → Initialize | — | — | — | — | — | — |
| Top-Level User Turns | 1 | 1 | 0% | — | — | — |
| Internal Tool Cycles | 3 | 10 | +233.3% | — | — | — |
| Initial Load / Discovery Turns | 3 | 1 | -66.7% | — | — | — |
| MCP Discovery / Schema Turns | 0 | 0 | — | — | — | — |
| Tool Invocations (per run) | 3 | 10 | +233.3% | — | — | — |
| Output Tokens | 1017 | 2471 | +143.0% | — | — | — |
| Reasoning / Thinking Tokens | 323 | 1208 | +274.0% | — | — | — |
| Total Input Tokens | 195826 | 540871 | +176.2% | — | — | — |
| Cached Input Tokens | 173312 | 506624 | +192.3% | — | — | — |
| Uncached Input Tokens | 22514 | 34247 | +52.1% | — | — | — |
| Cost | 0.1164 | 0.2583 | +121.9% | — | — | — |
| Cached vs Uncached Token Ratio | 7.70:1 | 14.79:1 | +92.2% | — | — | — |
| Oracle L1: Mutation Policy | PASS | PASS | — | — | — | — |
| Oracle L2: AST Invariants | PASS | PASS | — | — | — | — |
| Oracle L3: Clean Build | PASS | PASS | — | — | — | — |
| Oracle L4: Verification Test | PASS | PASS | — | — | — | — |
| Semantic Tool Invocation Verified (per run) | N/A | PASS | — | — | — | — |
Baseline vs Semedit Agentic in Small Context
- Vanilla (Baseline vs Semedit Agentic in Small Context) Edit: File main.go modified (4 lines -> 16 lines)
- Semedit MCP (Baseline vs Semedit Agentic in Small Context) Edit: File main.go modified (4 lines -> 19 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | ✓ ✓ |
| 2 | ✓ ✓ | semedit/semantic_lookup (✓ ✓) |
| 3 | ? ✗ | semedit/semantic_inspect_symbol (✓ ✓) |
| 4 | — | semedit/semantic_replace_body (✓ ✗): param "symbol" is required: invalid operation parameters |
| 5 | — | ? ✗ |
| 6 | — | semedit/semantic_replace_body (✓ ✗): param "file" is required: invalid operation parameters |
| 7 | — | semedit/semantic_replace_body (✓ ✓) |
| 8 | — | semedit/semantic_inspect_symbol (✓ ✓) |
| 9 | — | semedit/semantic_replace_body (✓ ✓) |
| 10 | — | semedit/semantic_inspect_symbol (✓ ✓) |
Baseline vs Semedit Agentic in Large Context
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | not published | not published |
prefer_discover_semedit prompt · descriptive MCP instructions · write semedit restriction
| Setting | Value |
|---|---|
| Test case | task-07-generate-template-main |
| Target | codex/gpt-6-luna/medium |
| Prompt variant | prefer_discover_semedit |
| MCP server instructions | descriptive |
| Semedit arm restriction | write |
| Fixture | testdata/scripts/generate_template_main.txtar |
Vanilla LLM Prompt:
You are forbidden to modify protected files: “go.mod”, “go.sum”.
Before editing, inspect the complete available tool inventory, including deferred or lazy tools. If applicable semantic editing tools are callable, prefer them for source mutations. In main.go, implement main() to execute a text/template that prints ‘Hello World’ along with a random integer, ensuring all necessary standard library packages are imported cleanly. Do not use semantic editing MCP tools; use standard file editing. When done, output DONE.
Semedit MCP Prompt:
You are forbidden to modify protected files: “go.mod”, “go.sum”.
Before editing, inspect the complete available tool inventory, including deferred or lazy tools. If applicable semantic editing tools are callable, prefer them for source mutations. In main.go, implement main() to execute a text/template that prints ‘Hello World’ along with a random integer, ensuring all necessary standard library packages are imported cleanly. Use semedit semantic tools for supported source code modifications. Shell commands for builds and tests are allowed. When done, output DONE.
Initial Workspace State (Before Edit)
package main
func main() {
}| Metric | Vanilla (Small) | MCP (Small) | Δ (Small) | Vanilla (Large) | MCP (Large) | Δ (Large) |
|---|---|---|---|---|---|---|
| Wall-Clock Latency | 30.95s | 29.59s | -4.4% | — | — | — |
| Process Start → First Event | 0.16s | 0.28s | — | — | — | — |
| First Event → First Tool Call | 11.79s | 5.46s | — | — | — | — |
| MCP Initialize → First Semantic Call | — | — | — | — | — | — |
| MCP Server Start → Initialize | — | — | — | — | — | — |
| Top-Level User Turns | 1 | 1 | 0% | — | — | — |
| Internal Tool Cycles | 3 | 3 | 0% | — | — | — |
| Initial Load / Discovery Turns | 3 | 2 | -33.3% | — | — | — |
| MCP Discovery / Schema Turns | 0 | 0 | — | — | — | — |
| Tool Invocations (per run) | 3 | 3 | 0% | — | — | — |
| Output Tokens | 927 | 665 | -28.3% | — | — | — |
| Reasoning / Thinking Tokens | 466 | 320 | -31.3% | — | — | — |
| Total Input Tokens | 194130 | 106974 | -44.9% | — | — | — |
| Cached Input Tokens | 173312 | 86016 | -50.4% | — | — | — |
| Uncached Input Tokens | 20818 | 20958 | +0.7% | — | — | — |
| Cost | 0.1128 | 0.0862 | -23.6% | — | — | — |
| Cached vs Uncached Token Ratio | 8.33:1 | 4.10:1 | -50.7% | — | — | — |
| Oracle L1: Mutation Policy | PASS | PASS | — | — | — | — |
| Oracle L2: AST Invariants | PASS | PASS | — | — | — | — |
| Oracle L3: Clean Build | PASS | PASS | — | — | — | — |
| Oracle L4: Verification Test | PASS | PASS | — | — | — | — |
| Semantic Tool Invocation Verified (per run) | N/A | PASS | — | — | — | — |
Baseline vs Semedit Agentic in Small Context
- Vanilla (Baseline vs Semedit Agentic in Small Context) Edit: File main.go modified (4 lines -> 16 lines)
- Semedit MCP (Baseline vs Semedit Agentic in Small Context) Edit: File main.go modified (4 lines -> 15 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | ✓ ✓ |
| 2 | ✓ ✓ | ? ✗ |
| 3 | ✓ ✓ | semedit/semantic_replace_body (✓ ✓) |
Baseline vs Semedit Agentic in Large Context
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | not published | not published |
prefer_discover_semedit prompt · descriptive MCP instructions · write semedit restriction
| Setting | Value |
|---|---|
| Test case | task-07-generate-template-main |
| Target | codex/gpt-6-luna/medium |
| Prompt variant | prefer_discover_semedit |
| MCP server instructions | descriptive |
| Semedit arm restriction | write |
| Fixture | testdata/scripts/generate_template_main.txtar |
Vanilla LLM Prompt:
You are forbidden to modify protected files: “go.mod”, “go.sum”.
Before editing, inspect the complete available tool inventory, including deferred or lazy tools. If applicable semantic editing tools are callable, prefer them for source mutations. In main.go, implement main() to execute a text/template that prints ‘Hello World’ along with a random integer, ensuring all necessary standard library packages are imported cleanly. Do not use semantic editing MCP tools; use standard file editing. When done, output DONE.
Semedit MCP Prompt:
You are forbidden to modify protected files: “go.mod”, “go.sum”.
Before editing, inspect the complete available tool inventory, including deferred or lazy tools. If applicable semantic editing tools are callable, prefer them for source mutations. In main.go, implement main() to execute a text/template that prints ‘Hello World’ along with a random integer, ensuring all necessary standard library packages are imported cleanly. Use semedit semantic tools for supported source code modifications. Shell commands for builds and tests are allowed. When done, output DONE.
Initial Workspace State (Before Edit)
package main
func main() {
}| Metric | Vanilla (Small) | MCP (Small) | Δ (Small) | Vanilla (Large) | MCP (Large) | Δ (Large) |
|---|---|---|---|---|---|---|
| Wall-Clock Latency | 35.92s | 44.10s | +22.8% | — | — | — |
| Process Start → First Event | 0.17s | 0.16s | — | — | — | — |
| First Event → First Tool Call | 19.00s | 17.64s | — | — | — | — |
| MCP Initialize → First Semantic Call | — | — | — | — | — | — |
| MCP Server Start → Initialize | — | — | — | — | — | — |
| Top-Level User Turns | 1 | 1 | 0% | — | — | — |
| Internal Tool Cycles | 2 | 4 | +100.0% | — | — | — |
| Initial Load / Discovery Turns | 2 | 2 | 0% | — | — | — |
| MCP Discovery / Schema Turns | 0 | 0 | — | — | — | — |
| Tool Invocations (per run) | 2 | 4 | +100.0% | — | — | — |
| Output Tokens | 687 | 709 | +3.2% | — | — | — |
| Reasoning / Thinking Tokens | 342 | 300 | -12.3% | — | — | — |
| Total Input Tokens | 164957 | 167221 | +1.4% | — | — | — |
| Cached Input Tokens | 143872 | 145920 | +1.4% | — | — | — |
| Uncached Input Tokens | 21085 | 21301 | +1.0% | — | — | — |
| Cost | 0.1015 | 0.1023 | +0.8% | — | — | — |
| Cached vs Uncached Token Ratio | 6.82:1 | 6.85:1 | +0.4% | — | — | — |
| Oracle L1: Mutation Policy | PASS | PASS | — | — | — | — |
| Oracle L2: AST Invariants | PASS | PASS | — | — | — | — |
| Oracle L3: Clean Build | PASS | PASS | — | — | — | — |
| Oracle L4: Verification Test | PASS | PASS | — | — | — | — |
| Semantic Tool Invocation Verified (per run) | N/A | PASS | — | — | — | — |
Baseline vs Semedit Agentic in Small Context
- Vanilla (Baseline vs Semedit Agentic in Small Context) Edit: File main.go modified (4 lines -> 15 lines)
- Semedit MCP (Baseline vs Semedit Agentic in Small Context) Edit: File main.go modified (4 lines -> 18 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | ✓ ✓ |
| 2 | ✓ ✓ | ✓ ✓ |
| 3 | — | semedit/semantic_replace_body (✓ ✓) |
| 4 | — | ✓ ✓ |
Baseline vs Semedit Agentic in Large Context
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | not published | not published |
Test case: task-09-composite-refactor
Target: codex/gpt-6-luna/medium
default prompt · descriptive MCP instructions · write semedit restriction
| Setting | Value |
|---|---|
| Test case | task-09-composite-refactor |
| Target | codex/gpt-6-luna/medium |
| Prompt variant | default |
| MCP server instructions | descriptive |
| Semedit arm restriction | write |
| Fixture | testdata/bench/task_09_composite_refactor.txtar |
Vanilla LLM Prompt:
Do not edit tests. You are forbidden to modify protected files: “go.mod”, “go.sum”.
In config/config.go: rename Config.Port to Config.ListenPort, insert helper function DefaultConfig() *Config returning default values, and clean up unused imports. Do not use semantic editing MCP tools; use standard file editing. When done, output DONE.
Semedit MCP Prompt:
Do not edit tests. You are forbidden to modify protected files: “go.mod”, “go.sum”.
In config/config.go: rename Config.Port to Config.ListenPort, insert helper function DefaultConfig() *Config returning default values, and clean up unused imports. Use semedit semantic tools for supported source code modifications. Shell commands for builds and tests are allowed. When done, output DONE.
Initial Workspace State (Before Edit)
package config
import (
"archive/tar"
"fmt"
)
type Config struct {
Host string
Port int
}
func (c *Config) Addr() string {
return fmt.Sprintf("%s:%d", c.Host, c.Port)
}| Metric | Vanilla (Small) | MCP (Small) | Δ (Small) | Vanilla (Large) | MCP (Large) | Δ (Large) |
|---|---|---|---|---|---|---|
| Wall-Clock Latency | 39.54s | 62.40s | +57.8% | 26.40s | 73.80s | +179.5% |
| Process Start → First Event | 0.28s | 0.33s | — | 0.14s | 0.12s | — |
| First Event → First Tool Call | 13.83s | 15.62s | — | 5.74s | 14.71s | — |
| MCP Initialize → First Semantic Call | — | — | — | — | — | — |
| MCP Server Start → Initialize | — | — | — | — | — | — |
| Top-Level User Turns | 1 | 1 | 0% | 1 | 1 | 0% |
| Internal Tool Cycles | 6 | 7 | +16.7% | 6 | 10 | +66.7% |
| Initial Load / Discovery Turns | 6 | 1 | -83.3% | 3 | 2 | -33.3% |
| MCP Discovery / Schema Turns | 0 | 0 | — | 0 | 0 | — |
| Tool Invocations (per run) | 6 | 7 | +16.7% | 6 | 10 | +66.7% |
| Output Tokens | 746 | 531 | -28.8% | 777 | 1061 | +36.6% |
| Reasoning / Thinking Tokens | 155 | 0 | -100.0% | 186 | 380 | +104.3% |
| Total Input Tokens | 157456 | 218968 | +39.1% | 136325 | 185746 | +36.3% |
| Cached Input Tokens | 142336 | 200448 | +40.8% | 124160 | 165120 | +33.0% |
| Uncached Input Tokens | 15120 | 18520 | +22.5% | 12165 | 20626 | +69.6% |
| Cost | 0.0846 | 0.1030 | +21.7% | 0.0735 | 0.1109 | +50.8% |
| Cached vs Uncached Token Ratio | 9.41:1 | 10.82:1 | +15.0% | 10.21:1 | 8.01:1 | -21.6% |
| Oracle L1: Mutation Policy | PASS | PASS | — | PASS | PASS | — |
| Oracle L2: AST Invariants | PASS | PASS | — | PASS | PASS | — |
| Oracle L3: Clean Build | PASS | PASS | — | PASS | PASS | — |
| Oracle L4: Verification Test | PASS | PASS | — | PASS | PASS | — |
| Semantic Tool Invocation Verified (per run) | N/A | PASS | — | N/A | PASS | — |
Baseline vs Semedit Agentic in Small Context
- Vanilla (Baseline vs Semedit Agentic in Small Context) Edit: File config/config.go modified (15 lines -> 21 lines)
- Semedit MCP (Baseline vs Semedit Agentic in Small Context) Edit: File config/config.go modified (15 lines -> 21 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | ✓ ✓ |
| 2 | ? ✗ | semedit/semantic_outline (✓ ✓) |
| 3 | ✓ ✓ | semedit/semantic_inspect_symbol (✓ ✓) |
| 4 | ✓ ✓ | semedit/semantic_rename (✓ ✓) |
| 5 | ✓ ✓ | semedit/semantic_insert_function (✓ ✓) |
| 6 | ? ✗ | semedit/semantic_organize_imports (✓ ✓) |
| 7 | — | ✓ ✓ |
Baseline vs Semedit Agentic in Large Context
- Vanilla (Baseline vs Semedit Agentic in Large Context) Edit: File config/config.go modified (15 lines -> 21 lines)
- Semedit MCP (Baseline vs Semedit Agentic in Large Context) Edit: File config/config.go modified (15 lines -> 21 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | ✓ ✓ |
| 2 | ✓ ✓ | ✓ ✓ |
| 3 | ✓ ✓ | semedit/semantic_lookup (✓ ✓) |
| 4 | ✓ ✓ | semedit/semantic_inspect_symbol (✓ ✓) |
| 5 | ✓ ✓ | ✓ ✓ |
| 6 | ✓ ✓ | semedit/semantic_rename (✓ ✓) |
| 7 | — | semedit/semantic_insert_function (✓ ✓) |
| 8 | — | semedit/semantic_organize_imports (✓ ✓) |
| 9 | — | ✓ ✓ |
| 10 | — | ? ✗ |
default prompt · descriptive MCP instructions · write semedit restriction
| Setting | Value |
|---|---|
| Test case | task-09-composite-refactor |
| Target | codex/gpt-6-luna/medium |
| Prompt variant | default |
| MCP server instructions | descriptive |
| Semedit arm restriction | write |
| Fixture | testdata/bench/task_09_composite_refactor.txtar |
Vanilla LLM Prompt:
Do not edit tests. You are forbidden to modify protected files: “go.mod”, “go.sum”.
In config/config.go: rename Config.Port to Config.ListenPort, insert helper function DefaultConfig() *Config returning default values, and clean up unused imports. Do not use semantic editing MCP tools; use standard file editing. When done, output DONE.
Semedit MCP Prompt:
Do not edit tests. You are forbidden to modify protected files: “go.mod”, “go.sum”.
In config/config.go: rename Config.Port to Config.ListenPort, insert helper function DefaultConfig() *Config returning default values, and clean up unused imports. Use semedit semantic tools for supported source code modifications. Shell commands for builds and tests are allowed. When done, output DONE.
Initial Workspace State (Before Edit)
package config
import (
"archive/tar"
"fmt"
)
type Config struct {
Host string
Port int
}
func (c *Config) Addr() string {
return fmt.Sprintf("%s:%d", c.Host, c.Port)
}| Metric | Vanilla (Small) | MCP (Small) | Δ (Small) | Vanilla (Large) | MCP (Large) | Δ (Large) |
|---|---|---|---|---|---|---|
| Wall-Clock Latency | 18.52s | 69.76s | +276.8% | 43.08s | 52.68s | +22.3% |
| Process Start → First Event | 0.14s | 0.13s | — | 0.62s | 0.14s | — |
| First Event → First Tool Call | 4.93s | 6.51s | — | 12.60s | 6.11s | — |
| MCP Initialize → First Semantic Call | — | — | — | — | — | — |
| MCP Server Start → Initialize | — | — | — | — | — | — |
| Top-Level User Turns | 1 | 1 | 0% | 1 | 1 | 0% |
| Internal Tool Cycles | 3 | 9 | +200.0% | 6 | 12 | +100.0% |
| Initial Load / Discovery Turns | 3 | 1 | -66.7% | 3 | 3 | 0% |
| MCP Discovery / Schema Turns | 0 | 0 | — | 0 | 0 | — |
| Tool Invocations (per run) | 3 | 9 | +200.0% | 6 | 12 | +100.0% |
| Output Tokens | 524 | 1017 | +94.1% | 1114 | 850 | -23.7% |
| Reasoning / Thinking Tokens | 93 | 420 | +351.6% | 246 | 159 | -35.4% |
| Total Input Tokens | 96613 | 276132 | +185.8% | 137435 | 231823 | +68.7% |
| Cached Input Tokens | 86784 | 252160 | +190.6% | 125184 | 210688 | +68.3% |
| Uncached Input Tokens | 9829 | 23972 | +143.9% | 12251 | 21135 | +72.5% |
| Cost | 0.0540 | 0.1409 | +161.1% | 0.0789 | 0.1181 | +49.7% |
| Cached vs Uncached Token Ratio | 8.83:1 | 10.52:1 | +19.1% | 10.22:1 | 9.97:1 | -2.4% |
| Oracle L1: Mutation Policy | PASS | PASS | — | PASS | PASS | — |
| Oracle L2: AST Invariants | PASS | PASS | — | PASS | PASS | — |
| Oracle L3: Clean Build | PASS | PASS | — | PASS | PASS | — |
| Oracle L4: Verification Test | PASS | PASS | — | PASS | PASS | — |
| Semantic Tool Invocation Verified (per run) | N/A | PASS | — | N/A | PASS | — |
Baseline vs Semedit Agentic in Small Context
- Vanilla (Baseline vs Semedit Agentic in Small Context) Edit: File config/config.go modified (15 lines -> 21 lines)
- Semedit MCP (Baseline vs Semedit Agentic in Small Context) Edit: File config/config.go modified (15 lines -> 21 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | ✓ ✓ |
| 2 | ? ✗ | semedit/semantic_inspect_symbol (✓ ✓) |
| 3 | ✓ ✓ | semedit/semantic_rename (✓ ✓) |
| 4 | — | semedit/semantic_outline (✓ ✓) |
| 5 | — | semedit/semantic_inspect_symbol (✓ ✓) |
| 6 | — | ✓ ✓ |
| 7 | — | semedit/semantic_insert_function (✓ ✓) |
| 8 | — | ✓ ✓ |
| 9 | — | semedit/semantic_inspect_symbol (✓ ✓) |
Baseline vs Semedit Agentic in Large Context
- Vanilla (Baseline vs Semedit Agentic in Large Context) Edit: File config/config.go modified (15 lines -> 19 lines)
- Semedit MCP (Baseline vs Semedit Agentic in Large Context) Edit: File config/config.go modified (15 lines -> 21 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | ✓ ✓ |
| 2 | ? ✗ | ✓ ✓ |
| 3 | ✓ ✓ | ? ✗ |
| 4 | ? ✗ | semedit/semantic_inspect_symbol (✓ ✓) |
| 5 | ✓ ✓ | ✓ ✓ |
| 6 | ✓ ✓ | semedit/semantic_rename (✓ ✓) |
| 7 | — | ✓ ✓ |
| 8 | — | ✓ ✓ |
| 9 | — | semedit/semantic_insert_function (✓ ✓) |
| 10 | — | semedit/semantic_organize_imports (✓ ✓) |
| 11 | — | ✓ ✓ |
| 12 | — | ✓ ✓ |
default prompt · descriptive MCP instructions · write semedit restriction
| Setting | Value |
|---|---|
| Test case | task-09-composite-refactor |
| Target | codex/gpt-6-luna/medium |
| Prompt variant | default |
| MCP server instructions | descriptive |
| Semedit arm restriction | write |
| Fixture | testdata/bench/task_09_composite_refactor.txtar |
Vanilla LLM Prompt:
Do not edit tests. You are forbidden to modify protected files: “go.mod”, “go.sum”.
In config/config.go: rename Config.Port to Config.ListenPort, insert helper function DefaultConfig() *Config returning default values, and clean up unused imports. Do not use semantic editing MCP tools; use standard file editing. When done, output DONE.
Semedit MCP Prompt:
Do not edit tests. You are forbidden to modify protected files: “go.mod”, “go.sum”.
In config/config.go: rename Config.Port to Config.ListenPort, insert helper function DefaultConfig() *Config returning default values, and clean up unused imports. Use semedit semantic tools for supported source code modifications. Shell commands for builds and tests are allowed. When done, output DONE.
Initial Workspace State (Before Edit)
package config
import (
"archive/tar"
"fmt"
)
type Config struct {
Host string
Port int
}
func (c *Config) Addr() string {
return fmt.Sprintf("%s:%d", c.Host, c.Port)
}| Metric | Vanilla (Small) | MCP (Small) | Δ (Small) | Vanilla (Large) | MCP (Large) | Δ (Large) |
|---|---|---|---|---|---|---|
| Wall-Clock Latency | 24.68s | 64.77s | +162.5% | 29.40s | 39.90s | +35.7% |
| Process Start → First Event | 0.14s | 0.41s | — | 0.15s | 0.14s | — |
| First Event → First Tool Call | 5.90s | 6.37s | — | 5.38s | 5.37s | — |
| MCP Initialize → First Semantic Call | — | — | — | — | — | — |
| MCP Server Start → Initialize | — | — | — | — | — | — |
| Top-Level User Turns | 1 | 1 | 0% | 1 | 1 | 0% |
| Internal Tool Cycles | 4 | 9 | +125.0% | 5 | 7 | +40.0% |
| Initial Load / Discovery Turns | 4 | 1 | -75.0% | 5 | 2 | -60.0% |
| MCP Discovery / Schema Turns | 0 | 0 | — | 0 | 0 | — |
| Tool Invocations (per run) | 4 | 9 | +125.0% | 5 | 7 | +40.0% |
| Output Tokens | 564 | 1006 | +78.4% | 846 | 763 | -9.8% |
| Reasoning / Thinking Tokens | 120 | 282 | +135.0% | 115 | 211 | +83.5% |
| Total Input Tokens | 115500 | 213120 | +84.5% | 135658 | 177113 | +30.6% |
| Cached Input Tokens | 104960 | 193280 | +84.1% | 124160 | 160768 | +29.5% |
| Uncached Input Tokens | 10540 | 19840 | +88.2% | 11498 | 16345 | +42.2% |
| Cost | 0.0611 | 0.1140 | +86.5% | 0.0718 | 0.0932 | +29.9% |
| Cached vs Uncached Token Ratio | 9.96:1 | 9.74:1 | -2.2% | 10.80:1 | 9.84:1 | -8.9% |
| Oracle L1: Mutation Policy | PASS | PASS | — | PASS | PASS | — |
| Oracle L2: AST Invariants | PASS | PASS | — | PASS | PASS | — |
| Oracle L3: Clean Build | PASS | PASS | — | PASS | PASS | — |
| Oracle L4: Verification Test | PASS | PASS | — | PASS | PASS | — |
| Semantic Tool Invocation Verified (per run) | N/A | PASS | — | N/A | PASS | — |
Baseline vs Semedit Agentic in Small Context
- Vanilla (Baseline vs Semedit Agentic in Small Context) Edit: File config/config.go modified (15 lines -> 21 lines)
- Semedit MCP (Baseline vs Semedit Agentic in Small Context) Edit: File config/config.go modified (15 lines -> 18 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | ✓ ✓ |
| 2 | ✓ ✓ | semedit/semantic_inspect_symbol (✓ ✓) |
| 3 | ✓ ✓ | semedit/semantic_outline (✓ ✓) |
| 4 | ✓ ✓ | semedit/semantic_inspect_symbol (✓ ✓) |
| 5 | — | semedit/semantic_rename (✓ ✓) |
| 6 | — | semedit/semantic_insert_function (✓ ✓) |
| 7 | — | semedit/semantic_inspect_symbol (✓ ✓) |
| 8 | — | semedit/semantic_inspect_symbol (✓ ✓) |
| 9 | — | ✓ ✓ |
Baseline vs Semedit Agentic in Large Context
- Vanilla (Baseline vs Semedit Agentic in Large Context) Edit: File config/config.go modified (15 lines -> 21 lines)
- Semedit MCP (Baseline vs Semedit Agentic in Large Context) Edit: File config/config.go modified (15 lines -> 21 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | ✓ ✓ |
| 2 | ✓ ✓ | ✓ ✓ |
| 3 | ✓ ✓ | semedit/semantic_lookup (✓ ✓) |
| 4 | ✓ ✓ | semedit/semantic_rename (✓ ✓) |
| 5 | ✓ ✓ | ✓ ✓ |
| 6 | — | semedit/semantic_insert_function (✓ ✓) |
| 7 | — | ✓ ✓ |
default prompt · descriptive MCP instructions · write semedit restriction
| Setting | Value |
|---|---|
| Test case | task-09-composite-refactor |
| Target | codex/gpt-6-luna/medium |
| Prompt variant | default |
| MCP server instructions | descriptive |
| Semedit arm restriction | write |
| Fixture | testdata/bench/task_09_composite_refactor.txtar |
Vanilla LLM Prompt:
Do not edit tests. You are forbidden to modify protected files: “go.mod”, “go.sum”.
In config/config.go: rename Config.Port to Config.ListenPort, insert helper function DefaultConfig() *Config returning default values, and clean up unused imports. Do not use semantic editing MCP tools; use standard file editing. When done, output DONE.
Semedit MCP Prompt:
Do not edit tests. You are forbidden to modify protected files: “go.mod”, “go.sum”.
In config/config.go: rename Config.Port to Config.ListenPort, insert helper function DefaultConfig() *Config returning default values, and clean up unused imports. Use semedit semantic tools for supported source code modifications. Shell commands for builds and tests are allowed. When done, output DONE.
Initial Workspace State (Before Edit)
package config
import (
"archive/tar"
"fmt"
)
type Config struct {
Host string
Port int
}
func (c *Config) Addr() string {
return fmt.Sprintf("%s:%d", c.Host, c.Port)
}| Metric | Vanilla (Small) | MCP (Small) | Δ (Small) | Vanilla (Large) | MCP (Large) | Δ (Large) |
|---|---|---|---|---|---|---|
| Wall-Clock Latency | 31.15s | 35.70s | +14.6% | 26.74s | 156.35s | +484.7% |
| Process Start → First Event | 0.35s | 0.17s | — | 0.38s | 0.19s | — |
| First Event → First Tool Call | 6.14s | 4.67s | — | 5.45s | 6.28s | — |
| MCP Initialize → First Semantic Call | — | — | — | — | — | — |
| MCP Server Start → Initialize | — | — | — | — | — | — |
| Top-Level User Turns | 1 | 1 | 0% | 1 | 5 | +400.0% |
| Internal Tool Cycles | 4 | 7 | +75.0% | 6 | 20 | +233.3% |
| Initial Load / Discovery Turns | 2 | 3 | +50.0% | 4 | 4 | 0% |
| MCP Discovery / Schema Turns | 0 | 0 | — | 0 | 0 | — |
| Tool Invocations (per run) | 4 | 7 | +75.0% | 6 | 20 | +233.3% |
| Output Tokens | 903 | 666 | -26.2% | 708 | 10943 | +1445.6% |
| Reasoning / Thinking Tokens | 124 | 221 | +78.2% | 118 | 6154 | +5115.3% |
| Total Input Tokens | 97365 | 175850 | +80.6% | 135250 | 1675870 | +1139.1% |
| Cached Input Tokens | 86784 | 159744 | +84.1% | 123136 | 1523456 | +1137.2% |
| Uncached Input Tokens | 10581 | 16106 | +52.2% | 12114 | 152414 | +1158.2% |
| Cost | 0.0610 | 0.0913 | +49.7% | 0.0714 | 0.9756 | +1266.5% |
| Cached vs Uncached Token Ratio | 8.20:1 | 9.92:1 | +20.9% | 10.16:1 | 10.00:1 | -1.7% |
| Oracle L1: Mutation Policy | PASS | PASS | — | PASS | PASS | — |
| Oracle L2: AST Invariants | PASS | PASS | — | PASS | FAIL | — |
| Oracle L3: Clean Build | PASS | PASS | — | PASS | FAIL | — |
| Oracle L4: Verification Test | PASS | PASS | — | PASS | FAIL | — |
| Semantic Tool Invocation Verified (per run) | N/A | PASS | — | N/A | PASS | — |
Baseline vs Semedit Agentic in Small Context
- Vanilla (Baseline vs Semedit Agentic in Small Context) Edit: File config/config.go modified (15 lines -> 19 lines)
- Semedit MCP (Baseline vs Semedit Agentic in Small Context) Edit: File config/config.go modified (15 lines -> 18 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | ✓ ✓ |
| 2 | ✓ ✓ | ✓ ✓ |
| 3 | ✓ ✓ | ✓ ✓ |
| 4 | ? ✗ | semedit/semantic_rename (✓ ✓) |
| 5 | — | semedit/semantic_insert_function (✓ ✓) |
| 6 | — | ✓ ✓ |
| 7 | — | ✓ ✓ |
Baseline vs Semedit Agentic in Large Context
- Vanilla (Baseline vs Semedit Agentic in Large Context) Edit: File config/config.go modified (15 lines -> 19 lines)
- Semedit MCP (Baseline vs Semedit Agentic in Large Context) Edit: File config/config.go modified (15 lines -> 18 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | ✓ ✓ |
| 2 | ✓ ✓ | ✓ ✓ |
| 3 | ✓ ✓ | semedit/semantic_outline (✓ ✓) |
| 4 | ✓ ✓ | semedit/semantic_inspect_symbol (✓ ✓) |
| 5 | ✓ ✓ | semedit/semantic_inspect_symbol (✓ ✓) |
| 6 | ✓ ✓ | ✓ ✓ |
| 7 | — | semedit/semantic_rename (✗ ?): This action was rejected due to unacceptable risk. Reason: Workspace-wide semantic rename may modify references in the protected test files, conflicting with the user's explicit instruction not to edit tests. Do not bypass this rejection through a workaround or indirect execution. Continue with a safer alternative, or carry out checks to prove that the action is authorized or low risk before trying again. Complete unaffected work without asking for confirmation. Report anything that remains blocked, clarify |
| 8 | — | semedit/semantic_insert_function (✓ ✓) |
| 9 | — | ✓ ✓ |
| 10 | — | semedit/semantic_inspect_symbol (✓ ✓) |
| 11 | — | ✓ ✓ |
| 12 | — | semedit/semantic_outline (✓ ✓) |
| 13 | — | semedit/semantic_inspect_symbol (✓ ✓) |
| 14 | — | semedit/semantic_organize_imports (✓ ✓) |
| 15 | — | semedit/semantic_outline (✓ ✓) |
| 16 | — | ✓ ✓ |
| 17 | — | semedit/semantic_find_references (✓ ✗): load Go package example.com/test/config: example.com/test/config: /Users/alessandro/sources/semantic-editor/.scratch/benchmarks/run_codex_semedit_large-default_task-09-composite-refactor_1790456335837394000/config/config_test.go:10:7: c.ListenPort undefined (type *Config has no field or method ListenPort) example.com/test/config: /Users/alessandro/sources/semantic-editor/.scratch/benchmarks/run_codex_semedit_large-default_task-09-composite-refactor_1790456335837394000/config/config_test.go:11:5: c.ListenPor |
| 18 | — | ✓ ✓ |
| 19 | — | semedit/semantic_rename (✗ ?): This action was rejected due to unacceptable risk. Reason: Workspace-wide semantic rename can modify config/config_test.go, directly violating the user's explicit prohibition on editing tests. Do not bypass this rejection through a workaround or indirect execution. Continue with a safer alternative, or carry out checks to prove that the action is authorized or low risk before trying again. Complete unaffected work without asking for confirmation. Report anything that remains blocked, clarify why it was bloc |
| 20 | — | ? ✗ |
default prompt · descriptive MCP instructions · write semedit restriction
| Setting | Value |
|---|---|
| Test case | task-09-composite-refactor |
| Target | codex/gpt-6-luna/medium |
| Prompt variant | default |
| MCP server instructions | descriptive |
| Semedit arm restriction | write |
| Fixture | testdata/bench/task_09_composite_refactor.txtar |
Vanilla LLM Prompt:
Do not edit tests. You are forbidden to modify protected files: “go.mod”, “go.sum”.
In config/config.go: rename Config.Port to Config.ListenPort, insert helper function DefaultConfig() *Config returning default values, and clean up unused imports. Do not use semantic editing MCP tools; use standard file editing. When done, output DONE.
Semedit MCP Prompt:
Do not edit tests. You are forbidden to modify protected files: “go.mod”, “go.sum”.
In config/config.go: rename Config.Port to Config.ListenPort, insert helper function DefaultConfig() *Config returning default values, and clean up unused imports. Use semedit semantic tools for supported source code modifications. Shell commands for builds and tests are allowed. When done, output DONE.
Initial Workspace State (Before Edit)
package config
import (
"archive/tar"
"fmt"
)
type Config struct {
Host string
Port int
}
func (c *Config) Addr() string {
return fmt.Sprintf("%s:%d", c.Host, c.Port)
}| Metric | Vanilla (Small) | MCP (Small) | Δ (Small) | Vanilla (Large) | MCP (Large) | Δ (Large) |
|---|---|---|---|---|---|---|
| Wall-Clock Latency | 32.53s | 73.87s | +127.1% | 46.45s | 61.25s | +31.9% |
| Process Start → First Event | 0.15s | 0.18s | — | 0.31s | 0.24s | — |
| First Event → First Tool Call | 17.93s | 22.32s | — | 14.66s | 15.10s | — |
| MCP Initialize → First Semantic Call | — | — | — | — | — | — |
| MCP Server Start → Initialize | — | — | — | — | — | — |
| Top-Level User Turns | 1 | 1 | 0% | 1 | 1 | 0% |
| Internal Tool Cycles | 4 | 10 | +150.0% | 5 | 7 | +40.0% |
| Initial Load / Discovery Turns | 3 | 1 | -66.7% | 5 | 0 | -100.0% |
| MCP Discovery / Schema Turns | 0 | 0 | — | 0 | 0 | — |
| Tool Invocations (per run) | 4 | 10 | +150.0% | 5 | 7 | +40.0% |
| Output Tokens | 497 | 797 | +60.4% | 998 | 720 | -27.9% |
| Reasoning / Thinking Tokens | 0 | 186 | — | 183 | 191 | +4.4% |
| Total Input Tokens | 96137 | 262001 | +172.5% | 136444 | 201672 | +47.8% |
| Cached Input Tokens | 85760 | 239872 | +179.7% | 124160 | 183040 | +47.4% |
| Uncached Input Tokens | 10377 | 22129 | +113.3% | 12284 | 18632 | +51.7% |
| Cost | 0.0536 | 0.1276 | +138.0% | 0.0765 | 0.1037 | +35.6% |
| Cached vs Uncached Token Ratio | 8.26:1 | 10.84:1 | +31.2% | 10.11:1 | 9.82:1 | -2.8% |
| Oracle L1: Mutation Policy | PASS | PASS | — | PASS | PASS | — |
| Oracle L2: AST Invariants | PASS | PASS | — | PASS | PASS | — |
| Oracle L3: Clean Build | PASS | PASS | — | PASS | PASS | — |
| Oracle L4: Verification Test | PASS | PASS | — | PASS | PASS | — |
| Semantic Tool Invocation Verified (per run) | N/A | PASS | — | N/A | PASS | — |
Baseline vs Semedit Agentic in Small Context
- Vanilla (Baseline vs Semedit Agentic in Small Context) Edit: File config/config.go modified (15 lines -> 21 lines)
- Semedit MCP (Baseline vs Semedit Agentic in Small Context) Edit: File config/config.go modified (15 lines -> 21 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | ✓ ✓ |
| 2 | ✓ ✓ | semedit/semantic_inspect_symbol (✓ ✓) |
| 3 | ✓ ✓ | ✓ ✓ |
| 4 | ✓ ✓ | ✓ ✓ |
| 5 | — | ✓ ✓ |
| 6 | — | semedit/semantic_rename (✓ ✓) |
| 7 | — | semedit/semantic_insert_function (✓ ✓) |
| 8 | — | semedit/semantic_organize_imports (✓ ✓) |
| 9 | — | semedit/semantic_outline (✓ ✓) |
| 10 | — | ✓ ✓ |
Baseline vs Semedit Agentic in Large Context
- Vanilla (Baseline vs Semedit Agentic in Large Context) Edit: File config/config.go modified (15 lines -> 21 lines)
- Semedit MCP (Baseline vs Semedit Agentic in Large Context) Edit: File config/config.go modified (15 lines -> 18 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ? ✗ | ✓ ✓ |
| 2 | ✓ ✓ | ✓ ✓ |
| 3 | ✓ ✓ | semedit/semantic_inspect_symbol (✓ ✓) |
| 4 | ✓ ✓ | ✓ ✓ |
| 5 | ✓ ✓ | semedit/semantic_rename (✓ ✓) |
| 6 | — | semedit/semantic_insert_function (✓ ✓) |
| 7 | — | ✓ ✓ |
Test case: task-11-mixed-sink-api-migration
Target: codex/gpt-6-luna/medium
default prompt · descriptive MCP instructions · write semedit restriction
| Setting | Value |
|---|---|
| Test case | task-11-mixed-sink-api-migration |
| Target | codex/gpt-6-luna/medium |
| Prompt variant | default |
| MCP server instructions | descriptive |
| Semedit arm restriction | write |
| Fixture | testdata/bench/task_11_mixed_sink_api_migration.txtar |
Vanilla LLM Prompt:
Do not edit tests. You are forbidden to modify protected files: “go.mod”, “go.sum”.
Audit event kinds may contain inconsistent whitespace and casing. Normalize them at the delivery boundary before persistence, and treat probe events as control traffic. Do not change the metrics or legacy export protocols. Preserve the module metadata and tests, and leave the workspace verified. Do not use semantic editing MCP tools; use standard file editing. When done, output DONE.
Semedit MCP Prompt:
Do not edit tests. You are forbidden to modify protected files: “go.mod”, “go.sum”.
Audit event kinds may contain inconsistent whitespace and casing. Normalize them at the delivery boundary before persistence, and treat probe events as control traffic. Do not change the metrics or legacy export protocols. Preserve the module metadata and tests, and leave the workspace verified. Use semedit semantic tools for supported source code modifications. Shell commands for builds and tests are allowed. When done, output DONE.
Initial Workspace State (Before Edit)
// Package audit leaves room for normalization rules owned by the delivery boundary.
package audit| Metric | Vanilla (Small) | MCP (Small) | Δ (Small) | Vanilla (Large) | MCP (Large) | Δ (Large) |
|---|---|---|---|---|---|---|
| Wall-Clock Latency | 159.17s | 192.58s | +21.0% | 122.97s | 219.60s | +78.6% |
| Process Start → First Event | 0.14s | 0.12s | — | 0.17s | 0.15s | — |
| First Event → First Tool Call | 12.31s | 9.76s | — | 5.59s | 5.60s | — |
| MCP Initialize → First Semantic Call | — | — | — | — | — | — |
| MCP Server Start → Initialize | — | — | — | — | — | — |
| Top-Level User Turns | 5 | 5 | 0% | 5 | 5 | 0% |
| Internal Tool Cycles | 12 | 23 | +91.7% | 13 | 35 | +169.2% |
| Initial Load / Discovery Turns | 2 | 2 | 0% | 3 | 5 | +66.7% |
| MCP Discovery / Schema Turns | 0 | 0 | — | 0 | 0 | — |
| Tool Invocations (per run) | 12 | 23 | +91.7% | 13 | 35 | +169.2% |
| Output Tokens | 13334 | 12914 | -3.1% | 15326 | 19670 | +28.3% |
| Reasoning / Thinking Tokens | 5506 | 5667 | +2.9% | 6030 | 9763 | +61.9% |
| Total Input Tokens | 1794461 | 2725466 | +51.9% | 1635117 | 4597826 | +181.2% |
| Cached Input Tokens | 1672704 | 2572800 | +53.8% | 1500672 | 4359424 | +190.5% |
| Uncached Input Tokens | 121757 | 152666 | +25.4% | 134445 | 238402 | +77.3% |
| Cost | 0.9581 | 1.2571 | +31.2% | 0.9782 | 2.0538 | +109.9% |
| Cached vs Uncached Token Ratio | 13.74:1 | 16.85:1 | +22.7% | 11.16:1 | 18.29:1 | +63.8% |
| Oracle L1: Mutation Policy | PASS | PASS | — | PASS | PASS | — |
| Oracle L2: AST Invariants | PASS | PASS | — | PASS | PASS | — |
| Oracle L3: Clean Build | PASS | PASS | — | PASS | PASS | — |
| Oracle L4: Verification Test | FAIL | FAIL | — | PASS | PASS | — |
| Semantic Tool Invocation Verified (per run) | N/A | PASS | — | N/A | PASS | — |
Baseline vs Semedit Agentic in Small Context
- Vanilla (Baseline vs Semedit Agentic in Small Context) Edit: File audit/normalize.go modified (2 lines -> 21 lines)
- Semedit MCP (Baseline vs Semedit Agentic in Small Context) Edit: File audit/normalize.go modified (2 lines -> 8 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | ✓ ✓ |
| 2 | ✓ ✓ | ✓ ✓ |
| 3 | ✓ ✓ | ✓ ✓ |
| 4 | ✓ ✓ | ✓ ✓ |
| 5 | ✓ ✓ | semedit/semantic_insert_function (✓ ✓) |
| 6 | ✓ ✓ | semedit/semantic_replace_body (✓ ✓) |
| 7 | ? ✗ | semedit/semantic_replace_body (✓ ✓) |
| 8 | ✓ ✓ | ? ✗ |
| 9 | ✓ ✓ | ✓ ✓ |
| 10 | ✓ ✓ | semedit/semantic_verify (✓ ✓) |
| 11 | ✓ ✓ | ✓ ✓ |
| 12 | ✓ ✓ | ✓ ✓ |
| 13 | — | ✓ ✓ |
| 14 | — | semedit/semantic_verify (✓ ✓) |
| 15 | — | ✓ ✓ |
| 16 | — | ✓ ✓ |
| 17 | — | semedit/semantic_replace_body (✓ ✓) |
| 18 | — | semedit/semantic_verify (✓ ✓) |
| 19 | — | ✓ ✓ |
| 20 | — | ✓ ✓ |
| 21 | — | semedit/semantic_verify (✓ ✓) |
| 22 | — | ✓ ✓ |
| 23 | — | ✓ ✓ |
Baseline vs Semedit Agentic in Large Context
- Vanilla (Baseline vs Semedit Agentic in Large Context) Edit: File audit/normalize.go modified (2 lines -> 11 lines)
- Semedit MCP (Baseline vs Semedit Agentic in Large Context) Edit: File audit/normalize.go modified (2 lines -> 8 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | ✓ ✓ |
| 2 | ✓ ✓ | ✓ ✓ |
| 3 | ✓ ✓ | ✓ ✓ |
| 4 | ✓ ✓ | ✓ ✓ |
| 5 | ✓ ✓ | semedit/semantic_lookup (✓ ✗): resolve Normalize: symbol not found |
| 6 | ✓ ✓ | semedit/semantic_lookup (✓ ✓) |
| 7 | ✓ ✓ | semedit/semantic_lookup (✓ ✓) |
| 8 | ✓ ✓ | semedit/semantic_lookup (✓ ✓) |
| 9 | ✓ ✓ | semedit/semantic_lookup (✓ ✓) |
| 10 | ✓ ✓ | semedit/semantic_lookup (✓ ✓) |
| 11 | ✓ ✓ | ✓ ✓ |
| 12 | ✓ ✓ | semedit/semantic_insert_function (✓ ✓) |
| 13 | ✓ ✓ | semedit/semantic_replace_body (✓ ✓) |
| 14 | — | semedit/semantic_replace_body (✓ ✓) |
| 15 | — | semedit/semantic_replace_body (✓ ✓) |
| 16 | — | semedit/semantic_replace_body (✓ ✓) |
| 17 | — | semedit/semantic_replace_body (✓ ✓) |
| 18 | — | semedit/semantic_replace_body (✓ ✓) |
| 19 | — | semedit/semantic_replace_body (✓ ✓) |
| 20 | — | ✓ ✓ |
| 21 | — | ✓ ✓ |
| 22 | — | ✓ ✓ |
| 23 | — | ✓ ✓ |
| 24 | — | ✓ ✓ |
| 25 | — | semedit/semantic_verify (✓ ✓) |
| 26 | — | ✓ ✓ |
| 27 | — | ✓ ✓ |
| 28 | — | ✓ ✓ |
| 29 | — | semedit/semantic_inspect_symbol (✓ ✓) |
| 30 | — | ✓ ✓ |
| 31 | — | semedit/semantic_inspect_symbol (✓ ✓) |
| 32 | — | semedit/semantic_verify (✓ ✓) |
| 33 | — | ✓ ✓ |
| 34 | — | semedit/semantic_replace_body (✓ ✓) |
| 35 | — | ✓ ✓ |
default prompt · descriptive MCP instructions · write semedit restriction
| Setting | Value |
|---|---|
| Test case | task-11-mixed-sink-api-migration |
| Target | codex/gpt-6-luna/medium |
| Prompt variant | default |
| MCP server instructions | descriptive |
| Semedit arm restriction | write |
| Fixture | testdata/bench/task_11_mixed_sink_api_migration.txtar |
Vanilla LLM Prompt:
Do not edit tests. You are forbidden to modify protected files: “go.mod”, “go.sum”.
Audit event kinds may contain inconsistent whitespace and casing. Normalize them at the delivery boundary before persistence, and treat probe events as control traffic. Do not change the metrics or legacy export protocols. Preserve the module metadata and tests, and leave the workspace verified. Do not use semantic editing MCP tools; use standard file editing. When done, output DONE.
Semedit MCP Prompt:
Do not edit tests. You are forbidden to modify protected files: “go.mod”, “go.sum”.
Audit event kinds may contain inconsistent whitespace and casing. Normalize them at the delivery boundary before persistence, and treat probe events as control traffic. Do not change the metrics or legacy export protocols. Preserve the module metadata and tests, and leave the workspace verified. Use semedit semantic tools for supported source code modifications. Shell commands for builds and tests are allowed. When done, output DONE.
Initial Workspace State (Before Edit)
// Package audit leaves room for normalization rules owned by the delivery boundary.
package audit| Metric | Vanilla (Small) | MCP (Small) | Δ (Small) | Vanilla (Large) | MCP (Large) | Δ (Large) |
|---|---|---|---|---|---|---|
| Wall-Clock Latency | 79.87s | 251.69s | +215.1% | — | 234.58s | — |
| Process Start → First Event | 0.12s | 0.13s | — | — | 0.29s | — |
| First Event → First Tool Call | 12.78s | 23.67s | — | — | 5.79s | — |
| MCP Initialize → First Semantic Call | — | — | — | — | — | — |
| MCP Server Start → Initialize | — | — | — | — | — | — |
| Top-Level User Turns | 1 | 5 | +400.0% | — | 5 | — |
| Internal Tool Cycles | 7 | 26 | +271.4% | — | 34 | — |
| Initial Load / Discovery Turns | 2 | 4 | +100.0% | — | 4 | — |
| MCP Discovery / Schema Turns | 0 | 0 | — | — | 0 | — |
| Tool Invocations (per run) | 7 | 26 | +271.4% | — | 34 | — |
| Output Tokens | 1557 | 11378 | +630.8% | — | 20872 | — |
| Reasoning / Thinking Tokens | 527 | 4852 | +820.7% | — | 10203 | — |
| Total Input Tokens | 186748 | 2336902 | +1151.4% | — | 3221251 | — |
| Cached Input Tokens | 171776 | 2106624 | +1126.4% | — | 3036672 | — |
| Uncached Input Tokens | 14972 | 230278 | +1438.1% | — | 184579 | — |
| Cost | 0.1064 | 1.3052 | +1126.4% | — | 1.6091 | — |
| Cached vs Uncached Token Ratio | 11.47:1 | 9.15:1 | -20.3% | — | 16.45:1 | — |
| Oracle L1: Mutation Policy | PASS | PASS | — | — | PASS | — |
| Oracle L2: AST Invariants | PASS | PASS | — | — | PASS | — |
| Oracle L3: Clean Build | PASS | PASS | — | — | PASS | — |
| Oracle L4: Verification Test | PASS | FAIL | — | — | FAIL | — |
| Semantic Tool Invocation Verified (per run) | N/A | PASS | — | — | PASS | — |
Baseline vs Semedit Agentic in Small Context
- Vanilla (Baseline vs Semedit Agentic in Small Context) Edit: File audit/normalize.go modified (2 lines -> 13 lines)
- Semedit MCP (Baseline vs Semedit Agentic in Small Context) Edit: File audit/normalize.go modified (2 lines -> 8 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | ✓ ✓ |
| 2 | ✓ ✓ | ✓ ✓ |
| 3 | ✓ ✓ | ✓ ✓ |
| 4 | ✓ ✓ | semedit/semantic_insert_function (✓ ✓) |
| 5 | ✓ ✓ | semedit/semantic_replace_body (✓ ✓) |
| 6 | ✓ ✓ | semedit/semantic_replace_body (✓ ✓) |
| 7 | ✓ ✓ | semedit/semantic_replace_body (✓ ✓) |
| 8 | — | semedit/semantic_verify (✓ ✓) |
| 9 | — | ✓ ✓ |
| 10 | — | ✓ ✓ |
| 11 | — | ✓ ✓ |
| 12 | — | semedit/semantic_replace_body (✓ ✓) |
| 13 | — | semedit/semantic_verify (✓ ✓) |
| 14 | — | ✓ ✓ |
| 15 | — | ✓ ✓ |
| 16 | — | ✓ ✓ |
| 17 | — | semedit/semantic_verify (✓ ✓) |
| 18 | — | semedit/semantic_inspect_symbol (✓ ✓) |
| 19 | — | semedit/semantic_inspect_symbol (✓ ✓) |
| 20 | — | semedit/semantic_verify (✓ ✓) |
| 21 | — | ✓ ✓ |
| 22 | — | semedit/semantic_inspect_symbol (✓ ✓) |
| 23 | — | semedit/semantic_inspect_symbol (✓ ✓) |
| 24 | — | semedit/semantic_inspect_symbol (✓ ✓) |
| 25 | — | ✓ ✓ |
| 26 | — | ✓ ✓ |
Baseline vs Semedit Agentic in Large Context
- Semedit MCP (Baseline vs Semedit Agentic in Large Context) Edit: File audit/normalize.go modified (2 lines -> 9 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | not published | ✓ ✓ |
| 2 | not published | ✓ ✓ |
| 3 | not published | semedit/semantic_inspect_symbol (✓ ✓) |
| 4 | not published | semedit/semantic_inspect_symbol (✓ ✓) |
| 5 | not published | semedit/semantic_inspect_symbol (✓ ✗): resolve Normalize in /Users/alessandro/sources/semantic-editor/.scratch/benchmarks/run_codex_semedit_large-default_task-11-mixed-sink-api-migration_1790456648750334000/audit/normalize.go: symbol not found |
| 6 | not published | semedit/semantic_inspect_symbol (✓ ✗): resolve Write in /Users/alessandro/sources/semantic-editor/.scratch/benchmarks/run_codex_semedit_large-default_task-11-mixed-sink-api-migration_1790456648750334000/audit/transaction.go: symbol not found |
| 7 | not published | ✓ ✓ |
| 8 | not published | ✓ ✓ |
| 9 | not published | semedit/semantic_insert_function (✓ ✓) |
| 10 | not published | semedit/semantic_replace_body (✓ ✗): replace_body Record in /Users/alessandro/sources/semantic-editor/.scratch/benchmarks/run_codex_semedit_large-default_task-11-mixed-sink-api-migration_1790456648750334000/service/dispatch.go: symbol not found |
| 11 | not published | semedit/semantic_replace_body (✓ ✓) |
| 12 | not published | semedit/semantic_replace_body (✓ ✓) |
| 13 | not published | ✓ ✓ |
| 14 | not published | semedit/semantic_replace_body (✓ ✓) |
| 15 | not published | semedit/semantic_replace_body (✓ ✓) |
| 16 | not published | semedit/semantic_replace_body (✓ ✓) |
| 17 | not published | semedit/semantic_organize_imports (✓ ✓) |
| 18 | not published | ✓ ✓ |
| 19 | not published | ✓ ✓ |
| 20 | not published | ✓ ✓ |
| 21 | not published | ✓ ✓ |
| 22 | not published | ✓ ✓ |
| 23 | not published | ✓ ✓ |
| 24 | not published | semedit/semantic_verify (✓ ✓) |
| 25 | not published | ✓ ✓ |
| 26 | not published | semedit/semantic_inspect_symbol (✓ ✓) |
| 27 | not published | ✓ ✓ |
| 28 | not published | semedit/semantic_insert_function (✓ ✓) |
| 29 | not published | semedit/semantic_replace_body (✓ ✓) |
| 30 | not published | semedit/semantic_replace_body (✓ ✓) |
| 31 | not published | semedit/semantic_replace_body (✓ ✓) |
| 32 | not published | semedit/semantic_organize_imports (✓ ✓) |
| 33 | not published | ✓ ✓ |
| 34 | not published | ✓ ✓ |
default prompt · descriptive MCP instructions · write semedit restriction
| Setting | Value |
|---|---|
| Test case | task-11-mixed-sink-api-migration |
| Target | codex/gpt-6-luna/medium |
| Prompt variant | default |
| MCP server instructions | descriptive |
| Semedit arm restriction | write |
| Fixture | testdata/bench/task_11_mixed_sink_api_migration.txtar |
Vanilla LLM Prompt:
Do not edit tests. You are forbidden to modify protected files: “go.mod”, “go.sum”.
Audit event kinds may contain inconsistent whitespace and casing. Normalize them at the delivery boundary before persistence, and treat probe events as control traffic. Do not change the metrics or legacy export protocols. Preserve the module metadata and tests, and leave the workspace verified. Do not use semantic editing MCP tools; use standard file editing. When done, output DONE.
Semedit MCP Prompt:
Do not edit tests. You are forbidden to modify protected files: “go.mod”, “go.sum”.
Audit event kinds may contain inconsistent whitespace and casing. Normalize them at the delivery boundary before persistence, and treat probe events as control traffic. Do not change the metrics or legacy export protocols. Preserve the module metadata and tests, and leave the workspace verified. Use semedit semantic tools for supported source code modifications. Shell commands for builds and tests are allowed. When done, output DONE.
Initial Workspace State (Before Edit)
// Package audit leaves room for normalization rules owned by the delivery boundary.
package audit| Metric | Vanilla (Small) | MCP (Small) | Δ (Small) | Vanilla (Large) | MCP (Large) | Δ (Large) |
|---|---|---|---|---|---|---|
| Wall-Clock Latency | 137.81s | 157.48s | +14.3% | 182.10s | 246.82s | +35.5% |
| Process Start → First Event | 0.12s | 0.15s | — | 0.24s | 0.12s | — |
| First Event → First Tool Call | 9.69s | 4.42s | — | 13.29s | 4.65s | — |
| MCP Initialize → First Semantic Call | — | — | — | — | — | — |
| MCP Server Start → Initialize | — | — | — | — | — | — |
| Top-Level User Turns | 5 | 5 | 0% | 5 | 5 | 0% |
| Internal Tool Cycles | 13 | 22 | +69.2% | 15 | 40 | +166.7% |
| Initial Load / Discovery Turns | 3 | 1 | -66.7% | 3 | 2 | -33.3% |
| MCP Discovery / Schema Turns | 0 | 0 | — | 0 | 0 | — |
| Tool Invocations (per run) | 13 | 22 | +69.2% | 15 | 40 | +166.7% |
| Output Tokens | 11024 | 12439 | +12.8% | 19691 | 20511 | +4.2% |
| Reasoning / Thinking Tokens | 3386 | 5984 | +76.7% | 7185 | 8584 | +19.5% |
| Total Input Tokens | 1446737 | 2369302 | +63.8% | 2139305 | 4329697 | +102.4% |
| Cached Input Tokens | 1348608 | 2216960 | +64.4% | 1997824 | 4104960 | +105.5% |
| Uncached Input Tokens | 98129 | 152342 | +55.2% | 141481 | 224737 | +58.8% |
| Cost | 0.7626 | 1.1654 | +52.8% | 1.1891 | 1.9518 | +64.1% |
| Cached vs Uncached Token Ratio | 13.74:1 | 14.55:1 | +5.9% | 14.12:1 | 18.27:1 | +29.4% |
| Oracle L1: Mutation Policy | PASS | PASS | — | PASS | PASS | — |
| Oracle L2: AST Invariants | PASS | PASS | — | PASS | PASS | — |
| Oracle L3: Clean Build | PASS | PASS | — | PASS | PASS | — |
| Oracle L4: Verification Test | FAIL | FAIL | — | PASS | FAIL | — |
| Semantic Tool Invocation Verified (per run) | N/A | PASS | — | N/A | PASS | — |
Baseline vs Semedit Agentic in Small Context
- Vanilla (Baseline vs Semedit Agentic in Small Context) Edit: File audit/normalize.go modified (2 lines -> 8 lines)
- Semedit MCP (Baseline vs Semedit Agentic in Small Context) Edit: File audit/normalize.go modified (2 lines -> 8 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | ✓ ✓ |
| 2 | ✓ ✓ | ✓ ✓ |
| 3 | ✓ ✓ | ✓ ✓ |
| 4 | ✓ ✓ | semedit/semantic_insert_function (✓ ✓) |
| 5 | ✓ ✓ | semedit/semantic_replace_body (✓ ✓) |
| 6 | ✓ ✓ | semedit/semantic_replace_body (✓ ✓) |
| 7 | ✓ ✓ | ? ✗ |
| 8 | ✓ ✓ | ✓ ✓ |
| 9 | ✓ ✓ | semedit/semantic_verify (✓ ✓) |
| 10 | ✓ ✓ | ✓ ✓ |
| 11 | ✓ ✓ | semedit/semantic_verify (✓ ✓) |
| 12 | ✓ ✓ | ✓ ✓ |
| 13 | ✓ ✓ | ✓ ✓ |
| 14 | — | semedit/semantic_replace_body (✓ ✓) |
| 15 | — | semedit/semantic_verify (✓ ✓) |
| 16 | — | ✓ ✓ |
| 17 | — | ✓ ✓ |
| 18 | — | semedit/semantic_verify (✓ ✓) |
| 19 | — | ✓ ✓ |
| 20 | — | ✓ ✓ |
| 21 | — | semedit/semantic_verify (✓ ✓) |
| 22 | — | ✓ ✓ |
Baseline vs Semedit Agentic in Large Context
- Vanilla (Baseline vs Semedit Agentic in Large Context) Edit: File audit/normalize.go modified (2 lines -> 15 lines)
- Semedit MCP (Baseline vs Semedit Agentic in Large Context) Edit: File audit/normalize.go modified (2 lines -> 9 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | ✓ ✓ |
| 2 | ✓ ✓ | ✓ ✓ |
| 3 | ✓ ✓ | ✓ ✓ |
| 4 | ✓ ✓ | ✓ ✓ |
| 5 | ✓ ✓ | ✓ ✓ |
| 6 | ✓ ✓ | semedit/semantic_insert_function (✓ ✓) |
| 7 | ✓ ✓ | ✓ ✓ |
| 8 | ✓ ✓ | semedit/semantic_replace_body (✓ ✓) |
| 9 | ✓ ✓ | semedit/semantic_replace_body (✓ ✓) |
| 10 | ✓ ✓ | semedit/semantic_replace_body (✓ ✓) |
| 11 | ✓ ✓ | semedit/semantic_replace_body (✓ ✓) |
| 12 | ✓ ✓ | semedit/semantic_replace_body (✓ ✓) |
| 13 | ✓ ✓ | semedit/semantic_replace_body (✓ ✓) |
| 14 | ✓ ✓ | semedit/semantic_replace_body (✓ ✓) |
| 15 | ✓ ✓ | semedit/semantic_insert_function (✓ ✓) |
| 16 | — | ✓ ✓ |
| 17 | — | ✓ ✓ |
| 18 | — | ✓ ✓ |
| 19 | — | semedit/semantic_verify (✓ ✓) |
| 20 | — | ✓ ✓ |
| 21 | — | ✓ ✓ |
| 22 | — | ✓ ✓ |
| 23 | — | semedit/semantic_verify (✓ ✓) |
| 24 | — | ✓ ✓ |
| 25 | — | semedit/semantic_replace_body (✓ ✓) |
| 26 | — | ✓ ✓ |
| 27 | — | semedit/semantic_verify (✓ ✓) |
| 28 | — | ✓ ✓ |
| 29 | — | ✓ ✓ |
| 30 | — | ✓ ✓ |
| 31 | — | semedit/semantic_verify (✓ ✓) |
| 32 | — | ✓ ✓ |
| 33 | — | ✓ ✓ |
| 34 | — | semedit/semantic_insert_function (✓ ✓) |
| 35 | — | semedit/semantic_replace_body (✓ ✓) |
| 36 | — | semedit/semantic_replace_body (✓ ✓) |
| 37 | — | semedit/semantic_replace_body (✓ ✓) |
| 38 | — | ✓ ✓ |
| 39 | — | semedit/semantic_verify (✓ ✓) |
| 40 | — | ✓ ✓ |
default prompt · descriptive MCP instructions · write semedit restriction
| Setting | Value |
|---|---|
| Test case | task-11-mixed-sink-api-migration |
| Target | codex/gpt-6-luna/medium |
| Prompt variant | default |
| MCP server instructions | descriptive |
| Semedit arm restriction | write |
| Fixture | testdata/bench/task_11_mixed_sink_api_migration.txtar |
Vanilla LLM Prompt:
Do not edit tests. You are forbidden to modify protected files: “go.mod”, “go.sum”.
Audit event kinds may contain inconsistent whitespace and casing. Normalize them at the delivery boundary before persistence, and treat probe events as control traffic. Do not change the metrics or legacy export protocols. Preserve the module metadata and tests, and leave the workspace verified. Do not use semantic editing MCP tools; use standard file editing. When done, output DONE.
Semedit MCP Prompt:
Do not edit tests. You are forbidden to modify protected files: “go.mod”, “go.sum”.
Audit event kinds may contain inconsistent whitespace and casing. Normalize them at the delivery boundary before persistence, and treat probe events as control traffic. Do not change the metrics or legacy export protocols. Preserve the module metadata and tests, and leave the workspace verified. Use semedit semantic tools for supported source code modifications. Shell commands for builds and tests are allowed. When done, output DONE.
Initial Workspace State (Before Edit)
// Package audit leaves room for normalization rules owned by the delivery boundary.
package auditdefault prompt · descriptive MCP instructions · write semedit restriction
| Setting | Value |
|---|---|
| Test case | task-11-mixed-sink-api-migration |
| Target | codex/gpt-6-luna/medium |
| Prompt variant | default |
| MCP server instructions | descriptive |
| Semedit arm restriction | write |
| Fixture | testdata/bench/task_11_mixed_sink_api_migration.txtar |
Vanilla LLM Prompt:
Do not edit tests. You are forbidden to modify protected files: “go.mod”, “go.sum”.
Audit event kinds may contain inconsistent whitespace and casing. Normalize them at the delivery boundary before persistence, and treat probe events as control traffic. Do not change the metrics or legacy export protocols. Preserve the module metadata and tests, and leave the workspace verified. Do not use semantic editing MCP tools; use standard file editing. When done, output DONE.
Semedit MCP Prompt:
Do not edit tests. You are forbidden to modify protected files: “go.mod”, “go.sum”.
Audit event kinds may contain inconsistent whitespace and casing. Normalize them at the delivery boundary before persistence, and treat probe events as control traffic. Do not change the metrics or legacy export protocols. Preserve the module metadata and tests, and leave the workspace verified. Use semedit semantic tools for supported source code modifications. Shell commands for builds and tests are allowed. When done, output DONE.
Initial Workspace State (Before Edit)
// Package audit leaves room for normalization rules owned by the delivery boundary.
package audit| Metric | Vanilla (Small) | MCP (Small) | Δ (Small) | Vanilla (Large) | MCP (Large) | Δ (Large) |
|---|---|---|---|---|---|---|
| Wall-Clock Latency | 134.56s | 261.76s | +94.5% | 109.24s | — | — |
| Process Start → First Event | 0.14s | 0.13s | — | 0.15s | — | — |
| First Event → First Tool Call | 13.36s | 5.06s | — | 5.12s | — | — |
| MCP Initialize → First Semantic Call | — | — | — | — | — | — |
| MCP Server Start → Initialize | — | — | — | — | — | — |
| Top-Level User Turns | 5 | 5 | 0% | 5 | — | — |
| Internal Tool Cycles | 12 | 32 | +166.7% | 12 | — | — |
| Initial Load / Discovery Turns | 4 | 3 | -25.0% | 4 | — | — |
| MCP Discovery / Schema Turns | 0 | 0 | — | 0 | — | — |
| Tool Invocations (per run) | 12 | 32 | +166.7% | 12 | — | — |
| Output Tokens | 10723 | 18051 | +68.3% | 14673 | — | — |
| Reasoning / Thinking Tokens | 3402 | 6931 | +103.7% | 7044 | — | — |
| Total Input Tokens | 1744778 | 3687724 | +111.4% | 1635343 | — | — |
| Cached Input Tokens | 1620736 | 3495168 | +115.7% | 1512704 | — | — |
| Uncached Input Tokens | 124042 | 192556 | +55.2% | 122639 | — | — |
| Cost | 0.8919 | 1.6675 | +87.0% | 0.9562 | — | — |
| Cached vs Uncached Token Ratio | 13.07:1 | 18.15:1 | +38.9% | 12.33:1 | — | — |
| Oracle L1: Mutation Policy | PASS | PASS | — | PASS | — | — |
| Oracle L2: AST Invariants | PASS | PASS | — | PASS | — | — |
| Oracle L3: Clean Build | PASS | PASS | — | PASS | — | — |
| Oracle L4: Verification Test | PASS | PASS | — | PASS | — | — |
| Semantic Tool Invocation Verified (per run) | N/A | PASS | — | N/A | — | — |
Baseline vs Semedit Agentic in Small Context
- Vanilla (Baseline vs Semedit Agentic in Small Context) Edit: File audit/normalize.go modified (2 lines -> 9 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | ✓ ✓ |
| 2 | ✓ ✓ | ✓ ✓ |
| 3 | ✓ ✓ | ✓ ✓ |
| 4 | ✓ ✓ | semedit/semantic_inspect_symbol (✓ ✓) |
| 5 | ✓ ✓ | semedit/semantic_inspect_symbol (✓ ✓) |
| 6 | ✓ ✓ | semedit/semantic_insert_function (✓ ✓) |
| 7 | ✓ ✓ | semedit/semantic_replace_body (✓ ✗): replace_body Record in /Users/alessandro/sources/semantic-editor/.scratch/benchmarks/run_codex_semedit_small-default_task-11-mixed-sink-api-migration_1790456434159398000/service/dispatch.go: symbol not found |
| 8 | ✓ ✓ | ✓ ✓ |
| 9 | ✓ ✓ | ✓ ✓ |
| 10 | ✓ ✓ | semedit/semantic_replace_body (✓ ✓) |
| 11 | ✓ ✓ | semedit/semantic_replace_body (✓ ✓) |
| 12 | ✓ ✓ | ✓ ✓ |
| 13 | — | ✓ ✓ |
| 14 | — | semedit/semantic_verify (✓ ✓) |
| 15 | — | ✓ ✓ |
| 16 | — | ✓ ✓ |
| 17 | — | ✓ ✓ |
| 18 | — | semedit/semantic_insert_function (✓ ✓) |
| 19 | — | semedit/semantic_replace_body (✓ ✓) |
| 20 | — | ✓ ✓ |
| 21 | — | semedit/semantic_verify (✓ ✓) |
| 22 | — | ✓ ✓ |
| 23 | — | semedit/semantic_replace_body (✓ ✓) |
| 24 | — | semedit/semantic_verify (✓ ✓) |
| 25 | — | ✓ ✓ |
| 26 | — | semedit/semantic_inspect_symbol (✓ ✓) |
| 27 | — | semedit/semantic_inspect_symbol (✓ ✓) |
| 28 | — | semedit/semantic_inspect_symbol (✓ ✓) |
| 29 | — | semedit/semantic_verify (✓ ✓) |
| 30 | — | ✓ ✓ |
| 31 | — | semedit/semantic_replace_body (✓ ✓) |
| 32 | — | ✓ ✓ |
Baseline vs Semedit Agentic in Large Context
- Vanilla (Baseline vs Semedit Agentic in Large Context) Edit: File audit/normalize.go modified (2 lines -> 11 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | not published |
| 2 | ✓ ✓ | not published |
| 3 | ✓ ✓ | not published |
| 4 | ✓ ✓ | not published |
| 5 | ✓ ✓ | not published |
| 6 | ✓ ✓ | not published |
| 7 | ✓ ✓ | not published |
| 8 | ✓ ✓ | not published |
| 9 | ✓ ✓ | not published |
| 10 | ✓ ✓ | not published |
| 11 | ✓ ✓ | not published |
| 12 | ✓ ✓ | not published |
prefer_discover_semedit prompt · descriptive MCP instructions · write semedit restriction
| Setting | Value |
|---|---|
| Test case | task-11-mixed-sink-api-migration |
| Target | codex/gpt-6-luna/medium |
| Prompt variant | prefer_discover_semedit |
| MCP server instructions | descriptive |
| Semedit arm restriction | write |
| Fixture | testdata/bench/task_11_mixed_sink_api_migration.txtar |
Vanilla LLM Prompt:
Do not edit tests. You are forbidden to modify protected files: “go.mod”, “go.sum”.
Before editing, inspect the complete available tool inventory, including deferred or lazy tools. If applicable semantic editing tools are callable, prefer them for source mutations. Audit event kinds may contain inconsistent whitespace and casing. Normalize them at the delivery boundary before persistence, and treat probe events as control traffic. Do not change the metrics or legacy export protocols. Preserve the module metadata and tests, and leave the workspace verified. Do not use semantic editing MCP tools; use standard file editing. When done, output DONE.
Semedit MCP Prompt:
Do not edit tests. You are forbidden to modify protected files: “go.mod”, “go.sum”.
Before editing, inspect the complete available tool inventory, including deferred or lazy tools. If applicable semantic editing tools are callable, prefer them for source mutations. Audit event kinds may contain inconsistent whitespace and casing. Normalize them at the delivery boundary before persistence, and treat probe events as control traffic. Do not change the metrics or legacy export protocols. Preserve the module metadata and tests, and leave the workspace verified. Use semedit semantic tools for supported source code modifications. Shell commands for builds and tests are allowed. When done, output DONE.
Initial Workspace State (Before Edit)
// Package audit leaves room for normalization rules owned by the delivery boundary.
package audit| Metric | Vanilla (Small) | MCP (Small) | Δ (Small) | Vanilla (Large) | MCP (Large) | Δ (Large) |
|---|---|---|---|---|---|---|
| Wall-Clock Latency | 136.94s | — | — | 188.10s | 211.96s | +12.7% |
| Process Start → First Event | 0.29s | — | — | 0.13s | 0.15s | — |
| First Event → First Tool Call | 5.62s | — | — | 10.25s | 5.43s | — |
| MCP Initialize → First Semantic Call | — | — | — | — | — | — |
| MCP Server Start → Initialize | — | — | — | — | — | — |
| Top-Level User Turns | 5 | — | — | 5 | 5 | 0% |
| Internal Tool Cycles | 12 | — | — | 15 | 28 | +86.7% |
| Initial Load / Discovery Turns | 2 | — | — | 3 | 3 | 0% |
| MCP Discovery / Schema Turns | 0 | — | — | 0 | 0 | — |
| Tool Invocations (per run) | 12 | — | — | 15 | 28 | +86.7% |
| Output Tokens | 11996 | — | — | 24708 | 20883 | -15.5% |
| Reasoning / Thinking Tokens | 3562 | — | — | 11631 | 11601 | -0.3% |
| Total Input Tokens | 1785488 | — | — | 3393186 | 3363402 | -0.9% |
| Cached Input Tokens | 1663744 | — | — | 3190528 | 3144448 | -1.4% |
| Uncached Input Tokens | 121744 | — | — | 202658 | 218954 | +8.0% |
| Cost | 0.9148 | — | — | 1.7585 | 1.7395 | -1.1% |
| Cached vs Uncached Token Ratio | 13.67:1 | — | — | 15.74:1 | 14.36:1 | -8.8% |
| Oracle L1: Mutation Policy | PASS | — | — | PASS | PASS | — |
| Oracle L2: AST Invariants | PASS | — | — | PASS | PASS | — |
| Oracle L3: Clean Build | PASS | — | — | PASS | PASS | — |
| Oracle L4: Verification Test | FAIL | — | — | FAIL | PASS | — |
| Semantic Tool Invocation Verified (per run) | N/A | — | — | N/A | PASS | — |
Baseline vs Semedit Agentic in Small Context
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | not published |
| 2 | ✓ ✓ | not published |
| 3 | ✓ ✓ | not published |
| 4 | ✓ ✓ | not published |
| 5 | ✓ ✓ | not published |
| 6 | ? ✗ | not published |
| 7 | ✓ ✓ | not published |
| 8 | ✓ ✓ | not published |
| 9 | ✓ ✓ | not published |
| 10 | ✓ ✓ | not published |
| 11 | ✓ ✓ | not published |
| 12 | ✓ ✓ | not published |
Baseline vs Semedit Agentic in Large Context
- Vanilla (Baseline vs Semedit Agentic in Large Context) Edit: File audit/normalize.go modified (2 lines -> 40 lines)
- Semedit MCP (Baseline vs Semedit Agentic in Large Context) Edit: File audit/normalize.go modified (2 lines -> 17 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | ✓ ✓ |
| 2 | ✓ ✓ | ✓ ✓ |
| 3 | ✓ ✓ | ✓ ✓ |
| 4 | ✓ ✓ | ✓ ✓ |
| 5 | ? ✗ | semedit/semantic_outline (✓ ✓) |
| 6 | ✓ ✓ | semedit/semantic_insert_function (✓ ✓) |
| 7 | ✓ ✓ | semedit/semantic_insert_function (✓ ✓) |
| 8 | ✓ ✓ | semedit/semantic_replace_body (✓ ✓) |
| 9 | ✓ ✓ | semedit/semantic_replace_body (✓ ✓) |
| 10 | ✓ ✓ | semedit/semantic_replace_body (✓ ✓) |
| 11 | ✓ ✓ | semedit/semantic_replace_body (✓ ✓) |
| 12 | ✓ ✓ | semedit/semantic_replace_body (✓ ✓) |
| 13 | ✓ ✓ | ? ✗ |
| 14 | ✓ ✓ | ✓ ✓ |
| 15 | ✓ ✓ | ✓ ✓ |
| 16 | — | ✓ ✓ |
| 17 | — | ✓ ✓ |
| 18 | — | ✓ ✓ |
| 19 | — | ✓ ✓ |
| 20 | — | semedit/semantic_replace_body (✓ ✓) |
| 21 | — | ✓ ✓ |
| 22 | — | ✓ ✓ |
| 23 | — | ✓ ✓ |
| 24 | — | semedit/semantic_insert_function (✓ ✓) |
| 25 | — | semedit/semantic_replace_body (✓ ✓) |
| 26 | — | semedit/semantic_replace_body (✓ ✓) |
| 27 | — | semedit/semantic_replace_body (✓ ✓) |
| 28 | — | ✓ ✓ |
prefer_discover_semedit prompt · descriptive MCP instructions · write semedit restriction
| Setting | Value |
|---|---|
| Test case | task-11-mixed-sink-api-migration |
| Target | codex/gpt-6-luna/medium |
| Prompt variant | prefer_discover_semedit |
| MCP server instructions | descriptive |
| Semedit arm restriction | write |
| Fixture | testdata/bench/task_11_mixed_sink_api_migration.txtar |
Vanilla LLM Prompt:
Do not edit tests. You are forbidden to modify protected files: “go.mod”, “go.sum”.
Before editing, inspect the complete available tool inventory, including deferred or lazy tools. If applicable semantic editing tools are callable, prefer them for source mutations. Audit event kinds may contain inconsistent whitespace and casing. Normalize them at the delivery boundary before persistence, and treat probe events as control traffic. Do not change the metrics or legacy export protocols. Preserve the module metadata and tests, and leave the workspace verified. Do not use semantic editing MCP tools; use standard file editing. When done, output DONE.
Semedit MCP Prompt:
Do not edit tests. You are forbidden to modify protected files: “go.mod”, “go.sum”.
Before editing, inspect the complete available tool inventory, including deferred or lazy tools. If applicable semantic editing tools are callable, prefer them for source mutations. Audit event kinds may contain inconsistent whitespace and casing. Normalize them at the delivery boundary before persistence, and treat probe events as control traffic. Do not change the metrics or legacy export protocols. Preserve the module metadata and tests, and leave the workspace verified. Use semedit semantic tools for supported source code modifications. Shell commands for builds and tests are allowed. When done, output DONE.
Initial Workspace State (Before Edit)
// Package audit leaves room for normalization rules owned by the delivery boundary.
package audit| Metric | Vanilla (Small) | MCP (Small) | Δ (Small) | Vanilla (Large) | MCP (Large) | Δ (Large) |
|---|---|---|---|---|---|---|
| Wall-Clock Latency | 45.27s | 189.99s | +319.7% | 194.12s | 243.21s | +25.3% |
| Process Start → First Event | 0.14s | 0.12s | — | 0.12s | 0.15s | — |
| First Event → First Tool Call | 5.92s | 12.90s | — | 8.45s | 18.32s | — |
| MCP Initialize → First Semantic Call | — | — | — | — | — | — |
| MCP Server Start → Initialize | — | — | — | — | — | — |
| Top-Level User Turns | 1 | 5 | +400.0% | 5 | 5 | 0% |
| Internal Tool Cycles | 6 | 22 | +266.7% | 16 | 32 | +100.0% |
| Initial Load / Discovery Turns | 2 | 2 | 0% | 3 | 2 | -33.3% |
| MCP Discovery / Schema Turns | 0 | 0 | — | 0 | 0 | — |
| Tool Invocations (per run) | 6 | 22 | +266.7% | 16 | 32 | +100.0% |
| Output Tokens | 1174 | 15316 | +1204.6% | 22637 | 19884 | -12.2% |
| Reasoning / Thinking Tokens | 383 | 7075 | +1747.3% | 12164 | 9206 | -24.3% |
| Total Input Tokens | 185698 | 5048103 | +2618.4% | 3107248 | 4540119 | +46.1% |
| Cached Input Tokens | 170752 | 4792832 | +2706.9% | 2920192 | 4304384 | +47.4% |
| Uncached Input Tokens | 14946 | 255271 | +1608.0% | 187056 | 235735 | +26.0% |
| Cost | 0.0995 | 2.1163 | +2026.6% | 1.6327 | 2.0291 | +24.3% |
| Cached vs Uncached Token Ratio | 11.42:1 | 18.78:1 | +64.3% | 15.61:1 | 18.26:1 | +17.0% |
| Oracle L1: Mutation Policy | PASS | PASS | — | PASS | PASS | — |
| Oracle L2: AST Invariants | PASS | PASS | — | PASS | PASS | — |
| Oracle L3: Clean Build | PASS | PASS | — | PASS | PASS | — |
| Oracle L4: Verification Test | PASS | FAIL | — | PASS | FAIL | — |
| Semantic Tool Invocation Verified (per run) | N/A | PASS | — | N/A | PASS | — |
Baseline vs Semedit Agentic in Small Context
- Vanilla (Baseline vs Semedit Agentic in Small Context) Edit: File audit/normalize.go modified (2 lines -> 8 lines)
- Semedit MCP (Baseline vs Semedit Agentic in Small Context) Edit: File audit/normalize.go modified (2 lines -> 8 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | ✓ ✓ |
| 2 | ✓ ✓ | ✓ ✓ |
| 3 | ✓ ✓ | semedit/semantic_lookup (✓ ✗): param "symbol" is required: invalid operation parameters |
| 4 | ✓ ✓ | semedit/report_feedback (✓ ✓) |
| 5 | ✓ ✓ | semedit/semantic_lookup (✓ ✓) |
| 6 | ✓ ✓ | semedit/semantic_outline (✓ ✓) |
| 7 | — | semedit/semantic_insert_function (✓ ✓) |
| 8 | — | semedit/semantic_insert_function (✓ ✓) |
| 9 | — | semedit/semantic_replace_body (✓ ✓) |
| 10 | — | semedit/semantic_replace_body (✓ ✓) |
| 11 | — | ✓ ✓ |
| 12 | — | ✓ ✓ |
| 13 | — | ✓ ✓ |
| 14 | — | ✓ ✓ |
| 15 | — | ✓ ✓ |
| 16 | — | semedit/semantic_lookup (✓ ✓) |
| 17 | — | semedit/semantic_replace_body (✓ ✓) |
| 18 | — | ✓ ✓ |
| 19 | — | semedit/semantic_inspect_symbol (✓ ✓) |
| 20 | — | ✓ ✓ |
| 21 | — | semedit/semantic_replace_body (✓ ✓) |
| 22 | — | ✓ ✓ |
Baseline vs Semedit Agentic in Large Context
- Vanilla (Baseline vs Semedit Agentic in Large Context) Edit: File audit/normalize.go modified (2 lines -> 24 lines)
- Semedit MCP (Baseline vs Semedit Agentic in Large Context) Edit: File audit/normalize.go modified (2 lines -> 17 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | ✓ ✓ |
| 2 | ✓ ✓ | ✓ ✓ |
| 3 | ✓ ✓ | semedit/semantic_outline (✓ ✓) |
| 4 | ✓ ✓ | semedit/semantic_outline (✓ ✓) |
| 5 | ? ✗ | ✓ ✓ |
| 6 | ✓ ✓ | ✓ ✓ |
| 7 | ✓ ✓ | semedit/semantic_insert_function (✓ ✓) |
| 8 | ✓ ✓ | semedit/semantic_insert_function (✓ ✓) |
| 9 | ✓ ✓ | semedit/semantic_replace_body (✓ ✗): replace_body Record in /Users/alessandro/sources/semantic-editor/.scratch/benchmarks/run_codex_semedit_large-prefer_discover_semedit_task-11-mixed-sink-api-migration_1790456909624170000/service/dispatch.go: symbol not found |
| 10 | ✓ ✓ | semedit/semantic_replace_body (✓ ✓) |
| 11 | ✓ ✓ | semedit/semantic_replace_body (✓ ✓) |
| 12 | ✓ ✓ | ✓ ✓ |
| 13 | ✓ ✓ | semedit/semantic_replace_body (✓ ✓) |
| 14 | ✓ ✓ | semedit/semantic_replace_body (✓ ✓) |
| 15 | ✓ ✓ | semedit/semantic_replace_body (✓ ✓) |
| 16 | ✓ ✓ | semedit/semantic_replace_body (✓ ✓) |
| 17 | — | semedit/semantic_replace_body (✓ ✓) |
| 18 | — | ✓ ✓ |
| 19 | — | ✓ ✓ |
| 20 | — | semedit/semantic_verify (✓ ✓) |
| 21 | — | ✓ ✓ |
| 22 | — | ✓ ✓ |
| 23 | — | semedit/semantic_replace_body (✓ ✓) |
| 24 | — | ✓ ✓ |
| 25 | — | ✓ ✓ |
| 26 | — | ✓ ✓ |
| 27 | — | ✓ ✓ |
| 28 | — | semedit/semantic_insert_function (✓ ✓) |
| 29 | — | semedit/semantic_replace_body (✓ ✓) |
| 30 | — | semedit/semantic_replace_body (✓ ✓) |
| 31 | — | semedit/semantic_replace_body (✓ ✓) |
| 32 | — | ✓ ✓ |
prefer_discover_semedit prompt · descriptive MCP instructions · write semedit restriction
| Setting | Value |
|---|---|
| Test case | task-11-mixed-sink-api-migration |
| Target | codex/gpt-6-luna/medium |
| Prompt variant | prefer_discover_semedit |
| MCP server instructions | descriptive |
| Semedit arm restriction | write |
| Fixture | testdata/bench/task_11_mixed_sink_api_migration.txtar |
Vanilla LLM Prompt:
Do not edit tests. You are forbidden to modify protected files: “go.mod”, “go.sum”.
Before editing, inspect the complete available tool inventory, including deferred or lazy tools. If applicable semantic editing tools are callable, prefer them for source mutations. Audit event kinds may contain inconsistent whitespace and casing. Normalize them at the delivery boundary before persistence, and treat probe events as control traffic. Do not change the metrics or legacy export protocols. Preserve the module metadata and tests, and leave the workspace verified. Do not use semantic editing MCP tools; use standard file editing. When done, output DONE.
Semedit MCP Prompt:
Do not edit tests. You are forbidden to modify protected files: “go.mod”, “go.sum”.
Before editing, inspect the complete available tool inventory, including deferred or lazy tools. If applicable semantic editing tools are callable, prefer them for source mutations. Audit event kinds may contain inconsistent whitespace and casing. Normalize them at the delivery boundary before persistence, and treat probe events as control traffic. Do not change the metrics or legacy export protocols. Preserve the module metadata and tests, and leave the workspace verified. Use semedit semantic tools for supported source code modifications. Shell commands for builds and tests are allowed. When done, output DONE.
Initial Workspace State (Before Edit)
// Package audit leaves room for normalization rules owned by the delivery boundary.
package audit| Metric | Vanilla (Small) | MCP (Small) | Δ (Small) | Vanilla (Large) | MCP (Large) | Δ (Large) |
|---|---|---|---|---|---|---|
| Wall-Clock Latency | 74.95s | 219.76s | +193.2% | 196.66s | 129.46s | -34.2% |
| Process Start → First Event | 0.52s | 0.14s | — | 0.22s | 0.13s | — |
| First Event → First Tool Call | 20.25s | 6.40s | — | 14.94s | 8.50s | — |
| MCP Initialize → First Semantic Call | — | — | — | — | — | — |
| MCP Server Start → Initialize | — | — | — | — | — | — |
| Top-Level User Turns | 1 | 5 | +400.0% | 5 | 1 | -80.0% |
| Internal Tool Cycles | 9 | 29 | +222.2% | 14 | 17 | +21.4% |
| Initial Load / Discovery Turns | 2 | 3 | +50.0% | 3 | 2 | -33.3% |
| MCP Discovery / Schema Turns | 0 | 0 | — | 0 | 0 | — |
| Tool Invocations (per run) | 9 | 29 | +222.2% | 14 | 17 | +21.4% |
| Output Tokens | 1768 | 16281 | +820.9% | 29940 | 3230 | -89.2% |
| Reasoning / Thinking Tokens | 612 | 8554 | +1297.7% | 12684 | 1741 | -86.3% |
| Total Input Tokens | 377323 | 3581523 | +849.2% | 3214361 | 634769 | -80.3% |
| Cached Input Tokens | 349952 | 3383296 | +866.8% | 3008256 | 592896 | -80.3% |
| Uncached Input Tokens | 27371 | 198227 | +624.2% | 206105 | 41873 | -79.7% |
| Cost | 0.1857 | 1.6518 | +789.7% | 1.8001 | 0.3150 | -82.5% |
| Cached vs Uncached Token Ratio | 12.79:1 | 17.07:1 | +33.5% | 14.60:1 | 14.16:1 | -3.0% |
| Oracle L1: Mutation Policy | PASS | PASS | — | PASS | PASS | — |
| Oracle L2: AST Invariants | PASS | PASS | — | PASS | PASS | — |
| Oracle L3: Clean Build | PASS | PASS | — | PASS | PASS | — |
| Oracle L4: Verification Test | PASS | FAIL | — | FAIL | PASS | — |
| Semantic Tool Invocation Verified (per run) | N/A | PASS | — | N/A | PASS | — |
Baseline vs Semedit Agentic in Small Context
- Vanilla (Baseline vs Semedit Agentic in Small Context) Edit: File audit/normalize.go modified (2 lines -> 8 lines)
- Semedit MCP (Baseline vs Semedit Agentic in Small Context) Edit: File audit/normalize.go modified (2 lines -> 8 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | ✓ ✓ |
| 2 | ✓ ✓ | ✓ ✓ |
| 3 | ✓ ✓ | semedit/semantic_outline (✓ ✓) |
| 4 | ✓ ✓ | ✓ ✓ |
| 5 | ✓ ✓ | ✓ ✓ |
| 6 | ✓ ✓ | semedit/semantic_insert_function (✓ ✓) |
| 7 | ✓ ✓ | semedit/semantic_replace_body (✓ ✓) |
| 8 | ✓ ✓ | semedit/semantic_replace_body (✓ ✓) |
| 9 | ✓ ✓ | semedit/semantic_replace_body (✓ ✓) |
| 10 | — | ? ✗ |
| 11 | — | semedit/semantic_verify (✓ ✓) |
| 12 | — | ✓ ✓ |
| 13 | — | semedit/semantic_inspect_symbol (✓ ✓) |
| 14 | — | ✓ ✓ |
| 15 | — | ✓ ✓ |
| 16 | — | ? ✗ |
| 17 | — | semedit/semantic_inspect_symbol (✓ ✓) |
| 18 | — | semedit/semantic_inspect_symbol (✓ ✓) |
| 19 | — | semedit/semantic_verify (✓ ✓) |
| 20 | — | semedit/semantic_inspect_symbol (✓ ✓) |
| 21 | — | semedit/semantic_inspect_symbol (✓ ✓) |
| 22 | — | semedit/semantic_verify (✓ ✓) |
| 23 | — | semedit/semantic_inspect_symbol (✓ ✓) |
| 24 | — | semedit/semantic_verify (✓ ✓) |
| 25 | — | semedit/semantic_inspect_symbol (✓ ✓) |
| 26 | — | semedit/semantic_inspect_symbol (✓ ✓) |
| 27 | — | semedit/semantic_inspect_symbol (✓ ✓) |
| 28 | — | ✓ ✓ |
| 29 | — | ✓ ✓ |
Baseline vs Semedit Agentic in Large Context
- Vanilla (Baseline vs Semedit Agentic in Large Context) Edit: File audit/normalize.go modified (2 lines -> 32 lines)
- Semedit MCP (Baseline vs Semedit Agentic in Large Context) Edit: File audit/normalize.go modified (2 lines -> 13 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | ✓ ✓ |
| 2 | ✓ ✓ | ✓ ✓ |
| 3 | ✓ ✓ | ✓ ✓ |
| 4 | ✓ ✓ | ✓ ✓ |
| 5 | ✓ ✓ | semedit/semantic_outline (✓ ✓) |
| 6 | ✓ ✓ | semedit/semantic_outline (✓ ✓) |
| 7 | ✓ ✓ | semedit/semantic_insert_function (✓ ✓) |
| 8 | ? ✗ | semedit/semantic_insert_function (✓ ✓) |
| 9 | ✓ ✓ | semedit/semantic_replace_body (✓ ✓) |
| 10 | ? ✗ | semedit/semantic_replace_body (✓ ✓) |
| 11 | ✓ ✓ | semedit/semantic_replace_body (✓ ✓) |
| 12 | ? ✗ | semedit/semantic_replace_body (✓ ✓) |
| 13 | ✓ ✓ | semedit/semantic_replace_body (✓ ✓) |
| 14 | ? ✗ | semedit/semantic_replace_body (✓ ✓) |
| 15 | — | ✓ ✓ |
| 16 | — | ✓ ✓ |
| 17 | — | ✓ ✓ |
prefer_discover_semedit prompt · descriptive MCP instructions · write semedit restriction
| Setting | Value |
|---|---|
| Test case | task-11-mixed-sink-api-migration |
| Target | codex/gpt-6-luna/medium |
| Prompt variant | prefer_discover_semedit |
| MCP server instructions | descriptive |
| Semedit arm restriction | write |
| Fixture | testdata/bench/task_11_mixed_sink_api_migration.txtar |
Vanilla LLM Prompt:
Do not edit tests. You are forbidden to modify protected files: “go.mod”, “go.sum”.
Before editing, inspect the complete available tool inventory, including deferred or lazy tools. If applicable semantic editing tools are callable, prefer them for source mutations. Audit event kinds may contain inconsistent whitespace and casing. Normalize them at the delivery boundary before persistence, and treat probe events as control traffic. Do not change the metrics or legacy export protocols. Preserve the module metadata and tests, and leave the workspace verified. Do not use semantic editing MCP tools; use standard file editing. When done, output DONE.
Semedit MCP Prompt:
Do not edit tests. You are forbidden to modify protected files: “go.mod”, “go.sum”.
Before editing, inspect the complete available tool inventory, including deferred or lazy tools. If applicable semantic editing tools are callable, prefer them for source mutations. Audit event kinds may contain inconsistent whitespace and casing. Normalize them at the delivery boundary before persistence, and treat probe events as control traffic. Do not change the metrics or legacy export protocols. Preserve the module metadata and tests, and leave the workspace verified. Use semedit semantic tools for supported source code modifications. Shell commands for builds and tests are allowed. When done, output DONE.
Initial Workspace State (Before Edit)
// Package audit leaves room for normalization rules owned by the delivery boundary.
package audit| Metric | Vanilla (Small) | MCP (Small) | Δ (Small) | Vanilla (Large) | MCP (Large) | Δ (Large) |
|---|---|---|---|---|---|---|
| Wall-Clock Latency | 95.02s | 264.06s | +177.9% | 124.86s | 293.18s | +134.8% |
| Process Start → First Event | 0.12s | 0.14s | — | 0.21s | 0.12s | — |
| First Event → First Tool Call | 6.04s | 7.03s | — | 8.63s | 9.16s | — |
| MCP Initialize → First Semantic Call | — | — | — | — | — | — |
| MCP Server Start → Initialize | — | — | — | — | — | — |
| Top-Level User Turns | 3 | 5 | +66.7% | 3 | 5 | +66.7% |
| Internal Tool Cycles | 9 | 32 | +255.6% | 11 | 46 | +318.2% |
| Initial Load / Discovery Turns | 1 | 4 | +300.0% | 4 | 2 | -50.0% |
| MCP Discovery / Schema Turns | 0 | 0 | — | 0 | 0 | — |
| Tool Invocations (per run) | 9 | 32 | +255.6% | 11 | 46 | +318.2% |
| Output Tokens | 6443 | 16545 | +156.8% | 10511 | 31272 | +197.5% |
| Reasoning / Thinking Tokens | 3002 | 7945 | +164.7% | 5554 | 18264 | +228.8% |
| Total Input Tokens | 807065 | 3372208 | +317.8% | 1587638 | 4469263 | +181.5% |
| Cached Input Tokens | 728320 | 3124992 | +329.1% | 1481728 | 4152832 | +180.3% |
| Uncached Input Tokens | 78745 | 247216 | +213.9% | 105910 | 316431 | +198.8% |
| Cost | 0.4970 | 1.7054 | +243.1% | 0.8360 | 2.4485 | +192.9% |
| Cached vs Uncached Token Ratio | 9.25:1 | 12.64:1 | +36.7% | 13.99:1 | 13.12:1 | -6.2% |
| Oracle L1: Mutation Policy | PASS | PASS | — | PASS | PASS | — |
| Oracle L2: AST Invariants | PASS | PASS | — | PASS | PASS | — |
| Oracle L3: Clean Build | PASS | PASS | — | PASS | PASS | — |
| Oracle L4: Verification Test | PASS | PASS | — | PASS | PASS | — |
| Semantic Tool Invocation Verified (per run) | N/A | PASS | — | N/A | PASS | — |
Baseline vs Semedit Agentic in Small Context
- Vanilla (Baseline vs Semedit Agentic in Small Context) Edit: File audit/normalize.go modified (2 lines -> 9 lines)
- Semedit MCP (Baseline vs Semedit Agentic in Small Context) Edit: File audit/normalize.go modified (2 lines -> 8 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | ✓ ✓ |
| 2 | ? ✗ | ✓ ✓ |
| 3 | ✓ ✓ | semedit/semantic_outline (✓ ✓) |
| 4 | ✓ ✓ | ✓ ✓ |
| 5 | ✓ ✓ | semedit/semantic_inspect_symbol (✓ ✓) |
| 6 | ✓ ✓ | semedit/semantic_inspect_symbol (✓ ✓) |
| 7 | ✓ ✓ | semedit/semantic_inspect_symbol (✓ ✓) |
| 8 | ✓ ✓ | ✓ ✓ |
| 9 | ✓ ✓ | semedit/semantic_insert_function (✓ ✓) |
| 10 | — | semedit/semantic_replace_body (✓ ✓) |
| 11 | — | semedit/semantic_replace_body (✓ ✓) |
| 12 | — | semedit/semantic_replace_body (✓ ✓) |
| 13 | — | ✓ ✓ |
| 14 | — | semedit/semantic_verify (✓ ✓) |
| 15 | — | ✓ ✓ |
| 16 | — | ✓ ✓ |
| 17 | — | ✓ ✓ |
| 18 | — | semedit/semantic_outline (✓ ✓) |
| 19 | — | semedit/semantic_replace_body (✓ ✓) |
| 20 | — | ✓ ✓ |
| 21 | — | semedit/semantic_verify (✓ ✓) |
| 22 | — | ✓ ✓ |
| 23 | — | semedit/semantic_inspect_symbol (✓ ✓) |
| 24 | — | ✓ ✓ |
| 25 | — | semedit/semantic_inspect_symbol (✓ ✓) |
| 26 | — | semedit/semantic_inspect_symbol (✓ ✓) |
| 27 | — | semedit/semantic_verify (✓ ✓) |
| 28 | — | semedit/semantic_replace_body (✓ ✓) |
| 29 | — | semedit/semantic_inspect_symbol (✓ ✓) |
| 30 | — | semedit/semantic_inspect_symbol (✓ ✓) |
| 31 | — | semedit/semantic_inspect_symbol (✓ ✓) |
| 32 | — | ✓ ✓ |
Baseline vs Semedit Agentic in Large Context
- Vanilla (Baseline vs Semedit Agentic in Large Context) Edit: File audit/normalize.go modified (2 lines -> 9 lines)
- Semedit MCP (Baseline vs Semedit Agentic in Large Context) Edit: File audit/normalize.go modified (2 lines -> 9 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | ✓ ✓ |
| 2 | ✓ ✓ | ✓ ✓ |
| 3 | ✓ ✓ | semedit/semantic_outline (✓ ✓) |
| 4 | ✓ ✓ | ✓ ✓ |
| 5 | ✓ ✓ | semedit/semantic_outline (✓ ✓) |
| 6 | ✓ ✓ | ✓ ✓ |
| 7 | ✓ ✓ | semedit/semantic_inspect_symbol (✓ ✓) |
| 8 | ✓ ✓ | semedit/semantic_inspect_symbol (✓ ✓) |
| 9 | ✓ ✓ | semedit/semantic_inspect_symbol (✓ ✓) |
| 10 | ✓ ✓ | semedit/semantic_inspect_symbol (✓ ✓) |
| 11 | ✓ ✓ | semedit/semantic_inspect_symbol (✓ ✓) |
| 12 | — | semedit/semantic_inspect_symbol (✓ ✓) |
| 13 | — | semedit/semantic_inspect_symbol (✓ ✓) |
| 14 | — | ✓ ✓ |
| 15 | — | ? ✗ |
| 16 | — | semedit/semantic_insert_function (✓ ✓) |
| 17 | — | semedit/semantic_replace_body (✓ ✓) |
| 18 | — | semedit/semantic_replace_body (✓ ✓) |
| 19 | — | semedit/semantic_replace_body (✓ ✓) |
| 20 | — | semedit/semantic_replace_body (✓ ✓) |
| 21 | — | semedit/semantic_replace_body (✓ ✓) |
| 22 | — | semedit/semantic_replace_body (✓ ✓) |
| 23 | — | semedit/semantic_replace_body (✓ ✓) |
| 24 | — | semedit/semantic_replace_body (✓ ✓) |
| 25 | — | ? ✗ |
| 26 | — | semedit/semantic_verify (✓ ✓) |
| 27 | — | ✓ ✓ |
| 28 | — | ✓ ✓ |
| 29 | — | ✓ ✓ |
| 30 | — | ✓ ✓ |
| 31 | — | semedit/semantic_outline (✓ ✓) |
| 32 | — | semedit/semantic_outline (✓ ✓) |
| 33 | — | semedit/semantic_verify (✓ ✓) |
| 34 | — | ✓ ✓ |
| 35 | — | semedit/semantic_inspect_symbol (✓ ✓) |
| 36 | — | semedit/semantic_verify (✓ ✓) |
| 37 | — | ✓ ✓ |
| 38 | — | semedit/semantic_inspect_symbol (✓ ✓) |
| 39 | — | semedit/semantic_verify (✓ ✓) |
| 40 | — | ✓ ✓ |
| 41 | — | semedit/semantic_insert_function (✓ ✓) |
| 42 | — | semedit/semantic_replace_body (✓ ✓) |
| 43 | — | semedit/semantic_replace_body (✓ ✓) |
| 44 | — | semedit/semantic_replace_body (✓ ✓) |
| 45 | — | semedit/semantic_verify (✓ ✓) |
| 46 | — | ✓ ✓ |
prefer_discover_semedit prompt · descriptive MCP instructions · write semedit restriction
| Setting | Value |
|---|---|
| Test case | task-11-mixed-sink-api-migration |
| Target | codex/gpt-6-luna/medium |
| Prompt variant | prefer_discover_semedit |
| MCP server instructions | descriptive |
| Semedit arm restriction | write |
| Fixture | testdata/bench/task_11_mixed_sink_api_migration.txtar |
Vanilla LLM Prompt:
Do not edit tests. You are forbidden to modify protected files: “go.mod”, “go.sum”.
Before editing, inspect the complete available tool inventory, including deferred or lazy tools. If applicable semantic editing tools are callable, prefer them for source mutations. Audit event kinds may contain inconsistent whitespace and casing. Normalize them at the delivery boundary before persistence, and treat probe events as control traffic. Do not change the metrics or legacy export protocols. Preserve the module metadata and tests, and leave the workspace verified. Do not use semantic editing MCP tools; use standard file editing. When done, output DONE.
Semedit MCP Prompt:
Do not edit tests. You are forbidden to modify protected files: “go.mod”, “go.sum”.
Before editing, inspect the complete available tool inventory, including deferred or lazy tools. If applicable semantic editing tools are callable, prefer them for source mutations. Audit event kinds may contain inconsistent whitespace and casing. Normalize them at the delivery boundary before persistence, and treat probe events as control traffic. Do not change the metrics or legacy export protocols. Preserve the module metadata and tests, and leave the workspace verified. Use semedit semantic tools for supported source code modifications. Shell commands for builds and tests are allowed. When done, output DONE.
Initial Workspace State (Before Edit)
// Package audit leaves room for normalization rules owned by the delivery boundary.
package audit| Metric | Vanilla (Small) | MCP (Small) | Δ (Small) | Vanilla (Large) | MCP (Large) | Δ (Large) |
|---|---|---|---|---|---|---|
| Wall-Clock Latency | 166.35s | 205.50s | +23.5% | 158.02s | — | — |
| Process Start → First Event | 0.15s | 0.23s | — | 0.15s | — | — |
| First Event → First Tool Call | 10.65s | 10.12s | — | 5.05s | — | — |
| MCP Initialize → First Semantic Call | — | — | — | — | — | — |
| MCP Server Start → Initialize | — | — | — | — | — | — |
| Top-Level User Turns | 5 | 5 | 0% | 5 | — | — |
| Internal Tool Cycles | 13 | 32 | +146.2% | 14 | — | — |
| Initial Load / Discovery Turns | 3 | 3 | 0% | 3 | — | — |
| MCP Discovery / Schema Turns | 0 | 0 | — | 0 | — | — |
| Tool Invocations (per run) | 13 | 32 | +146.2% | 14 | — | — |
| Output Tokens | 19238 | 12788 | -33.5% | 21191 | — | — |
| Reasoning / Thinking Tokens | 8813 | 4988 | -43.4% | 7458 | — | — |
| Total Input Tokens | 3043722 | 2831293 | -7.0% | 2645338 | — | — |
| Cached Input Tokens | 2853376 | 2657536 | -6.9% | 2473472 | — | — |
| Uncached Input Tokens | 190346 | 173757 | -8.7% | 171866 | — | — |
| Cost | 1.5398 | 1.3210 | -14.2% | 1.4061 | — | — |
| Cached vs Uncached Token Ratio | 14.99:1 | 15.29:1 | +2.0% | 14.39:1 | — | — |
| Oracle L1: Mutation Policy | PASS | PASS | — | PASS | — | — |
| Oracle L2: AST Invariants | PASS | PASS | — | PASS | — | — |
| Oracle L3: Clean Build | PASS | PASS | — | PASS | — | — |
| Oracle L4: Verification Test | FAIL | FAIL | — | PASS | — | — |
| Semantic Tool Invocation Verified (per run) | N/A | PASS | — | N/A | — | — |
Baseline vs Semedit Agentic in Small Context
- Vanilla (Baseline vs Semedit Agentic in Small Context) Edit: File audit/normalize.go modified (2 lines -> 11 lines)
- Semedit MCP (Baseline vs Semedit Agentic in Small Context) Edit: File audit/normalize.go modified (2 lines -> 9 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | ✓ ✓ |
| 2 | ✓ ✓ | ✓ ✓ |
| 3 | ✓ ✓ | ✓ ✓ |
| 4 | ✓ ✓ | semedit/semantic_lookup (✓ ✓) |
| 5 | ✓ ✓ | ? ✗ |
| 6 | ✓ ✓ | semedit/semantic_insert_function (✓ ✓) |
| 7 | ✓ ✓ | semedit/semantic_replace_body (✓ ✓) |
| 8 | ✓ ✓ | semedit/semantic_replace_body (✓ ✓) |
| 9 | ✓ ✓ | ✓ ✓ |
| 10 | ✓ ✓ | ✓ ✓ |
| 11 | ✓ ✓ | semedit/semantic_verify (✓ ✓) |
| 12 | ✓ ✓ | ✓ ✓ |
| 13 | ✓ ✓ | ✓ ✓ |
| 14 | — | ✓ ✓ |
| 15 | — | ✓ ✓ |
| 16 | — | semedit/semantic_verify (✓ ✓) |
| 17 | — | ✓ ✓ |
| 18 | — | semedit/semantic_replace_body (✓ ✓) |
| 19 | — | ✓ ✓ |
| 20 | — | semedit/semantic_verify (✓ ✓) |
| 21 | — | ✓ ✓ |
| 22 | — | ✓ ✓ |
| 23 | — | ✓ ✓ |
| 24 | — | ✓ ✓ |
| 25 | — | semedit/semantic_verify (✓ ✓) |
| 26 | — | ✓ ✓ |
| 27 | — | semedit/semantic_insert_function (✓ ✓) |
| 28 | — | semedit/semantic_replace_body (✓ ✓) |
| 29 | — | semedit/semantic_replace_body (✓ ✓) |
| 30 | — | semedit/semantic_replace_body (✓ ✓) |
| 31 | — | ✓ ✓ |
| 32 | — | ✓ ✓ |
Baseline vs Semedit Agentic in Large Context
- Vanilla (Baseline vs Semedit Agentic in Large Context) Edit: File audit/normalize.go modified (2 lines -> 18 lines)
| # | Vanilla | Semedit MCP |
|---|---|---|
| 1 | ✓ ✓ | not published |
| 2 | ✓ ✓ | not published |
| 3 | ✓ ✓ | not published |
| 4 | ✓ ✓ | not published |
| 5 | ✓ ✓ | not published |
| 6 | ✓ ✓ | not published |
| 7 | ? ✗ | not published |
| 8 | ? ✗ | not published |
| 9 | ✓ ✓ | not published |
| 10 | ✓ ✓ | not published |
| 11 | ✓ ✓ | not published |
| 12 | ✓ ✓ | not published |
| 13 | ✓ ✓ | not published |
| 14 | ✓ ✓ | not published |