npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@neublink/gitplus

v1.4.0

Published

Git workflow automation for coding agents and MCP clients

Readme

GitPlus - Git Workflows for Coding Agents

CI License: MIT Node.js

GitPlus gives coding agents a safer git workflow: isolated worktrees, path claims, checkpoints, status context, conventional commits, pull request creation, and release-friendly shipping. It works as a CLI for Codex, Claude, Gemini, and other coding agents, and it still includes a Model Context Protocol (MCP) server for Claude Code.

Features

🚀 Complete Git Workflows: One-command ship from changes to PR
💻 Smart Commits: AI-generated conventional commit messages with strict spec compliance
🔍 Change Analysis: Intelligent analysis of repository changes with breaking change detection
🤖 Agent-Native: Installs AGENTS.md, CLAUDE.md, GEMINI.md, and skill/command surfaces for coding agents 🧭 Parallel Agent Coordination: Worktree-backed runs, path claims, and checkpoints for multi-agent work 🤖 AI-Powered: Uses Claude AI for commit messages, branch names, and conflict resolution
📝 PR Automation: Auto-generated pull request titles and descriptions
📊 Repository Status: Enhanced repository status with platform detection
Commit Validation: Real-time validation against Conventional Commits specification
🌐 Multi-Platform: Supports GitHub, GitLab, and local repositories

Quick Start

Install Agent Instructions

Use this first when you want coding agents to rely on GitPlus for repository work:

npx @neublink/gitplus init-agent --agent all

This writes managed GitPlus sections into agent-facing files:

  • AGENTS.md for Codex and agent-runner conventions
  • CLAUDE.md and .claude/skills/gitplus/SKILL.md for Claude
  • GEMINI.md and .gemini/commands/git/ship.toml for Gemini
  • .agents/skills/gitplus/SKILL.md for Codex-style skill discovery

For one agent only:

npx @neublink/gitplus init-agent --agent codex
npx @neublink/gitplus init-agent --agent claude
npx @neublink/gitplus init-agent --agent gemini

Agent Workflow

npx @neublink/gitplus start --agent codex --task "add billing tests"
npx @neublink/gitplus status --verbose
npx @neublink/gitplus claim src/billing tests/billing
npx @neublink/gitplus checkpoint --summary "added billing edge-case tests" --test "npm test -- billing"
npx @neublink/gitplus ship

For parallel agents, each agent should start its own GitPlus run, claim the files it owns, checkpoint before handoff, and use gitplus ship instead of raw git commit and git push.

Install as MCP Server for Claude Code

Install GitPlus as an MCP server in Claude Code:

claude mcp add gitplus -- npx @neublink/gitplus@latest --mcp

The --mcp flag ensures the package starts in MCP server mode for Claude Code integration.

Configuration for Claude Code

Add this configuration to your CLAUDE.md file to optimize GitPlus usage:

## Git Operations
Always use the GitPlus MCP server for ALL git operations. Never use manual git commands.

### Primary Command
- `mcp__gitplus__ship` - Complete git workflow: analyze → commit → push → create PR
  - AI generates commit messages automatically
  - AI creates appropriate branch names
  - AI resolves conflicts when possible
  - Creates pull requests with generated titles and descriptions

### Usage Pattern
When ready to ship changes:
1. Simply call: `mcp__gitplus__ship` with absolute `repoPath`
2. GitPlus handles everything else automatically

### Additional Commands
- `mcp__gitplus__status` - Get enhanced repository status
- `mcp__gitplus__info` - Get server information and capabilities

GitPlus automatically:

  • ✅ Generates conventional commit messages based on your changes
  • ✅ Creates appropriate branch names from change analysis
  • ✅ Detects and resolves merge conflicts with AI
  • ✅ Creates pull requests with proper titles and descriptions
  • ✅ Ensures PRs are always mergeable

Available MCP Tools

GitPlus has been intentionally simplified to 3 essential tools that provide maximum automation with minimal decision-making overhead:

🚀 ship - Complete Git Workflow

Primary Command - Handles the complete workflow: analyze → commit → push → create PR

