hexacore-agent

v3.8.0
io.github.rbaezc/hexacore-agent Checked 2 hours ago Published 2 days ago

Verified, 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.

ParameterTypeDescription
agentstringThe 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.

ParameterTypeDescription
query *stringWhat you need to know, e.g. "repository layer rules for go"
agentstringThe agent role making this call (e.g. "dev", "qa", "e2e"), so its work is attributed to it. Defaults to HEXACORE_AGENT.
topKintegerNumber 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).

ParameterTypeDescription
sliceName *stringFeature name, e.g. 'orders' or 'user-profile'
stack *string
agentstringThe agent role making this call (e.g. "dev", "qa", "e2e"), so its work is attributed to it. Defaults to HEXACORE_AGENT.
dryRunbooleanReturn the planned files and their content without writing
includeTestsbooleanGenerate the slice tests (default true)
layerstringOne layer only, or the full slice (default)
overwritebooleanReplace files that already exist
targetDirstringProject 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.

ParameterTypeDescription
stack *string
agentstringThe agent role making this call (e.g. "dev", "qa", "e2e"), so its work is attributed to it. Defaults to HEXACORE_AGENT.
checksarrayDefault ["test"]
cwdstringProject directory relative to the workspace (default: where the stack was detected)
scopestringExtra runner arguments, e.g. a test file or filter
targetstringFor 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.

ParameterTypeDescription
agentstringThe agent role making this call (e.g. "dev", "qa", "e2e"), so its work is attributed to it. Defaults to HEXACORE_AGENT.
pathstringSub-directory to audit, relative to the workspace (default: whole workspace)
strictbooleanFail 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.

ParameterTypeDescription
description *stringThe requirement in plain language
targetStack *string
agentstringThe agent role making this call (e.g. "dev", "qa", "e2e"), so its work is attributed to it. Defaults to HEXACORE_AGENT.
autoFixbooleanAllow sampling-based fixes (default true when supported)
overwriteboolean
qaChecksarrayDefault ["test"]
sliceNamestringShorthand for a single slice
slicesarrayDecomposition into vertical slices
targetDirstring

resume_plan Resume a plan

Continues a persisted plan from its first unfinished step (ids come from resume_session or orchestrate_task).

ParameterTypeDescription
planId *string
agentstringThe agent role making this call (e.g. "dev", "qa", "e2e"), so its work is attributed to it. Defaults to HEXACORE_AGENT.
autoFixboolean

list_checkpoints List checkpoints

Lists recent checkpoints: every set of files HexaCore wrote (scaffolds, auto-fixes, ADRs, contracts), newest first.

ParameterTypeDescription
agentstringThe agent role making this call (e.g. "dev", "qa", "e2e"), so its work is attributed to it. Defaults to HEXACORE_AGENT.
limitinteger

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.

ParameterTypeDescription
checkpointId *string
agentstringThe agent role making this call (e.g. "dev", "qa", "e2e"), so its work is attributed to it. Defaults to HEXACORE_AGENT.
forceboolean

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.

ParameterTypeDescription
consequences *stringWhat becomes easier or harder
context *stringThe forces and constraints at play
decision *string
title *string
agentstringThe agent role making this call (e.g. "dev", "qa", "e2e"), so its work is attributed to it. Defaults to HEXACORE_AGENT.
alternativesarray
statusstring
tagsarray

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.

ParameterTypeDescription
operations *array
sliceName *string
agentstringThe agent role making this call (e.g. "dev", "qa", "e2e"), so its work is attributed to it. Defaults to HEXACORE_AGENT.
outputDirstringDefault "contracts"
titlestring
versionstring

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.

ParameterTypeDescription
summary *string
agentstringThe agent role making this call (e.g. "dev", "qa", "e2e"), so its work is attributed to it. Defaults to HEXACORE_AGENT.
nextStepsarray
openQuestionsarray
tostringThe 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.

