Skip to content

Releases: 0xinit/gitBahn

v0.3.0 - No Installation Required

25 Jan 16:23

Choose a tag to compare

What's New

Zero installation - gitBahn now works as a pure Claude Code plugin. No binary, no cargo install, no setup.

Install in 2 commands:

/plugin marketplace add https://github.com/0xinit/gitBahn
/plugin install gitbahn

Changes

  • Removed MCP server requirement - Plugin now uses git commands directly
  • Simplified installation - No binary to build or install
  • Updated all commands - /gitbahn:commit, /gitbahn:realistic, /gitbahn:atomic, /gitbahn:granular

Available Commands

Command Description
/gitbahn:commit Smart commit with AI-generated message
/gitbahn:realistic Split by language constructs (imports → classes → functions)
/gitbahn:atomic One file per commit
/gitbahn:granular Split by diff hunks

Note

The MCP server (gitbahn-mcp) is still available for advanced users who want direct tool access, but it's no longer required for the plugin to work.

v0.2.0 - Claude Code Plugin (No API Key Needed)

18 Jan 18:44

Choose a tag to compare

gitBahn v0.2.0

Major refactor: The MCP server is now a thin git operations layer. Claude Code handles all AI work directly - no Anthropic API key needed when using as a plugin.

Quick Start

claude plugin add https://github.com/0xinit/gitBahn

Then just talk to Claude Code:

"Commit my changes"
"Create realistic commits spread over 4 hours"
"Create 10 commits starting yesterday at 9am"

What's New

No API Key Required for Claude Code Users

When using gitBahn as a Claude Code plugin, you no longer need to configure an Anthropic API key. Claude Code analyzes diffs and generates commit messages directly.

Smart Split Suggestion Tools

Three new tools that return file groupings for you to create commits from:

Tool Description
suggest_realistic_split Language-aware splitting (imports → classes → functions) with dependency ordering
suggest_atomic_split One file per commit, ordered by type
suggest_granular_split Split by diff hunks for fine-grained control

Supported languages: Python, Rust, JavaScript/TypeScript, Go, Ruby

Git Operations

  • get_status, get_diff, list_changes
  • stage_all, stage_files, unstage_all
  • create_commit (with optional timestamp for backdating)
  • get_log, get_branch, push, undo

Breaking Changes

Removed MCP tools that depended on external API calls:

  • realistic_commit → Use suggest_realistic_split + create_commit
  • atomic_commit → Use suggest_atomic_split + create_commit
  • granular_commit → Use suggest_granular_split + create_commit
  • simple_commit → Use get_diff + create_commit

Installation Options

Claude Code Plugin (Recommended)

claude plugin add https://github.com/0xinit/gitBahn

Manual MCP Server

cd gitbahn-mcp
cargo install --path .

Add to .mcp.json:

{
  "mcpServers": {
    "gitbahn": {
      "command": "gitbahn-mcp"
    }
  }
}

Standalone CLI (requires API key)

cargo install --path .
export ANTHROPIC_API_KEY=your_key

Full Changelog

v0.1.0...v0.2.0

v0.1.0 - Initial Release

17 Jan 19:36

Choose a tag to compare

gitBahn v0.1.0

AI-powered git commit tools for realistic development history. Transform AI-generated code into natural-looking commit history with intelligent splitting, timestamp spreading, and conventional commit messages.

✨ Features

Core Commands

  • bahn commit - AI-generated commit messages with conventional commit format
  • bahn auto - Watch mode for automatic commits on file changes
  • bahn push - Push with optional GitHub PR creation
  • bahn undo - Safely undo recent commits (soft/hard reset)

Realistic Mode

  • --realistic - Language-aware commit splitting for natural development flow
  • --spread - Distribute commits across time periods (e.g., --spread "4h")
  • --start - Backdate commits from a specific timestamp
  • Smart chunking based on file types and logical groupings

AI Capabilities

  • Intelligent commit message generation using Claude API
  • Custom commit message templates with placeholders ({type}, {scope}, {description}, {body}, {issue})
  • Code review and documentation generation
  • Personality/tone customization

Security & Integrations

  • Secret detection - Warns about API keys, tokens, and credentials in staged changes
  • GPG signing - Sign commits with your GPG key
  • Branch awareness - Prevents commits to protected branches
  • MCP Server - Model Context Protocol integration for Claude Code

Plugin Distribution

  • Claude Code plugin with marketplace configuration
  • MCP server for tool integration

📦 Installation

cargo install --path .

🚀 Quick Start

# Stage changes and commit with AI message
git add .
bahn commit

# Realistic mode with timestamp spreading
bahn commit --realistic --spread "4h" --start "2024-01-10 09:00"

# Watch mode for automatic commits
bahn auto --watch

📄 License

MIT