agent-harness-kit
AGENTS.md182 starsChanged 3 months agoApache-2.0View on GitHub
Read this file first. It is the navigation map for every AI agent working in this repository. @cardor/agent-harness-kit — A CLI and MCP tools for LLM providers If it exits non-zero, stop and report the issue. Do not proceed with codebase changes until health is green. The harness exposes tools via MCP server on port 3742. Use these instead of reading files directly.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,736 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository7 other files it gives its agents.
- ahk-askSkill
- ahk-consultantSkill
- ahk-reviewSkill
- ahk-testSkill
- ahk-triageSkill
- ahk-use-casesSkill
- ahk-use-case-techSkill
The file
We split this AGENTS.md into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
If it exits non-zero, stop and report the issue.
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md — @cardor/agent-harness-kit
Read this file first. It is the navigation map for every AI agent working in this repository.
Project
@cardor/agent-harness-kit — A CLI and MCP tools for LLM providers
Health check (run before making codebase changes)
bash health.shIf it exits non-zero, stop and report the issue. Do not proceed with codebase changes until health is green.
Harness data (source of truth)
| File | Purpose |
.harness/harness.db | SQLite: all tasks, actions, file changes, tool calls |
MCP tools (preferred)
The harness exposes tools via MCP server on port 3742. Use these instead of reading files directly.
actions.start taskId agent → start an action, returns a numeric actionId
actions.write actionId section text → record a section (result, blockers, ...)
actions.record_tool actionId calls[] → batch-log tool calls to the Tools dashboard (array, min 1)
actions.record_file actionId files[] → batch-log file touches to the Files dashboard (array, min 1)
actions.complete actionId summary → close the action
actions.list taskId [agent] [status] [limit] [cursor] → compact newest-first action index with pagination
actions.get_by_id actionId → single action with section index (no content)
actions.sections_list actionId [types] [limit] [cursor] → compact section index with type filtering
actions.sections_get sectionId [length] [offset] → ranged section content reader
actions.handoff.get taskId [recipient] → newest completed canonical handoff
actions.handoff.write actionId recipient ... → recipient-directed bounded handoff
tasks.add title [slug] [description] [acceptance] → create a new task from natural language
tasks.get [status] → list tasks (pending | in_progress | done | blocked)
tasks.claim id → atomically claim a pending task
tasks.update id status → change task status
tasks.acceptance.update criterionId → mark an acceptance criterion as met
docs.search query → search ./docs for relevant contentWorkflow
1. INIT
- Assess user intent: only run health.sh if changes are needed
- tasks.get('in_progress') → resume if something is in progress
- tasks.get('pending') → pick lowest id
2. WORK (lead → explorer → consultant → builder → reviewer)
- Each agent calls actions.start(taskId, agentName) → numeric actionId
- Accumulate tool calls / file touches as you work; flush periodically (every few calls or at a phase boundary) via actions.record_tool(actionId, calls: [...]) and actions.record_file(actionId, files: [...]) — both are batch-only, even a single entry goes through as a one-element array
- Closes with actions.complete(actionId, summary)
3. CLOSE
- tasks.update(taskId, 'done')
- Run health.sh (if changes were made) → must be green before closingAgent roles
| Agent | Responsibility |
| lead | Decomposes the task into a plan, assigns sub-agents |
| explorer | Reads and maps relevant code, never writes |
| consultant | Technical advisor, runs after explorer, before builder. Never writes code. |
| builder | Implements the plan, writes files |
| reviewer | Verifies acceptance criteria, approves or blocks |
What to read
Always: MCP tasks.get. If MCP is unavailable, stop and ask the user to restore the MCP connection.
If implementing: ./docs/
If orchestrating: Agent definition files in your provider's agents directory<!-- ahk:generated e596b259de9f69675f200b0275981c24ae03011384fad04e6cc05f6bc6b8856b -->Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

