auto-context

auto-context is a Claude Code mod by vincentlauriat that adds git branch, dirty count, last commit and next TODOS to the session's system prompt.

Updated 2026-10-05

What is auto-context?

auto-context is a Claude Code mod by vincentlauriat that adds git branch, dirty count, last commit and next TODOS to the session's system prompt. It is listed under Context & memory and has no public popularity data yet.

TypeClaude code mod
Authorvincentlauriat
Repositoryvincentlauriat/ModsTools
Popularityno public popularity data yet
CategoryContext & memory
SecurityLow risk (88/100)
Rank#5,018 of 5,272 Claude Code mods; #464 in Context & memory
LicenseMIT
Last commit2026-10-05
Hooks4 events
Seesonly the events it hooks
Draws onnothing

Is auto-context safe to install?

auto-context scores 88/100 on the MCPMods security check: Low risk. Things to review: starts processes outside the sandbox. It passed 7 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
No network accessPass
Starts processes outside the sandboxReview
Writes no files or configPass
Doesn't read environment variablesPass
Only sees the events it hooksPass
Doesn't drive ClaudePass
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.command.register
$.fs.readreads files
$.process.runruns processes
$.session.cwd
$.state.get
$.state.set
$.store.getkeeps its own state
$.store.setkeeps its own state
$.ui.invalidatedraws interface

How do I install auto-context?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/vincentlauriat/ModsTools
    claude plugin validate ./ModsTools/mods/auto-context
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    git clone https://github.com/vincentlauriat/ModsTools && claude --plugin-dir ./ModsTools/mods/auto-context

Or ask Claude to set it up

Paste this into Claude Code and it installs auto-context for you:

Install the "auto-context" Claude Code mod from https://github.com/vincentlauriat/ModsTools/tree/main/mods/auto-context. Run claude plugin validate on it first and show me what it can access before you enable it.

More from vincentlauriat/ModsTools

This repository has at least 9 Claude Code mods on MCPMods.

  • achievement: Playful badges unlocked once ever from real events (tool calls, turns, subagents, tests, git); /achievements lists them (Low risk)
  • agent-tracker: A pane listing the subagents launched this session with their status and duration (Low risk)
  • ascii-weather: Weather from wttr.in in the status line (refreshed at most once an hour); /weather shows the one-line forecast (Low risk)
  • branch-guard: Asks the user before Edit/Write/NotebookEdit changes a file of a git repo whose current branch is main or master (once p (Low risk)
  • build-gate: Band above the prompt when a turn changed source code without running a matching build or type-check (Low risk)
  • changed-files: A pane listing the files Claude modified during the session (Low risk)
  • ci-watch: Follows the GitHub Actions runs of a commit after git push: status line while they run, toast with the failed workflows (Low risk)
  • command-history: A pane listing the Bash commands run this session with exit status and duration (Low risk)