Skip to content

Minimize Cursor Cost

Drop-in AI rules for Cursor and Claude Code that cut project token usage by 50%+.

Install: git clone https://github.com/inboxpraveen/Minimize-Cursor-Cost

Works with Claude Code, Cursor · 10 GitHub stars

Install

$git clone https://github.com/inboxpraveen/Minimize-Cursor-Cost

Install command taken from the project's README or registry entry. Always review code before running it.

Minimize-Cursor-Cost

Drop-in AI rules for Cursor, Claude Code, Codex, Copilot, Windsurf, and any other agent that reads AGENTS.md — designed to reduce token usage without reducing accepted-change quality.

No fluff in your AI's responses. No tutorials when you asked for a fix. No full-file rewrites when a 5-line patch will do. No re-reading the same file six times in a single chat.


TL;DR

# macOS / Linux / WSL
curl -fsSL https://raw.githubusercontent.com/inboxpraveen/Minimize-Cursor-Cost/main/install.sh | bash
# Windows
irm https://raw.githubusercontent.com/inboxpraveen/Minimize-Cursor-Cost/main/install.ps1 | iex

The default installs only Cursor's two core rules plus prompt templates. Choose tool and stack adapters explicitly when you need more — --tool agents for the cross-tool AGENTS.md, --tool claude for Claude Code.


What's included

lean-cursor/
├── AGENTS.md                           # Cross-tool standard — Cursor, Codex, Copilot, Windsurf, Zed…
├── CLAUDE.md                           # Auto-loaded by Claude Code on session start
├── .cursorrules                        # Cursor — legacy fallback rules
├── .claude/
│   └── rules/                          # Same scoped rules, Claude Code `paths:` format
│       └── *.md                        # Generated from .cursor/rules/*.mdc
├── .cursor/
│   └── rules/
│       ├── core.mdc                    # 🔥 Always-active response discipline
│       ├── agent-efficiency.mdc        # 🔥 Always-active tool-call discipline
│       │
│       ├── python.mdc                  # *.py
│       ├── typescript.mdc              # *.ts, *.tsx, *.js, *.jsx
│       ├── go.mdc                      # *.go
│       ├── rust.mdc                    # *.rs
│       ├── java-kotlin.mdc             # *.java, *.kt, *.kts
│       ├── csharp.mdc                  # *.cs, *.csproj, *.sln
│       ├── ruby.mdc                    # *.rb, Gemfile, Rakefile
│       ├── php.mdc                     # *.php
│       │
│       ├── react.mdc                   # *.tsx, *.jsx (component layer)
│       ├── nextjs.mdc                  # app/, pages/, middleware.ts, next.config.*
│       ├── vue.mdc                     # *.vue
│       ├── svelte.mdc                  # *.svelte, +page.*, +layout.*
│       ├── mobile.mdc                  # Swift, Kotlin Android, RN, Flutter
│       ├── data-science.mdc            # *.ipynb, notebooks/, ML files
│       │
│       ├── sql.mdc                     # *.sql + migrations
│       ├── html-css.mdc                # *.html, *.css, *.scss, Tailwind
│       ├── shell.mdc                   # *.sh, *.ps1, Makefile
│       ├── yaml-config.mdc             # Docker, K8s, Terraform, GH Actions
│       ├── markdown.mdc                # *.md, *.mdx
│       └── tests.mdc                   # *.test.*, *.spec.*, test_*.py
│
├── PROMPT_TEMPLATES.md                 # Copy-paste prompt patterns
├── .cursorindexingignore.example       # Optional generated/vendor exclusions
└── SETUP_GUIDE.md                      # Per-stack quickstarts + troubleshooting

tools/
└── gen-claude-rules.py                 # Regenerates .claude/rules/ from .cursor/rules/

How the rules reduce cost

The first version of this project focused on response-side savings — diffs over rewrites, no preamble, scoped explanations. That covers about half of the waste.

Similar plugs

The 1st Collaborative AI Design Agent Workspace. Local-first and open source. Create prototypes, websites, apps, dashboards, presentations, images, and videos with your team…

Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.

Open-source AI job search agent and job finder: scan job boards, score each job 1-5 against your CV before you apply, tailor an ATS-friendly resume and cover letter, get…

Agent skillSearch & web+1,899 this week

Explore related