The pre-handoff audit for AI agent changes.
Agents finish work faster than humans review it. The gap between "agent
says done" and "actually done" is where every reviewer burns their first
30 seconds: leftover console.logs, TODOs, commented-out code, hardcoded
localhost, and β worst β secrets pasted straight into the diff.
diffconscience audits the agent's own diff before the handoff, so
reviews start at the interesting part.
$ git diff main...HEAD | diffconscience
diffconscience: 3 files changed β 1 errors, 3 warnings
[DC-SEC] ERROR src/auth/login.ts:11
possible secret: api key, openai key
const apiKey = "sk-proj...";
- Linters check the codebase. Reviewers check the changes. diffconscience audits exactly the changed lines β pre-existing debt stays out of the way.
- The patterns are universal: every AI-assisted team's PRs contain the same first-glance findings.
- It's deterministic: no model calls, no cost, no false "looks good" from a rubber-stamp review. Exit codes make it a CI gate.
| ID | Severity | Pattern |
|---|---|---|
| DC-SEC | error | Secrets in added lines (API keys, AWS, GitHub/OpenAI tokens, passwords, private keys) |
| DC-DEBUG | warn | Debug artifacts left in changed code (print, console.log, dbg!, println!, NSLog) |
| DC-LOCALHOST | warn | Hardcoded localhost / private IPs |
| DC-TODO | warn | TODO / FIXME / HACK introduced |
| DC-DEADCODE | warn | Commented-out code added |
| DC-SCOPE | warn | Files outside the declared task scope (--scope src/auth) |
| DC-DOCS | warn | Public-API changes with no README/docs/CHANGELOG touched |
git clone https://github.com/Awaisdev01/diffconscience.git ~/.claude/skills/diffconscienceCross-agent skill format (Claude Code, Cursor, Codex, Windsurf, Antigravity).
# Audit the current change set:
git diff main...HEAD | diffconscience
# With scope drift detection:
diffconscience diff.txt --scope src/auth,src/api
# CI gate (blocks on ANY finding):
diffconscience diff.txt --strict
# JSON for tooling:
diffconscience diff.txt --json- Finish the work
git diff main...HEAD | diffconscience- Fix every ERROR β secrets are never acceptable
- Fix or justify every WARN in the PR description
- Re-run β clean β commit, PR, handoff
| Stage | Tool |
|---|---|
| π‘ Outreach | smsaria β AI for basic phones (SMS + USSD) |
| Design | nativetap β mobile design intelligence |
| Shell correctness | bashproof β agent-proof quoting |
| This diff | diffconscience β pre-handoff audit |
| Code quality | prism_doctor β design-system lints |
| Launch | shipcheck β release-readiness audit |
| AI features | promptguard β prompt regression tests |
MIT β see LICENSE.