Home / Claude Code mods / Context & memory / witness-context

witness-context

witness-context is a Claude Code mod by popovych-co that witness: the live context reading for every Bash command, and a once-per-session warning at the configured limit.

Updated 2026-11-30

What is witness-context?

witness-context is a Claude Code mod by popovych-co that witness: the live context reading for every Bash command, and a once-per-session warning at the configured limit. It is listed under Context & memory and has 1 GitHub stars.

TypeClaude code mod
Authorpopovych-co
Repositorypopovych-co/witness
Popularity1 GitHub stars
CategoryContext & memory
SecurityReview before installing (72/100)
Rank#4,136 of 9,397 Claude Code mods; #371 in Context & memory
LicenseMIT
Last commit2026-11-30
Hooks1 events
SeesBash calls
Draws onnothing

Is witness-context safe to install?

witness-context scores 72/100 on the MCPMods security check: Review before installing. Things to review: writes files or config; reads environment variables. It passed 5 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 no processesPass
Writes files or configReview
Reads environment variablesReview
Only sees the events it hooksPass
Doesn't drive ClaudePass
Validator reported problemsNote
Has an open-source licensePass

API calls in its code

CallWhat it means
$.env.getreads env vars
$.env.setsets env vars
$.fs.existsreads files
$.fs.readreads files
$.session.cwd
$.session.id
$.session.usage

How do I install witness-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/popovych-co/witness
    claude plugin validate ./witness/plugin-context
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add popovych-co/witness && claude plugin install witness-context@witness

Or ask Claude to set it up

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

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