lessloc

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.

Packages

Package details

extension

Install lessloc from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:lessloc
Package
lessloc
Version
0.10.0
Published
Oct 21, 2026
Downloads
415/mo · 26/wk
Author
rextail
License
Apache-2.0
Types
extension
Size
485.2 KB
Dependencies
0 dependencies · 0 peers
Pi manifest JSON
{
  "skills": [],
  "extensions": [
    "./pi/extension.js"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

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

Measured on real work

Same task, less code

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 network calls, no dependencies.

Learn more

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

Contributing · Security · Changelog · License