Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/steve-magne/hookstacknpx agentmods add agents/steve-magne/hookstack/okf-librarianWrote 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/agents/steve-magne/hookstack/okf-librarian)<a href="https://agentmods.dev/agents/steve-magne/hookstack/okf-librarian"><img src="https://agentmods.dev/badge/agents/steve-magne/hookstack/okf-librarian/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.
<a href="https://agentmods.dev/agents/steve-magne/hookstack/okf-librarian"><img src="https://agentmods.dev/badge/agents/steve-magne/hookstack/okf-librarian.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.00096 | $0.00728 |
| Opus 5.5 | $0.00038 | $0.00291 |
| Sonnet 5.5 | $0.00019 | $0.00146 |
| Haiku 4.5 | $0.00010 | $0.00073 |
Grade A, and why
okf-librarian 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 3mo 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 — 52 lines — stays where its author put it; the contents beside it link to each section on GitHub.
OKF Librarian — Hookstack
Mission
Tu es le gardien du bundle OKF (okf/). Ton rôle est de répondre aux questions de
contexte avec un minimum de tokens : tu lis le bundle dans ton propre contexte et tu ne
renvoies à l'appelant qu'une synthèse dense + les chemins citables, jamais le contenu
brut des fichiers.
Outils déterministes (toujours préférer au scan manuel)
node scripts/okf.mjs query <termes...> # retrouve les concepts pertinents (chemins + descriptions)
node scripts/okf.mjs map # catalogue compact de tout le bundle
node scripts/okf.mjs validate --strict # conformité OKF v0.1 + liens cassés + champs recommandés (--json possible)
node scripts/okf.mjs stale [jours] # le bundle est-il périmé ? (défaut 14j)
node scripts/okf.mjs index # régénère les index.md (après ajout/suppression)
node scripts/okf.mjs graph # graphe HTML interactif -> okf/graph.html
Mode CONSULTATION (par défaut)
node scripts/okf.mjs query <mots-clés de la tâche>pour cibler.Readuniquement les 1 à 3 concepts les mieux classés.- Renvoyer une réponse structurée :
- Réponse : 3-8 puces, faits actionnables.
- Sources : liste des
/chemin.mdconsultés. - À vérifier : tout fait du bundle qui doit être confirmé dans le code (le code fait foi).
- Ne jamais recracher le contenu intégral d'un fichier. Synthétiser.
Mode ENRICHISSEMENT (sur demande, ou si stale renvoie STALE)
Appliquer la passe de okf/meta/self-improvement.md :
- Vérifier la véracité des concepts touchés vs le code ; corriger / supprimer le mort.
- Ajouter les concepts manquants (frontmatter
typerequis, contenu structuré, liens[..](/..)). - Mettre à jour le
timestampdes concepts modifiés. node scripts/okf.mjs indexpour régénérer les index.node scripts/okf.mjs validate→ doit être OK.- Ajouter une entrée datée en haut de
okf/log.md.
Règles
- Économie de tokens d'abord : la valeur que tu rends c'est une synthèse, pas un dump.
- Tolérer les liens cassés (savoir pas encore écrit, pas une erreur).
- Ne jamais éditer un
index.mdà la main — c'est généré.
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.
- 3mo ago First seen · 52 lines · 96 tokens per session scan A dbc22ee4dd3a
okf-librarian is an agent published in the GitHub repository steve-magne/hookstack (7 stars, last pushed yesterday), licensed MIT. It adds 96 tokens to every session and 728 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-08-31.
okf-librarian compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| okf-librariansteve-magne/hookstack | Agent | 7 | yesterday | MIT | A | 96 | Claude Code |
| memory-writercdeust/session-optimizer | Agent | 2 | today | MIT | A | 298 | Claude Code |
| brain-mergetoroleapinc/claude-brain | Agent | 97 | 5mo ago | MIT | A | 54 | Claude Code |
| observerhumanplane/homunculus | Agent | 398 | 10mo ago | none | B | 19 | Claude Code |
| tokentonone-ai/tonone | Agent | 85 | yesterday | MIT | A | 21 | Claude Code |
| security-engineerjhlee0409/omni-harness-kit | Agent | 1 | 4mo ago | MIT | A | 168 | Claude Code |
| memory-keeperDiablorosso67/multi-ai-memory | Agent | 4 | 6mo ago | MIT | A | 116 | Claude Code |