Close Menu

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    Weighing up the enterprise risks of neocloud providers

    Buckle Up for Bumpier Skies

    Daily Driving GrapheneOS

    Facebook X (Twitter) Instagram
    • Artificial Intelligence
    • Business Technology
    • Cryptocurrency
    • Gadgets
    • Gaming
    • Health
    • Software and Apps
    • Technology
    Facebook X (Twitter) Instagram Pinterest Vimeo
    Tech AI Verse
    • Home
    • Artificial Intelligence

      What the polls say about how Americans are using AI

      February 27, 2026

      Tensions between the Pentagon and AI giant Anthropic reach a boiling point

      February 21, 2026

      Read the extended transcript: President Donald Trump interviewed by ‘NBC Nightly News’ anchor Tom Llamas

      February 6, 2026

      Stocks and bitcoin sink as investors dump software company shares

      February 4, 2026

      AI, crypto and Trump super PACs stash millions to spend on the midterms

      February 2, 2026
    • Business

      Weighing up the enterprise risks of neocloud providers

      March 3, 2026

      A stolen Gemini API key turned a $180 bill into $82,000 in two days

      March 3, 2026

      These ultra-budget laptops “include” 1.2TB storage, but most of it is OneDrive trial space

      March 1, 2026

      FCC approves the merger of cable giants Cox and Charter

      February 28, 2026

      Finding value with AI and Industry 5.0 transformation

      February 28, 2026
    • Crypto

      Strait of Hormuz Shutdown Shakes Asian Energy Markets

      March 3, 2026

      Wall Street’s Inflation Alarm From Iran — What It Means for Crypto

      March 3, 2026

      Ethereum Price Prediction: What To Expect From ETH In March 2026

      March 3, 2026

      Was Bitcoin Hijacked? How Institutional Interests Shaped Its Narrative Since 2015

      March 3, 2026

      XRP Whales Now Hold 83.7% of All Supply – What’s Next For Price?

      March 3, 2026
    • Technology

      Buckle Up for Bumpier Skies

      March 3, 2026

      Daily Driving GrapheneOS

      March 3, 2026

      OpenAI will amend Defense Department deal to prevent mass surveillance in the US

      March 3, 2026

      Intent-Based Commits

      March 3, 2026

      Elevated Errors in Claude.ai

      March 3, 2026
    • Others
      • Gadgets
      • Gaming
      • Health
      • Software and Apps
    Check BMI
    Tech AI Verse
    You are at:Home»Technology»Intent-Based Commits
    Technology

    Intent-Based Commits

    TechAiVerseBy TechAiVerseMarch 3, 2026No Comments4 Mins Read2 Views
    Facebook Twitter Pinterest Telegram LinkedIn Tumblr Email Reddit
    Intent-Based Commits
    Share
    Facebook Twitter LinkedIn Pinterest WhatsApp Email

    Intent-Based Commits

    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?

    Code is the artifact, intent is the source of truth.

    When you read a traditional git log, you see what changed. With ghost, you see prompts — the human decision that triggered the change. A year from now when LLMs are more amazing you can replay the git log and generate a better version.

    Every commit is reproducible. The prompt is preserved with some extra attributes about which model and agent was used. You can re-run any commit against a fresh checkout to see what Claude generates from the same instruction.

    The log becomes a design document. Read ghost log top-to-bottom and you’ll see the intent behind every architectural decision, not just the code that resulted from it.

    Diffs show what the AI decided; messages show what you asked for. The two together give you full context: the goal and the implementation, inseparably linked.

    How It Works

    you: ghost commit -m "add user auth with JWT"
         ↓
    agent generates code → files written to working tree
         ↓
    ghost detects changes → stages new/modified files
         ↓
    git commit with enriched message (prompt + agent + model + session + file list)
    

    Quick Start

    /path/to/ghost/bin:$PATH" cd your-project ghost init ghost commit -m "create a REST API endpoint for user registration"

    Commands

    Command Description
    ghost init Init git repo (if needed), install hook, create .ghost/ dir
    ghost commit -m "prompt" Generate code from prompt, stage changed files, commit
    ghost commit --agent gemini -m "prompt" Use a specific agent (claude, gemini, codex, opencode)
    ghost commit --dry-run -m "prompt" Generate code, show what changed, don’t commit
    ghost log Pretty-print ghost commit history (prompt, agent, model, session, files)
    GHOST_SKIP=1 ghost commit -m "..." Pass-through to plain git commit

    Examples

    # New feature (default agent: claude)
    ghost commit -m "add a login page with email/password form and client-side validation"
    
    # Use Gemini
    ghost commit --agent gemini -m "refactor the database layer to use connection pooling"
    
    # Use Codex
    ghost commit --agent codex -m "fix the race condition in the payment processing queue"
    
    # Use OpenCode
    ghost commit --agent opencode -m "add OpenAPI documentation for all endpoints"
    
    # With a specific model
    ghost commit --agent claude --model claude-opus-4-6 -m "architect a microservices migration plan as code comments"
    
    # Preview without committing
    ghost commit --dry-run -m "add OpenAPI documentation for all endpoints"
    
    # Set default agent via env
    GHOST_AGENT=gemini ghost commit -m "scaffold a new service"
    
    # Manual commit (bypass ghost entirely)
    GHOST_SKIP=1 ghost commit -m "bump version to 1.2.0"

    Commit Message Format

    Every ghost commit has an enriched message body:

    add a login page
    
    ghost-meta
    ghost-prompt: add a login page
    ghost-agent: claude
    ghost-model: claude-sonnet-4-6
    ghost-session: 7f3a2b1c-4d5e-6f7a-8b9c-0d1e2f3a4b5c
    ghost-files: src/pages/login.tsx,src/hooks/useAuth.ts,src/api/auth.ts
    

    Field Description
    ghost-meta Marker that identifies this as a ghost commit
    ghost-prompt The exact prompt passed to the agent
    ghost-agent The agent that generated the code (claude, gemini, codex, opencode)
    ghost-model The model used by the agent
    ghost-session UUID for this generation session
    ghost-files Comma-separated list of files created or modified

    Configuration

    Variable Description
    GHOST_SKIP=1 Pass-through to plain git commit, no agent invocation
    GHOST_AGENT= Default agent (overridden by --agent)
    GHOST_MODEL= Default model (overridden by --model)


    Flag Description
    --agent AGENT Agent for this commit (claude, gemini, codex, opencode)
    --model MODEL Model override for the agent
    --dry-run Generate code but do not stage or commit

    Requirements

    • git 2.x+
    • bash 4+
    • uuidgen (available on macOS and most Linux distros)
    • Agent CLI installed and configured for whichever agent(s) you use:
      • claude: claude CLI
      • gemini: gemini CLI
      • codex: codex CLI
      • opencode: opencode CLI

    Running Tests

    The integration test spins up a temp git repo, runs a full ghost workflow including generating and compiling a C program, and verifies all metadata fields.

    Share. Facebook Twitter Pinterest LinkedIn Reddit WhatsApp Telegram Email
    Previous ArticleElevated Errors in Claude.ai
    Next Article OpenAI will amend Defense Department deal to prevent mass surveillance in the US
    TechAiVerse
    • Website

    Jonathan is a tech enthusiast and the mind behind Tech AI Verse. With a passion for artificial intelligence, consumer tech, and emerging innovations, he deliver clear, insightful content to keep readers informed. From cutting-edge gadgets to AI advancements and cryptocurrency trends, Jonathan breaks down complex topics to make technology accessible to all.

    Related Posts

    Buckle Up for Bumpier Skies

    March 3, 2026

    Daily Driving GrapheneOS

    March 3, 2026

    OpenAI will amend Defense Department deal to prevent mass surveillance in the US

    March 3, 2026
    Leave A Reply Cancel Reply

    Top Posts

    Ping, You’ve Got Whale: AI detection system alerts ships of whales in their path

    April 22, 2025702 Views

    Lumo vs. Duck AI: Which AI is Better for Your Privacy?

    July 31, 2025285 Views

    6.7 Cummins Lifter Failure: What Years Are Affected (And Possible Fixes)

    April 14, 2025164 Views

    6 Best MagSafe Phone Grips (2025), Tested and Reviewed

    April 6, 2025124 Views
    Don't Miss
    Business Technology March 3, 2026

    Weighing up the enterprise risks of neocloud providers

    Weighing up the enterprise risks of neocloud providers By Fleur Doidge Published: 02 Mar 2026…

    Buckle Up for Bumpier Skies

    Daily Driving GrapheneOS

    OpenAI will amend Defense Department deal to prevent mass surveillance in the US

    Stay In Touch
    • Facebook
    • Twitter
    • Pinterest
    • Instagram
    • YouTube
    • Vimeo

    Subscribe to Updates

    Get the latest creative news from SmartMag about art & design.

    About Us
    About Us

    Welcome to Tech AI Verse, your go-to destination for everything technology! We bring you the latest news, trends, and insights from the ever-evolving world of tech. Our coverage spans across global technology industry updates, artificial intelligence advancements, machine learning ethics, and automation innovations. Stay connected with us as we explore the limitless possibilities of technology!

    Facebook X (Twitter) Pinterest YouTube WhatsApp
    Our Picks

    Weighing up the enterprise risks of neocloud providers

    March 3, 20262 Views

    Buckle Up for Bumpier Skies

    March 3, 20262 Views

    Daily Driving GrapheneOS

    March 3, 20262 Views
    Most Popular

    7 Best Kids Bikes (2025): Mountain, Balance, Pedal, Coaster

    March 13, 20250 Views

    VTOMAN FlashSpeed 1500: Plenty Of Power For All Your Gear

    March 13, 20250 Views

    Best TV Antenna of 2025

    March 13, 20250 Views
    © 2026 TechAiVerse. Designed by Divya Tech.
    • Home
    • About Us
    • Contact Us
    • Privacy Policy
    • Terms & Conditions

    Type above and press Enter to search. Press Esc to cancel.