Skip to content

maxence2997/mx-harness

Repository files navigation

mx-harness

Your AI agent writes fast. mx-harness makes it engineer properly.

License Works with


What it looks like

Once installed, you tell the agent your idea — rough or detailed, it asks what it needs.

/mx-flow add Redis caching to the search endpoint

You make a few decisions. The agent handles the rest. Full walkthrough →


Principles

Without a harness, AI agents skip planning, skip tests, and produce unmaintainable diffs. mx-harness wraps the lifecycle into skills the agent must follow.

Principle Addresses
Spec before code Vague requirements, hidden assumptions, scope creep
Test-first Tests written after the fact, missed edge cases
Multi-perspective review Single-reviewer blind spots, missed SRE concerns
Structured commits "fix stuff" messages, mixed concerns per commit
Surgical changes Drive-by edits, inflated diffs, unrelated refactors
Don't assume Silent guessing on ambiguous specs

The difference

Without mx-harness

User:  "Add caching to the search endpoint"
Agent: [writes 200 lines of code]
       [commit: "add cache"]
       [no tests · no design doc · breaks 2 existing behaviours]

With mx-harness

User:  /mx-flow "Add caching to the search endpoint"
Agent: → Asks: Redis or in-memory? TTL strategy? Cache invalidation scope?
       → Writes design spec + ADR to ~/.mx/project/search-cache/
       → Waits for approval before touching any code

       → Task 1: Cache interface (testable abstraction)
       → Task 2: Redis adapter
       → Task 3: Wire into search handler
       → Task 4: Integration test with mock Redis

       [each task: red → green → refactor → structured commit]

       → Senior Engineer:     "Cache key includes user locale? Edge case."
       → SRE:                 "No TTL cap — potential memory leak under load."
       → Future Maintainer:   "Document why TTL=300 was chosen."

The first scenario is something most engineers have lived through. The second is what mx-harness locks in by default.


Skills

/mx-flow — the full pipeline

One command in. A few decisions from you. PR out.

/mx-flow add Redis caching to the search endpoint
/mx-flow finish search-cache                # post-merge cleanup

How it works →

Standalone skills

These skills also run inside mx-flow, but you can use them independently anytime:

Skill Description
mx-brainstorm Turn a rough idea into an approved design spec (with ADR)
mx-team-review 3-perspective code review — Senior Engineer, SRE, Future Maintainer
mx-review-triage Triage review findings into fix / track / skip buckets
mx-commit Structured commit with enforced message format
mx-pr Draft, review, and publish a PR to GitHub / GitLab / Bitbucket
mx-status Show current stage, progress, and next action for all features

Installation

mx-harness installs via npx skills — a CLI that drops skill folders into your agent's global skill directory:

  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/
  • GitHub Copilot: ~/.copilot/skills/
  • Cursor: ~/.cursor/skills/

Install or update everything:

curl -sL https://raw.githubusercontent.com/maxence2997/mx-harness/main/install.sh | bash

Inspect the script first if you'd rather: install.sh.

Install or update a single skill:

npx skills add https://github.com/maxence2997/mx-harness --skill <skill-name> -g -y

If you cloned the repo directly: ./install.sh runs the same install locally. git pull updates skills installed via symlink.


License

MIT

About

An engineering harness for AI coding agents — spec-first, TDD, multi-perspective review, clean commits.

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages