Extras and utilities
Optional tools for Claude Code and Codex.
| Command | Effect |
|---|---|
| Codex Companion | Open a macOS Session panel for Codex |
/lean-and-mean:statusline | Install the status line into ~/.claude |
@agent-lean-and-mean:explainer | Write a local explainer page with diagrams |
/lean-and-mean:typesafe-ai | Build a feature on Jev with the typesafe-ai skill |
The two slash commands run only when you type them. The assistant can call the Explainer Agent on its own when an answer is too long for the terminal.
Codex Companion
The macOS menu bar app opens a floating panel with the Git branch, context usage, weekly limit, estimated cache idle time, cached tokens, recorded tasks, and Next entries. It follows Codex’s appearance setting.
Clone the repository and build the companion with Xcode Command Line Tools and Python 3.
git clone https://github.com/spinlockdevelopment/lean-and-mean.git
cd lean-and-mean/extras/codex-companion
sh build.sh
python3 setup-hooks.py
open ".build/Codex Companion.app"
Review the companion hooks in desktop Settings → Hooks or CLI /hooks, then send a prompt. Setup and removal instructions.
Status line
extras/statusline.sh sets up a terminal status line on a new machine. It shows the folder, branch, model, context use, the 5-hour limit (5h) and the weekly limit (7d). A plan that reports only one limit shows only that one. The Session Status Mod shows the cache countdown, so the status line does not.
The second line of the script is a version breadcrumb, # lean-and-mean statusline <n>. At session start the hook compares it with your copy and suggests the command when yours is missing or old.
my-app | main | (Opus 5.5) | ctx 34% | 5h 18% · resets in 2h10m | 7d 62% · resets in 3d2h
Plugins cannot set the status line, so a command copies it in. The script needs jq. Run:
/lean-and-mean:statusline
It copies the script to ~/.claude/statusline.sh and adds this to ~/.claude/settings.json, asking first if another status line is set:
"statusLine": { "type": "command", "command": "~/.claude/statusline.sh" }
Explainer Agent
A subagent, Claude Code only, that writes .pages/<slug>.html: one local page with diagrams for an answer too long or too structural for the terminal. It writes a three-line shell and a Markdown body; the explainer kit does the design. On first use it asks for your style once. Details.
@agent-lean-and-mean:explainer explain how the session-start hook decides what to print
typesafe-ai
A bundled copy of TypeSafe AI's skill for building app features on Jev, their System One model. Jev doesn't generate text: it takes natural language plus application state and returns typed answers and probabilities, such as yes/no or pick-one, that ordinary code can combine. It fits routing, ranking, extraction, verification, or anywhere a prompt-and-parse step could become a structured decision.
Run it with /lean-and-mean:typesafe-ai. The skill reads TypeSafe's live docs and cookbooks as part of each task. The only change from the original is the endpoint: Jev is called through OpenRouter.
export OPENROUTER_JEV_API_KEY=...
Calls go to POST https://openrouter.ai/api/alpha/decisions with model ~typesafe/jev-latest; request and response match TypeSafe's API.
Without that key, Jev isn't used; there is no fallback to TypeSafe's own endpoint or TYPESAFE_API_KEY.
The assistant won't load it on its own. Copyright and credit belong to TypeSafe AI (MIT).