{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "qiz029-dscode--run-dscode-in-ci-on-git-diffs",
 "repo": "qiz029/dscode",
 "repo_url": "https://github.com/qiz029/dscode",
 "repo_slug": "qiz029-dscode",
 "title": "Review a Git diff in a script or CI job",
 "page_title": "How to review a Git diff in a script or CI job with Dscode",
 "summary": "Pipe a diff into a non-interactive DSCODE turn and get the reply on stdout with a meaningful exit code.",
 "who": "A developer or CI maintainer who wants an automatic code review step in a pipeline without opening the TUI.",
 "problem": "Reviews done by hand do not run on every change, and an agent in a terminal is hard to call from a script.",
 "outcome": "A review reply printed to stdout that a pipeline can save or check, with the exit code reflecting the turn.",
 "steps": [
  "Install DSCODE on the machine or CI runner using the curl installer in the README quick start.",
  "Open `dscode` once and run `/provider` to store your model provider key.",
  "From the repository folder, run `git diff | dscode exec \"review this\"`. (inferred, check the README)",
  "Read the reply on stdout; tool activity and the session id appear on stderr.",
  "Add `--json` for structured output, or `--resume` to continue an earlier session, when the script needs it."
 ],
 "agent_prompt": "Using the repo qiz029/dscode, run `git diff | dscode exec \"review this\"` inside <repo path> and return the reply and the exit code. Verify that the exit code is 0 and that the reply text was written to stdout, not stderr.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "The README describes `exec` and `--resume` only in outline, so confirm exact flag behaviour with `dscode --help` before relying on it in production.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "javascript",
 "requirements": [
  "A macOS or Linux machine (64-bit glibc Linux is supported in 0.7.46)",
  "Install DSCODE using the curl installer in the README quick start",
  "A model provider key stored through the `/provider` command in the TUI",
  "A Git repository to review, for the diff-based use cases"
 ],
 "risk": "sensitive",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "The provider key is stored by DSCODE, so keep CI secrets scoped and do not print them in job logs."
  }
 ],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/qiz029-dscode/run-dscode-in-ci-on-git-diffs/",
 "md": "https://dedupedai.com/use-cases/qiz029-dscode/run-dscode-in-ci-on-git-diffs/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/qiz029-dscode--run-dscode-in-ci-on-git-diffs.json",
 "api_version": "v1"
}
