{
 "schema_version": 1,
 "generated": "2026-10-24",
 "id": "akimiya-z-codex-guard--dry-run-diff-before-push",
 "repo": "Akimiya-z/codex-guard",
 "repo_url": "https://github.com/Akimiya-z/codex-guard",
 "repo_slug": "akimiya-z-codex-guard",
 "title": "Preview gate findings on a local diff before pushing",
 "page_title": "How to preview gate findings on a local diff before pushing with Codex Guard",
 "summary": "Run the Codex Guard CLI on a patch file to see the same checks locally before CI.",
 "who": "A developer or agent operator who wants to check AI-written changes on their own machine before opening a pull request.",
 "problem": "Waiting for CI to report a leftover TODO or a hardcoded key wastes time and a push cycle.",
 "outcome": "The same TODO, secret and commit checks run locally on the diff, so problems are fixed before the branch is pushed.",
 "steps": [
  "Write the change to a patch file with `git diff main > /tmp/patch.diff`. (inferred, check the README)",
  "Run `npx --yes codex-guard --diff /tmp/patch.diff`. (inferred, check the README)",
  "Read each finding and its file and line.",
  "Fix the flagged lines, regenerate the patch, and run the command again."
 ],
 "agent_prompt": "In the repository at <repo-path>, create /tmp/patch.diff from the diff against main and run `npx --yes codex-guard --diff /tmp/patch.diff`. Expected output: a list of TODO, secret and commit findings, or a clean result. Verify that no finding points to a file you did not change.",
 "agents": [
  "codex",
  "claude-code"
 ],
 "difficulty": "Intermediate",
 "time": "15 minutes",
 "basis": "readme",
 "caveat": "The README example is a diff file path, so the patch must come from a diff of the same changes you want checked.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "javascript",
 "requirements": [
  "A GitHub repository with Actions enabled and permission to add a workflow file",
  "Node.js with npx available on your machine",
  "A Git working copy of the repository (the init command runs from its root)",
  "Permission to change branch protection settings if you want the check to block merges"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/akimiya-z-codex-guard/dry-run-diff-before-push/",
 "md": "https://dedupedai.com/use-cases/akimiya-z-codex-guard/dry-run-diff-before-push/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/akimiya-z-codex-guard--dry-run-diff-before-push.json",
 "api_version": "v1"
}
