Modernising legacy code that works but rots
The code that keeps the business running is the code no one has time to touch. Every quarter it gets riskier to change and more expensive to maintain.
The harness for governed multi-agent engineering
CortexBuild is the governed harness for the AI coding tools you already use — Copilot, Claude Code, Codex, and Cursor. It renders your team's rules and a disciplined review workflow into those tools, so the agents you already run can build on your existing repos and systems — new features, services, endpoints, and refactors, as well as legacy modernisation and backlog burn-down — under enterprise governance and your own LLM keys.
The model is a commodity; the harness is the moat. CortexBuild is the harness — the control loop, governance, and guardrails that make any model ship production-grade work.
BYO LLM keys User-controlled approval gates Open-core engine
Runs inside Copilot, Claude Code, Codex & Cursor · routes your own LLM keys · works where your code already is
The two jobs you can't fund
The code that keeps the business running is the code no one has time to touch. Every quarter it gets riskier to change and more expensive to maintain.
The fixes, chores, and tidy-ups that never reach the top of the sprint. Individually small, collectively a tax on every team and every roadmap.
How it works
No rip-and-replace. CortexBuild meets your code where it already lives and works the way a disciplined team would.
Point CortexBuild at your repository on GitHub, GitLab, Bitbucket, or Azure DevOps.
The brownfield analyser reads your code and infers your patterns — not a generic template.
Review a plain-English plan and approve what the agents are allowed to work on.
Your existing agents in Copilot, Claude Code, Codex, or Cursor work the roadmap through a rendered plan → review → verify workflow; you open the PR in your normal git flow when it's ready.
Onboarding promise A working .cortexbuild/ — your repo analysed, conventions captured as rules, and the harness rendered into your AI tools — in 30 minutes or less.
The differentiator
CortexBuild renders work as a sequence of specialised review roles into the AI coding tools you already run. The Critic reviews the plan before any code is written, and read-only analyzers run in parallel — so your tools follow the way a senior team actually ships.
The Critic challenges the plan's assumptions and missed requirements before a single line is written — catching the most expensive failure: shipping the wrong thing correctly.
Tester, Security, and Optimizer all read the same diff at once. Three independent checks, no write conflicts, faster wall-clock per task.
Only the Builder mutates code, and only after the plan is approved — so changes stay coherent and easy to review.
Why the harness is the moat
Frontier models converge on the same capabilities and turn over every few months. What compounds is the harness around them — the control loop, governance, evals, and feedback that turn any model into a disciplined engineering team. CortexBuild is that harness, and it is model-agnostic by design.
CortexBuild renders a fixed Planner → Critic → Builder → Tester → Security → Optimizer → PR-Reviewer workflow into your AI tools, so your work follows the same plan → review → build → verify order every time, regardless of which model you use. The harness defines the workflow — not the model.
Rules are authored once and rendered to every agent surface, so the same policy holds no matter which model or tool runs the task.
Conformance scoring, the offline eval harness, render --check, and recurrence-ledger guards are deterministic: no LLM in the loop, same result whichever model produced the change. The Critic, Tester, Security, and Optimizer roles add LLM review on top. CortexBuild flags failures; it does not enforce merges by itself — your existing approvals decide what lands.
The recurrence ledger records every fixed class of failure as a guard, so the harness catches the same mistake earlier on the next run.
A provider router lets you bring your own keys and route LLM providers: native Claude, native Gemini, and any OpenAI-compatible endpoint (OpenAI/Codex models, gateways, and local servers such as Ollama when run in OpenAI-compatible mode) — without rewriting your harness.
When the next frontier model lands, you point the router at it. The governance, evals, and feedback that make it safe to ship are already yours.
CortexBuild speaks both halves of the agent-interoperability standard. A read-only MCP server lets any IDE or agent host (Claude, VS Code, Cursor, Codex) consult your repo's conformance, drift, context gaps, and corrective proposals — and run an engineering persona as a prompt. An A2A Agent Card lets other agents discover CortexBuild's roster and skills. Both are read-only, offline, and opt-in: they expose what CortexBuild already knows and never write code or send data anywhere.
The roster
Breaks work into a sequenced, repo-specific roadmap.
Adversarially reviews the plan before any code is written.
Implements changes — the only agent that mutates code.
Runs the test matrix and synthetic probes for evidence.
Checks for security, privacy, and tenant-isolation regressions.
Evaluates scalability, reliability, performance, and cost.
Final merge gate — verifies correctness and coverage.
Fast, read-only codebase research and Q&A.
Turns past failures into permanent guardrails.
Enforces strict phase sequencing across the team.
Built for control
Write a rule once; render it to Copilot, Claude, Cursor, and Codex automatically. No drift across tools.
Agents learn from past failures. Every fixed class of mistake becomes a guard that blocks it from recurring.
Your models, your spend. Code and inference stay under your control — never routed through us.
Sensitive actions are consent-gated behind an explicit approval, so you decide what agents may do without a human. On the roadmap: a configurable matrix of action classes across autonomy levels.
Infers your conventions from your existing code — no greenfield assumptions, no template lock-in.
The open-core engine installs and runs entirely on your own infrastructure — your perimeter, your keys. On the roadmap: a self-hostable VM sandbox for the agent runtime.
Every permission-affecting change is recorded — SOC2-friendly trails for compliance reviewers.
A 0–100 measure of how well a change adheres to your standards, surfaced before you merge.
Track model spend per task and set budget gates that pause work before costs run away.
Point the harness at any OpenAI-compatible endpoint — cloud, or a model you serve on-box with Ollama, LM Studio, or vLLM. LLM egress is locality-gated: a loopback model on the same machine runs zero-egress with no consent prompt; LAN and cloud endpoints pass an explicit egress gate first. If you expose an OpenAI-compatible endpoint from workstation-class AI hardware — for example an NVIDIA DGX Spark — CortexBuild reaches it through the same generic endpoint path.
Every repo gets a module-dependency graph — god-nodes, communities, per-language stats — built on onboarding and kept current incrementally (it rebuilds only when your sources actually change). Across a multi-repo workspace, a cross-repo dependency graph shows how features connect (frontend → backend → shared libs), so a control plane can see which repos a change ripples into. Deterministic and offline — no code leaves the machine.
Save a compact, tag-only snapshot of where a session left off and restore it on another device or hand it to another teammate — "continue where Alice left off." Scoped to a stable repo identity, attribution is opt-in, and it carries summaries and tags only — never raw code, prompts, or secrets. Hosted sync is consent-gated and erasable.
See every capability in one place — its plan tier, whether you're entitled, and whether it's actually used — so you can spot unused features and right-size your subscription. Usage is captured at the enforcement point, so features used only via the API still count. Admins enable or disable features within the plan ceiling; every change is subtract-only, signed, and audit-logged.
Use cases
Point CortexBuild at the module everyone is afraid to touch. It infers your conventions, proposes an incremental roadmap, and drives your AI tools to prepare governed changes — each one tested, security-checked, and reviewable — that you open as PRs. Legacy debt comes down a safe step at a time.
Feed CortexBuild the small fixes, chores, and tidy-ups that pile up. Your AI tools work through tickets within the checks you set, typically producing one reviewable change per ticket that you can open as a PR — so your team's attention stays on the work only humans can do.
Priya doesn't read diffs. She reads plain-English roadmaps, approves what matters, and watches the cost dashboard she can hand straight to the CFO. CortexBuild gives her a way to adopt AI with a clear paper trail — and without handing over the keys to the codebase.
Devansh wants full diffs, the test output, and the security findings — and the ability to delegate the boring work without losing control. CortexBuild gives him a reviewable PR with evidence attached, so he can approve in seconds or send it back with a comment.
Describe a new feature, service, or endpoint on an existing repo. CortexBuild renders your rules and review workflow into your AI tools, which draft the change against your conventions and prepare a governed, tested PR for you to open — net-new work and refactors on the systems you already run, not greenfield scaffolding from an empty repo.
ROI calculator
Move the inputs to see an estimate of hours and dollars saved each month. The math is deliberately conservative and fully shown below.
Estimated monthly impact
Estimate — your results will vary. For planning only; not a guarantee of performance.
automated = tickets/mo × (autonomous share ÷ 100)
hours saved = automated × hours per ticket
gross labour $ = hours saved × engineer $/hour
LLM spend $ = automated × LLM $ per ticket
net saved $ = gross labour $ − LLM spend $
How we compare
| Capability | CortexBuild | Single-agent tools | Closed autonomous agents |
|---|---|---|---|
| Multi-agent wave model | Yes | No | Partial |
| Adversarial Critic (before code) | Yes | No | No |
| Rule single-source-of-truth fan-out | Yes | Partial | No |
| Recurrence ledger / learning from failures | Yes | No | Partial |
| Bring your own LLM key | Yes | Partial | No |
| Self-hostable VM | Yes | No | No |
| Approval governance | Yes | Partial | No |
| Open-core | Yes | No | No |
Born in production
CortexBuild is the generic extraction of an agent governance system proven on CortexVigil, an enterprise surveillance platform. The wave execution model, Rule single-source-of-truth, recurrence ledger, adversarial Critic, and self-audit discipline were all forged shipping real software under real constraints.
Pricing
Indicative pricing for early access. With BYO LLM keys, you pay model costs directly — roughly $0.05–$0.80 per backlog ticket and $0.50–$5 per modernisation PR.
Free
OSS engine, self-hosted
$50 / seat / mo
+ BYO LLM keys
Custom
For regulated & large teams
Indicative / early access pricing — subject to change before general availability.
FAQ
No. CortexBuild augments your team. It clears the work that never reaches the sprint and modernises the code no one has time to touch — while humans keep the merge gate and make the calls that matter.
Bring your own. CortexBuild routes to native Claude (Anthropic), native Gemini, and any OpenAI-compatible endpoint — which covers OpenAI/Codex models, gateways, and local servers such as Ollama in OpenAI-compatible mode. Separately, it renders into the AI coding tools you already use — Copilot, Claude Code, Codex, and Cursor. You supply the keys and pay model costs directly.
Agents run in your sandbox — self-hostable in your own VM. LLM calls use your keys and go directly to the provider you choose. Your code and your spend stay under your control.
CortexBuild is built for brownfield — existing codebases with real conventions and real history. It infers your patterns rather than scaffolding from scratch.
GitHub, GitLab, Bitbucket, and Azure DevOps. Your AI tools prepare changes that you open as PRs in your normal git flow, so review happens exactly where it does today.
Sensitive actions are consent-gated behind an explicit approval, so agents only act within the gates you set, and anything that ships still passes through a reviewable PR you open and approve. A configurable matrix of action classes across autonomy levels is on the roadmap.
Open-core. The engine (cortexbuild-core) is open source under Apache-2.0 and self-hostable. Hosted control-plane features are available on the Cloud Team and Enterprise plans.
CortexBuild routes to any OpenAI-compatible endpoint, so you can serve a model on your own infrastructure — for example with Ollama, LM Studio, or vLLM — and point the harness at it. LLM egress is locality-gated in three tiers: a loopback model on the same machine runs zero-egress with no consent prompt; a LAN endpoint requires an explicit trust declaration; a cloud endpoint passes a consent gate (fail-closed). If you expose an OpenAI-compatible endpoint from workstation-class AI hardware — for example an NVIDIA DGX Spark — CortexBuild reaches it through the same generic endpoint path. NVIDIA and Microsoft are unaffiliated third parties; naming their products is industry context only, not a partnership or certification.
In own-orchestration mode (CORTEXBUILD_LLM=1), the router assigns each agent to a model tier: Planner, Critic, Security, and PR Reviewer get reasoning_heavy models (Opus, GPT-5); Builder, Tester, and Optimizer get balanced models; the Explore agent gets fast_cheap. You can override any agent tier in .cortexbuild/llm-config.yaml. For medium-or-higher risk tasks, the Critic is always run on an independent model — a different vendor or model from the Planner — so it reviews the plan without sharing the author's blind spots. In rendered-host mode (Copilot, Claude Code, Cursor), the host tool's vendor controls the model; per-agent tier routing does not apply and no LLM key is needed.
Join the early access list. Connect your repo at launch and get it analysed, with your conventions captured as rules and the harness rendered into your AI tools — in under 30 minutes.
Early access — we'll email you when you can connect your repo. No spam.