
AI coding agent. Harness-engineered.
harnext is the CI harness around your AI coding agent — it generates staged GitHub Actions workflows, label-driven promotion, and a self-hosted runner that carry an issue from triage to a merged PR, end to end.
harnext by FlowHunt
An open-source AI coding agent and CI harness that carries a GitHub issue from label to merged PR — autonomously. Built by the FlowHunt team, for developers who want AI in their workflow without giving up control.
- LLM providers
- 20+
- Agent tools
- 6
- Pipeline stages
- 5
- Open source
- MIT
Features
Everything you'd build into a coding agent — in one CLI.
harnext ships the agent, the harness, and the runner. No glue scripts, no agent server.
- Interactive Terminal Agent
- A REPL that reads, writes, edits, runs bash, and drives MCP servers. One-shot mode with -p for scripts and CI.
- 20+ Providers, One CLI
- Anthropic, OpenAI, Google, Ollama, NVIDIA, and more via pi-ai. Switch with --provider and --model on the fly.
- Harness for Your Repo
- Generates GitHub Actions workflows that pick up issues by label, run the right stage, and post results back.
- Self-Hosted Runner
- Register a daemon on your own machine (systemd / launchd) and run stages on your hardware. Idempotent install.
- Skills & MCP
- Bundle reusable skills (review, init, browser-verify) and connect any MCP server with proxy or direct mode.
- Replays & Status
- harnext status shows active runs; replays let you re-run any session step-by-step. Sessions live in ~/.harnext.
The Agent
Minimal agent. Local models.
harnext is a small, focused CLI agent. Six tools, a few skills, and an MCP bridge — that's the whole executor. Point it at a local model and your codebase never leaves the machine.
- Tiny Tool Surface.
- read · write · edit · bash · skill · MCP. That's the whole agent. No wrappers, no glue scripts, no hidden orchestration.
- Local-First Models.
- Point harnext at Ollama or NVIDIA out of the box, or any OpenAI-compatible endpoint. Your code never has to leave your machine.
- Switch Providers Per Stage.
- Run interactive REPL on Anthropic, then dispatch a CI stage to a local Llama. One flag: --provider, --model.
- Open & Inspectable.
- MIT-licensed monorepo, plain-JSON sessions in ~/.harnext. Replay any run, audit any tool call.
harnext drives itself — or any agent you trust.
Each pipeline stage can dispatch a different executor. Use the harnext REPL for interactive work, and pick claude-code or codex per-stage when running unattended in CI.
The Harness
From a GitHub issue to a merged PR — on rails.
harnext setup writes a staged pipeline of GitHub Actions workflows. Each stage is a label; promoting a label triggers the next stage. Run on GitHub-hosted runners, your self-hosted daemon, or both.
- issue:tagged
- Tagger workflow applies the first stage label as soon as an issue is opened.
- stage:plan
- Agent reads the issue, writes a structured implementation plan back as a GitHub comment.
- stage:implement
- Agent opens a branch, edits files according to the plan, and raises a pull request.
- stage:review
- Reviewer agent reads the diff, posts inline comments, and triggers a fix workflow if changes are needed.
- stage:merged
- Post-merge cleanup workflow runs after the PR lands — closing issues, updating project state.
Three commands to a running agent.
harnext is designed to be productive in minutes. Install globally, run setup once per repository, then start your interactive agent.
Self-Hosted Runner
Run the agent on your own hardware.
harnext setup registers a GitHub Actions self-hosted runner pinned to your repo, installs it as a systemd or launchd service, and keeps it alive across reboots. harnext runner status and harnext runner logs tail the daemon.
- Idempotent Install:
- Re-running setup skips work that's already done — safe to run multiple times.
- Project-Pinned Label:
- A unique label prevents shared-host runners from picking up jobs meant for another project.
- Public-Repo Guardrail:
- harnext setup confirms fork-PR approval gates are on before registering a public-repo runner.
- Clean Uninstall:
- Best-effort cleanup on uninstall: deregister, stop service, drop all runner artifacts.
Frequently asked questions
Learn more


GitHub
Integrate FlowHunt with GitHub to automate repository management, issue tracking, pull requests, and code reviews with AI—no coding required.

GitMCP
Integrate FlowHunt with GitMCP to provide AI assistants with instant access to up-to-date GitHub documentation and code, reducing hallucinations and boosting co...