Sponsor Suno AI Music arrow_forward
Plugin

Autocontext

Accumulates project knowledge across sessions and developers through structured lessons and hooks

Type
Plugin
GitHub stars
403
License
MIT
Repo last updated
Sep 25, 2026
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

  1. Add the repository as a plugin marketplace: claude plugin marketplace add jamditis/claude-skills-journalism
  2. Install the plugin: claude plugin install autocontext@<marketplace-name>, using the marketplace name from the repository's .claude-plugin/marketplace.json.
  3. Restart the session if the new skills or commands don't appear straight away.

Claude Cowork

  1. Open Customize → Plugins and choose Add marketplace.
  2. Enter jamditis/claude-skills-journalism (the owner/repo shorthand works for GitHub).
  3. 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/autocontext

Claude Code loads the skill automatically on next launch.

Quick start

  1. Run /autocontext:setup to configure your preferences (identity, sensitivity, loading behavior, 12 steps total).
  2. In any project, run /autocontext:init to create the .autocontext/ directory and start accumulating lessons.
  3. 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:

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under MIT. This directory is independent and not affiliated with Anthropic or the resource's authors.