hiveshare CLAUDE.md

hiveshare CLAUDE.md is an instructions file for coding agents from KB-perByte/hiveshare. It costs 1,301 tokens per session, scanned A, original, MIT.

A guide for working on HiveShare, a shared memory service for engineering teams. It explains the server, command-line tools, database, live updates, and connection used by coding agents such as Claude Code and Cursor.

In plain words
What is it for?
Use it to build or maintain HiveShare's API server, command-line client, agent connection, database migrations, real-time updates, or embedding worker.
Why use it?
It helps an agent understand where shared memories are stored, searched, updated, and delivered to teammates. This reduces repeated work when people or agents need the same project context.

Instructions file

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.

agentmods
npx agentmods add instructions/kb-perbyte/hiveshare/claude-md
Clone the repo
git clone --depth 1 https://github.com/KB-perByte/hiveshare

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/kb-perbyte/hiveshare/claude-md.svg)](https://agentmods.dev/instructions/kb-perbyte/hiveshare/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/kb-perbyte/hiveshare/claude-md"><img src="https://agentmods.dev/badge/instructions/kb-perbyte/hiveshare/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,301 This file is loaded in full into every session.
When invoked 1,301 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.01301 $0.01301
Opus 5 $0.00651 $0.00651
Sonnet 5 $0.00260 $0.00260
Haiku 4.5 $0.00130 $0.00130

Measured 3d ago against content hash 1503335bca5e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

hiveshare CLAUDE.md 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 3d 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.

CLAUDE.md · 97 lines

How it starts

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

HiveShare — CLAUDE.md

Collaborative AI memory server for engineering teams. Teammates' AI agents store and search crunched context in shared "hiveshares" so nobody re-reads the same ticket twice.

Repo layout

cmd/
  server/     → API server binary (main.go)
  mcp/        → MCP sidecar binary (used by Claude Code / Cursor)
  hiveshare/     → CLI binary (main.go + client.go + config.go)
internal/
  api/        → HTTP handlers (router.go, auth.go, memory.go=HiveHandler, …)
  mcp/        → MCP protocol + server + client
  models/     → shared Go types (Hive, HistoryEntry, Snapshot, …)
  store/      → Postgres (db.go, memory.go=HiveStore, history.go, …)
  realtime/   → SSE hub (Redis pub/sub)
  embed/      → async embedding worker (OpenAI / Ollama)
migrations/   → 001–008 applied in order
API.md        → HTTP reference (verified by scripts/test-api-examples.sh)
deploy/       → OpenShift manifests

Build & run

make deps build          # build all three binaries into ./bin/
make dev                 # docker-up + migrate + run server (EMBED_PROVIDER= for no embeddings)
make migrate             # apply migrations/*.sql in order
make docker-up / docker-down
make smoke-test / smoke-test-full / integration-test
make release             # cross-compile linux+darwin amd64+arm64 → dist/

Binaries: bin/hiveshare-server, bin/hiveshare-mcp, bin/hiveshare

Key env vars (server)

Var Notes
DATABASE_URL Full Postgres DSN
REDIS_URL Default redis://localhost:6379
LISTEN_ADDR Default :8080
BASE_URL Used in invite links
EMBED_PROVIDER openai | ollama | empty (falls back to full-text)
OPENAI_API_KEY Required when EMBED_PROVIDER=openai
HISTORY_TTL_DAYS Optional purge age (0 = forever)
HISTORY_MAX_VERSIONS Optional per-hive version cap (0 = unlimited)
JWT_SECRET Required for service account JWT signing
SA_TOKEN_TTL_MINUTES Default 15; lifetime of service account JWTs

Read the full file on GitHub · 97 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. 3d ago First seen · 97 lines · 1,301 tokens per session scan A 1503335bca5e

Subscribe to this mod's changes

hiveshare CLAUDE.md is an instructions file published in the GitHub repository KB-perByte/hiveshare (5 stars, last pushed 1mo ago), licensed MIT. It adds 1,301 tokens to every session, about $0.0065 per session on Opus 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-08-31.