DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to review a Git diff in a script or CI job with Dscode

Pipe a diff into a non-interactive DSCODE turn and get the reply on stdout with a meaningful exit code.

Short answer: Install DSCODE on the machine or CI runner using the curl installer in the README quick start; then open dscode once and run /provider to store your model provider key; from the repository folder, run git diff | dscode exec "review this". All steps.

Credentials. The provider key is stored by DSCODE, so keep CI secrets scoped and do not print them in job logs.

Who it is forA developer or CI maintainer who wants an automatic code review step in a pipeline without opening the TUI.

The problemReviews done by hand do not run on every change, and an agent in a terminal is hard to call from a script.

The outcomeA review reply printed to stdout that a pipeline can save or check, with the exit code reflecting the turn.

What you need first

  • 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

Steps

  1. Install DSCODE on the machine or CI runner using the curl installer in the README quick start.
  2. Open dscode once and run /provider to store your model provider key.
  3. From the repository folder, run git diff | dscode exec "review this". (inferred, check the README)
  4. Read the reply on stdout; tool activity and the session id appear on stderr.
  5. Add --json for structured output, or --resume to continue an earlier session, when the script needs it.

Prompt for your agent

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.

Caveat. The README describes `exec` and `--resume` only in outline, so confirm exact flag behaviour with `dscode --help` before relying on it in production.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for qiz029/dscode and "Review a Git diff in a script or CI job"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer