hivelore: Instructions file for Claude Code

CLAUDE.md

hivelore CLAUDE.md is an instructions file for Claude Code from Doucs91/hivelore. It costs 2,566 tokens per session, scanned A, original, Apache-2.0.

Project instructions for AI agents working on a repository that uses Hivelore, including shared memories, coordination, Git rules, and safety rules.

In plain words
What is it for?
They help agents coordinate work, retrieve relevant project memories, follow repository safety rules, and record useful lessons after significant tasks.
Why use it?
They tell agents where project knowledge lives and require them to consult the team's recorded context before making substantive changes.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

This is Doucs91/hivelore's own configuration. It tells Claude Code how to work on hivelore itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything hivelore configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Doucs91/hivelore. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Doucs91/hivelore/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/Doucs91/hivelore

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 hivelore CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/doucs91/hivelore/claude-md/github.svg)](https://agentmods.dev/instructions/doucs91/hivelore/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/doucs91/hivelore/claude-md"><img src="https://agentmods.dev/badge/instructions/doucs91/hivelore/claude-md/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 hivelore CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/doucs91/hivelore/claude-md"><img src="https://agentmods.dev/badge/instructions/doucs91/hivelore/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,566 This file is loaded in full into every session.
When invoked 2,566 The same file — it is already loaded in full.
Security scan A 1 finding. 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.02566 $0.02566
Opus 5.5 $0.01026 $0.01026
Sonnet 5.5 $0.00513 $0.00513
Haiku 4.5 $0.00257 $0.00257

Measured 1mo ago against content hash 71465e276f07, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

hivelore CLAUDE.md scanned grade A with 1 finding 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 1mo 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

- **2026-06-07-convention-vscode-cli-calls-through-runhaive** _(applies to: packages/vscode/src/extension.ts, packages/vscode/src/briefingPanel.ts, packages/vscode/src/observabilityProvider.ts)_: Raw child_process in the
CLAUDE.md · 105 lines

How it starts

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

See .ai/project-context.md for the full project context. Memories live under .ai/memories/ (personal/team/module).

Hivelore — mandatory rules for AI agents

Installing or initializing Hivelore in this repository means the team expects AI agents to drive work through Hivelore, not bypass it.

MCP first (default — never optional unless the developer says so)

The Hivelore MCP server (registered under the key haive in this machine's client config — tools appear as mcp__haive__*) must be enabled in your client. Until it is unavailable (misconfiguration report to the developer), you must use it for substantive work:

  • Before you edit project source files, configs (package.json, tooling), or workflows for the current goal, invoke get_briefing with a short task string (and files / symbols when you know them). If project context was already refreshed in this session and you only need ranked memories, you may call mem_relevant_to instead—but still consult Hivelore before trusting ungrounded guesses.
  • Before declaring a coding task finished, invoke the MCP prompt post_task when the session produced learnings or substantive changes worth capturing.

Do not treat these as nice-to-have: they are default-required for coding agents here.

Session rules

  • Immediately when an approach fails (wrong API, wrong pattern, wrong assumption), call mem_tried — do not wait until the end of the session.

Behavioral triggers — exact situations requiring immediate Hivelore action

These are non-negotiable. Each row is a concrete situation mapped to a specific tool call that must happen in the same response, not at the end of the session.

Situation Required action Tool
CLI option or API that does not exist Document before fixing mem_tried
Test fails because of a wrong assumption Document the assumption mem_tried
Approach took >15 min and had to be redone Document what failed mem_tried
Choosing A over B for a non-obvious reason Capture the rationale mem_save type=decision
Discovering surprising library/framework behavior Capture the trap mem_save type=gotcha
Inventing a pattern used more than once Capture the convention mem_save type=convention
Completing a task >30 min or >5 files changed Close with full recap mem_session_end with discoveries filled

Read the full file on GitHub · 105 lines

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. 1mo ago Changed · +217 tokens per session 71465e276f07
  2. 2mo ago First seen · 105 lines · 2,349 tokens per session scan A f7d6215c9a41

Subscribe to this mod's changes

hivelore CLAUDE.md is an instructions file published in the GitHub repository Doucs91/hivelore (4 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 2,566 tokens to every session, about $0.0103 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

hivelore CLAUDE.md compared with instructions from other repositories

hivelore CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
hivelore CLAUDE.mdDoucs91/hiveloreInstructions file41mo agoApache-2.0A2,566Claude Code
plugin-files-modegriddynamics/rosettaInstructions file370todayApache-2.0A236GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot