Skip to content
プロジェクト

概要

Keeps AI coding agents such as Claude Code, Codex, GitHub Copilot, Gemini CLI and Cursor to the least code that does the job and still works.

開発ツール

この数値の測り方

計測したスター増加

24時間
0
7日間
-1
15日間
-2
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

lessloc: less lines of code

Your AI coding agent, without the bloat

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.

npm version tests license: Apache-2.0

lessloc downloads, counted live

Install in one sentence

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 https://get.lessloc.org/claude/lessloc.git
/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.

Measured on real work

117 real changes in 3 open-source projects, judged by hidden tests: 27% less code, 23% lower cost, the same results

How it works

How lessloc works inside your agent's own loop, through the hooks your agent tool already has: at session start it adds a short working standard, at each prompt it points to code you already have, before a write it refuses placeholders and junk, after a write it flags secrets and swallowed errors, and at the end of the turn it sends unfinished work back once. Principles: the least code that stays correct, reuse before new code, act in the loop with no reports, the agent's test runs as proof, review only the change. Built on Node.js with no dependencies, no API key and no model calls, git for snapshots, one table for 20+ agent tools, and a code index for 16 languages.

What changes

  • 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.

Free and private

Open source (Apache-2.0). No account, no API key, no dependencies. It keeps itself up to date: its only network contact of its own is a daily check for a newly published release.

Learn more

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

Contributing · Security · Changelog · License

関連プロジェクトを探す

読み込み中…