Matrix spawns AFK (away from keyboard) agents — each named Smith — that autonomously work through GitHub issues one by one.
node >= 24- A
.envfile with aGH_TOKENset as environment variable with at least the following permissions:- Contents - Read-only
- Issues - Read and write
- Pull requests - Read and write
- Claude Code subscription
- A PRD broken down into subtasks as GitHub issues
- Clone this repo and copy its absolute path.
- Create a
.matrix/config.jsonfile at the root of your project (see example config). - Add a script to your project's
package.json:
{
"scripts": {
"matrix": "node --env-file=.env <path to Matrix>/src/index.ts"
}
}Run npm run matrix or pnpm matrix.
It is recommended to configure deterministic code quality and correctness checks using the checks option in your config. Three checks are supported: checks.fmt, checks.lint, and checks.test.
Example:
{
"checks": {
"fmt": "pnpm fmt",
"lint": "pnpm lint --format json",
"test": "pnpm test --reporter agent"
}
}Keep check output as token-efficient as possible. The
--format jsonand--reporter agentflags shown above are good examples — they reduce noise without sacrificing signal.