Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By othercodesv0.1.0In 1 marketplace
Plugin template shipping claude-context-engine: injects each project's .claude/context/ and .claude/reminders/ into Claude Code sessions.
Claude loads one when your task matches it, or you run it by name.
1 caution to review before installing
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A Claude Code plugin template that ships one engine, claude-context-engine,
and no content. The content lives in each project's .claude/, so the same
plugin serves any repo or workspace without being edited.
| Hook | Injects |
|---|---|
SessionStart | every .claude/context/*.md, plus the list of git repos when the session starts in a multi-repo workspace |
SubagentStart | every .claude/context/*.md, plus the cards matching the subagent's cwd |
PreToolUse (Read, Edit, Write) | the cards matching the touched file, once per session |
UserPromptSubmit | the message of every .claude/reminders/*.rules rule the prompt matches |
Everything goes through hookSpecificOutput.additionalContext. Requires jq;
the scripts run on bash 3.2, the macOS default.
<project>/.claude/
context/*.md always-on
context/cards/<key>.md lazy, injected on the first touch of a matching file
context/cards.map <path regex><TAB><key>
reminders/*.rules <prompt regex><TAB><message>
wiki.md using-wiki config (optional, see Skills)
Each hook walks up from the session cwd to the first directory holding
.claude/context/ (or .claude/reminders/) and stops at $HOME, so
~/.claude/context/ works as a global fallback. Only the first one found is
used; they do not stack.
00-, 10-). They cost tokens on every session and every subagent: keep them small and push detail into cards.cards.map regexes are extended (grep -E) and match the file path relative to the project root, the directory holding .claude/, so ^services/api/ works. A path can match several cards; each is injected once per session.grep -iE). A strong nudge, not enforcement: keep them tight, noisy reminders get ignored.# comments and blank lines are skipped in both TSV files.{{ROOT_DIR}} (the project root's basename) and {{CONTEXT_DIR}} (absolute path of .claude/context/, so "read {{CONTEXT_DIR}}/cards/x.md" resolves from any cwd).examples/.claude/ is a working sample: copy it to a project root and edit it.
Claude Code runs the plugin's hooks (hooks/hooks.json) at four points of a
session. Each hook is a bash script that reads the event JSON on stdin, finds
the project's content, and prints a JSON envelope whose additionalContext
Claude Code adds to the model's context. A hook with nothing to add prints
nothing, so it costs nothing.
cwd from the event and walks up to the first .claude/context/ (or .claude/reminders/), checking $HOME last. Walking up matters in a multi-repo workspace, where the cwd moves into a repo as soon as anything cds there. The directory holding .claude/ is the project root.scripts/load-context.sh concatenates every context/*.md in lexical order and replaces the placeholders. When the cwd is not a git repo but holds repos one or two levels down (repo/ or group/repo/), it appends a "Local Repositories" list so the model uses real paths instead of guessing them. This is the always-on map.PreToolUse on Read, Edit, Write). The file path is made relative to the project root and matched against every cards.map line. Each matching card is injected under an <!-- injected-card: <key> --> marker. The keys already injected are recorded in <transcript>.context-cards, beside the session transcript, so a card lands once per session, survives a resume, and later touches are free.scripts/reminder.sh matches the prompt against every reminders/*.rules pattern and injects the message of each rule that matches, one per line.The split is about cost. Always-on files are paid on every session and every subagent; cards are paid only when the model works in their area. Keep the always-on files as the map (what exists, where, which card to read) and the cards as the detail.
A session on the shipped example, with the project at ~/work/shop:
you claude (cwd ~/work/shop)
engine .claude/context/00-project.md injected at session start
model Read ~/work/shop/src/app.py
engine cards.map "^src/<TAB>src" matches "src/app.py", cards/src.md injected (once)
model Edit ~/work/shop/src/db.py
engine src already injected this session, nothing added
you "the PR got merged"
engine git.rules "\bmerged\b" matches, the housekeeping reminder is injected
npx claudepluginhub othercodes/claude-plugin-template --plugin claude-plugin-templatePlugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.