{
 "schema_version": 1,
 "generated": "2026-10-30",
 "id": "zachahn-vomit--shorten-claude-code-output-with-local-llm",
 "repo": "zachahn/vomit",
 "repo_url": "https://github.com/zachahn/vomit",
 "repo_slug": "zachahn-vomit",
 "title": "Shorten Claude Code output with a local LLM",
 "page_title": "How to shorten Claude Code output with a local LLM with Vomit",
 "summary": "Hook Vomit into Claude Code so a local model rewrites its verbose replies in plain English.",
 "who": "A developer using Claude Code who wants to save tokens and read shorter replies, and has a local LLM server running.",
 "problem": "Claude Code's output is often long and token-heavy, and the developer wants it condensed without sending it to another hosted service.",
 "outcome": "Claude Code's replies in the terminal are rewritten by a local model, and the original output is still available with ctrl-o.",
 "steps": [
  "Install Llama.app from https://github.com/ggml-org/Llama-macOS, then download GPT-OSS 20B through it (the README's recommended model).",
  "Run `go install github.com/zachahn/vomit@latest`.",
  "Run `vomit init` to set up the connection details to your LLM.",
  "Run `vomit scrub -claude` and follow its instructions on replacing Claude's output via hooks.",
  "Start Claude Code and send a prompt. Press ctrl-o to compare with Claude's original output."
 ],
 "agent_prompt": "Install the zachahn/vomit repo with `go install github.com/zachahn/vomit@latest`, then run `vomit init` against the local LLM server at <llm-endpoint> and follow the output of `vomit scrub -claude` to wire up the Claude Code hook. Report the setup steps you completed, and verify by sending one Claude Code prompt and confirming the reply is rewritten, with the original visible after ctrl-o.",
 "agents": [
  "claude-code"
 ],
 "difficulty": "Intermediate",
 "time": "1 hour",
 "basis": "readme",
 "caveat": "The README says the local model can hallucinate and the tool is slow, and that it was only tested on Mac.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "go",
 "requirements": [
  "Go toolchain, so `go install` works",
  "Claude Code installed",
  "A local LLM server such as Llama.app or Ollama, with a model downloaded",
  "A Mac, since the README says it was only tested on Mac"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/zachahn-vomit/shorten-claude-code-output-with-local-llm/",
 "md": "https://dedupedai.com/use-cases/zachahn-vomit/shorten-claude-code-output-with-local-llm/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/zachahn-vomit--shorten-claude-code-output-with-local-llm.json",
 "api_version": "v1"
}
