Repository avatar
Version Control
v1.3.0
active

claude-md-start-slimmer

io.github.oneandroid-max/claude-md-start-slimmer

Scan CLAUDE.md, AGENTS.md & GitHub repos for startup token burn and compile <5KB START.md.

Documentation

ContextGuard (contextguard-mcp)

Stop burning $50–$200/month on AI-coding context-compaction loops in Claude Code, Cursor, Codex, and Windsurf.

License: MIT Node.js >= 20 Live Web Workbench Official MCP Registry ContextGuard MCP server ContextGuard MCP connector BidRadar MCP connector 15s YouTube Demo Verified on TrustMRR

When an AI coding session loads an oversized CLAUDE.md, AGENTS.md, .cursorrules, historical plan doc, or unignored lockfile on boot — or re-reads the same files after compaction — 40%–80% of the context window is already consumed before tool call #1. Within 10–15 minutes of tool calls, compaction fires again, breaking prompt-cache continuity and multiplying input token costs by 5x–7x.

ContextGuard is a zero-dependency Node.js CLI, Model Context Protocol (MCP) server, and Chrome Manifest V3 Side Panel extension that audits token traps, compiles a deterministic <5 KB START.md boot card, and compresses web docs/GitHub PRs into strict token budgets.


Quick Start (Zero Install — 0 npm Dependencies)

# 1. Audit startup token burn, lockfile leaks & compaction risk in any repo
npx --allow-git=all --yes github:oneandroid-max/contextguard-mcp audit .

# 2. Enforce a CI pull-request startup token ceiling (e.g. <= 6,000 tokens)
npx --allow-git=all --yes github:oneandroid-max/contextguard-mcp audit . --max-boot-tokens 6000

# 3. Compile a <5 KB START.md boot card from oversized CLAUDE.md / AGENTS.md files
npx --allow-git=all --yes github:oneandroid-max/contextguard-mcp slim . --write

# 4. Compress an HTML doc, PR diff, or log file to a 3,000-token Markdown budget
npx --allow-git=all --yes github:oneandroid-max/contextguard-mcp clip ./pr-page.html --budget 3000

Add as a Local MCP Server (Claude Code, Cursor, Windsurf)

Claude Code CLI (1 command)

claude mcp add contextguard -- npx --allow-git=all -y github:oneandroid-max/contextguard-mcp --mcp

.mcp.json / .cursor/mcp.json (Local stdio)

{
  "mcpServers": {
    "contextguard": {
      "command": "npx",
      "args": ["--allow-git=all", "-y", "github:oneandroid-max/contextguard-mcp", "--mcp"]
    }
  }
}

Hosted Remote Streamable HTTP MCP (0 Local Install)

Connect any Streamable HTTP MCP client directly to https://secondforeman.com/api/mcp (verified Official MCP Registry namespace com.secondforeman/contextguard & com.secondforeman/bidradar):

{
  "mcpServers": {
    "secondforeman-suite": {
      "type": "streamable-http",
      "url": "https://secondforeman.com/api/mcp"
    }
  }
}

Exposed MCP Tools (v1.3.0 — 10 Read-Only & Annotated Tools)

ToolWhat It Does
contextguard_audit_workspaceAudits CLAUDE.md, AGENTS.md, .cursorrules, docs/plans/*.md, and lockfiles for token burn & compaction spirals.
contextguard_slim_boot_cardGenerates a <5 KB START.md boot card and .claudeignore cutting startup reads by 60%–85%.
contextguard_compress_web_docStrips scripts, styles, SVGs, nav boilerplate, and duplicate stack traces into a budgeted Markdown prompt.
contextguard_scan_public_repoLive GitHub owner/repo scanner auditing AGENTS.md, CLAUDE.md, .cursorrules, .windsurfrules, .clinerules, and .github/copilot-instructions.md for startup token burn & hidden bidi/zero-width Unicode prompt injection.
bidradar_search_public_bidsSearches live written/async public-sector RFPs, sub-threshold P-Card quotes, and ADA Title II PDF/web opportunities via BidRadar.
ada_estimate_pdf_ua_remediationEstimates DOJ 28 CFR Part 35 ADA Title II PDF/UA-1 & WCAG 2.1 AA remediation cost and $15k Federal GPC / $25k State P-Card eligibility.
ada_audit_public_webpageSSRF-hardened read-only WCAG 2.2 AA & linked-PDF quick audit on any public https:// webpage (lang, title, h1, img[alt], iframe[title], .pdf count).
ada_inspect_public_pdf_uaSSRF-hardened ISO 14289-1 (PDF/UA-1) & WCAG 2.1 AA binary PDF inspector checking /MarkInfo, /StructTreeRoot, pdfuaid:part=1 XMP, /Lang, /DisplayDocTitle, raster scan OCR flags, and $1.50/$3.00 remediation cost.
epa608_calculate_leak_rateComputes 2026 EPA Section 608 & AIM Act 40 CFR § 84.106 (>= 15 lb HFC/A2L GWP > 53) annualizing & rolling 12-month refrigerant leak rates.
govcon_calculate_gpc_unison_marginCalculates Unison Marketplace (<= 3.93% GSA GS-35F-131GA fee) & Federal $15,000 GPC (FAR 13.2 + Stripe 2.9% + $0.30) net profit, FOB Destination margin, and floor-safe seller bid.

Browser Workbench, 7 Free Interactive Calculators/Scanners, Chrome MV3 & Pro Suite

Set SECOND_FOREMAN_PRO_KEY="SC1...." in your shell or .mcp.json env block to unlock unlimited multi-file JSONL transcript forensics, Pro .mcp.json/CI workflow generation, 500-PDF folder batch CSV exports, compiled <5 KB START.md repo downloads, Unison Bid CSV exports, and unredacted BidRadar direct buyer emails ($29/mo or $149/yr instant Stripe checkout at secondforeman.com/contextguard/#pricing).


Privacy & Publisher Disclosure

  • 100% Local Processing: contextguard audits files and compresses HTML locally on your machine with zero telemetry and zero code/prompt uploads.
  • Publisher: Second Foreman LLC · 801 NW 10th Street #470, Oklahoma City, OK 73106-6931 · hello@secondforeman.com · Veteran-Owned Small Business.
  • Built and operated by an AI agent (Google Gemini) with Paul Edward Lewis Jr. human sign-off, guaranteed by Second Foreman LLC.