Skip to content
thecodingrastaPublic

About

Give every developer and AI coding agent a Git-free 'lane' to edit, build and test - no shared working directory, no risk of a stray git reset. Workcopy copies only the committed source a task needs, then prepares a human-reviewed diff before anything merges. Ships as a CLI and MCP server for Claude, Codex, Kiro and other agent hosts.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

Workcopy

Give every developer and AI agent their own editable copy of the code. No Git risk. No shared working directory.

Native CI Release Licence: GPL v3 or later Go 1.27+ MCP

Workcopy copies committed source into a plain folder called a lane. By default there is no .git inside it, so nothing can reset a branch, corrupt an index, or push anywhere. If you want local diff/commit tracking inside a lane, pass --git (git: true in MCP) to initialize a standalone local .git with no remotes and no link to your main repository. Edit, build, and test inside the lane. Reviews are worktree-free by default (with --worktree available if you want an on-disk review folder), and after you approve a combined review, Workcopy can land the selected lanes on your local branch.

Why it exists

Letting an agent run loose in your actual repository is risky: one bad git reset or branch switch and you've got a mess. A full git clone per worker is safe but wasteful on a big monorepo, and git worktree still links directly to your main .git directory and locks branches.

Workcopy sits in between. It creates a lane from the last commit (not your uncommitted edits), copies only the projects a task needs, and hands back an isolated folder—Git-free by default, or with an isolated local .git when you pass --git. Work happens there. Reconciliation against upstream changes and the final review are separate steps you control.

Workcopy vs. git worktree

git worktree Workcopy lane
Contains .git Yes, linked to main .git No by default; optional standalone local .git with --git (never a worktree)
Branch locking Can't check out a branch already in use elsewhere None, lanes aren't linked checkouts
What gets copied Entire working tree for the branch Only the projects you select
Review step None built in Worktree-free review by default (--worktree optional)
Agent risk Can affect main branches, refs, or repo state Isolated from main .git; no remotes
Best for One trusted developer, one extra branch Several workers, human or AI, on one codebase

Both tools write a copy of selected files to disk, and both duplicate build output (bin, obj, node_modules) per working copy. Workcopy doesn't deduplicate that either. The real difference is isolation: even with --git, a lane's .git has no remotes and no link to your main repository, so a runaway agent cannot corrupt your main branches or push anywhere.

What actually keeps disk use down with Workcopy is project selection: on a monorepo, a lane only copies the projects a task needs, not the whole tree. Build output and package caches are not deduplicated by either tool.

Install

Needs Git 2.43 or newer. Go is only needed to build from source.

  1. Download your platform's workcopy executable and SHA256SUMS from Releases.
  2. Verify the checksum, then put workcopy (or workcopy.exe) on your PATH. No archive to extract.
  3. Run workcopy version then workcopy doctor to confirm it works.

Install has the per-platform verification commands. Release assets are bare executables for Windows, Linux and macOS (x64 and arm64) with one SHA256SUMS covering every file. Old pre-release builds are not part of the repository; use the current release.

Building from source needs Go 1.27.4 or newer:

go run ./tools/dev setup
go run ./tools/dev build

The executable lands in dist/. go run ./tools/dev install copies it to GOBIN/GOPATH/bin; neither command touches your PATH.

Use Workcopy with an AI agent (MCP)

The same executable runs as a local MCP server over stdio. No network listener, no separate install.

Codex, Claude Code, Kiro, Antigravity and most other MCP hosts all take the same mcpServers JSON block, just in different config files:

{
  "mcpServers": {
    "workcopy": {
      "command": "C:\\tools\\workcopy.exe",
      "args": ["mcp", "--root", "C:\\workcopy-lanes", "--max-lanes", "32", "--reserve-mib", "8192"]
    }
  }
}

Replace the executable path and --root (a private folder outside any Git checkout). On Linux/macOS use a native absolute path, e.g. /opt/workcopy/workcopy. One server handles multiple repositories, so no --repo is needed here.

Host Config file
Codex ~/.codex/config.toml (TOML format, not JSON)
Claude Code project .mcp.json or global settings
Kiro .kiro/settings/mcp.json or user settings
Antigravity its MCP server settings
Other hosts wherever that host reads mcpServers JSON

Restart the host after saving, then tell your agent:

"Use Workcopy MCP for this repository. Create a lane for my task, validate inside it and prepare a review for me."

The agent discovers projects and previews each lane before creating it. It needs your approval for any dependency download; Workcopy itself never installs packages. You still review every result before integration. Full details, every tool and multi-repository setup: MCP guide. Multi-agent ownership and handoffs: controller and worker prompts.

Agent Skills and plugins