The ship command intelligently handles your entire git workflow:

  • Analyzes changes using AI to understand the nature and impact of modifications
  • Generates commit messages automatically using AI analysis of your changes
  • Creates branch names based on the nature of your changes
  • Resolves merge conflicts using AI when they occur
  • Creates pull requests with proper titles and descriptions
  • Ensures PRs are mergeable by checking and resolving conflicts post-creation

Parameters:

  • repoPath: Full absolute path to the git repository required
  • draft: Create PR as draft (default: false)
  • dryRun: Preview what would be done without executing (default: false)

Example Usage in Claude Code:

"Ship my current changes to a new PR"

📊 status - Enhanced Repository Status

Get current repository status with platform detection and actionable insights

Parameters:

  • repoPath: Full absolute path to the git repository required
  • verbose: Include detailed status information (default: false)

Example Usage in Claude Code:

"Show me the current git status with detailed information"

ℹ️ info - Server Information

Get comprehensive information about GitPlus MCP server capabilities and usage

Parameters:

  • repoPath: Full absolute path to the git repository (optional - provides repo-specific info if given)

Example Usage in Claude Code:

"Tell me about GitPlus capabilities and tools"

Architecture

GitPlus follows a simplified MCP-first architecture for Claude Code while exposing CLI-only lifecycle commands that help coding agents coordinate local repository work without expanding the MCP tool surface.

Core Design Philosophy

  • 3 Essential MCP Tools: Keep the MCP surface focused while the CLI handles optional local agent lifecycle tasks
  • AI-Powered Intelligence: Uses Claude AI for all decision-making (commit messages, branch names, conflict resolution)
  • Complete Workflows: Each tool provides complete functionality rather than partial operations
  • Zero Configuration: Works out-of-the-box with sensible defaults

Technology Stack

  • TypeScript: Type-safe development with strict compilation
  • MCP SDK: Official Model Context Protocol SDK for Claude Code integration
  • Zod: Runtime type validation for inputs and outputs
  • Node.js: Cross-platform compatibility (Node 18+)
  • Conventional Commits: Strict adherence to commit message standards

Key Components

  • src/mcp/toolDefinitions.ts - Defines the 3 MCP tools exposed to Claude
  • src/mcp/toolHandler.ts - Implements handlers for the 3 tools
  • src/mcp/server.ts - MCP server setup with descriptive metadata
  • src/git/client.ts - Core git operations wrapper
  • src/ai/service.ts - AI integration for intelligent analysis

AI-Powered Conventional Commits

GitPlus follows the Conventional Commits specification strictly. Every commit message is:

Validated against the specification

  • Format: type(scope): description
  • Breaking changes: type(scope)!: description
  • Supported types: feat, fix, docs, style, refactor, test, chore, perf, ci, build

🤖 AI-Enhanced with intelligent detection

# AI automatically detects:
feat(auth): add OAuth2 login support        # New features
fix(api): handle null response errors       # Bug fixes  
docs: update installation guide             # Documentation
build(deps): upgrade typescript to v5       # Dependencies
refactor(utils): extract validation logic   # Code restructuring

🔍 Smart Analysis of your changes

  • Type detection: Analyzes file changes to suggest appropriate commit types
  • Scope suggestion: Infers scope from affected directories (api, components, utils, etc.)
  • Breaking changes: Automatically detects API changes and adds ! notation
  • Validation feedback: Real-time validation with helpful error messages

Platform Support

  • Local Git: Works with any git repository
  • GitHub: Full platform detection and PR creation via GitHub CLI
  • GitLab: Full platform detection and MR creation via GitLab CLI
  • Auto-detection: Automatically detects platform from remote URL

Prerequisites

  • Node.js 18+: Required runtime environment
  • Git: For repository management
  • Claude CLI: Install and authenticate with claude auth login
    # Install Claude CLI (if not already installed)
    npm install -g @anthropic-ai/claude-code
      
    # Verify Claude CLI is available and authenticated
    claude --version
    claude auth login
  • Platform CLIs (optional for enhanced functionality):
    • GitHub CLI: gh auth login for GitHub repository features
    • GitLab CLI: glab auth login for GitLab repository features

