
Agent Harness Construction
If you're building agents that call tools and you're tired of watching them retry the same failed action or pick the wrong tool entirely, this helps you redesign the harness. It's focused on the mechanics: how you structure tool schemas, what you put in observations, how you signal recovery paths, and when to use micro-tools versus macro-tools. The guidance is opinionated about things like status enums, next_actions hints, and context budgeting strategies. Most useful when you're past the prototype stage and debugging why your completion rate is stuck at 60% instead of 90%. Think of it as refactoring advice for the layer between your agent's reasoning loop and the actual tools it calls.
- skills.sh installs
- 1.1K
- GitHub stars
- 229.1K
- last updated
- Jul 14, 2026
Install
$ npx -y skills add affaan-m/ecc --skill agent-harness-construction --agent claude-codeInstalls into .claude/skills of the current project.
Files
Agent Harness Construction
Use this skill when you are improving how an agent plans, calls tools, recovers from errors, and converges on completion.
Core Model
Agent output quality is constrained by:
- Action space quality
- Observation quality
- Recovery quality
- Context budget quality
Action Space Design
- Use stable, explicit tool names.
- Keep inputs schema-first and narrow.
- Return deterministic output shapes.
- Avoid catch-all tools unless isolation is impossible.
Granularity Rules
- Use micro-tools for high-risk operations (deploy, migration, permissions).
- Use medium tools for common edit/read/search loops.
- Use macro-tools only when round-trip overhead is the dominant cost.
Observation Design
Every tool response should include:
status: success|warning|errorsummary: one-line resultnext_actions: actionable follow-upsartifacts: file paths / IDs
Error Recovery Contract
For every error path, include:
- root cause hint
- safe retry instruction
- explicit stop condition
Context Budgeting
Sponsors
Details
- Repository
- github.com/affaan-m/ecc
- Category
- AI & Agent Building
- First seen
- Jul 14, 2026
More from affaan-m/ecc
All 263- Autonomous Agent Harness1.1K
- Continuous Learning V21.1K
- Video Editing8.6K
- Docker Patterns7.7K
- Security Review7.6K
- Rust Testing7.4K
- Backend Patterns7.2K
- Frontend Patterns7.1K
- Coding Standards7K
- Market Research6.9K
- Python Patterns6.7K
- Api Design6.6K
- Laravel Security6.6K
- Frontend Slides6.5K
- Codebase Onboarding6.4K
- Frontend Design Direction6.4K
- E2e Testing6.4K
- Liquid Glass Design6.4K
- Tdd Workflow6.4K
- Database Migrations6.4K
- Android Clean Architecture6.4K
- Prompt Optimizer6.3K
- Golang Patterns6.3K
- Postgres Patterns6.3K