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.
npx agentmods add instructions/re-cinq/lore-oss/claude-mdgit clone --depth 1 https://github.com/re-cinq/lore-ossWrote 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.
[](https://agentmods.dev/instructions/re-cinq/lore-oss/claude-md)<a href="https://agentmods.dev/instructions/re-cinq/lore-oss/claude-md"><img src="https://agentmods.dev/badge/instructions/re-cinq/lore-oss/claude-md.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.03709 | $0.03709 |
| Opus 5 | $0.01854 | $0.01854 |
| Sonnet 5 | $0.00742 | $0.00742 |
| Haiku 4.5 | $0.00371 | $0.00371 |
Grade A, and why
lore-oss 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 4d 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.
How it starts
The opening of the file, as written. The whole thing — 321 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Lore
Shared context infrastructure for Claude Code. One install command gives developers full org awareness — conventions, ADRs, team patterns, PR history, and task state.
Architecture
MCP server (mcp-server/src/index.ts + routes.ts): TypeScript,
serves context to Claude Code via MCP protocol. Dual transport: stdio
for local (Phase 0), Streamable HTTP for GKE (Phase 1). Three core tools:
assemble_context, search_context, search_memory. Pipeline
delegation, local task runner, and 30+ tools total.
Vector store: PostgreSQL + pgvector via CloudNativePG on GKE. Schema-per-team isolation. HNSW indexes for vector search, GIN for BM25 keyword search. Hybrid search via Reciprocal Rank Fusion. Embeddings from Vertex AI text-embedding-005 (768 dimensions).
Cluster agents: Lore Agent service on GKE processes pipeline tasks via direct Anthropic API calls (simple tasks) or headless Claude Code (complex tasks). Developers delegate through the Lore MCP server, never directly.
Observability: OpenTelemetry traces + metrics → Cloud Monitoring. Gap signal goes to Graphiti episodes in Phase 3.
Task tracking: Pipeline tasks via Lore MCP + GitHub Issues.
Code Conventions
TypeScript for the MCP server. ESM modules, strict mode, ES2022 target. Zod for input validation on all MCP tools. Return errors as text in MCP responses, never throw.
Python for glue scripts (lore-gen-constitution). Keep them short (<100 lines). Handle missing tools gracefully with clear error messages.
Bash for install.sh, lore-doctor, infra scripts. Must be
idempotent — safe to re-run. Prefix output with [lore]. Exit 0 on
success, 1 on failure.
Helm charts for K8s deployments (Lore Agent, MCP server). Values files should have sane defaults. No hardcoded secrets — use K8s Secrets.
No long-lived credentials anywhere. Workload Identity on GKE, gcloud auth for local dev.
Key Components
mcp-server/— the MCP server (TypeScript)mcp-server/src/routes.ts— HTTP API route handlers (extracted from index.ts)mcp-server/src/github-client.ts— consolidated GitHub auth (App + token fallback)mcp-server/src/local-runner.ts— local task runner (worktrees, background Claude Code)scripts/— install.sh, lore-doctor, lore-init, glue scriptsscripts/infra/— setup-db.sh, setup-schedulers.sh, generate-embeddings.shscripts/klaus-prompts/— standing instructions for agents (legacy, migrating to lore-agent).claude/skills/— platform skills (lore-feature, lore-pr, lore-init)terraform/modules/— K8s manifests, Helm charts (lore-db, gke-mcp)docker/claude-runner/— ephemeral container for Claude Code execution in K8s Jobsterraform/modules/gke-mcp/loretask-crd/— LoreTask CRD, RBAC, controller deploymentspecs/— speckit artifacts (spec, plan, tasks, research, contracts)adrs/— architecture decision records (MADR format)teams/— per-team CLAUDE.md filesagent/src/platform.ts— CodePlatform interface (branch, commit, PR, issue, repo content, PR details)agent/src/github.ts— GitHubPlatform implementation (only file importing Octokit)web-ui/src/lib/github.ts— GitHub App client for web-ui (PR status fetching)web-ui/src/app/pipeline/[id]/TaskLogs.tsx— live Job log viewer (polls every 5s)web-ui/src/app/pipeline/[id]/PRStatusCard.tsx— live PR status cardagent/src/jobs/loretask-watcher.ts— polls LoreTasks, creates PRs, triggers auto-reviewmcp-server/src/context-assembly.ts— context assembly with YAML templatesmcp-server/templates/— YAML context assembly templates (default, review, implementation, research)mcp-server/src/repo-validation.ts— deterministic validation (lint/typecheck detection for Node/Go/Python/Rust)mcp-server/src/repo-validation-cli.ts— CLI wrapper for validation in K8s Job podsscripts/slack-app-manifest.yaml— Slack app manifest for /lore slash commandagent/src/lib/episode-writer.ts— shared episode writer with Haiku-driven auto-curationagent/src/jobs/memory-lifecycle.ts— importance decay (eviction) + fact consolidation (pattern extraction)mcp-server/src/session-tracker.ts— passive session tracking (tool calls, ring buffer, exit dump)evals/— PromptFoo eval configs per team
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.
- 4d ago First seen · 321 lines · 3,709 tokens per session scan A 77ee8f119f4f
lore-oss CLAUDE.md is an instructions file published in the GitHub repository re-cinq/lore-oss (11 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 3,709 tokens to every session, about $0.0185 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-30.
Other instructions, from other repositories
vespertide AGENTS.md
AGENTS.md instructions for dev-five-git/vespertide, covering vespertide knowledge base, structure, where to look, data flow and conventions.
aeon CLAUDE.md
Instructions for aeonfun/aeon, covering aeon, how aeon works, strategy, voice and soul file hierarchy (read in this order).
mcp-structured-memory CLAUDE.md
Claude Code instructions for nmeierpolys/mcp-structured-memory, a project described as: Structured Memory MCP Server.
inkwell-memory CLAUDE.md
Instructions for veronchenko/inkwell-memory, covering claude.md — inkwellmemory, layout, multi-tenant mode (inkwellmultitenant=1), conventions and testing.
RNR-Enhanced-Cognee AGENTS.md
AGENTS.md instructions for vincentspereira/RNR-Enhanced-Cognee, covering rnr enhanced cognee implementation for codex, critical requirements, 1. ascii-only output (no unicode encoding), 2. dynamic categories (no hardcoded categories) and 3. standard memory mcp interface.
memory-mcp-1file AGENTS.md
Instructions for pomazanbohdan/memory-mcp-1file, covering ⛔ l0 invariants (never violate under any circumstance), detection heuristic, 🔀 phase transition routing (⛔ blocking), gate-0: phase identification & loading and 🧾 proof-of-load requirement (critical).