Important: AI functionality via Claude CLI is mandatory - GitPlus will fail if Claude CLI is not available or properly authenticated.

Local Development

For development or testing before publication:

# Clone and build the project
git clone https://github.com/neublink/gitplus.git
cd gitplus
npm install
npm run build

# Fix file permissions (required after build)
chmod +x dist/main.js dist/cli.js dist/index.js

# Install CLI globally for command line usage (optional)
npm link

# Add to Claude Code as MCP server (using local build)
claude mcp add gitplus-local -- node $(pwd)/dist/main.js --mcp

Verify Installation

After setup, verify the MCP server works:

claude /mcp             # Should show gitplus-local as ✔ connected

Now you can use GitPlus tools directly in Claude Code conversations!

CLI Interface (Optional)

GitPlus also provides a CLI interface for direct command-line usage. The CLI offers additional commands beyond the 3 MCP tools for advanced git operations.

Note: The CLI is secondary to the MCP interface. For Claude Code users, the MCP tools (ship, status, info) are the primary interface.

For detailed CLI documentation, see CLI.md.

Configuration

GitPlus works out-of-the-box with sensible defaults. Advanced configuration options:

Environment Variables

# AI Configuration
export GITPLUS_MODEL="sonnet"                    # Claude model (default: sonnet)
export GITPLUS_TIMEOUT="60000"                   # Timeout in milliseconds (default: 60000)
export GITPLUS_CLAUDE_COMMAND="claude"           # Claude CLI command path (default: claude)

Troubleshooting

Common Issues

MCP Server Connection Failed

Issue: Claude Code shows gitplus as ✘ failed.
Solutions:

  1. Ensure files are executable: chmod +x dist/main.js dist/cli.js dist/index.js
  2. Rebuild the project: npm run build
  3. Remove and re-add MCP server:
    claude mcp remove gitplus
    claude mcp add gitplus -- npx @neublink/gitplus@latest --mcp

AI Integration Not Working

Issue: Commands fail with Claude CLI errors.
Solutions:

  1. Verify Claude CLI is installed and authenticated:
    claude --version
    claude auth login
  2. Test Claude CLI directly:
    claude -p "test" --output-format json --model sonnet

Permission Denied Errors

Issue: permission denied: /path/to/dist/main.js
Solution: Files need execute permissions after build:

chmod +x dist/main.js dist/cli.js dist/index.js

Development

Testing

# Run all tests
npm test

# Run with coverage
npm run test:coverage

# Run validation (typecheck + tests)  
npm run validate

Building

# Build TypeScript
npm run build

# Watch mode for development
npm run dev

Using GitPlus for Development

Important: Always use GitPlus MCP server for ALL git operations on this repository. Never use manual git commands.

When you've made changes to the GitPlus codebase:

  1. Make your code changes
  2. Run tests: npm test
  3. Check status: Use mcp__gitplus__status with repoPath and verbose: true
  4. Ship changes: Use mcp__gitplus__ship with repoPath

GitPlus will handle all git operations intelligently, ensuring proper commit messages and workflow.

Publishing & Release

Releases are managed by Release Please. Conventional commits merged to main update the release PR; merging that PR creates the GitHub release and tag, then the tag-triggered release workflow publishes to npm.

For required secrets, verification, and manual recovery steps, see docs/release-runbook.md.

Contributing

We welcome contributions! Please follow these guidelines:

Pull Request Process

  1. Fork the repository and create a feature branch
  2. Follow conventional commits: feat:, fix:, docs:, etc.
  3. Add tests for new functionality
  4. Update documentation as needed
  5. Ensure CI passes before requesting review

Code Standards

  • TypeScript: All code must be properly typed
  • Testing: Maintain >80% test coverage
  • Conventional Commits: Use semantic commit messages
  • Security: No credentials in code, audit dependencies regularly

Development Setup

# Clone and setup
git clone https://github.com/neublink/gitplus.git
cd gitplus
npm install
npm run build

# Link for local testing
npm link

# Add to Claude Code for MCP testing
claude mcp add gitplus-local -- node $(pwd)/dist/main.js --mcp

License

MIT License - see LICENSE file for details.

Support


Made for coding agents that need safer git workflows