1. Conduid
  2. Developer Tools
  3. Agit
MCP server · Developer Tools

Agit

AI-native Git workflow tool with MCP server for agent-driven development

Unclaimed MIT last commit 7 months ago agent-safetyai-agentsdeveloper-toolsmcppostgresrollback
59Fair

Scored 14 days ago · breakdown

About Agit

Agit is an MCP server published by Fato07 in the Developer Tools category: aI-native Git workflow tool with MCP server for agent-driven development.

The repository has 1 stars and 0 forks, with the last commit 7 months ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

From source
git clone https://github.com/Fato07/agit

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Tools (20)

agit_add_repoRegister a Git repository via MCP

Parameters not published.

agit_check_conflictsScan for file conflicts across active worktrees

Parameters not published.

agit_claim_taskAtomically claim a pending task for an agent

Parameters not published.

agit_cleanup_worktreesPrune orphaned worktrees

Parameters not published.

agit_complete_taskMark a task as completed with optional result

Parameters not published.

agit_create_taskCreate a new task for a repository

Parameters not published.

agit_fail_taskMark a task as failed with optional reason

Parameters not published.

agit_get_taskGet detailed information about a specific task

Parameters not published.

agit_heartbeatUpdate agent heartbeat timestamp

Parameters not published.

agit_list_agentsList all registered AI agents

Parameters not published.

Show all 20 tools
agit_list_reposList all registered repositories

Parameters not published.

agit_list_tasksList tasks for a repository

Parameters not published.

agit_list_worktreesList worktrees for a repository

Parameters not published.

agit_merge_worktreeMerge a worktree branch into the default branch

Parameters not published.

agit_next_taskAtomically claim the highest-priority pending task

Parameters not published.

agit_register_agentRegister a new AI agent

Parameters not published.

agit_remove_worktreeRemove a worktree from disk and registry

Parameters not published.

agit_repo_statusGet detailed status for a specific repository

Parameters not published.

agit_spawn_worktreeCreate an isolated worktree for an agent

Parameters not published.

agit_start_taskMark a claimed task as in-progress with a worktree

Parameters not published.

Ask AI

✦

Ask AI about Agit

Powered by Claude · Grounded in docs

I know everything about Agit. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository 1 hours ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

v0.4.0v0.4.0 · 22 Feb 2026Changelog aeff50a6dfc042e3e35b820cd1e862b8200d1671 Merge branch '004-v04-release-hardening' — v0.4.0 release 4e5371fbdc154273b5aabcee421783be7ca09428 feat: add test coverage, config command, MCP enrichment, and README update…
v0.3.0v0.3.0 · 21 Feb 2026Changelog 44e1b8e7fad8df6fc4b1314e38894f718096df3b feat: add auto-update checking and enhance UI with Unicode symbols
v0.2.0v0.2.0 · 21 Feb 2026Changelog 702feb8a6964f9112a4a4225147100d4d330194c feat: add Claude Code GitHub Action for automated bug fixing b8ab99db2971b2e1fb95197ec196a3366bb75b2c feat: comprehensive CLI UX overhaul with ui package, shell completions, JSON output,…
v0.1.1v0.1.1 · 20 Feb 2026Changelog aaa430e0cd20d9a0889a71068abc391d700208f3 fix: address 6 issues from OpenClaw test report and GitHub issues 1849d4b87003723b2cde6246a852c644c8ec73ea fix: update README badges to reference correct GitHub repo owner
v0.1.0v0.1.0 · 20 Feb 2026Changelog ec0c5fb06dea1843972c8000997bff8dbfe9c4d9 Merge branch '002-packaging-oss-openclaw' into main 177cc9240f2b22104efdeaf9547835c98bc5137a Merge branch '003-auto-issue-link' into main ea978107dea37480b9bbffe183157d0c95badac6 feat: add…

README

agit

CI Release Go Report Card Go Version

Infrastructure-aware Git orchestration for AI agents.

agit gives AI coding agents persistent, queryable awareness of their Git infrastructure. It manages a local registry of repositories, orchestrates Git worktrees for agent isolation, detects cross-worktree conflicts, and coordinates task assignment across multiple agents.

The Problem

AI coding agents (Claude Code, Cursor, Codex, OpenClaw) operate without persistent memory of their infrastructure. Each session starts blind — no knowledge of available repos, active work, or what other agents are doing. When multiple agents work on the same repo, conflicts are discovered only at merge time.

The Solution

agit provides:

  • Persistent registry — agents always know what repos are available via MCP
  • Worktree isolation — each agent gets its own workspace, no stepping on toes
  • Conflict detection — know about overlapping changes before merge time
  • Task coordination — agents claim work atomically, preventing duplication
  • Hook system — trigger custom scripts on worktree, task, and conflict events

Quick Start

# Install (binary)
curl -sSfL https://raw.githubusercontent.com/Fato07/agit/main/install.sh | sh

# Or install from source
go install github.com/fathindos/agit@latest

# Initialize
agit init

# Register your repos
agit add ~/projects/my-app --name my-app
agit add ~/projects/api --name api

