hexacore-agent
v3.8.0Verified, reversible Vertical Slice Architecture companion for 11 stacks; learns from your tests.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
resume_session Resume session
Call first in every session (an agent passes agent, e.g. "qa", to see the handoffs addressed to it first). Returns a briefing of where work stopped (unfinished plans, last QA results, recent decisions, last handoff, checkpoints) plus the workspace root and detected stacks.
| Parameter | Type | Description |
|---|---|---|
agent | string | The agent role making this call (e.g. "dev", "qa", "e2e"), so its work is attributed to it. Defaults to HEXACORE_AGENT. |
search_knowledge_base Search architecture rules
BM25 search (English/Spanish) over HexaCore rules, the project rules (.hexagen/rules/ and the folders listed in hexacore.json knowledge) and the ADRs in docs/adr/. Use before designing or changing code to respect conventions.
| Parameter | Type | Description |
|---|---|---|
query * | string | What you need to know, e.g. "repository layer rules for go" |
agent | string | The agent role making this call (e.g. "dev", "qa", "e2e"), so its work is attributed to it. Defaults to HEXACORE_AGENT. |
topK | integer | Number of snippets (default 3) |
execute_scaffolding Scaffold a vertical slice
Generates a VSA slice (domain, application, infrastructure, presentation, composition module and tests) adapted to the host project. Never overwrites existing files unless overwrite=true; use dryRun=true to preview. Every write is recorded in a checkpoint (see rollback_changes).
| Parameter | Type | Description |
|---|---|---|
sliceName * | string | Feature name, e.g. 'orders' or 'user-profile' |
stack * | string | |
agent | string | The agent role making this call (e.g. "dev", "qa", "e2e"), so its work is attributed to it. Defaults to HEXACORE_AGENT. |
dryRun | boolean | Return the planned files and their content without writing |
includeTests | boolean | Generate the slice tests (default true) |
layer | string | One layer only, or the full slice (default) |
overwrite | boolean | Replace files that already exist |
targetDir | string | Project directory relative to the workspace (monorepos) |
run_quality_assurance Run quality checks
Runs the stack's native tools and returns structured results (counts, failing tests with file/line, diagnostics). checks: test (default), typecheck, lint, build, ui. Checks whose tool isn't installed are reported as skipped, never as passed. ui audits a page instead of code (target: a prototype name, an .html file or a http://localhost dev server): static rules always, plus phone/desktop and light/dark rendering with screenshots when Playwright is installed.
| Parameter | Type | Description |
|---|---|---|
stack * | string | |
agent | string | The agent role making this call (e.g. "dev", "qa", "e2e"), so its work is attributed to it. Defaults to HEXACORE_AGENT. |
checks | array | Default ["test"] |
cwd | string | Project directory relative to the workspace (default: where the stack was detected) |
scope | string | Extra runner arguments, e.g. a test file or filter |
target | string | For the ui check: a prototype name (default: the latest), an .html file or a http://localhost URL |
check_architecture Check VSA architecture
Read-only audit of the codebase against the VSA rules: cross-slice coupling, layer dependency direction (domain must not depend on outer layers…) and the 250-line file limit. Slices listed in hexacore.json architecture.compositionSlices may use other slices' public modules. Run after changing code.
| Parameter | Type | Description |
|---|---|---|
agent | string | The agent role making this call (e.g. "dev", "qa", "e2e"), so its work is attributed to it. Defaults to HEXACORE_AGENT. |
path | string | Sub-directory to audit, relative to the workspace (default: whole workspace) |
strict | boolean | Fail on warnings too |
orchestrate_task Run a feature plan
Executes a plan for a requirement: rules retrieval → scaffold each slice → architecture check → quality checks (with auto-fix through the client model when sampling is available). YOU decompose the requirement into slices; the plan is persisted and can be continued with resume_plan.
| Parameter | Type | Description |
|---|---|---|
description * | string | The requirement in plain language |
targetStack * | string | |
agent | string | The agent role making this call (e.g. "dev", "qa", "e2e"), so its work is attributed to it. Defaults to HEXACORE_AGENT. |
autoFix | boolean | Allow sampling-based fixes (default true when supported) |
overwrite | boolean | |
qaChecks | array | Default ["test"] |
sliceName | string | Shorthand for a single slice |
slices | array | Decomposition into vertical slices |
targetDir | string |
resume_plan Resume a plan
Continues a persisted plan from its first unfinished step (ids come from resume_session or orchestrate_task).
| Parameter | Type | Description |
|---|---|---|
planId * | string | |
agent | string | The agent role making this call (e.g. "dev", "qa", "e2e"), so its work is attributed to it. Defaults to HEXACORE_AGENT. |
autoFix | boolean |
list_checkpoints List checkpoints
Lists recent checkpoints: every set of files HexaCore wrote (scaffolds, auto-fixes, ADRs, contracts), newest first.
| Parameter | Type | Description |
|---|---|---|
agent | string | The agent role making this call (e.g. "dev", "qa", "e2e"), so its work is attributed to it. Defaults to HEXACORE_AGENT. |
limit | integer |
rollback_changes Roll back a checkpoint
Restores every file of a checkpoint to its previous content (files it created are deleted). Refuses, changing nothing, if any of those files was edited afterwards unless force=true — confirm with the user before forcing.
| Parameter | Type | Description |
|---|---|---|
checkpointId * | string | |
agent | string | The agent role making this call (e.g. "dev", "qa", "e2e"), so its work is attributed to it. Defaults to HEXACORE_AGENT. |
force | boolean |
record_decision Record an architecture decision
Writes an ADR to docs/adr/NNNN-title.md and indexes it, so the decision is retrievable via search_knowledge_base in later sessions. Use when choosing between design alternatives.
| Parameter | Type | Description |
|---|---|---|
consequences * | string | What becomes easier or harder |
context * | string | The forces and constraints at play |
decision * | string | |
title * | string | |
agent | string | The agent role making this call (e.g. "dev", "qa", "e2e"), so its work is attributed to it. Defaults to HEXACORE_AGENT. |
alternatives | array | |
status | string | |
tags | array |
define_contract Define a slice API contract
Contract-first design: writes contracts/<slice>.openapi.yaml (OpenAPI 3.1) from a list of operations, before implementing them.
| Parameter | Type | Description |
|---|---|---|
operations * | array | |
sliceName * | string | |
agent | string | The agent role making this call (e.g. "dev", "qa", "e2e"), so its work is attributed to it. Defaults to HEXACORE_AGENT. |
outputDir | string | Default "contracts" |
title | string | |
version | string |
record_handoff Record a session handoff
Saves where this session stopped and what comes next; resume_session shows it to the next session. Call before ending a work session. Between agents, set `to` (e.g. "qa") to hand the work to that role: its resume_session lists the handoff first.
| Parameter | Type | Description |
|---|---|---|
summary * | string | |
agent | string | The agent role making this call (e.g. "dev", "qa", "e2e"), so its work is attributed to it. Defaults to HEXACORE_AGENT. |
nextSteps | array | |
openQuestions | array | |
to | string | The agent (role) this handoff is for, e.g. "qa" |
record_lesson Record a lesson
Turns experience into a reusable lesson in .hexagen/skills/ (indexed by search_knowledge_base and suggested automatically when a similar check fails). Call after fixing a failure that run_quality_assurance reported as resolved (pass its episodeId), or whenever you learn a project-specific fix or convention. Pass updateId to improve an existing lesson instead of duplicating it.
| Parameter | Type | Description |
|---|---|---|
problem * | string | When it applies: symptoms, error messages, situations |
solution * | string | What to do, as concrete steps or rules |
title * | string | Short imperative name, e.g. "Register new Rust slices in mod.rs" |
agent | string | The agent role making this call (e.g. "dev", "qa", "e2e"), so its work is attributed to it. Defaults to HEXACORE_AGENT. |
episodeId | string | The resolved failure this lesson was learned from |
example | string | A short code example or before/after |
stack | string | Stack it applies to (default: the episode stack, else "any") |
tags | array | |
updateId | string | Lesson id to rewrite (keeps its usage history) |
rate_lesson Rate a lesson
Feedback on a lesson that was suggested to you (project lesson ids, or library:<id> for lessons from your other projects): helpful=true if it led to the fix, false if it was wrong or irrelevant. retire=true stops suggesting it (it stays on disk). Ratings and automatic outcomes drive ranking and export.
| Parameter | Type | Description |
|---|---|---|
lessonId * | string | |
agent | string | The agent role making this call (e.g. "dev", "qa", "e2e"), so its work is attributed to it. Defaults to HEXACORE_AGENT. |
helpful | boolean | |
retire | boolean |
review_lessons Review learned lessons
Maintenance view of what HexaCore has learned: resolved failures without a lesson yet (with recurrence counts), lessons whose evidence says they are not helping (rewrite with record_lesson updateId, or retire), near-duplicate lessons to merge (merge_lessons), lessons unused for months (still accurate?), proven lessons ready to export as skills or share with your other projects, the most effective lessons, and the lesson library from your other projects. With query, searches project and library lessons.
| Parameter | Type | Description |
|---|---|---|
agent | string | The agent role making this call (e.g. "dev", "qa", "e2e"), so its work is attributed to it. Defaults to HEXACORE_AGENT. |
query | string | Search lessons, e.g. "dotnet namespace error" |
stack | string |
merge_lessons Merge duplicate lessons
Folds near-duplicate lessons (see review_lessons duplicates) into one. The surviving lesson (keepId) gets their usage evidence and history; the others are retired. Optionally rewrite the survivor with the best of both (fields left out keep its current text).
| Parameter | Type | Description |
|---|---|---|
keepId * | string | Lesson that survives |
mergeIds * | array | Lessons folded into it (retired) |
agent | string | The agent role making this call (e.g. "dev", "qa", "e2e"), so its work is attributed to it. Defaults to HEXACORE_AGENT. |
example | string | |
problem | string | |
solution | string | |
tags | array | |
title | string |
export_skills Export lessons as Claude Code skills
Writes lessons as Claude Code skills (.claude/skills/hexacore-<name>/SKILL.md) so the client loads them natively. Without lessonIds exports every proven lesson (helped at least 3 times, at least 70% effective) not exported yet. Reversible through rollback_changes.
| Parameter | Type | Description |
|---|---|---|
agent | string | The agent role making this call (e.g. "dev", "qa", "e2e"), so its work is attributed to it. Defaults to HEXACORE_AGENT. |
lessonIds | array |
remember_preference Remember a user preference
Remembers how the user likes to work, so every future session starts with it (resume_session). Call when the user states a lasting preference or corrects you in a way that should stick: code style, conventions, workflow (e.g. "always show the plan before writing"), how they want answers. One sentence, phrased as guidance. scope user (default) follows them to every project; project applies here only. Never store secrets or personal data. replaceId rewrites one.
| Parameter | Type | Description |
|---|---|---|
text * | string | The preference, as guidance, e.g. "Prefers small PRs with one slice each" |
agent | string | The agent role making this call (e.g. "dev", "qa", "e2e"), so its work is attributed to it. Defaults to HEXACORE_AGENT. |
category | string | |
replaceId | string | Preference id to rewrite |
scope | string |
forget_preference Forget user preferences
Removes a remembered preference (id, from resume_session profile), or resets the observed habits (observed=true), or everything HexaCore knows about how the user works (all=true). Use when the user asks you to forget something or a preference is outdated.
| Parameter | Type | Description |
|---|---|---|
agent | string | The agent role making this call (e.g. "dev", "qa", "e2e"), so its work is attributed to it. Defaults to HEXACORE_AGENT. |
all | boolean | Forget all preferences and habits |
id | string | |
observed | boolean | Reset the observed habits |
create_prototype Create or update a UI prototype
Saves a version of an HTML prototype (a page, screen or flow) in .hexagen/prototypes/<name>/ and returns a local preview URL to show the user. Search the UI rules first (search_knowledge_base "ui conventions"). Pass the full page as html, or edits (exact oldText → newText) to change the current version. Static UI rules run on every save; run_quality_assurance with checks ["ui"] adds the browser check (phone/desktop, light/dark, screenshots). Each version is a checkpoint.
| Parameter | Type | Description |
|---|---|---|
name * | string | Prototype name, e.g. 'landing' or 'checkout-flow' |
agent | string | The agent role making this call (e.g. "dev", "qa", "e2e"), so its work is attributed to it. Defaults to HEXACORE_AGENT. |
basedOn | integer | Version to start from (default: the current one) |
edits | array | Changes to the base version instead of html; each oldText must appear exactly once |
files | array | Extra text files next to index.html (styles.css, app.js…) |
html | string | The full page (a complete HTML document with its own <style>) |
note | string | What changed in this version |
target | string | Where it should end up, e.g. docs/index.html or src/features/landing |
list_prototypes List UI prototypes
Prototypes in this project with their versions, intended target, promotions and preview URLs.
| Parameter | Type | Description |
|---|---|---|
agent | string | The agent role making this call (e.g. "dev", "qa", "e2e"), so its work is attributed to it. Defaults to HEXACORE_AGENT. |
promote_prototype Promote a prototype into the project
Takes an approved prototype version into the project. An .html target gets the page copied through a checkpoint (overwrite=true to replace an existing file) and is audited there. Any other target (a slice or directory of a React, Flutter… app) returns the design tokens, the markup and the steps to port it into components.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
target * | string | docs/index.html, public/landing.html… or a slice directory such as src/features/landing |
agent | string | The agent role making this call (e.g. "dev", "qa", "e2e"), so its work is attributed to it. Defaults to HEXACORE_AGENT. |
overwrite | boolean | |
version | integer | Default: the current version |
export_agents Export the dev, qa and e2e agent roles
Writes HexaCore agent roles as Claude Code subagents in .claude/agents/hexacore-<role>.md: dev (design, scaffold, implement), qa (run checks, fix failures, lessons) and e2e (end-to-end and UI checks against a running app). Each role gets only the tools it needs and follows a handoff protocol through record_handoff. The user starts one by asking for it (or in its own terminal pane), and Claude Code delegates to it on its own when a task matches. Files edited by hand are left alone unless overwrite is set. Reversible through rollback_changes.
| Parameter | Type | Description |
|---|---|---|
agent | string | The agent role making this call (e.g. "dev", "qa", "e2e"), so its work is attributed to it. Defaults to HEXACORE_AGENT. |
overwrite | boolean | Replace files that were edited by hand |
roles | array | Default: all roles |
serverName | string | Name HexaCore is registered under in the client (default hexacore-agent); it prefixes the MCP tool names |