Inspiration

Git is already a time machine, yet figuring out when a bug, a config change, or a leaked key entered a repository still means scrolling through long walls of git log output.

Even worse is the Ghost Secret problem: someone commits an API key in commit #03, catches the mistake right away, and deletes it in commit #04. Today's HEAD looks completely clean, and tools that only scan the current working tree report zero issues. Meanwhile, that key stays readable in Git history.

For the Resurrection category, I wanted to bring back the tactile feel of a 1986 4-head broadcast VHS deck (NV-G1986) paired with a curved-glass Trinitron CRT monitor (PVM-1986G), and use that hardware metaphor as a practical Git forensics workbench:

  • 1 VHS cassette = 1 GitHub or local Git repository
  • 1 magnetic frame = 1 chronological commit
  • 4 synchronized magnetic tracks = Code Diff, File Churn, Infra/Config, and Anomalies & Ghost Secrets

What it does

GitVHS runs entirely in the browser with no backend server and no mandatory API keys. It also includes a local CLI and MCP server for Kiro IDE and Kiro Crew.

  • Live GitHub Slot-In Loader: Paste any public GitHub repo (owner/repo or full URL, like vitejs/vite or honojs/hono) into the top GITHUB SLOT. GitVHS fetches recent commits and patches from the GitHub REST API and loads them as a 4-track .gitvhs.json cassette. You can optionally enter a GitHub token in memory to raise the unauthenticated API rate limit, and export or re-import cassettes locally.
  • Built-In Reference Cassettes:
    • LAB-01 · stripe-ghost-secret (clearly labeled as a simulated incident lab tape) reproduces a Stripe key committed on Frame #03 and deleted on Frame #04, plus a second anomaly on Frame #06 where a hotfix drops test coverage.
    • GH-02 · sindresorhus/ky and GH-03 · expressjs/express are pre-recorded from real public GitHub commits with direct links back to the original commits on GitHub.
  • 1986 Broadcast Hardware Workbench (single-viewport 100dvh):
    • Left (TRINITRON PVM-1986G): Tally lamp (CLEAN / ANOMALY / SECRET), curved-glass CRT display with scanlines, real-time HTML5 <canvas> VHS RF static snow when scrubbing, phosphor switch (RGB, P1 GRN, P3 AMB), RF TRACKING slider, touched file list, and unified diff view highlighting suspect lines.
    • Right (NV-G1986 4-Head VCR): Smoked acrylic tape window with 6-spoke reels where the brown magnetic tape pack physically transfers from the supply spool to the take-up spool as you move toward HEAD, VFD meters for churn and risk, 6 tactile transport keys including the red SUSPECT key (which cycles through every critical anomaly on the tape), a rotary aluminum Jog/Shuttle dial, WebAudio mechanical clicks, and a 4-tab forensic bay (4-Track Autopsy, Git Bisect / Purge CLI, PR Audit Markdown, and Kiro IDE & MCP).
  • Deterministic 4-Track Scanner:
    1. TRK 1 · CODE DIFF: File additions, deletions, touched file tree, and unified diffs.
    2. TRK 2 · HOT CHURN: Spots files rewritten repeatedly across commits.
    3. TRK 3 · INFRA / CFG: Flags changes in package.json, .env*, Dockerfiles, SQL migrations, and CI workflows.
    4. TRK 4 · ANOMALIES: Catches leaked credentials (including ghost secrets deleted in later commits), deleted tests, unsafe SQL/eval/CORS patterns, and oversized commits.
  • Actionable Git Remediation: Generates ready-to-run git show, git filter-repo, git bisect, and git revert commands along with a copyable Markdown security advisory for pull requests.

How I built it

I organized GitVHS as a TypeScript npm workspace monorepo (packages/core, packages/mcp, apps/web) so the exact same analysis engine powers both the web app and the local Kiro CLI/MCP server:

  • @git-vhs/core: Pure isomorphic TypeScript engine with no Node-only dependencies in browser paths. It parses commit frames, tracks ghost secrets across chronological commits, calculates churn hotspots, scores per-frame risk, and generates Git remediation commands. Covered by Vitest unit tests.
  • @git-vhs/web: React 18, TypeScript, and Vite frontend with custom CSS hardware styling for the Trinitron bezel, walnut VCR side panels, VFD display, and tape window, plus an HTML5 <canvas> RF static generator and a WebAudio synthesizer for deck clicks and rewind sound.
  • @git-vhs/mcp: Node.js stdio Model Context Protocol (MCP) server and CLI (packages/mcp/dist/cli.js) that records any local Git repo directly from git log with zero network calls or API rate limits, inspects .gitvhs.json tapes, and returns structured results to Kiro agents.

