بنقرة واحدة
benchmark
Compare Claude Code output with full config vs minimal config using standardized tasks per stack.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Compare Claude Code output with full config vs minimal config using standardized tasks per stack.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | benchmark |
| description | Compare Claude Code output with full config vs minimal config using standardized tasks per stack. |
Compare the effectiveness of a project's full dotforge configuration against a minimal baseline by executing the same standardized task in two isolated worktrees.
Cost warning: Each benchmark runs Claude Code twice (full + minimal). Use sparingly and only after Fases 0-2 are working.
.claude/settings.json and CLAUDE.md$DOTFORGE_DIR/tests/benchmark-tasks/.claude/.forge-manifest.json or infer from project files$DOTFORGE_DIR/tests/benchmark-tasks/{stack}.ymlgeneric.ymlDisplay:
═══ BENCHMARK SETUP ═══
Project: {{name}}
Stack detected: {{stack}}
Task: {{task title}}
Description: {{task description}}
⚠ This will run Claude Code twice in isolated worktrees.
Proceed? (yes/no)
Create two git worktrees from the current HEAD:
Full config — git worktree add /tmp/bench-full-{{slug}} HEAD
.claude/ directory as-isCLAUDE.md as-isMinimal config — git worktree add /tmp/bench-minimal-{{slug}} HEAD
CLAUDE.md with only project name and "Build & Test" section.claude/settings.json with only allowedTools (no hooks, no deny list).claude/rules/, no hooks, no agentsFor each worktree, run the task prompt using Claude Code in non-interactive mode:
cd /tmp/bench-full-{{slug}}
claude --print "{{task prompt}}" --allowedTools "Bash,Read,Write,Edit,Glob,Grep"
Same for minimal worktree.
Capture for each run:
═══ BENCHMARK RESULTS — {{project}} ═══
Task: {{task title}}
Stack: {{stack}}
Date: {{YYYY-MM-DD}}
Full Config Minimal Config Delta
Files created: {{N}} {{N}} {{+/-N}}
Tests created: {{yes/no}} {{yes/no}} —
Tests passing: {{N/M}} {{N/M}} {{+/-N}}
Lint issues: {{N}} {{N}} {{+/-N}}
Errors: {{N}} {{N}} {{+/-N}}
── ANALYSIS ──
{{if full is better across metrics:
"Full config prevented {{N}} lint issues and {{N}} errors.
ROI: rules + hooks justified for this project."}}
{{if similar:
"Minimal difference detected. Consider simplifying configuration
or running /forge rule-check to identify inert rules."}}
{{if minimal is better:
"⚠ Full config may be adding overhead without benefit.
Review rules for contradictions or excessive constraints."}}
git worktree remove /tmp/bench-full-{{slug}} and minimal~/.claude/metrics/{{slug}}/benchmark-{{date}}.jsonResults JSON schema:
{
"project": "{{slug}}",
"date": "{{YYYY-MM-DD}}",
"stack": "{{stack}}",
"task": "{{task id}}",
"full": {
"files_created": 0,
"tests_passing": 0,
"lint_issues": 0,
"errors": 0,
"has_test": false
},
"minimal": {
"files_created": 0,
"tests_passing": 0,
"lint_issues": 0,
"errors": 0,
"has_test": false
}
}