lean

lean is a skill for Codex from AKSoftCode/aicrew. It costs 35 tokens per session (374 once invoked), scanned A, original, MIT.

A low-token working mode for aicrew coding-agent skills. It keeps responses short and encourages reading only the parts of files needed for the task.

In plain words
What is it for?
Keeping agent sessions concise, searching or inspecting targeted file sections, reusing earlier summaries, and switching between lean and normal output with session commands.
Why use it?
It reduces unnecessary context use while preserving constraints, safety checks, technical details, and required pauses for user input.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Codex.

Good fit Keeping agent sessions concise, searching or inspecting targeted file sections, reusing earlier summaries, and switching between lean and normal output with session commands.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aksoftcode/aicrew/lean
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add AKSoftCode/aicrew --skill lean
Clone the repo
git clone --depth 1 https://github.com/AKSoftCode/aicrew

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for lean

README.md
[![agentmods](https://agentmods.dev/badge/skills/aksoftcode/aicrew/lean/github.svg)](https://agentmods.dev/skills/aksoftcode/aicrew/lean)
Your own site
<a href="https://agentmods.dev/skills/aksoftcode/aicrew/lean"><img src="https://agentmods.dev/badge/skills/aksoftcode/aicrew/lean/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for lean

Your own site · 80×15
<a href="https://agentmods.dev/skills/aksoftcode/aicrew/lean"><img src="https://agentmods.dev/badge/skills/aksoftcode/aicrew/lean.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 374 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00035 $0.00374
Opus 5.5 $0.00014 $0.00150
Sonnet 5.5 $0.00007 $0.00075
Haiku 4.5 $0.00003 $0.00037

Measured 1mo ago against content hash c6840e8c10f1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

lean scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

codex-skills/lean/SKILL.md · 45 lines

What it actually says

Caveman is default. This skill only matters if you switched to verbose with /normal or /lean off.

Lean (Codex)

Default for all aicrew Codex skills. Not opt-in.

Applies caveman output (~/Agents/agents/caveman.md) and context-economy reads (~/Agents/agents/context-economy.md) on every session unless the user disables with /normal or /lean off.

What lean mode does

  1. Keep answers terse and structured.
  2. Use diff/tree/search before reading full files.
  3. Prefer targeted slices over whole-file reads.
  4. Reuse prior summaries unless files changed.
  5. Keep correctness and safety constraints intact.

Session controls

  • /lean on — explicit boost or re-enable after disable
  • /normal or /lean off — verbose output and relaxed read policy

Safety and fidelity rules

  • Never drop constraints, invariants, acceptance criteria, or required warnings.
  • Keep technical strings verbatim: code, commands, paths, flags, URLs, errors, versions.
  • Interactive checkpoints: still pause and wait — never skip or fabricate answers.
  • If uncertain, ask one short clarifying question or state one explicit assumption.

When proposing changes, debugging, or reporting tests, include:

  • Tests: ran / not run
  • Assumptions: critical only
  • Risks: 1-3 bullets

Session resilience

When /session context is available, keep checkpoint updates in: .ai/state/AI_STATE.<tool>.<session>.md

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 45 lines · 35 tokens per session scan A c6840e8c10f1

Subscribe to this mod's changes

lean is a skill published in the GitHub repository AKSoftCode/aicrew (3 stars, last pushed 3mo ago), licensed MIT. It adds 35 tokens to every session and 374 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

cutweight

The dial for an agent's token weight. Use when asked to cut tokens, be brief, cap thinking, or go light; when reply or reasoning tokens dominate the bill; when someone says word-diet, think-light, corner mode, or fewer tokens; or when a fact may have changed and needs a live check before a confident answer.

brenbuilds1/cutweight · 72 tokens

cutweight-cut

Session-weight hygiene. Use when sessions run long, when an agent gets slower or starts forgetting mid-session, when deciding between /clear, /compact, or a fresh session, or when every message feels heavier than the work in it. Calls the moment a session has blown the weight limit: cut it right and start the next one…

brenbuilds1/cutweight · 72 tokens

peon-ping-toggle

Toggle peon-ping sound notifications on/off. Use when user wants to mute, unmute, pause, or resume peon sounds during a Claude Code session. Also handles config changes like volume, pack rotation, categories — any peon-ping setting.

PeonPing/peon-ping · 58 tokens

peon-ping-log

Log exercise reps for the Peon Trainer. Use when user says they did pushups, squats, or wants to log reps. Examples - "/peon-ping-log 25 pushups", "/peon-ping-log 30 squats", "log 50 pushups".

PeonPing/peon-ping · 64 tokens

getting-started

Interactive post-onboarding tour that adapts to whatever data exists (calendar, Granola, or none). Use right after onboarding, or when the user says 'show me around', 'how do I start'. Also use proactively when the vault is < 7 days old. Not for the initial setup itself; use setup.

davekilleen/Dex · 70 tokens

resume-builder

Build resume and LinkedIn profile through guided interview.

davekilleen/Dex · 12 tokens