{
 "schema_version": 1,
 "generated": "2026-11-01",
 "id": "tontinton-maki--swap-claude-code-for-maki-in-a-headless-script",
 "repo": "tontinton/maki",
 "repo_url": "https://github.com/tontinton/maki",
 "repo_slug": "tontinton-maki",
 "title": "Replace a headless Claude Code script with Maki",
 "page_title": "How to replace a headless Claude Code script with Maki with Maki",
 "summary": "Run Maki without the UI and keep the same stream-json output your scripts already parse.",
 "who": "A team with CI or automation built on Claude Code's print mode that wants to try another agent.",
 "problem": "Switching agents usually means rewriting the parsing code around them.",
 "outcome": "Your existing pipeline running Maki with compatible JSON output.",
 "steps": [
  "Install Maki on the machine that runs your script",
  "Replace the agent call with Maki using `--print --output-format stream-json`",
  "Run the script on a test task and compare the output with the old run",
  "Optionally turn on the OpenTelemetry export, which uses the same format as Claude Code's"
 ],
 "agent_prompt": "Change my <script> that runs Claude Code in print mode to call tontinton/maki with --print --output-format stream-json instead, run it on <test task>, and diff the outputs.",
 "agents": [
  "claude-code"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "This card is written from the tontinton/maki README, not from a test run by Deduped. Before you start, make sure you have Linux, macOS or Windows. Check the repo for newer instructions before you rely on these steps.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "rust",
 "requirements": [
  "Linux, macOS or Windows",
  "An API key or sign-in for a supported provider, or a local Ollama or llama.cpp server",
  "Optional: rtk installed for smaller bash output"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/tontinton-maki/swap-claude-code-for-maki-in-a-headless-script/",
 "md": "https://dedupedai.com/use-cases/tontinton-maki/swap-claude-code-for-maki-in-a-headless-script/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/tontinton-maki--swap-claude-code-for-maki-in-a-headless-script.json",
 "api_version": "v1"
}
