Free desktop tool · v1.1

Nothing reaches GitHub unchecked.

Every push from this studio used to ride on habit: scan by eye, push, hope the read-back matched. Ghost Gate turns that habit into a gate. A folder does not reach GitHub until it has been scanned, diffed, rehearsed, and journaled.

Pure Python standard library No installs, stores no token 66 KB single file GUI + CLI Free

The flow

Scan, diff, rehearse, land, journal. Each stage can stop the push, and the stop always says why.

Scan, including inside archives

Credential-shaped strings, filename classes blocked outright (.env, keys, keystores), oversize files, and per-repo watch-strings: literal strings that stop the push on sight. Zips, APKs, jars and tarballs in the tree are opened and scanned inside, because a key baked into a shipped binary is the worst leak.

Diff by blob hash

Local tree vs remote tree compared by real git blob hashes: added, changed, deleted, unchanged, listed before anything moves. Your project's own gate command (its tests) must pass before the scan even starts.

Rehearsed push

The commit is built server-side first, blobs, tree and commit, without moving the branch. The delta is re-hashed at the last second; landing is one ref update; then the tree is read back hash-for-hash and key files are pulled back from the raw public URL.

Journal and rollback

Every gated push is written to a hash-chained journal: repo, branch, commits before and after, delta counts, scan verdict. Rollback resets the branch to the previous gated commit. Overrides of a finding need its fingerprint plus a written reason, recorded where anyone can audit them.

Absorb, do not clobber

If the branch moved outside the gate, non-overlapping remote work is absorbed: your delta is applied on top of it. Only files changed on both sides stop the push, and they are named.

History sweep, observe, batch

A secret deleted today is still public in history; the sweep audits past commits and names what needs rotating. First contact with a repo is observe-only, with guardrails drafted for your approval. Batch mode runs the full gate over a list of repos and prints one verdict board.

Proven the hard way

Ghost Gate's own repository is pushed through Ghost Gate. The 1.1 push detected its own version bump and named its commit "Ghost Gate 1.1", verified itself by pull-back from the raw URL, and prepared a release draft, then stopped: a push is not a release, and the tool never publishes one. Before that release, the gate had already absorbed an outside change on a test repo, stopped a true overlap by name, caught a token planted in a test repo's history, and rolled a branch back to the exact earlier tree, verified hash-for-hash.

python3 ghost_gate.py --journal
Journal chain: INTACT (7 entries)
  #7 push littlestjames82-sys/ghost-gate@main +0 ~3 -0 -> 08133444

Run it

Needs Python 3 with Tk for the window; the CLI needs neither. The tool never stores a GitHub token: it uses GITHUB_TOKEN from the environment when present. Run the self-test first; it plants canary secrets (including one sealed in a zip) and proves the scanner catches every one.

python3 ghost_gate.py --selftest
python3 ghost_gate.py --scan ./my-project
python3 ghost_gate.py --push ./my-project owner/repo
python3 ghost_gate.py --history owner/repo

ghost_gate.py · v1.1.0 · 65,911 bytes · SHA-256

239dbe1f5d030ba1d9b167d441feb2ed8b551396c0a597b8e3a37585615d5fdf

Check this download with its sibling: python3 ghost_verify.py --check ghost_gate.py 239dbe1f…