feat: Add Harbor Terminal-Bench comparison for agent effectiveness#199
Merged
jeremyeder merged 1 commit intoambient-code:mainfrom Dec 10, 2025
Merged
feat: Add Harbor Terminal-Bench comparison for agent effectiveness#199jeremyeder merged 1 commit intoambient-code:mainfrom
jeremyeder merged 1 commit intoambient-code:mainfrom
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add comprehensive Harbor integration to empirically measure Claude Code performance impact of agent files using Harbor's Terminal-Bench.
Key Features:
compare,list,viewExample Usage:
Architecture
Data Models (
src/agentready/models/harbor.py):HarborTaskResult- Single task result from result.jsonHarborRunMetrics- Aggregated metrics per runHarborComparison- Complete comparison with deltas and statistical testsServices (
src/agentready/services/harbor/):HarborRunner- Execute Harbor CLI via subprocessAgentFileToggler- Safely enable/disable agent files using context managersResultParser- Parse Harbor result.json filesHarborComparer- Calculate deltas and statistical significanceDashboardGenerator- Generate HTML reports with inlined Chart.jsReporters (
src/agentready/reporters/):HarborMarkdownReporter- GitHub-Flavored Markdown reportsDashboardGenerator- Interactive HTML dashboardCode Quality
Agent Reviews:
feature-dev:code-reviewer- No high-priority issues, excellent architecturepr-review-toolkit:code-simplifier- Clean separation of concernsdoubleagent.md- 95% score, exemplary library-first architectureCritical Fixes Applied:
Noneinstead of0.0)toggler.enable()call (context manager handles restoration)Test Coverage:
Linters:
black- Code formattingisort- Import sortingruff- Linting (all checks passed)Output Files
Results stored in
.agentready/harbor_comparisons/(gitignored):Symlinks (for quick access):
comparison_latest.jsoncomparison_latest.mdcomparison_latest.htmlStatistical Methods
Significance Criteria (both required):
Sample Size Recommendations:
Use Cases
1. Validate Agent File Effectiveness
2. Compare Different Agents
Run twice with different
--agent-filevalues, then compare the JSON results.3. A/B Test Agent Modifications
Before/after comparison when iterating on agent designs.
4. Benchmark Agent Performance
Quantify agent impact on success rate, duration, and task completion.
Documentation
docs/harbor-comparison-guide.md(comprehensive, 400 lines)CLAUDE.md(Harbor section added, 100 lines)Test Plan
Related Issues
Provides empirical validation for any agent file's impact on Claude Code performance.
🤖 Generated with Claude Code
Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com