context-hub-setup

context-hub-setup is a command for Claude Code from rjmurillo/ai-agents. It costs 26 tokens per session (1,129 once invoked), scanned A, original, MIT.

A setup command for connecting Context Hub to its required tools, including the Forgetful MCP server and optional code-analysis and documentation plugins.

In plain words
What is it for?
Use it to check installed plugins, install prerequisites, and configure or troubleshoot the Forgetful server connection.
Why use it?
It helps prepare a new development environment and find missing dependencies when the connection to Context Hub is not working.

Command for Claude Code

Part of the project-toolkit plugin — 95 skills, 26 commands, 33 agents, 4 hooks shipped together

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 commands/rjmurillo/ai-agents/context-hub-setup
Clone the repo
git clone --depth 1 https://github.com/rjmurillo/ai-agents

Made for: Claude Code.

Or install project-toolkit, the plugin that ships this one along with the rest of its 95 skills, 26 commands, 33 agents, 4 hooks.

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 context-hub-setup

README.md
[![agentmods](https://agentmods.dev/badge/commands/rjmurillo/ai-agents/context-hub-setup.svg)](https://agentmods.dev/commands/rjmurillo/ai-agents/context-hub-setup)
Your own site
<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>
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,129 The whole file, excluding the scripts and references it only reads on demand.
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.00026 $0.01129
Opus 5 $0.00013 $0.00564
Sonnet 5 $0.00005 $0.00226
Haiku 4.5 $0.00003 $0.00113

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

Security

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.

.claude/commands/context-hub-setup.md · 183 lines

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:

  1. Serena - Symbol-level code analysis (required for /encode-repo-serena)
  2. 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:

  • serena or similar (for code analysis)
  • context7 or 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:

  1. Standard (Recommended) - Zero config, uses uvx with SQLite storage
  2. 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:

  1. Fetch configuration docs:
WebFetch: https://github.com/ScottRBK/forgetful/blob/main/docs/configuration.md
  1. Guide through options:
    • Remote HTTP server - Connect to Forgetful running elsewhere
    • PostgreSQL backend - Use Postgres instead of SQLite
    • Custom embeddings - Different embedding model/provider

Read the full file on GitHub · 183 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. 5d ago First seen · 183 lines · 26 tokens per session scan A df6e2fd17f0c

Subscribe to this mod's changes

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.