Skip to content
zzjihoPublic

About

Makes your AI agent answer like a briefing to a busy, skeptical boss. Conclusion first, no padding, no agreement it doesn't mean.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

☕ espresso

A grumpy cat in a green beret sipping espresso

Water out. Answer only.

Tests Works with 5 agents Zero dependencies Node 18+ MIT license

한국어


LLM answers are padded, and worse — agreeable. Openers that say nothing, closers that repeat what you just read, cheerful agreement with a premise that is wrong. espresso makes every answer a briefing to a busy, skeptical boss: the first sentence is the answer, everything else has to earn its place, and a wrong premise gets called out instead of politely answered.

Built for people who find long text expensive to read.

Before / after

Should I use microservices for my todo app?

Without espresso:

Great question! This is a really common thing to think about when you're starting a new project. There are a lot of factors to weigh here, so let me walk you through some of the main considerations. Microservices can offer benefits like independent scaling and deployment, but they also introduce operational complexity... (eight more sentences) ...so in summary, it really depends on your specific needs. Hope this helps! Let me know if you'd like me to go deeper on any of these points.

With espresso (ultra):

Wrong question. Microservices solve an org problem, not a code problem — one team doesn't have that problem. Single service. Revisit when two teams block each other on deploys.

(full, the default, keeps the brevity but skips the pushback — levels below.)

How it works

espresso is a set of instructions the assistant reads on every turn. Four levels, escalating:

Level Behavior
lite Strip the fluff. Answer short. Neutral tone. Never pushes back.
full lite, plus: asks which one when your question is ambiguous instead of answering both. Default.
ultra full, plus: says so when your premise is wrong, before answering. No agreement it doesn't mean.
ristretto ultra, distilled: two sentences maximum, no bullets, no tables.

Same question, three levels:

  • lite — "No. A single service is enough at this size. Split when a specific piece needs to scale or deploy separately."
  • full — "No, not at this size. Are you asking about deployment, or about code organization? They have different answers."
  • ultra — "Wrong question. Microservices solve an org problem, not a code problem — one team doesn't have that problem. Single service. Revisit when two teams block each other on deploys."
  • ristretto — "No — that solves an org problem you don't have. One service; split when two teams block each other on deploys."

On Claude Code, the level persists across the session — set it once, it holds until you change it or the session ends.

Never cut

espresso does not touch:

  • What you explicitly asked to be long — "explain in detail" wins.
  • Deliverables — a README, report, or email you asked for, or an analysis or review you asked to be thorough, is the product, not the answer. Only the surrounding chat is compressed.
  • Code — it cuts commentary around code, never the implementation.
  • Safety, security, accessibility, and error information.
  • Your standing instructions — if CLAUDE.md or project rules ask for step-by-step detail, they outrank espresso.

Install

Claude Code

/plugin marketplace add zzjiho/espresso
/plugin install espresso@espresso

(Send the two commands as two separate prompts.) Open a new session. /espresso shows the current level; /espresso ultra switches. Turn it off by saying stop espresso or normal mode.

Persist a default across restarts:

/espresso default ultra    # new sessions start in ultra

Or per session, with an environment variable (overrides the stored default):

export ESPRESSO_DEFAULT_MODE=ultra    # lite | full | ultra | ristretto | off

Optional statusline badge — shows ☕ ultra while espresso is on. Add to ~/.claude/settings.json, pointing at the installed plugin's copy of hooks/espresso-statusline.sh:

"statusLine": { "type": "command", "command": "bash \"$HOME/.claude/plugins/cache/espresso/espresso/<ver>/hooks/espresso-statusline.sh\"" }

Codex

codex plugin marketplace add zzjiho/espresso
codex plugin add espresso@espresso

Reads the rules from skills/. (No lifecycle hooks; switch levels conversationally.)

Cursor / Windsurf / other rule-file agents

Copy .cursor/rules/espresso.mdc into your project (Cursor), or .agents/rules/espresso.md for other rule-file agents.

Gemini CLI

gemini extensions install https://github.com/zzjiho/espresso

The extension reads AGENTS.md at the repo root.

Slash commands (/espresso ...) are Claude Code only. On every other tool you switch by saying the level name — "lite", "full", "ultra" — or "stop espresso" in conversation.

Uninstall

Host Command
Claude Code /plugin remove espresso
Codex codex plugin remove espresso
Gemini CLI gemini extensions uninstall espresso
Cursor / Windsurf / rule-file tools delete the copied rule file

espresso keeps two bits of state outside the plugin folder — remove them for a clean slate:

rm -f ~/.claude/.espresso-active    # active level for the current session
rm -rf ~/.config/espresso           # default saved by /espresso default

If you added the statusline badge, also remove the statusLine entry from ~/.claude/settings.json.

Commands

Command What it does
/espresso lite | full | ultra | ristretto Switch level
/espresso Show current level
/espresso default <level> Persist a default across restarts
stop espresso / normal mode Turn off
/espresso-check Trim your writing — commit messages, Slack, emails, reports
/espresso-help The command card

/espresso-check edits text you paste in. It is not a self-review of the assistant's answers — paste a draft, get it back with the padding cut and a note on what was removed.

This is not for you if

  • You want an assistant that agrees with you.
  • You want the reasoning walked through, not just the conclusion.
  • You're learning something new and want the long version.
  • You like conversational back-and-forth.

espresso has a taste. Pleasing everyone would leave it with none. If a short answer isn't what you want, say stop espresso.

Development

npm test

No runtime dependencies. Tests use Node's built-in node:test runner (Node 18+).

The rules live in skills/espresso/SKILL.md. Three deployment files carry an abridged copy of that text — AGENTS.md, .cursor/rules/espresso.mdc, and .agents/rules/espresso.md. Each tool wants a different format, so they can't be symlinked. Change the rules in all four places. A test compares them and fails if they drift.

License

MIT

About

Makes your AI agent answer like a briefing to a busy, skeptical boss. Conclusion first, no padding, no agreement it doesn't mean.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Contributors

Languages