{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "oooscoos-benzi--trace-bad-value-to-origin",
 "repo": "oooscoos/Benzi",
 "repo_url": "https://github.com/oooscoos/Benzi",
 "repo_slug": "oooscoos-benzi",
 "title": "Trace a wrong value back to where it came from",
 "page_title": "How to trace a wrong value back to where it came from with Benzi",
 "summary": "Use Benzi's backflow and trace_path tools to find the origin of a bad value without opening every caller.",
 "who": "A developer debugging a failing test or wrong output in a Python project who needs to know which path delivered the bad value.",
 "problem": "Tracing a wrong value by hand means opening every caller and following arguments through several files.",
 "outcome": "The headless agent reports where the bad value originated and the call chain that carried it, with the runtime evidence it gathered.",
 "steps": [
  "Run `pip install benzi`.",
  "Run `benzi-login --login you@example.com`, then type the one-time code emailed to you.",
  "Run `benzi-login --model deepseek`.",
  "Run `benzi-login --nonanthropic-key YOUR_KEY` with your own key, or use `benzi-login --anthropic-key YOUR_KEY` for Claude models.",
  "Run `benzi-headless . \"find where the wrong value in <symptom> comes from\"` from the repo root. (inferred, check the README)"
 ],
 "agent_prompt": "In the repo at <repo path>, use Benzi to trace where the wrong value in <symptom or variable name> originates. Expected output: the origin file and line plus the call chain that carried the value. Verify the origin by checking that the cited line produces the value when the repro runs.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "The runtime tracer is temporarily broken as of October 14, 2026, and misses calls inside comprehensions, lambdas and generator expressions, so some traces may be incomplete.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "html",
 "requirements": [
  "Python 3.11 to 3.14 on Windows, macOS or Linux, for the pip install",
  "An email address for the one-time login code",
  "An API key from Anthropic or a non-Anthropic provider (DeepSeek, Groq, Kimi and others) for the Benzi agent, or an existing MCP-capable agent such as Claude Code or Cursor for the MCP server"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/oooscoos-benzi/trace-bad-value-to-origin/",
 "md": "https://dedupedai.com/use-cases/oooscoos-benzi/trace-bad-value-to-origin/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/oooscoos-benzi--trace-bad-value-to-origin.json",
 "api_version": "v1"
}