Workcopy includes canonical Agent Skills and native adapters for Claude Code, Antigravity, Cursor, OpenCode, Kiro, and VS Code/Copilot. The portable Agent Plugin uses the same local Go MCP server. Repository marketplace catalogs are prepared for Claude Code, Cursor, and GitHub Copilot. For current package, setup, and publication instructions, see the Agent Plugin publication guide.

Validate and package the distribution from source with Go:

go run ./tools/agentdist sync-skills
go run ./tools/agentdist validate
go run ./tools/agentdist package --output dist

The package command is included in the reviewed release workflow; it creates ZIPs and AGENT_PLUGIN_SHA256SUMS without publishing marketplace listings.

Your first lane

Run inside an existing Git repository with at least one commit:

workcopy doctor
workcopy create fix-parser --all
workcopy status fix-parser

status prints the lane's folder path. Open it and edit normally. Lane creation only copies committed source, so commit anything you need first. Use --root to store the lane in a private folder outside any Git checkout.

Inside the lane:

workcopy status
workcopy sync
workcopy merge

sync catches you up with upstream changes and flags conflicts to fix before re-running merge. merge doesn't commit anything; by default it prepares a worktree-free review receipt (pass --worktree if you want an unstaged review folder on disk). Inspect the changes yourself before deciding whether to bring them in. See the workflow guide for approval, recovery and cleanup.

Review and merge several lanes

Select the lanes you want in one review. Run from the target checkout and use the same workspace root used to create the lanes:

workcopy batch-review api-fix search-fix ui-fix --branch main
workcopy batch-land BATCH-ID --approve

The agent prepares and validates one combined result against the current local branch. Inspect the combined diff and explicitly approve its batch ID before landing. Unrelated local edits can stay in the checkout. If Git finds an overlapping local file, the review is retained and landing is blocked. See the batch workflow for conflict resolution, approval and recovery.

Large repositories

Select only the projects a task needs instead of copying everything:

workcopy discover
workcopy create api-fix --project src/Api --project src/Api.Tests --dry-run
workcopy create api-fix --project src/Api --project src/Api.Tests

Use the project IDs or paths discover reports. Check the dry-run's selected files and warnings before creating the lane for real. For repeatable selections, commit a .workcopy.json profile and use --profile; see the configuration guide and a 25-project example.

Build and test inside the lane. Workcopy doesn't run scripts or install packages. Keep bin, obj, node_modules and other build output lane-local; never point two lanes at the same output directory. Package manager caches usually already live outside lanes and get reused automatically. See storage for the full picture.

Safety and support

  • Lanes are workflow boundaries, not security sandboxes. Use host/OS permissions when real isolation matters.
  • Workcopy refuses to create lanes inside temporary directories (/tmp, %TEMP%, AppData\Local\Temp) unless explicitly approved with --allow-temp-root (allowTempRoot: true in MCP), so unmerged work isn't lost to temp cleanup.
  • destroy protects uncommitted contributions and conflicts. --force discards your own changes, never shared targets.
  • Local filesystems only. Network shares and cloud-synced folders aren't supported. Under WSL, a repository on /mnt/c is slow with the Linux build because every file call crosses to Windows: keep lane storage on the WSL filesystem (WORKCOPY_ROOT; about 12 times faster), or use the Windows build. Which setup to use, what it costs and why.
  • Git filters, LFS, submodules, tracked files over the WORKCOPY_MAX_FILE_MIB limit (default 2 GiB; files over 64 MiB are streamed, never loaded whole), and repos over 100,000 tracked paths are rejected explicitly, as are tracked paths that cannot be written safely on every platform (reserved Windows names, :, trailing dots, .git). Each refusal names the path and the fix, and happens before anything is written (refusals).

Preferences you would otherwise repeat on every command or server definition (lane location, owner config, timeouts, limits, Git program, agent-context rules) live in one settings file. New lanes also receive a lean, safe copy of your untracked agent instructions (AGENTS.md, steering, rules, skills for Kiro, Claude, Codex, Gemini, Cursor and more).

See validation status for what's been tested natively versus compiled only. Read SECURITY.md, troubleshooting and SUPPORT.md before filing an issue.

Contribute

Bug reports, platform validation and doc fixes welcome. Start with CONTRIBUTING.md. CI runs formatting, vet, race tests, CLI/MCP workflows and a vulnerability scan. Maintainers review and publish releases; nothing publishes automatically.

Licence

GNU GPL v3 or later, see COPYRIGHT. Dependency licences in third-party notices. Binary downloads include matching source.

About

Give every developer and AI coding agent a Git-free 'lane' to edit, build and test - no shared working directory, no risk of a stray git reset. Workcopy copies only the committed source a task needs, then prepares a human-reviewed diff before anything merges. Ships as a CLI and MCP server for Claude, Codex, Kiro and other agent hosts.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages