Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
HEX_HOMENoData directory, default `~/.hexagent/`. Contains: sessions `sessions/`, taste library `taste.json`, deliveries `deliveries/`.
HEX_NO_GENNoMaster switch: when set to 1 / true, no work order is issued under any circumstances (takes priority over `HEX_ALLOW_GEN`).
HEX_STRICTNoWhen set to 1, the three items of light/color/composition, decision placement, and referencing new references in revision plans revert to rejection (default is a reminder only; used when replaying old records).
HEX_HARNESSNoWhen set to 0, reverts to dev8's "suggestion" mode: no work orders, no self-check requirements, no experience recording (on by default; automatically off when replaying old records).
HEX_ALLOW_GENNoFor confirmed formal work orders the required value is `1`, caps must include generate, and the user must separately affirm the specified number of images. Default off. Loop sample images use the route and draft conditions; see the current contract. HEX itself never calls generation APIs.
HEX_MCP_ADMINNoWhen set to 1, MCP's `hex_taste` exposes modification operations (read-only by default).
HEX_TRANSCRIPTNoSet to a file path and every call's input and output will be appended verbatim, replayable with `tools/replay.py`.
HEX_VISIBLE_GATENoWhen set to 0, no longer rejects machine markers in host descriptions (pre-dev11 rules). On by default; automatically off only when replaying old records.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

HEX 是调度,你是执行者。用户提到 hex/HEX 或让你用它做图时,第一步就调用 hex_start(不要先自己出图、也不要绕过它)。hex_start 的 caps 照实写:能联网搜索/打开网页就带 search、open,能看图带 see,能出图带 generate(少写 search 会跳过找参考);如果你自己带有可点击选择卡工具(如 AskUserQuestion / request_user_input),在 hex_start 里带上 ask_tool(工具名字符串或参数对象)。提问阶段优先用选择卡弹出(ask_pack.arguments 或 ask_pack.native_candidate.arguments),不要直接发纯文字 A/B/C 列表;只有没有选择卡工具或调用失败时才发 user_text。本地模型(ComfyUI 等)一次只跑一个会话,别并行排队。对用户说话不要提 SKILL.md、skill 路径、HEX 的内部规则名(方案卡确认规则、通用卡校验);方案和参考直接放在聊天里。先调用 hex_guide 读一次说明。每次返回:有 user_text 就原样发给用户;然后看 order——order.wait=true 就停下等用户,否则立刻照 order.goal 做,按 order.submit 交回 hex_turn。用户每说一句话,下一次 hex_turn 的 user 逐字粘贴原话。如果返回里有 elicitation.status=answered:用户已经在宿主的选择卡里回答了,不要再发 user_text,把 elicitation.user_reply 逐字放进下一次 hex_turn 的 user。

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
hex_startA

用户一提到 hex/HEX,或让你用 HEX 做任何图(头像、海报、产品图、壁纸、插画…),先调用它——不要自己直接出图或自己写提示词,出图也照 HEX 的 order 走。用用户第一句原话开一个 HEX 会话。caps 只写宿主真的具备的能力;generate 只能在这里声明,中途不能加。从另一个会话交接时带 handoff_from(只记出处,不继承确认)。宿主能出图就在 caps 里写 generate。route.default 只表示当前代选路线;先执行 ask_first,问清模型和关键决定,再按实际工单执行。返回 backends 只表示发现的途径,实际执行能力待核验。

hex_turnB

一轮:user=用户这一轮原话;其余是宿主的判断(intent/brief/refs/ask/directions/pick/draft/revision/route/learn/forget/memory_scope/caps_update/retry_drop/outcome/inspect/review/say/topic)。返回 user_text(原样发给用户)和 order(下一张工单:只做它说的那一件事)。字段说明见 hex_guide。

hex_statusC

当前会话的理解、下一步建议、相关口味。图像关卡工单可能准备本机派生拼图。legacy_report=true 时只读列出旧版本留下、没有类别记录的硬要求(更正要经用户确认,用 hex_turn 的 brief.classify)。

hex_tasteB

口味库:list(只读)。edit / forget / purge / restore 是管理操作,默认关闭(需运营方设置 HEX_MCP_ADMIN=1);用户在对话里要撤回,请用 hex_turn 的 forget。

hex_styleA

风格库、审美包与主动探索灵感池:list / show / aesthetic_show / library_scan / library_audit / library_board / export_prompt / discover_inbox / discover_suggest(只读),以及 discover_add / discover_trial / discover_dismiss(读写独立灵感草稿箱,不改写用户口味库)。风格卡由用户在对话里同意后才会存(hex_turn 的 style_save);forget / purge / aesthetic_set / aesthetic_reset 是管理操作,默认关闭(需运营方设置 HEX_MCP_ADMIN=1),用户可在本机用 hexagent style/aesthetic 命令。

hex_guideC

宿主执行说明(短)。full=true 返回完整字段说明和审美方法。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.3/5.0

Scored across 6 tools

Disambiguation3/5

hex_start, hex_turn, hex_status, and hex_guide are broadly distinguishable, but hex_taste and hex_style both operate on overlapping library/memory concepts, and hex_turn duplicates actions such as forget and style_save. The descriptions include routing hints, but the boundaries require reading very dense field lists.

Naming Consistency4/5

All tool names consistently use the hex_ prefix and snake_case with short concept labels. There is a minor verb/noun mix (start/turn vs status/taste/style/guide), but the pattern remains predictable.

Tool Count5/5

Six tools is well within a reasonable range and each maps to a major responsibility: session start, turn processing, status, taste library, style library, and documentation. The count is appropriate, even though hex_turn is internally overburdened.

Completeness4/5

The surface covers the core conversational loop, status inspection, taste/style libraries, and host guidance. There are minor gaps such as no explicit session close/resume lifecycle and several management actions being admin-gated, but the main workflow is covered.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues