Skip to main content
Second Foreman LLC · Oklahoma City, OK SAM.gov UEI: U4BYU2ELNVW1 OK SOS: #3513997463 OK Tax Permit: #796020736 Veteran-Owned Small Business
hello@secondforeman.com
CONTEXT ARCHITECTURE ยท DETERMINISTIC BOOT SLIMMING

The <5 KB START.md Boot-Card Pattern for AGENTS.md & .cursorrules Repositories

Separate invariant guardrails (<1,400 tokens) from append-only operational history so coding agents start fast and stay accurate after resume.

Key Rules & Field Checklist

  • Tier 1 (Always Loaded, <5 KB): Hard guardrails, current sprint target, active directory map, and test commands.
  • Tier 2 (Task-Scoped): Module READMEs and API schemas read only when editing that directory.
  • Tier 3 (Append-Only Ledger): Incident logs, closed PR notes, and archive docs excluded from boot.
  • Run ContextGuard locally in your browser or via npx to generate START.md and ignore files automatically.

Run in terminal: npx --allow-git=all --yes github:oneandroid-max/contextguard-mcp slim . --write

Related Study & Engineering Guides

How to Stop AI Coding Context-Compaction Loops & 5x Prompt-Cache Burn · Auditing MCP Server Tool-Schema Token Overhead Before Tool Call #1 · Preventing package-lock.json, pnpm-lock.yaml & Build Artifacts from Leaking into Agent Context · Connect Second Foreman Remote Streamable HTTP MCP Server