hexacore-agent
Supports Elixir projects with slice scaffolding, architecture checks, QA via Mix, auto-fix, and reversible changes.
Supports Flutter projects with slice scaffolding, architecture checks, QA via the Flutter toolchain, auto-fix, and reversible changes.
Supports Laravel/PHP projects with governed scaffolding, rule search, architecture checks, QA via PHPUnit, auto-fix, and rollback.
Supports .NET projects with slice scaffolding, architecture auditing, QA via the .NET toolchain, safe auto-fix, and reversible changes.
Provides governed scaffolding, rule search, architecture auditing, quality checks, safe auto-fixes, and rollback for Node.js projects, using the stack’s own toolchain for verification.
Supports Python projects with governed scaffolding, rule search, architecture audits, QA via pytest, auto-fix, and rollback.
Supports React projects with vertical-slice scaffolding, compliance rules, architecture checks, QA, auto-fix, checkpoints, and rollback tailored to the React stack.
Supports Ruby projects with governed scaffolding, architecture auditing, QA via RSpec, safe auto-fix, and rollback.
Supports Rust projects with slice scaffolding, architecture auditing, QA via Cargo, safe auto-fix, and reversible checkpoints.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
HexaCore Agent
A governed engineering companion for AI coding agents, exposed as an MCP server (and a CLI), for the 11 stacks of the HexaGen suite: Node.js, React, React Native, .NET, Laravel, Rust, Python, Go, Flutter, Ruby and Elixir.
Your AI client plans and writes code. HexaCore makes that work compliant, verified, reversible and remembered:
Need | HexaCore gives the agent |
Know the rules | Bilingual (EN/ES) rule search over bundled conventions, project rules and ADRs |
Start right | Vertical slices with ports, adapters, composition root and tests — adapted to the host project |
Know it works | The stack's own compiler, linter and test runner, with structured failures (file, line, test) |
Keep the design clean | A whole-repo architecture audit: slice coupling, layer direction, file size |
Fix safely | Sampling-based auto-fix that never edits tests and rolls back patches that make things worse |
Undo anything | A checkpoint for every write; exact, all-or-nothing rollback |
Continue tomorrow | Persisted plans, ADRs, QA history and handoff notes behind |
Get better with use | A learning loop: resolved failures become lessons, lessons are credited only when the actual fix matches them, proven ones become Claude Code skills and travel to your other projects |
Adapt to you | A user model across sessions: preferences you state, plus habits observed from how you actually work, at the top of every briefing |
Prototype UI | HTML prototypes with versions and a local live preview, a |
Speak up | Watch mode re-runs checks on save and alerts (terminal, desktop, voice) only when one breaks or is fixed; voice commands with offline speech-to-text |
Generated code is not a template demo: CI scaffolds two slices into a minimal host project for each of the 11 stacks and requires the real toolchain (dotnet, cargo, mix, go, flutter, pytest, phpunit, rspec, tsc + vitest) to compile it and pass its tests.
Quick start
Register it in Claude Code (Node 20+):
claude mcp add hexacore-agent -- npx -y hexacore-agentOr in any MCP client (mcp.json):
{
"mcpServers": {
"hexacore-agent": {
"command": "npx",
"args": ["-y", "hexacore-agent"]
}
}
}The CLI is npx -p hexacore-agent hexacore <command> (or npm install -g hexacore-agent, then hexacore <command>).
From source:
git clone https://github.com/rbaezc/hexacore_agent.git
cd hexacore_agent
npm install
npm run build
claude mcp add hexacore-agent -- node /absolute/path/to/hexacore_agent/dist/cli/mcp_launcher.jsThe workspace is taken from the client's MCP roots (or the server's working directory; HEXACORE_WORKSPACE overrides both).
Related MCP server: Vibe Coder MCP Server
A session
resume_session → where we left off
/design_feature "Refunds for orders" → guided design: slices, contract, ADRs, then a plan
define_contract / record_decision → contract-first API + recorded trade-offs
orchestrate_task (slices: [...]) → rules → scaffold → architecture audit → tests (+ auto-fix)
run_quality_assurance (checks: test, typecheck, lint)
check_architecture
record_handoff → context for the next session
record_lesson (episodeId) → when a check went green: keep what you learnedHow HexaCore adapts to you
What you say: when you state a lasting preference ("always show the plan before writing", "name Go packages in singular"), the model calls
remember_preference.scope: user(default) follows you to every project;scope: projectapplies to one.What you do: HexaCore counts how you use it (stacks, the checks you run, whether you preview scaffolding, how often you roll back its changes) and, with enough evidence, derives habits such as "usually verifies with [test, typecheck]".
Both open every
resume_sessionbriefing, so each session starts adapted to you.Local files only (
~/.hexacore/profile.json,.hexagen/profile.json). Credential-like text is refused.forget_preferenceremoves one preference, the observed habits (observed: true) or everything (all: true).HEXACORE_PROFILE=offdisables the user profile.
UI prototypes
Design a page or screen before building it, with the same guarantees as code: versioned, checked, reversible and learned from.
Prototype:
create_prototypesaves the page as a new version in.hexagen/prototypes/<name>/(the whole page, oreditsto the current version) and returns a preview URL on127.0.0.1that reloads by itself when a new version is saved.Check:
run_quality_assurancewithchecks: ["ui"]and atarget(a prototype, an.htmlfile, or ahttp://localhostdev server):static rules always run: viewport and title, tokens that resolve to nothing in one theme, missing dark mode, fixed widths wider than a phone, unlabeled images, buttons and inputs, heading order, broken anchors, unpinned CDN scripts;
with Playwright in the project (
npm i -D playwright && npx playwright install chromium), the page is also rendered at 390px and 1280px in light and dark mode: horizontal overflow, text contrast, clipped text, console errors and failed requests, with screenshots in.hexagen/prototypes/.shots/. Two of them are attached to the result so the model can look at the page.
Learn: a
uifailure that goes green is an episode like a failing test, so lessons about UI mistakes are offered and credited by the actual fix.Promote:
promote_prototypecopies the approved version to an.htmltarget through a checkpoint and checks it there; for a slice of a React, Flutter… app it returns the design tokens (light and dark), the markup and the steps to port it.
The /prototype_ui prompt runs the whole flow, and search_knowledge_base "ui conventions" returns the UI rules HexaCore checks against. HEXACORE_PREVIEW=off disables the preview server; HEXACORE_PREVIEW_PORT changes its port (default 4173).
Watch mode and voice
hexacore watch --lang es # typecheck + tests a moment after each save
hexacore voice setup # checks ffmpeg + microphone and whisper.cpp, downloads the model
hexacore listen --lang es # Enter to talk, Enter to stop (or type the command)Watch: a couple of seconds after the last save (
--debounce),hexacore watchrunstypecheckandtest(--checks) for every stack in the workspace, one run at a time. It interrupts you only when a check changes colour: "The typecheck broke in orders service", "The tests are green again". Alerts go to the terminal, a desktop notification and the system voice (--notify console,desktop,voice), in English or Spanish (--lang,HEXACORE_LANG, or the system locale). Every run is recorded in the QA history and the learning loop, soresume_sessiontells the next session what watch mode saw. Dependencies, build output, dot-directories and simple.gitignoreentries don't trigger runs.Voice:
hexacore listenrecords with ffmpeg and transcribes with whisper.cpp on your machine; audio never leaves it. It understands, in Spanish or English: where we left off, run the tests / typecheck / lint / build, is anything broken, list or open prototypes, list checkpoints, undo the last change, help, exit. Undoing is described first and runs only after a spoken "yes"; a rollback that would overwrite later edits is reported, never forced.--muteanswers in text only.Setup: ffmpeg on
PATH(HEXACORE_FFMPEG), whisper.cpp'swhisper-cliin~/.hexacore/whisper/or onPATH(HEXACORE_WHISPER), and a model (voice setup --model tiny|base|small|medium, defaultbase, ~148 MB;HEXACORE_WHISPER_MODEL).HEXACORE_MICpicks the microphone.
Learning loop
HexaCore learns from what actually happens in your project, and checks its lessons against the stack's real test results instead of the model's opinion of itself:
Experience: every check that goes from red to green becomes an episode (failure, test, file, line, runs to fix).
run_quality_assuranceasks the model to distill it withrecord_lesson.Lessons: markdown in
.hexagen/skills/(when it applies, what to do, example). They are indexed bysearch_knowledge_base, and you can review, edit and commit them.Proactive use: when a check fails, matching lessons come back in the same result.
resume_sessionlists the best lessons and the failures that still have no lesson.Scoring by evidence: HexaCore snapshots the project when a check turns red and compares it with the project when it turns green. A lesson offered meanwhile is credited only if the fix resembles it (its terms appear in the changed lines or files); a check that goes green without any change credits nobody. Lessons that stay red for 5 runs are debited, and
rate_lessonadds explicit feedback. Effective lessons rank higher, weak ones are flagged for a rewrite (updateIdkeeps their history) or retired.Skills: lessons that have helped at least 3 times, at least 70% of the time, are exported with
export_skillsto.claude/skills/hexacore-*/SKILL.md, so Claude Code loads them natively.Maintenance: lessons nobody has used for months lose weight in search (down to 60% after a year) and are listed as stale; near-duplicates are listed in pairs and
merge_lessonsfolds them into one, keeping their evidence.Your other projects:
share_lessonscopies proven lessons to your lesson library (~/.hexacore/, or$HEXACORE_HOME). Projects with the same stack get them as suggestions after their own lessons (library:<id>), and their outcomes keep scoring them.HEXACORE_LIBRARY=offdisables the library.
Tools
resume_session · search_knowledge_base · execute_scaffolding · run_quality_assurance · check_architecture · orchestrate_task · resume_plan · list_checkpoints · rollback_changes · record_decision · define_contract · record_handoff · record_lesson · rate_lesson · review_lessons · export_skills · share_lessons · merge_lessons · remember_preference · forget_preference · create_prototype · list_prototypes · promote_prototype
Prompts: design_feature, implement_slice, fix_failing_checks, prototype_ui. Resources: every rule document and the session briefing.
Full reference: docs/hexagen_user_manual.md. Design: docs/architecture_blueprint.md. Rules: docs/rules/.
CLI
npm start -- scaffold go orders --dryRun --workspace ../shop
npm start -- qa go --checks build,lint,test --workspace ../shop
npm start -- arch --workspace ../shop
npm start -- lessons --workspace ../shop
npm start -- prototype landing ./draft.html --workspace ../shop
npm start -- ui landing --workspace ../shop
npm start -- preview --open --workspace ../shop
npm start -- promote landing docs/index.html --workspace ../shop
npm start -- watch --lang es --workspace ../shop
npm start -- listen --lang es --workspace ../shopJSON on stdout; exit code 2 when checks aren't green.
Development
npm test # unit + integration (real MCP client over in-memory transport)
npm run build && node scripts/mcp_smoke.mjs # built server over real stdio
node scripts/e2e_stack.mjs go # or: all | node,rust,... (needs those toolchains)
npm run e2e:learning # learning loop on a real Go project (needs Go)
npm run e2e:pack # npm pack → install → MCP smoke, as users get it
npm run e2e:ui # UI prototyping with a real browser (needs: npx playwright install chromium)
npm run e2e:watch # watch mode + typed voice commands through the built CLI
npx tsx src/cli/hexacore_cli.ts arch src --strict # self-audit, warnings fail tooProject files HexaCore creates
.hexagen/state.json— plans, ADR index, QA history, handoffs (commit it to share with your team)..hexagen/checkpoints/— rollback journals (add to.gitignore)..hexagen/telemetry.log— JSONL spans (add to.gitignore)..hexagen/rules/*.md— your own rules; they rank above the bundled ones..hexagen/skills/*.mdand.hexagen/learning.json— learned lessons and their track record (commit them to share what the project has learned)..claude/skills/hexacore-*/— lessons exported as Claude Code skills, when you ask for them.hexacore.json— optional project config, e.g.{ "architecture": { "compositionSlices": ["orchestrator"] } }: slices that exist to coordinate others (orchestrators, API or tool layers) may use their public modules without warnings; reaching their internals is still an error..hexagen/profile.jsonand~/.hexacore/profile.json— preferences for this project and for you, and your observed habits.~/.hexacore/lessons/and~/.hexacore/learning.json— your lesson library, shared across projects, when you share lessons (outside the project)..hexagen/prototypes/— UI prototypes: the current version of each in<name>/, every version in.versions/, metadata in.meta/and screenshots in.shots/..hexagen/ui-shots/— screenshots ofuichecks on pages that are not prototypes.~/.hexacore/models/and~/.hexacore/whisper/— the Whisper model and (optionally) whisper.cpp, for voice commands (outside the project).docs/adr/,contracts/— decisions and API contracts, when you ask for them.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
AI-native programming language and toolchain for accountable, verifiable agent-driven development.
Code intelligence platform for AI agents. 20 tools for architecture, security & impact analysis.
Coordination hub for AI coding agents: message teammates, ask humans, audit every event.
Git-backed platform for skills, tools, and context for AI agents
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to safely inspect, edit, and test code within a bounded repository environment to solve software engineering tasks and verify fixes.-
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to research, plan, generate requirements, map codebases, curate context, manage tasks, scaffold projects, and run multi-step software development workflows.42 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables AI coding providers to run structured multi-agent workflows with specs, tracked tasks, handoffs, health gates, and audited repair mode.29 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables AI coding agents to perform zero-token static audits, simulate refactorings in an ephemeral RAM clone, trace downstream ripple effects, and block unsafe writes with automatic rollback to prevent regressions.30 npmBusiness Source 1.1