MiHa
You keep typing the way you always do. It reads, asks around, remembers, and writes down what helped.
A second opinion before the first edit · repo memory opened only when it pays · a record of what helped, for future evolution
You know the codebase, you know your personal preferences, now let your agents know as well.
How it works
Every request, while MiHa is on:
1. Infer the task tag → update · debug · refactor · query · check · exec · pr · init · loop
2. Gate the evidence → one external fact with a known source is fetched directly; advisors
spawn only on a signal the route hook injects: research or alternatives
words in the prompt, or shell errors that point at version drift
(a docs lookup, then the online-researcher, then the devil's advocate)
3. Read repo memory on need → preference.md is the one standing read; `begin` prints the matching
routes (symptom → entry files → tests → verify command); the rest only when it pays
4. Do the work the native way → your platform's own flow, permissions, and tools
5. Finish the run's record → `mh.sh begin` opened it, `mh.sh end` fills it from flags, writes memory, and seals it
6. Consolidate on request → wiki folds trajectories into harness_effect.md
The advisors are waited on at one boundary for at most the advisory budget (5 minutes by default), and only the next action that depends on their answer waits; independent work proceeds. Source-dependent actions and claims require verified evidence; unverified parts remain unresolved on timeout. Their findings are dispositioned by the main agent: adopt, partly adopt, keep for later, or reject. Those decisions go in the trajectory, not in a checklist you have to click through.
Lazy about ceremony, never about evidence: the advisors read the real code, the researcher cites every source, and the verifier never edits.
Install
Pick one host. Each takes one to two minutes.
Claude Code (plugin)
/plugin marketplace add HangYu8123/mini-harness
/plugin install mini-harness@mini-harness
/mini-harness:mini-harness on
The third command also creates .harness/ in the repo (protocol copy, repo_info/, exec_traj/, state/). The plugin's own hook and agents cover the rest.
To try it without installing: claude --plugin-dir /path/to/mini-harness.
Claude Code or Codex (standalone, bare /mini-harness)
git clone https://github.com/HangYu8123/mini-harness.git
bash mini-harness/install.sh /path/to/your-repo
The installer writes .harness/, the skills into .agents/skills/ and .claude/skills/, the workers into .claude/agents/ and .codex/agents/, a six-line block in AGENTS.md, a CLAUDE.md importing it, and a routing hook that stays silent until on. Every file it writes is listed in .harness/installed.tsv. A same-named file it did not install, or one you edited, is kept and reported (--force overwrites). Run it again to update; --uninstall removes what it owns and keeps the memory.
Add --guard for a hook that hard-blocks sudo, git push, git commit, and tree-wide deletes even when you ask for them. It is opt-in; without it your permission prompts decide.
Codex: hooks are skipped until trusted. Run /hooks once in Codex and trust the two mini-harness entries.
Codex (plugin)
codex plugin marketplace add HangYu8123/mini-harness
Install from /plugins, then:
bash mini-harness/install.sh /path/to/your-repo --no-hooks
Codex plugins carry no custom agents, so the installer adds .codex/agents/ (plus the standalone skills and .harness/; --no-hooks only avoids a second routing hook next to the plugin's). In Codex run /hooks, trust the plugin's route hook, then $mini-harness on.
Check the install
Open a new session and run /mini-harness doctor (Codex: $mini-harness doctor). It should print the resolved root and ok lines, never "unknown skill".
That was it. The cat did not wake up.
Use it