Skip to content

About

🧭 The pre-handoff audit for AI agent changes β€” know what your agent actually touched before you ship.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧭 diffconscience

release MIT zero deps

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...";

Why it exists

  • 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.

Checks

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

Install

git clone https://github.com/Awaisdev01/diffconscience.git ~/.claude/skills/diffconscience

Cross-agent skill format (Claude Code, Cursor, Codex, Windsurf, Antigravity).

Usage

# 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

The handoff protocol

  1. Finish the work
  2. git diff main...HEAD | diffconscience
  3. Fix every ERROR β€” secrets are never acceptable
  4. Fix or justify every WARN in the PR description
  5. Re-run β†’ clean β†’ commit, PR, handoff

Part of a pipeline

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

License

MIT β€” see LICENSE.

About

🧭 The pre-handoff audit for AI agent changes β€” know what your agent actually touched before you ship.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages