CodelyTV/agent-harness
About
Skills, plugins and hooks so your agent writes the code you expect, the way you expect.
Developer ToolsMeasured star growth
- in 24h
- 0
- in 7 days
- +24
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Original🤖 Agent Harness
Skills, plugins and hooks so your agent writes the code you expect, the way you expect.
Your agent writes code faster than you can review it. Instead of reading every line, turn your conventions into rules that fail in seconds: the agent corrects itself, and you review what the change does, not how it is written. Review outputs, not code.
Workflow
- Make your docs deterministic with
/deterministify docs. - Enforce your code conventions with
/deterministify conventions. - Add a new rule with
/create-ruleevery time you correct the agent. - Commit with
/git-commit. - Open the pull request with
/create-pull-request, with before/after evidence of what the change does: screenshots, videos and architecture diagrams.
For larger tasks, plan the work with /create-plan and implement it one phase at a time with
/implement-plan-phase. Already using OpenSpec? Run /openspec-create-spec-from-code first.
Why
Your docs are suggestions
You wrote your conventions down, but the agent only follows them if it loads the right doc and reads it the way your team does.
The fix: /deterministify docs turns every convention that code can check into a linter rule or a test.
Your code does the same job in two ways
A legacy way and a current way live together, and the agent copies whichever it reads first.
The fix: /deterministify conventions finds them in the code and its history, and enforces the current way with a
rule, after you confirm it.
You correct the same thing again and again
You fix the agent in one session, and it makes the same mistake in the next one.
The fix: run /create-rule after the correction. It becomes a rule when a rule can check it, and a minimal doc
with the reason when it cannot.
The history is a mess
Commit messages follow whatever the agent felt like that day.
The fix: /git-commit writes Conventional Commits with the co-author trailer of the agent that made the change.
Install
npx skills@latest add codelytv/agent-harness
Pick the skills you want and the agents to install them on. Then run one, for example /create-rule.
Claude Code plugin
/plugin marketplace add CodelyTV/agent-harness
/plugin install codely-skills@codely
Skills
| Skill | Use it when | Variants |
|---|---|---|
deterministify |
You want the conventions your repository already has enforced by linter rules and tests. | |
create-rule |
You corrected the agent, or want a new convention enforced, and want a rule instead of a doc. | |
git-commit |
You want to commit your changes with a Conventional Commit message. | |
create-pull-request |
You open or update a pull request and want its description to follow a template with evidence. | |
create-plan |
You start a larger task and want a plan split into reviewable phases. | -subagents, -github, -gitlab |
implement-plan-phase |
You have a plan and want to implement its next phase. | -github, -gitlab |
openspec-create-spec-from-code |
You need the OpenSpec specs of behaviour that already exists in the code. | |
create-doc |
Deprecated: use create-rule. |
Variants
-subagents:create-plan-subagentsdelegates the codebase exploration to cheaper subagents running in parallel.-github:create-plan-githubstores the plan as a parent issue with one sub-issue per phase, andimplement-plan-phase-githubopens one pull request per phase.-gitlab:create-plan-gitlabandimplement-plan-phase-gitlabdo the same with GitLab issues and merge requests.
codely-spec-plan OpenSpec schema
An OpenSpec custom schema that brings the
create-plan-subagents flow to OpenSpec. Each change produces only two things to review:
- Lean specs: one behaviour with SHALL per requirement and a single-line scenario.
plan.md: goal, decisions and one vertical slice phase per part a user can complete a goal with, each with its contracts and a test strategy that proves it with few tests. Its checkboxes are the task list that/openspec-apply-changeworks through one phase per run, committing each phase.
Install it in your project and select it in openspec/config.yaml:
npx degit CodelyTV/agent-harness/openspec/schemas/codely-spec-plan openspec/schemas/codely-spec-plan
schema: codely-spec-plan
Claude Code plugins
Plugins for Claude Code only, installed from this repository's marketplace.
ste100: answers in Simplified Technical English
Makes the agent write to you in ASD-STE100 Simplified Technical English: short sentences, active voice, one word per meaning, no idioms. It changes how the agent writes to you, not how it writes code.
/plugin marketplace add CodelyTV/agent-harness
/plugin install ste100@codely
Then run /config, look for Output Style, and select ASD-STE100. More in its
README.
ts7-lsp: faster TypeScript code intelligence
Go-to-definition, references and diagnostics through the
TypeScript 7 native compiler LSP. It indexes
large monorepos roughly 10x faster and with far less CPU than the official typescript-lsp plugin.
Requires a TypeScript 7+ tsc binary on PATH (e.g. npm install -g typescript).
/plugin marketplace add CodelyTV/agent-harness
/plugin install ts7-lsp@codely
/plugin disable typescript-lsp@claude-plugins-official
More in its README.
Under the hood
One source for every agent
Rules live in AGENTS.md and skills in .agents/skills/. Each agent expects them in a different path, so a make
command creates the symlinks it needs. They are not committed, so run the ones you need after cloning:
| Command | What it does |
|---|---|
make claude-symlinks |
Links CLAUDE.md → AGENTS.md in every directory with an AGENTS.md, and .claude/skills |
make codex-symlinks |
Links .codex/skills → .agents/skills |
make copilot-symlinks |
Links .github/skills → .agents/skills |
make cursor-symlinks |
Links .cursor/skills → .agents/skills |
make junie-symlinks |
Links .junie/skills → .agents/skills |
make opencode-symlinks |
Links .opencode/skills → .agents/skills |
export blocked via hooks
The export command can leak environment variables (tokens, secrets) if an agent runs it. Each agent has a
pre-execution hook that blocks any shell command containing export:
| Agent | Hook location | Mechanism |
|---|---|---|
| Claude Code | .claude/settings.json |
Uses the if keyword with a glob pattern (Bash(*export*)) to match and block inline |
| Cursor | .cursor/hooks.json + hooks/block-export.sh |
Runs a shell script that parses the command via jq and exits with code 2 on match |
| Copilot | .github/hooks/hooks.json + hooks/block-export.sh |
Same approach as Cursor, adapted to Copilot's hook input format |
| OpenCode | .opencode/plugins/block-export.ts |
A native TypeScript plugin (tool.execute.before) that inspects the command and throws to block |
Learn to build your own harness
Every skill, plugin and hook in this repository comes from a Codely course. The courses explain why each piece works and how to build your own for your project. Take them in this order (they are in Spanish):
| Course | What you learn | In this repository |
|---|---|---|
| ✨ Programación agéntica con IA: Fundamentos prácticos | AGENTS.md, skills, MCPs, subagents, costs and security hooks: the base of any harness. |
AGENTS.md for every agent, export blocked via hooks |
| 📜 Spec-Driven Development con RPI | Research, Plan, Implement: split larger tasks into reviewable phases and implement them one at a time. | create-plan, implement-plan-phase and their variants |
| ⚫ Spec-Driven Development con OpenSpec | Keep living specs next to your code, add them to existing code and simplify OpenSpec with your own schema. | openspec-create-spec-from-code, codely-spec-plan schema |
| 🤿 Agent Harness: De revisar código a revisar outputs | Turn docs into rules, add guardrails so the agent verifies its work, and review outputs instead of code. | deterministify, create-rule, create-pull-request, ts7-lsp |
Explore related projects
Loading…