I kept the scanner deterministic on purpose: everything runs locally on commit diffs with clear pattern rules instead of hiding behind opaque LLM calls or requiring paid API keys.

How I used Kiro (Specs, Steering, Hooks, MCP & Kiro Crew Power)

The entire .kiro/ folder is committed at the root of the repository and drives both development and local repository audits:

  • Specs (.kiro/specs/git-vhs-deck/): I wrote EARS requirements (requirements.md), the 4-track architecture and cassette schema (design.md), and the implementation task breakdown (tasks.md) before coding the deck.
  • Steering (.kiro/steering/): Uses official YAML frontmatter with inclusion: always on product.md, tech.md, and structure.md (to keep @git-vhs/core isomorphic and maintain the single-viewport hardware layout) and inclusion: fileMatch on gitvhs-tape-spec.md for *.gitvhs.json files.
  • Agent Hooks (.kiro/hooks/):
    • core-tests-on-save.json runs the Vitest test suite whenever core engine files are edited.
    • gitvhs-tape-autopsy-guard.json runs on saved *.gitvhs.json tapes and executes the local CLI inspector to catch ghost secrets or critical anomalies automatically.
  • MCP Server & Kiro Crew Power (.kiro/settings/mcp.json and powers/git-vhs/POWER.md): Exposes 5 tools (record_local_git_repo, inspect_gitvhs_tape, scrub_commit_range, generate_remediation_plan, list_preset_tapes) so Kiro IDE and Kiro Crew agents can record a local repo, jump to the suspect commit, and produce a git bisect or git filter-repo plan offline.

Challenges I ran into

  • Fitting a full dual-unit 1986 rack into a single viewport (100dvh): Early layouts pushed the autopsy drawer and jog/shuttle controls off-screen on 1366x768 laptops. Moving the 3 cassette spines into the top 1U rack and tightening the grid geometry kept the CRT, VCR tape window, transport keys, and 4-track bay visible together without outer page scrolling.
  • Handling GitHub's anonymous rate limit honestly: GitHub's unauthenticated REST API allows 60 requests per hour per IP. Pre-recording two real public repositories (sindresorhus/ky and expressjs/express) with real GitHub commit links, clearly marking LAB-01 as a simulated lab tape, and adding an optional in-memory token drawer made the demo reliable while still letting anyone load live public repos.
  • Keeping @git-vhs/core isomorphic: Running the exact same code in Vite's browser bundle, Vitest, and the Node.js MCP server meant keeping all child_process (git log) and filesystem logic strictly inside @git-vhs/mcp.

Accomplishments that I'm proud of

  • Making Git history forensics visual and immediate: watching the tape pack shift between the reels while pressing SUSPECT snaps the CRT straight to a deleted ghost secret makes the problem clear in a few seconds.
  • Shipping a zero-backend, zero-mandatory-API-key app that works live on public GitHub repos in the browser and offline on local Git repos through Kiro MCP.
  • Building a real Kiro setup (Specs, YAML Steering, Hooks, MCP server, and Kiro Crew Power) that runs the project's own engine.

What I learned

  • Designing around a physical hardware layout forces strict discipline on screen space: every LED, meter, and switch has to justify its place.
  • Pairing deterministic history analysis with an MCP server works well for coding agents like Kiro Crew, because the agent receives exact commit indices, file paths, and reproducible Git commands rather than guessing.

What's next for GitVHS (NV-G1986)

  • Add side-by-side branch comparison ("Dual-Deck Dubbing" mode) to inspect two branches or PR heads across all 4 tracks.
  • Add GitHub Actions SARIF export alongside the existing Markdown PR audit report.
  • Extend the local MCP recorder to inspect commit signatures and binary blob size spikes directly from git rev-list.

Built With

Share this project:

Updates

Submission history