Ghost
Commit intentions, not code.
Ghost is a CLI that flips the git workflow: instead of committing code, you commit prompts. An AI coding agent generates the artifacts; the commit captures both the intent and the output. Your git history becomes a chain of prompts + their results.
Supports claude, gemini, codex, and opencode — swap agents per-commit or set a default.
The Idea
Code is ephemeral. Intent is permanent.
Every ghost commit answers: what did I want to happen here? Not what bytes changed. Each commit is reproducible from its prompt — if the code breaks, you have the exact instruction that generated it. The git log reads like a design document, not a diff summary.
git log --oneline a3f2c1b add JWT authentication middleware 7e91d4a create user registration endpoint with email validation 2bc0f88 scaffold Express app with TypeScript and Prettier
Each of those is a ghost commit. Behind each message is an AI that turned words into working code, and a session ID that ties the output back to the generation.
Why Intent-Based Commits?
... continue reading