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 getklaimv1.6.7MITIn 1 marketplace
Turns repeated coding conventions and workflows from your sessions into rules and skills that Claude loads automatically. Hooks store your prompts and tool-call metadata in a local SQLite database, and nothing structural changes until you approve it.
Trending plugins
7-day copy clicks
Claude hands work to one, or you mention it with @.
2 cautions to review before installing
A hook runs when Claude uses the Bash tool
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.
Auto-Context is a Claude Code plugin that makes your project smarter over time. Instead of manually maintaining CLAUDE.md, it observes your coding sessions, extracts patterns, detects conventions, and progressively improves your project's context — so Claude gets better at navigating and understanding your codebase with every session.
Think of it as "organizational scar tissue" — but automated.
It starts the moment you open a Claude Code session. Tool calls (Edit, Write, Bash, NotebookEdit) and user prompts get silently captured and stored in a local SQLite database. Payloads are compressed at ingestion — only metadata (file paths, commands) is kept, not full file contents.
When enough events accumulate (100+), a background worker launches. It analyzes the events across sessions, delegates to specialized sub-agents via the Claude Agent SDK, and produces:
.claude/rules/local/*.md) are auto-generated from repeated conventions and user corrections. Claude loads them automatically when touching matching files..claude/skills/*/SKILL.md) are extracted from repeated multi-step workflows — reusable slash commands..claude/hooks/*.sh) are generated when repetitive manual actions are detected (lint, format, test).Nothing structural changes without your say-so. You run /cac-apply, review the evidence, and decide.
Add the marketplace:
/plugin marketplace add getklaim/claude-auto-context
Install the plugin:
/plugin install claude-auto-context@claude-auto-context-marketplace
Or open the interactive plugin manager with /plugin, navigate to the Marketplaces tab to add the marketplace, then switch to Discover to install.
/plugin marketplace add https://github.com/getklaim/claude-auto-context.git
Start a new Claude Code session. The setup hook will auto-install Bun (if missing) and create .claude/rules/local/. The background worker launches automatically when enough events accumulate — no manual setup needed.
/plugin update claude-auto-context@claude-auto-context-marketplace
Once installed, hooks fire automatically across six lifecycle events:
| Event | What happens |
|---|---|
| SessionStart | Outputs dashboard stats (rules count, pending suggestions, DB size) into session context |
| Setup | Installs Bun if missing, creates .claude/rules/local/, runs auto-cleanup |
| UserPromptSubmit | Captures user prompt → SQLite (uncompressed, to preserve intent), checks for pending suggestions |
| PreToolUse | Version sync on commit, blocks conflict markers and planning files from staging |
| PostToolUse | Captures Edit|Write|Bash|NotebookEdit events → SQLite (compressed), syntax checks on edited files |
| Stop | Launches background worker if 100+ pending events |
All hooks execute in under 100ms. You never notice them.
| Command | Purpose |
|---|---|
/cac-apply | Review and apply a specific structural suggestion |
/create-suggestion | Manually create a structural suggestion with evidence |
/extract-rules | Manually extract convention rules from current session |
/context-hygiene | Run a context quality audit (duplicates, contradictions, stale refs) |
/cac-create-skill | Create a SKILL.md from a detected workflow pattern |
/run-worker | Manually trigger the background worker |
Auto-generated (no approval needed):
.claude/rules/local/
error-handling.md ← "Use Result type, not try-catch" (globs: src/**/*.ts)
api-patterns.md ← "All endpoints return ApiResponse<T>" (globs: src/api/**)
Rules files are scoped by glob pattern via frontmatter. Claude loads them automatically when it touches matching files — no CLAUDE.md bloat. Rules auto-decay: revalidated after 30 days, force-deleted after 60 days of no validation.
Suggestions (requires your approval):
.claude-auto-context/suggestions/
001-split-utils.md ← "src/utils.ts has 4% signal ratio → split into date.ts, string.ts"
002-unify-route-patterns.md ← "routes/ uses 3 different patterns → standardize"
Each suggestion includes the problem, proposed fix, and evidence from specific sessions.
7-day copy clicks
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.
npx claudepluginhub getklaim/claude-auto-context --plugin claude-auto-contextPlugins from other owners that cover similar ground