Autocontext
Accumulates project knowledge across sessions and developers through structured lessons and hooks
- Type
- Plugin
- Repository
- jamditis/claude-skills-journalism
- GitHub stars
- 403
- License
- MIT
- Repo last updated
- Sep 25, 2026
- Source file
- autocontext/.claude-plugin/plugin.json
- Version
- 1.1.2
- Author
- Joe Amditis
What Autocontext is
Autocontext is a plugin published in the jamditis/claude-skills-journalism repository on GitHub, which has about 403 stars. The repository describes itself as: “Claude Code skills for journalism, media, and academia - verification, FOIA, data journalism, academic writing, and more”
A plugin is a package that bundles skills, slash commands, subagents, hooks, and MCP connectors so they install together. Plugins are plain files with a manifest at .claude-plugin/plugin.json, and they work in both Claude Code and Claude Cowork.
Installing Autocontext adds everything it ships in one step. Connectors inside a plugin still need to be connected separately, and hooks and subagents only run in Cowork and Claude Code, not in regular chat.
How to install Autocontext
Claude Code
- Add the repository as a plugin marketplace: claude plugin marketplace add jamditis/claude-skills-journalism
- Install the plugin: claude plugin install autocontext@<marketplace-name>, using the marketplace name from the repository's .claude-plugin/marketplace.json.
- Restart the session if the new skills or commands don't appear straight away.
Claude Cowork
- Open Customize → Plugins and choose Add marketplace.
- Enter jamditis/claude-skills-journalism (the owner/repo shorthand works for GitHub).
- Find Autocontext in the list, click Install, then connect any connectors it needs from its Connectors tab.
New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.
Inside the source file
An excerpt from autocontext/.claude-plugin/plugin.json, shared under the repository's MIT license. Read the full file on GitHub.
A Claude Code plugin that gives your AI assistant a memory for each project.
The problem
Every time you start a new Claude Code session, Claude starts from scratch. It doesn't remember that the database migration broke last time you used mocks, that the deploy script needs a cache clear first, or that the API returns dates in a weird format. You end up correcting the same mistakes across sessions, and those corrections vanish when the conversation ends.
What autocontext does
Autocontext listens to your conversations and captures the moments where you correct Claude, "no, use the other API", "you forgot to clear the cache", "that's the wrong import path." It saves those corrections as structured lessons in a JSON file inside your project.
The next time you open a session in that project, autocontext loads the relevant lessons and uses them to avoid repeating the same mistakes. Lessons that keep proving useful gain confidence over time. Lessons that go stale lose confidence and eventually fade out.
It's like giving Claude a notebook that it reviews before starting work each day.
What it looks like in practice
- You tell Claude "no, always use pytest -x here, not pytest" → autocontext captures that as a lesson candidate
- Next session, when Claude is about to run pytest, autocontext injects a warning: "lesson: always use pytest -x in this project"
- If Claude follows the lesson without you correcting it again, the lesson's confidence goes up
- If you correct it differently, the old lesson decays
Over weeks of use, your project builds up a curated knowledge base of project-specific patterns, gotchas, and preferences that Claude loads automatically.
Install
# Clone claude-skills-journalism anywhere, then install the autocontext
# skill into ~/.claude/skills/ (Claude Code discovers skills one level deep):
git clone https://github.com/jamditis/claude-skills-journalism ~/projects/claude-skills-journalism
mkdir -p ~/.claude/skills
cp -r ~/projects/claude-skills-journalism/autocontext ~/.claude/skills/
# or: ln -sfn ~/projects/claude-skills-journalism/autocontext ~/.claude/skills/autocontextClaude Code loads the skill automatically on next launch.
Quick start
- Run /autocontext:setup to configure your preferences (identity, sensitivity, loading behavior, 12 steps total).
- In any project, run /autocontext:init to create the .autocontext/ directory and start accumulating lessons.
- Just use Claude Code normally. Autocontext runs in the background.
Commands
How it works under the hood
Autocontext uses Claude Code's hook system to run at five points in every session:
- When a session starts, loads lessons from .autocontext/lessons.json, ranked by relevance to the files you've been working on. If there are lesson candidates from your last session, a curator pass decides which ones are worth keeping.
- Before each edit or command, checks if any loaded lessons are relevant to the file being edited or the command being run. If so, it injects a short warning so Claude doesn't repeat a known mistake.
- When you type a message, pattern-matches for correction phrases like "no, use X instead" or "you forgot to..." and queues them as lesson candidates.
- After test file edits, runs quality checks on test code (catches tautological assertions, happy-path-only test suites, and other common test smells). Also tracks build/test times against baselines to flag performance regressions.
- When a session ends, lessons that were loaded and not contradicted get a confidence boost. The playbook summary file is regenerated.
Before you install
- Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
- Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
- Try it in a test project or a copy of your files before pointing it at real work.
- Pin the version you tested, and review changes before updating.
- Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.
FAQ
What is Autocontext?
Autocontext is a plugin for Claude Code and Claude Cowork from the jamditis/claude-skills-journalism repository on GitHub. Accumulates project knowledge across sessions and developers through structured lessons and hooks
How do I install Autocontext in Claude Code?
Add the repository as a plugin marketplace: claude plugin marketplace add jamditis/claude-skills-journalism Install the plugin: claude plugin install autocontext@<marketplace-name>, using the marketplace name from the repository's .claude-plugin/marketplace.json. Restart the session if the new skills or commands don't appear straight away.
Can I use Autocontext in Claude Cowork?
Open Customize → Plugins and choose Add marketplace. Enter jamditis/claude-skills-journalism (the owner/repo shorthand works for GitHub). Find Autocontext in the list, click Install, then connect any connectors it needs from its Connectors tab.
Is Autocontext safe to install?
It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.
Similar resources
- Dev Toolkit Thirteen development skills for newsroom and research dev teams: accessibility, context management, directed multi-agent execution, Electron, mobile debugging, Python pipelines, test-first bug fixing, ethical scraping, no-build frontends, web UI craft, and CLAUDE.md maintenance. Plugin · jamditis/claude-skills-journalism
- Pdf Playground Interactive playground for creating and testing PDF reports and proposals Plugin · jamditis/claude-skills-journalism
- Project Templates Toolkit Three skills for starting and closing out journalism projects: a CLAUDE.md project-memory writer, a LESSONS.md retrospective writer, and a template-selector decision tree for editorial tools, events, publications, research, pipelines, and archives. Plugin · jamditis/claude-skills-journalism
- Journalism Core Fifteen core journalism skills for reporting, verification, publishing, and digital investigations: AP-style writing, AI-slop detox, source verification, FOIA/OPRA and Brazilian LAI requests, fact-checking, interview prep and transcription, story pitches, editorial workflow, crisis comms, newsletter publishing, data journalism, social-media OSINT, and embedded photo metadata. Plugin · jamditis/claude-skills-journalism
- Agentops Core Gemini AgentOps 65-skill image (61 CORE + 4 AGY operator) packaged for Google Antigravity (AGY) / Gemini. Portable SKILL.md set (identical to the… Plugin · boshu2/agentops
- Agentops Antigravity Core AgentOps core operator skills packaged for Google Antigravity with Agent Mail MCP and AgentOps guard hooks. Plugin · boshu2/agentops
- Agentops Engineering guidance for coding agents: behavior-driven planning, shared domain language, independent validation, and reusable improvements. Plugin · boshu2/agentops
- Rethink Surveys Survey design framework grounded in proven research methods (Caroline Jarrett's Surveys That Work, Dillman's Tailored Design, Tourangeau's cognitive model). Captures user intent — what people are actually trying to do, what friction they face, what outcomes they want — without leading questions, satisficing bait, or shallow Likert noise. Includes a 4-part hybrid structure (discovery / diagnostic… Plugin · ooiyeefei/ccc