# Another approach to save tokens from coding agents

> Source: <https://github.com/rextail-ai/lessloc>
> Published: 2026-10-22 15:58:05+00:00

**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](https://lessloc.org/guide/getting-started#supported-agent-tools).

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](https://lessloc.org/guide/getting-started) · [How it works](https://lessloc.org/guide/how-it-works) · [Settings](https://lessloc.org/guide/configuration) · [Commits and CI](https://lessloc.org/guide/ci) · [FAQ](https://lessloc.org/guide/faq)

[Contributing](https://github.com/rextail-ai/lessloc/blob/main/CONTRIBUTING.md) · [Security](https://github.com/rextail-ai/lessloc/blob/main/SECURITY.md) · [Changelog](https://github.com/rextail-ai/lessloc/blob/main/CHANGELOG.md) · [License](https://github.com/rextail-ai/lessloc/blob/main/LICENSE)
