# AntiGravity Starter Kit — Context Optimizer & Lean Core

> Eliminates context bloat, audits rule files for token bleed, and enforces the under-40-line Lean Core standard.

AntiGravity Starter Kit — Context Optimizer & Lean Core is a paid AI agent skill pack (several skills in one listing) on Agensi by Patryk Mazur, in Prompt & Skill Engineering. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $26 (one-time purchase)
- Creator: [Patryk Mazur](https://www.agensi.io/creators/patryk-mazur)
- Category: [Prompt & Skill Engineering](https://www.agensi.io/skills/prompt-skill-engineering)
- Version: 1.0
- Last updated: 2026-10-18
- Security: scan passed (2026-10-17); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/antigravity-starter-kit-context-optimizer-lean-core
- Tags: prompt-engineering, ai-agents, code-review, cursor, claude-code, token-optimization, context-management, context-optimizer

## About this skill

### AntiGravity Starter Kit — Context Optimizer & Lean Core Rules

Tired of your AI coding assistant forgetting earlier instructions, burning tokens at lightning speed, or drifting into hallucinations?

The **AntiGravity Starter Kit** diagnoses and solves **Context Bloat** across Claude Code, Cursor, Windsurf, OpenClaw, Codex CLI, and Google Antigravity.

##### ⚠️ The Problem: Monolithic Instructions Degrade LLMs
When your root rule files (`AGENTS.md`, `.cursorrules`, `CLAUDE.md`) exceed 80–100 lines:
1. **Attention Degradation (Lost-in-the-Middle):** The LLM dilutes constraints, causing the assistant to violate safety rules or repeat mistakes.
2. **First-Token Latency (TTFT) & Token Waste:** Every turn re-reads the full system prompt. Over 125,000 wasted tokens in a 50-step session.
3. **Premature Context Overflow:** Heavy instructions push the session into early context exhaustion.

##### ⚡ The Solution: The AntiGravity 3-Tier Lean Core (<40 lines)
- **Tier 1: Lean Root Core (<40 lines):** Universal behavioral invariants only.
- **Tier 2: Modular Reference Modules:** Domain knowledge loaded on-demand from `references/`.
- **Tier 3: Isolated Subagents (`context: fork`):** Heavy refactoring in sandboxed sub-windows.

##### 📦 What's Included:
- `scripts/token_inspector.py` (CLI diagnostic audit)
- `assets/AGENTS.template.md` (18-line production starter)
- `references/` (Architecture guides and recipes)
- `agents/openai.yaml` (Codex CLI metadata)

##### 🔒 100% Local-First & Zero Telemetry
Runs entirely on your local machine using your existing CLI environment. Zero data telemetry, zero cloud egress.

## Requires

- Python

## Known limitations

Focuses on instruction optimization. Does not audit application code performance, database queries, or cloud infrastructure costs.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the AntiGravity Starter Kit — Context Optimizer & Lean Core skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What specific problem does the AntiGravity Starter Kit solve for AI coding agents?

It addresses 'context bloat'—when long instruction files cause AI agents to hallucinate, ignore constraints, or waste expensive tokens—by refactoring them into a high-performance 40-line architecture.

### Which AI coding assistants and agents are supported by this skill?

The kit is compatible with any AI coding environment that uses instruction files, specifically optimized for Cursor (.cursorrules), Windsurf, Claude Code (CLAUDE.md), and the Antigravity framework.

### What assets are included in the purchase of this skill kit?

You receive the token_inspector.py diagnostic utility, the 3-tier modular architecture templates, and a step-by-step implementation guide to migrate your existing rules into the lean format.

### Do I need to pay for an external API or subscription to use the diagnostic tools?

No, this skill is designed to work locally with your existing Markdown configuration files and includes a Python-based diagnostic tool that runs in your terminal or IDE environment.

### If I have complex project requirements, will they all fit within the 40-line limit?

While the 40-line core is the target for maximum focus, the kit uses a modular 'Reference' system that allows you to store unlimited technical documentation without cluttering the agent's primary reasoning window.

### How does this skill handle performance degradation in very long coding sessions?

The kit includes a specialized handover protocol that automatically triggers state summaries once a session hits 25,000 tokens, preventing the agent from losing the thread during deep work.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