# Spawn isolated worktrees for agents
agit spawn my-app --task "refactor auth" --agent claude-1
agit spawn my-app --task "add tests" --agent cursor-1

# Check for conflicts
agit conflicts my-app

# See everything at a glance
agit status

# Merge completed work back
agit merge <worktree-id> --cleanup

Demo

agit demo

MCP Integration

Add agit to your agent's MCP config for automatic infrastructure awareness:

{
  "mcpServers": {
    "agit": {
      "command": "agit",
      "args": ["serve"]
    }
  }
}

Now any MCP-compatible agent can call agit_list_repos() on startup and immediately know what's available.

Commands

Command Description
agit init Initialize agit (~/.agit/)
agit add <path> Register a Git repository
agit repos List registered repositories
agit spawn <repo> Create isolated worktree for an agent
agit status [repo] Show worktrees, agents, conflicts
agit conflicts [repo] Check for overlapping file changes
agit tasks <repo> Manage tasks (create/claim/complete/next)
agit agents List and manage registered AI agents
agit merge <id> Merge worktree back to base branch
agit cleanup Remove completed/stale worktrees
agit serve Start MCP server (stdio or SSE)
agit update / agit upgrade Self-update to the latest release
agit config show Display current configuration
agit config set <key> <value> Set a configuration value
agit config path Print configuration file path
agit config reset Reset configuration to defaults

Global Flags

Flag Description
--no-color Disable colored output
-q, --quiet Suppress informational messages
-o, --output <format> Output format: text (default) or json
-i, --interactive Enable interactive selection mode

Configuration

agit stores its configuration in ~/.agit/config.toml. Use agit config subcommands or edit the file directly.

[server]
transport = "stdio"       # "stdio" or "sse"
port = 3847               # Port for SSE transport

[defaults]
branch_prefix = "agit/"           # Prefix for auto-generated branch names
worktree_dir = ".worktrees"       # Directory for worktrees within repos
cleanup_stale_after = "24h"       # Duration before stale worktrees are cleaned
auto_conflict_check = true        # Check for conflicts automatically

[agent]
heartbeat_interval = "30s"        # Agent heartbeat frequency
stale_after = "5m"                # Duration before agents are marked disconnected

[ui]
color = ""                # "auto", "always", or "never" (empty = auto)
output_format = ""        # "text" or "json" (empty = text)
compact = false           # Compact output mode

[updates]
enabled = true            # Enable automatic update checking
check_interval = "24h"   # How often to check for updates

hook_timeout = "30s"      # Maximum execution time for hooks

[hooks]
# Run shell commands on events (async, non-blocking)
# "worktree.created" = "notify-send 'New worktree created'"
# "task.claimed" = "echo $AGIT_TASK_ID >> /tmp/claimed.log"
# "task.completed" = "./scripts/on-task-done.sh"
# "task.failed" = "curl -X POST https://hooks.example.com/fail"
# "worktree.removed" = "echo cleaned"
# "conflict.detected" = "slack-notify 'Conflict found'"

Supported hook events: worktree.created, worktree.removed, task.claimed, task.completed, task.failed, conflict.detected

Hooks receive environment variables: AGIT_EVENT, plus event-specific variables like AGIT_WORKTREE_ID, AGIT_TASK_ID, AGIT_REPO.

All dot-notation keys for agit config set:

server.transport, server.port, defaults.branch_prefix, defaults.worktree_dir, defaults.cleanup_stale_after, defaults.auto_conflict_check, agent.heartbeat_interval, agent.stale_after, ui.color, ui.output_format, ui.compact, updates.enabled, updates.check_interval, hook_timeout, hooks.<event>

MCP Tools Reference

When running as an MCP server (agit serve), the following tools are available to agents:

Tool Description
agit_list_repos List all registered repositories
agit_repo_status Get detailed status for a specific repository
agit_spawn_worktree Create an isolated worktree for an agent
agit_remove_worktree Remove a worktree from disk and registry
agit_check_conflicts Scan for file conflicts across active worktrees
agit_list_tasks List tasks for a repository
agit_claim_task Atomically claim a pending task for an agent
agit_complete_task Mark a task as completed with optional result
agit_merge_worktree Merge a worktree branch into the default branch
agit_register_agent Register a new AI agent
agit_heartbeat Update agent heartbeat timestamp
agit_create_task Create a new task for a repository
agit_fail_task Mark a task as failed with optional reason
agit_start_task Mark a claimed task as in-progress with a worktree
agit_list_agents List all registered AI agents
agit_list_worktrees List worktrees for a repository
agit_get_task Get detailed information about a specific task
agit_add_repo Register a Git repository via MCP
agit_cleanup_worktrees Prune orphaned worktrees
agit_next_task Atomically claim the highest-priority pending task

License

MIT

README fetched from the repository 1 hours ago. The original is authoritative.

Questions

About Agit

How do I install Agit?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Agit safe to use with an AI agent?

Its trust score is 59 out of 100 (fair). It passes 5 of the 6 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Agit still maintained?

The last commit was 7 months ago. That's long enough that you should check whether the maintainer is responding to issues before depending on it.