Grades are a hygiene check, not a security guarantee.

MCP, MCP server

Jev Compactor

jev-compactor is an open-source TypeScript library, CLI and MCP server that reduces an AI agent's context window without summarizing it.

Compatibility: Not stated.

Grade B

Minor issues only, no Medium or High. Worth a quick look at the findings below before installing.

Graded by PlugVetRubric v2

Not a guarantee. A hygiene check of the source at the commit shown, not a security audit.

NETWORK_NO_FIXED_HOST SECRETS_PATH_DOTENV SECRETS_ENV_READ

Why this grade

  • NETWORK_NO_FIXED_HOST Low

    Makes a network call whose host is not written as a fixed address.

    packages/bench/baselines/_llm.mjs, line 28 const res = await fetch(`${OPENROUTER}/models`);

  • SECRETS_PATH_DOTENV Low

    Mentions a .env file.

    CLAUDE.md, line 57 pnpm test:live # real Jev; needs .env.local

  • SECRETS_ENV_READ Note

    Reads an environment variable whose name contains KEY, SECRET, TOKEN, PASSWORD or CREDENTIAL.

    packages/bench/baselines/_llm.mjs, line 44 const key = process.env.OPENROUTER_API_KEY;

Any High, or two or more Medium findings, give D. One Medium gives C. Low findings or a security Note give B. Each code names a finding behind the letter.

Grades are a hygiene check of the source at the commit shown, on the date checked, not a security audit or a guarantee. The free directory grades are automated. Before release, a PlugVet engineer reviews every paid report and any grade we hold back, including all F grades, against the source code and the evidence we quote.

What was checked

Plain notes from the hygiene checks.

  • Permissions

    Pass

    No shell or command execution found, and no extra permission was declared.

  • Install and update

    Pass

    No install-time script found, and dependencies are pinned or absent.

  • Network

    Concern

    can reach a host that is not written as a fixed address.

    NETWORK_NO_FIXED_HOST

    packages/bench/baselines/_llm.mjs, line 28

    const res = await fetch(`${OPENROUTER}/models`);

    packages/bench/baselines/_llm.mjs, line 47

    const res = await fetch(`${OPENROUTER}/chat/completions`, {

    packages/bench/baselines/_llm.mjs, line 100

    const res = await fetch(`${base}/v1/messages`, {

    Show more

    packages/bench/baselines/_llm.mjs, line 159

    const res = await fetch(`${base}/v1/messages/count_tokens`, {

    packages/bench/baselines/anthropic.mjs, line 14

    const res = await fetch(`${base}/v1/messages`, {

    packages/bench/fixtures/gen-long.mjs, line 136

    tool('bash', { command: 'curl -s localhost:3000/health' }, '{"status":

  • Secrets

    Concern

    reads a credential or environment file.

    SECRETS_ENV_READ SECRETS_PATH_DOTENV

    CLAUDE.md, line 57

    pnpm test:live # real Jev; needs .env.local

    packages/bench/baselines/_llm.mjs, line 8

    // Keys come from .env.local through jev-compactor's loadEnvLocal (run.ts loads it too).

    packages/bench/baselines/_llm.mjs, line 44

    const key = process.env.OPENROUTER_API_KEY;

    Show more

    packages/bench/baselines/_llm.mjs, line 90

    const key = process.env.ANTHROPIC_API_KEY;

    packages/bench/baselines/_llm.mjs, line 150

    const key = process.env.ANTHROPIC_API_KEY;

    packages/bench/baselines/aider.mjs, line 45

    process.env.BENCH_AIDER_MAX_HISTORY_TOKENS ??

    packages/bench/baselines/anthropic.mjs, line 10

    const key = process.env.ANTHROPIC_API_KEY;

    packages/bench/baselines/claude-api-compaction.mjs, line 34

    const MAX_TOKENS = Number(process.env.BENCH_CLAUDE_MAX_TOKENS ?? 8192);

    packages/bench/fixtures/gen-long.mjs, line 78

    -rw-r--r-- 1 app app 412 Sep 18 09:12 .env.example', '-rw-r--r-- 1 app app 228

    packages/jev-compactor/src/cli.ts, line 54

    The API key is read from TYPESAFE_API_KEY or the nearest .env.local / .env.

    packages/jev-compactor/src/cli.ts, line 171

    const keyFromEnvironment = (process.env.TYPESAFE_API_KEY ?? '').trim() !== '';

    packages/jev-compactor/src/cli.ts, line 268

    const hasKey = (process.env.TYPESAFE_API_KEY ?? '').trim() !== '';

    packages/jev-compactor/src/cli.ts, line 274

    `${BAD} API key TYPESAFE_API_KEY is not set: export it, or put it in .env.local next to your package.json`,

    packages/jev-compactor/src/env.ts, line 2

    * Minimal `.env.local` / `.env` loader for the CLI, the MCP server and the live tests. No

    packages/jev-compactor/src/env.ts, line 10

    const CANDIDATE_NAMES = ['.env.local', '.env'] as const;

    packages/jev-compactor/src/env.ts, line 13

    * Walks up from `startDir` (≤ 6 steps) looking for `.env.local`, then `.env`, in each directory.

  • Agent instructions

    Pass

    No instruction to ignore earlier instructions or to hide a step.

  • Obfuscation

    Pass

    No encoded or minified payload found.

  • Licence

    Pass

    A licence file is present (LICENSE).

  • Maintainer activity

    Pass

    The latest commit is within the last 365 days.

Note

Hygiene check of commit 0a9b64e8481f. can reach a host that is not written as a fixed address. reads a credential or environment file.

Date and source

Date checked:

View source

github.com

Commit graded: 0a9b64e8481fac186e3dcb478450d8cf133d2772

This link goes to the original host. PlugVet does not host or check what you download from there, and installing it is your own decision and risk.

Read how this letter is chosen