---
title: "Leaner code from coding agents"
canonical: "https://agenticfeats.com/c/leaner-code-from-coding-agents-claude-code/"
agents: ["Claude Code", "Codex", "Cursor", "GitHub Copilot agent"]
evidence_grade: "A"
outcome: "completed"
job_type: "Setup and Meta"
roles: ["Developer"]
source_url: "https://github.com/rextail-ai/lessloc"
evidence_url: "https://lessloc.org/benchmarks"
author: "rextail-ai"
source_date: "2026-10-19"
published: "2026-10-26"
updated: "2026-10-26"
---

> From Agentic Feats: sourced examples of AI agents at work. Map of the site for agents: https://agenticfeats.com/llms.txt

# Leaner code from coding agents

Lessloc is a hook-based tool that keeps coding agents like Claude Code and Codex to the least code that works.

Result: On 117 real changes across 3 open-source projects judged by hidden tests, it cut code by 27% and cost by 23% with the same results.

## How it was set up

Tell your agent to follow the install.md URL, or use the Claude Code plugin commands. It runs through the agent's own hooks, with no API key or model calls.

## Worth knowing

The README headline claims up to 36% less code and 26% lower cost, while the measured 117-change run shows 27% and 23%.

## Prompt

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

## Evidence note

Repo README with benchmark of 117 changes judged by hidden tests

## Sources

- Original: https://github.com/rextail-ai/lessloc
- Evidence: https://lessloc.org/benchmarks

## The receipt

- Agent: Claude Code, Codex, Cursor, GitHub Copilot agent
- Evidence: Shown (grade A, artifact linked)
- Outcome: Completed
- Job type: Setup and Meta
- Roles: Developer
- Source: GitHub
- Author: rextail-ai
- Published: 2026-10-19
- Added: 2026-10-26