ParameterTypeDescription
problem *stringWhen it applies: symptoms, error messages, situations
solution *stringWhat to do, as concrete steps or rules
title *stringShort imperative name, e.g. "Register new Rust slices in mod.rs"
agentstringThe agent role making this call (e.g. "dev", "qa", "e2e"), so its work is attributed to it. Defaults to HEXACORE_AGENT.
episodeIdstringThe resolved failure this lesson was learned from
examplestringA short code example or before/after
stackstringStack it applies to (default: the episode stack, else "any")
tagsarray
updateIdstringLesson 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.

ParameterTypeDescription
lessonId *string
agentstringThe agent role making this call (e.g. "dev", "qa", "e2e"), so its work is attributed to it. Defaults to HEXACORE_AGENT.
helpfulboolean
retireboolean

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.

ParameterTypeDescription
agentstringThe agent role making this call (e.g. "dev", "qa", "e2e"), so its work is attributed to it. Defaults to HEXACORE_AGENT.
querystringSearch lessons, e.g. "dotnet namespace error"
stackstring

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).

ParameterTypeDescription
keepId *stringLesson that survives
mergeIds *arrayLessons folded into it (retired)
agentstringThe agent role making this call (e.g. "dev", "qa", "e2e"), so its work is attributed to it. Defaults to HEXACORE_AGENT.
examplestring
problemstring
solutionstring
tagsarray
titlestring

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.

ParameterTypeDescription
agentstringThe agent role making this call (e.g. "dev", "qa", "e2e"), so its work is attributed to it. Defaults to HEXACORE_AGENT.
lessonIdsarray

share_lessons Share lessons with your other projects

Copies proven project lessons to your lesson library (~/.hexacore/lessons/, or $HEXACORE_HOME), so your other projects with the same stack get them as suggestions after their own lessons. Without lessonIds shares every proven lesson that is new to the library or was rewritten since it was shared. Library lessons are scored by outcomes in every project that uses them.

ParameterTypeDescription
agentstringThe agent role making this call (e.g. "dev", "qa", "e2e"), so its work is attributed to it. Defaults to HEXACORE_AGENT.
lessonIdsarray

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.

ParameterTypeDescription
text *stringThe preference, as guidance, e.g. "Prefers small PRs with one slice each"
agentstringThe agent role making this call (e.g. "dev", "qa", "e2e"), so its work is attributed to it. Defaults to HEXACORE_AGENT.
categorystring
replaceIdstringPreference id to rewrite
scopestring

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.

ParameterTypeDescription
agentstringThe agent role making this call (e.g. "dev", "qa", "e2e"), so its work is attributed to it. Defaults to HEXACORE_AGENT.
allbooleanForget all preferences and habits
idstring
observedbooleanReset 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.

ParameterTypeDescription
name *stringPrototype name, e.g. 'landing' or 'checkout-flow'
agentstringThe agent role making this call (e.g. "dev", "qa", "e2e"), so its work is attributed to it. Defaults to HEXACORE_AGENT.
basedOnintegerVersion to start from (default: the current one)
editsarrayChanges to the base version instead of html; each oldText must appear exactly once
filesarrayExtra text files next to index.html (styles.css, app.js…)
htmlstringThe full page (a complete HTML document with its own <style>)
notestringWhat changed in this version
targetstringWhere 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.

ParameterTypeDescription
agentstringThe 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.

ParameterTypeDescription
name *string
target *stringdocs/index.html, public/landing.html… or a slice directory such as src/features/landing
agentstringThe agent role making this call (e.g. "dev", "qa", "e2e"), so its work is attributed to it. Defaults to HEXACORE_AGENT.
overwriteboolean
versionintegerDefault: 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.

ParameterTypeDescription
agentstringThe agent role making this call (e.g. "dev", "qa", "e2e"), so its work is attributed to it. Defaults to HEXACORE_AGENT.
overwritebooleanReplace files that were edited by hand
rolesarrayDefault: all roles
serverNamestringName HexaCore is registered under in the client (default hexacore-agent); it prefixes the MCP tool names