vigil-mcp

skill
Security Audit
Fail
Health Pass
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Community trust — 37 GitHub stars
Code Fail
  • process.env — Environment variable access in dist/chunk-RRNI2CXH.js
  • process.env — Environment variable access in dist/chunk-XVVXXRFO.js
  • exec() — Shell command execution in dist/cli.js
  • process.env — Environment variable access in dist/cli.js
  • fs module — File system access in dist/cli.js
  • exec() — Shell command execution in dist/hook.js
  • process.env — Environment variable access in dist/hook.js
  • process.env — Environment variable access in dist/statusline.js
Permissions Pass
  • Permissions — No dangerous permissions requested

No AI report is available for this listing yet.

SUMMARY

Your Claude Code limit, stretched. Automatically. Calculates the cheapest setting for each of your projects from your own history. One install, zero settings.

README.md

Vigil for Claude Code

Your Claude Code limit, stretched. Automatically.

Vigil studies how you actually work, calculates the cheapest way to run each of your projects, and
sets it for you. One install. Zero settings. Recalculated every day.

npx github:ssamuels8/vigil-mcp

Start a new Claude Code session. You are done.

Where your limit really goes

Every time Claude answers, it re-reads the whole conversation so far. In a long session, most of
what you spend is re-reading, not new work.

Claude Code can shrink a long conversation into a summary. But it waits until about 400k tokens,
and it uses that same number for everyone, in every project. By then the expensive part has
already happened.

Not a tip. A calculation.

"Compact earlier" is advice. Vigil does the maths, on your own history.

  • It replays your real sessions. Seven different settings, every past session, and it keeps
    the one that would have cost you least.
  • It knows when lower is worse. Shrinking too often costs more than it saves. For the author,
    150k beat both the 400k default and the "obvious" 100k.
  • It tunes every project separately. A project that loads 90k of tools before you type a word
    needs a different setting from one that loads 30k. Each project gets its own.
  • It recalculates every day. New tools, new habits, new projects: the numbers follow you.
  • It never lets a session loop. Any setting that would leave you under 60k of working room is
    refused.
  • It keeps your thread. When a session is shrunk, Vigil tells Claude what to hold on to: the
    goal, the decisions and why, the files, the checks you ran, what is left.
  • It finds dead weight. Agents you never use still load on every turn. Vigil spots them and
    tells you once.

You do nothing

When What happens
On install A safe starting value is set. One line tells you what changed.
Every day Your sessions are re-read in the background and the values are updated.
While you work Sessions shrink at the right moment for that project. Nothing to remember.

No commands. No dashboard. No account.

What to expect

How we know Result What it means
Measured 21 to 73% less Cost of the rest of a task after shrinking at about 100k. Three live runs, tests passed.
Measured 7 to 36% less The same three runs, counted over the whole task.
Measured 27% less loaded every turn One setup, after removing agents that were never used.
Estimated 21% less use Modelled on the author's 138 sessions, against Claude Code's default.

Three runs, one project, one person. Your results will differ, and the effect on a real
subscription limit has not been measured yet. Every number here is tagged, on purpose.
Full results.

Safe by design

  • One setting. Vigil changes autoCompactWindow: once in your Claude Code settings, and for a
    project with its own value, in that project's personal settings file, which git ignores.
  • Your choice wins. A value you set yourself is never touched.
  • Nothing to commit. It never creates a file that would show up as a change in your repo.
  • Private. No network calls, no telemetry. It reads usage numbers and which folder a session
    ran in. Never your prompts, code or files.
  • Quiet. If anything in Vigil fails, it stays silent and Claude Code runs as normal.
  • Open. MIT licence. Read every line.

Undo

Put every setting back exactly as it was:

/vigil:auto off

Remove Vigil completely:

claude plugin uninstall vigil@vigil-mcp

Optional commands

Command What it does
/vigil:auto Shows the values in use and why they were chosen.
/vigil:audit Lists agents and skills you load on every turn but never use.
/vigil:kept A weekly report of your use.

Curious what it decided? /vigil:auto shows its working. This is the author's real output:

Vigil auto-compact: managing it, set to 150k.
Best window from 138 sessions, 12414 requests: 150k, modelled 21% less weighted use
than Claude Code's default. A model, not a measurement.
2 projects have their own window, worked out from that project's sessions.
Undo and stop: /vigil:auto off

Good to know

  • Needs Claude Code and Node 22.18 or newer.
  • Tested on macOS and Linux. Not yet tested on Windows.
  • A summary is shorter than the conversation it replaces, so some detail can be lost. In our tests
    the work still passed. If a session needs every earlier detail, run /vigil:auto off.
  • A project gets its own value once it has enough history: about 300 requests and three long
    sessions. Until then it uses your personal value.

Prefer to type the install yourself?

claude plugin marketplace add ssamuels8/vigil-mcp
claude plugin install vigil@vigil-mcp

More

Licence: MIT. Bundled TypeScript: Apache 2.0.

Reviews (0)

No results found