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
- Install DSCODE on the machine or CI runner using the curl installer in the README quick start.
- Open
dscodeonce and run/providerto 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
--jsonfor structured output, or--resumeto 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
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer