cd /news/ai-agents/another-approach-to-save-tokens-from… · home › topics › ai-agents › article
[ARTICLE · art-155439] src=github.com ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

Another approach to save tokens from coding agents

Rextail AI released lessloc, an open-source (Apache-2.0) plugin for coding agents that the project claims cuts generated code by up to 36% and token cost by 26% with the same results. The tool works with Claude Code, Codex, OpenCode, GitHub Copilot, Gemini CLI and Cursor, installing via a prompt pointing to lessloc.org/install.md or, for Claude Code, the /plugin marketplace add rextail-ai/lessloc command; it requires no account, API key, network calls or dependencies. lessloc reuses existing project code, refuses placeholders, commented-out code and stray backup files, and sends the agent back to fix its own failing tests before declaring a task done.

read1 min views1 publishedOct 22, 2026
Another approach to save tokens from coding agents
Image: Michielbdejong (auto-discovered)

Up to 36% less code and 26% lower cost, with the same results.

For Claude Code, Codex, OpenCode, GitHub Copilot, Gemini CLI, Cursor and many more.

Tell your coding agent:

Install lessloc for this project by following https://lessloc.org/install.md

Claude Code? Or type these in its prompt box:

/plugin marketplace add rextail-ai/lessloc
/plugin install lessloc@lessloc

To remove it: Remove lessloc by following https://lessloc.org/remove.md

On npm? Install it with the sentence above; your agent sets up the hooks.

  • Less code to review. It reuses what your project already has.
  • A smaller bill. Fewer tokens per task.
  • No junk. Placeholders, commented-out code and stray backup files are refused.
  • It finishes the job. If its own tests still fail at "done", it goes back to fix them.

Open source (Apache-2.0). No account, no API key, no network calls, no dependencies.

Getting started · How it works · Settings · Commits and CI · FAQ

Contributing · Security · Changelog · License

── more in #ai-agents 4 stories · sorted by recency
── more on @rextail ai 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/another-approach-to-…] indexed:0 read:1min 2026-10-22 · —