hex-init

hex-init is a skill for Claude Code from grimoire-rs/grimoire. It costs 104 tokens per session (7,293 once invoked), scanned A, original, Apache-2.0.

A project setup and audit workflow for the hex agent bundle. It examines project guidance such as CLAUDE.md or AGENTS.md, adds missing context with consent, can seed templates, and prepares shared agent memory.

In plain words
What is it for?
Use it to initialise or reconfigure a project for hex workflows, repair missing project context, and bootstrap or update the bundle's memory settings.
Why use it?
Agents need to know how a project is tested, where its plans and decisions live, and which rules matter. Keeping that knowledge in the project avoids a second, conflicting source of truth.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

Good fit Use it to initialise or reconfigure a project for hex workflows, repair missing project context, and bootstrap or update the bundle's memory settings.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/grimoire-rs/grimoire/hex-init
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add grimoire-rs/grimoire --skill hex-init
Clone the repo
git clone --depth 1 https://github.com/grimoire-rs/grimoire

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for hex-init

README.md
[![agentmods](https://agentmods.dev/badge/skills/grimoire-rs/grimoire/hex-init/github.svg)](https://agentmods.dev/skills/grimoire-rs/grimoire/hex-init)
Your own site
<a href="https://agentmods.dev/skills/grimoire-rs/grimoire/hex-init"><img src="https://agentmods.dev/badge/skills/grimoire-rs/grimoire/hex-init/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for hex-init

Your own site · 80×15
<a href="https://agentmods.dev/skills/grimoire-rs/grimoire/hex-init"><img src="https://agentmods.dev/badge/skills/grimoire-rs/grimoire/hex-init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 104 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,293 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00104 $0.07293
Opus 5.5 $0.00042 $0.02917
Sonnet 5.5 $0.00021 $0.01459
Haiku 4.5 $0.00010 $0.00729

Measured 12d ago against content hash fa6285a1a8bc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

hex-init scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/hex-init/SKILL.md · 541 lines

How it starts

The opening of the file, as written. The whole thing — 541 lines — stays where its author put it; the contents beside it link to each section on GitHub.

hex-init — Project Initializer

hex-init audits and bootstraps a project for the hex swarm. Run it only when the user explicitly invokes it — it never triggers itself from another skill's flow. It is re-entrant: every run re-audits, reports drift, and fixes it with the user's consent.

Core stance

Knowledge about the project — how to verify it, where specs, plans, and ADRs live and in what format, which rules carry architectural weight, and what the product is and who uses it — belongs in the project's own context (CLAUDE.md, AGENTS.md, or docs they point to), where every agent and tool already reads it. hex never keeps a second copy of that knowledge; a second source of truth would drift and rot. hex-init is an auditor and provisioner of project context first, and a config writer only for what genuinely belongs to the swarm — model preferences, cross-model review, perspectives of interest. The swarm file (.agents/memory/hex.md) holds only three things: a cache of pointers to where that project knowledge lives, swarm config, and the orchestrators' working memory (see ../hex-core/references/memory.md).

Every fact has exactly one home: useful to any agent → project context; useful only to the swarm → hex.md › Preferences. Never both — project knowledge is recorded in hex.md › Pointers only as a pointer to where it lives, never copied.

The wizard

hex-init runs as an interactive wizard, not a batched form. The single-gate rule (protocol.md) that forbids mid-flow questions governs the four orchestrators, which run long autonomous swarms where an interruption strands parallel workers. hex-init runs no swarm and is exempt — it may ask its questions in sequence. The exemption is narrow and named — hex-init is one of the two skills it covers, each on its own ground; the list is owned by protocol.md § The meta-plan approval gate.

Read the full file on GitHub · 541 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago Changed · +23 lines fa6285a1a8bc
  2. 21d ago Changed · +29 lines c160cb356f45
  3. 1mo ago First seen · 489 lines · 104 tokens per session scan A ff0092370c50

Subscribe to this mod's changes

hex-init is a skill published in the GitHub repository grimoire-rs/grimoire (14 stars, last pushed today), licensed Apache-2.0. It adds 104 tokens to every session and 7,293 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-08.