From 1f6fa77ded0830f853750a9f97416402c521fb78 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Tue, 3 Feb 2026 08:59:28 +0000 Subject: [PATCH] chore: add project configuration files --- README.md | 327 +++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 312 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index daf6d7f..1ae354c 100644 --- a/README.md +++ b/README.md @@ -1,32 +1,329 @@ # Git Agent Sync -A CLI tool that manages isolated git worktrees for AI coding agents. +A CLI tool that manages isolated git worktrees for AI coding agents, enabling parallel development without conflicts. -## Features +## Overview -- Create isolated worktrees per AI agent -- Auto-configure environment variables -- Track changes with agent attribution -- Generate unified diffs for code review -- Safely merge changes back to main branch +Git Agent Sync solves the problem of managing multiple AI coding agents working on the same codebase. Each agent gets its own isolated git worktree, allowing parallel development without branch conflicts. + +### Key Features + +- **Per-Agent Worktree Isolation** - Each agent works in a separate git worktree +- **Automatic Environment Configuration** - Environment variables and dependencies are auto-configured +- **Change Tracking** - Track agent-specific file changes with metadata +- **Unified Diff Generation** - Generate diffs for code review with agent attribution +- **Safe Merge Workflows** - Merge changes back to main with validation checks ## Installation +### From Source + +```bash +# Clone and install +git clone https://7000pct.gitea.bloupla.net/7000pctAUTO/git-agent-sync.git +cd git-agent-sync +npm install +npm run build + +# Link globally +npm link +``` + +### Global Installation + ```bash npm install -g git-agent-sync ``` -## Usage +## Quick Start + +1. **Initialize in a git repository:** ```bash -git-agent-sync create -git-agent-sync list -git-agent-sync status -git-agent-sync diff -git-agent-sync merge -git-agent-sync destroy +cd your-git-repo +git-agent-sync init ``` +2. **Create a workspace for an agent:** + +```bash +git-agent-sync create claude-code +``` + +3. **Work in the workspace:** + +```bash +cd .agent-workspaces/agent-claude-code +# Make your changes +git status +``` + +4. **Generate a diff for review:** + +```bash +git-agent-sync diff claude-code +``` + +5. **Merge changes back to main:** + +```bash +git-agent-sync merge claude-code +``` + +6. **Clean up when done:** + +```bash +git-agent-sync destroy claude-code +``` + +## Commands + +### create + +Create an isolated worktree for an AI agent. + +```bash +git-agent-sync create [options] +``` + +**Options:** +- `-p, --path ` - Custom path for the workspace +- `-t, --template