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 commands/rjmurillo/ai-agents/context-hub-setupgit clone --depth 1 https://github.com/rjmurillo/ai-agentsWrote 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/commands/rjmurillo/ai-agents/context-hub-setup)<a href="https://agentmods.dev/commands/rjmurillo/ai-agents/context-hub-setup"><img src="https://agentmods.dev/badge/commands/rjmurillo/ai-agents/context-hub-setup.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.00026 | $0.01129 |
| Opus 5 | $0.00013 | $0.00564 |
| Sonnet 5 | $0.00005 | $0.00226 |
| Haiku 4.5 | $0.00003 | $0.00113 |
Grade A, and why
context-hub-setup 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 5d 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 — 183 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Context Hub Setup
Configure Context Hub's dependencies: Forgetful MCP server and prerequisite plugins.
Prerequisites
Context Hub requires these plugins to be installed:
- Serena - Symbol-level code analysis (required for
/encode-repo-serena) - Context7 - Framework documentation (recommended for
/context-gather)
Step 1: Check Plugin Prerequisites
First, check if the required plugins are installed:
claude plugins list
Look for:
serenaor similar (for code analysis)context7or similar (for framework docs)
If Serena is not installed:
To use /encode-repo-serena, install the Serena plugin:
claude plugins install serena
Or search for it in the marketplace:
claude plugins search serena
If Context7 is not installed:
For framework documentation in /context-gather, install Context7:
claude plugins install context7 --marketplace pleaseai/claude-code-plugins
Or search for it:
claude plugins search context7
Step 2: Configure Forgetful MCP
Check if Forgetful is already configured:
claude mcp list | grep -i forgetful
If already configured:
- Ask user if they want to reconfigure
- If no, skip to Step 3
- If yes, remove existing first:
claude mcp remove forgetful
Setup Options
Ask the user which setup they prefer:
Question: "How would you like to configure Forgetful?"
Options:
- Standard (Recommended) - Zero config, uses uvx with SQLite storage
- Custom - Remote HTTP server, PostgreSQL, custom embeddings, etc.
Standard Setup
claude mcp add forgetful --scope user -- uvx forgetful-ai
Confirm success:
claude mcp list | grep -i forgetful
Report: "Forgetful is now configured. Your memories will persist in ~/.forgetful/ using SQLite."
Custom Setup
If user chose Custom:
- Fetch configuration docs:
WebFetch: https://github.com/ScottRBK/forgetful/blob/main/docs/configuration.md
- Guide through options:
- Remote HTTP server - Connect to Forgetful running elsewhere
- PostgreSQL backend - Use Postgres instead of SQLite
- Custom embeddings - Different embedding model/provider
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.
- 5d ago First seen · 183 lines · 26 tokens per session scan A df6e2fd17f0c
context-hub-setup is a command published in the GitHub repository rjmurillo/ai-agents (45 stars, last pushed yesterday), licensed MIT. It adds 26 tokens to every session and 1,129 once invoked, about $0.0001 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 commands, from other repositories
load-session
Load a synced session summary for context.
sessions
List synced sessions from GitHub.
sync-enable
Enable session sync to GitHub for cross-device continuation.
sync
Manually sync current session to GitHub now.
statusline
Configure which sections appear in the Claude Code statusline.
add-integration
Add support for a new service (like Slack, Notion, or GitHub) with full OAuth and API integration.