Skip to content

Parallel agents on big repos: gft up, diff, --json, faster ls and land, renames, folder 3-way merge - #13

Merged
lydakis merged 4 commits into
mainfrom
claude/project-thread-wdmsae
Oct 27, 2026
Merged

lydakis merged 4 commits into
mainfrom
claude/project-thread-wdmsae

Conversation

@lydakis

@lydakis lydakis commented Oct 26, 2026

Copy link
Copy Markdown
Owner

The should-fix and nice-to-have items from the second and third hands-on reviews, plus the positioning change. This is version 0.2.0.

Copies come back and keep up

  • gft up [NAMES] mounts copies again after a restart. Other commands mount the copy they work on themselves, and say so.
  • ls flags copies whose folder is empty with "not mounted: gft up brings it back".
  • When upstream renamed a file, sync merges the copy's changes into the new name (git diff -M).
  • Before moving, sync sets aside commits made with git in the copy (git reset --soft): their changes stay in the files, and git reflog keeps them.
  • Plain folders get a three-way merge on sync, using the folder's bytes as the copy took them. land's refusal now points at gft sync NAME instead of a --force that gft land doesn't have.

Home copy

  • status in the home copy shows its commit and any files changed there, and says those don't reach copies or land.
  • gft new NAME --from HOME copies them. gft sync in the home copy moves it onto the newest commit.
  • A second gft get of another owner's repository with the same name works: its workspaces become OWNER-NAME. A repeat get of the same repository names where it already is, instead of suggesting a nonexistent --name.

Speed

  • ls checks copies in parallel. It took 30 copies from 0.83 to 0.23 s on 4 cores; the rest is sandfs's changes, which the sandfs performance work is cutting.
  • land puts text files up to 1 MiB inline in the tree, about 8 MiB per call, instead of one blob call per file.

For agents and scripts

  • --json on ls, status and changes.
  • gft diff [A [B]] shows changes line by line. changes and diff between two copies work when they sit on different commits.
  • ls doesn't count an overlap where both copies have the same bytes.
  • rm --delete-branch deletes the branch on GitHub once its pull request is merged or closed, and keeps one that is still open or has commits the copy didn't land.
  • drop also takes the home folder's name.
  • Errors say "copy" instead of sandfs's "workspace". A copy "in use by" another command gets a retry hint.

README

  • The pitch is now "parallel agents on big repositories".
  • A new "When plain git is better" section: one person on one branch, full-tree builds, offline work, local history, signed commits.
  • History on demand: git fetch --deepen=N origin works inside a copy (tested).
  • Rows for the new commands.

Tests: copies_come_back_and_follow_upstream is new. The plain-folder test now covers the three-way merge. The drop test covers same-named repositories and a repeated get. The closed/merged test covers rm --delete-branch. Locally, all 10 workflow tests and 15 unit tests pass, with folder tests on btrfs.

Still open: #12 (undo across a sync that took in merged work).


Generated by Claude Code

…d, renames, folder 3-way merge, home copy fixes

- gft up remounts copies after a restart; commands remount the copy they work on
- ls checks copies in parallel, drops same-bytes overlaps, flags unmounted copies; --json on ls, status, changes
- gft diff [A [B]]; changes/diff between copies on different commits
- sync merges into upstream's new name for renamed files, sets aside local git commits, works in the home copy
- plain folders merge three ways on sync; land's refusal points at sync
- the home copy shows its own changes in status; new --from HOME copies them
- land puts text files inline in the tree, in batches, instead of a blob call each
- a second get of a same-named repository uses OWNER-NAME workspaces; get names where an existing project is
- rm --delete-branch; drop takes the home folder name
- README: the pitch, when plain git is better, history on demand with git fetch --deepen

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01CboUL9BU7nvDEZKfQBSkkq
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-26T06:54:30.069281Z eca8b71 New commits
🔒 Security Review ✅ Completed 2026-10-26T07:02:33.712454Z eca8b71 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3358736b92

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/lib.rs Resolved
Comment thread src/lib.rs Resolved
Comment thread src/lib.rs Resolved
Comment thread src/lib.rs Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5d5183c384

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/lib.rs Resolved
Comment thread src/lib.rs Resolved
Comment thread src/lib.rs Resolved
Comment thread src/lib.rs Resolved
Comment thread src/lib.rs Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 77d01b6588

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/lib.rs Resolved
Comment thread src/lib.rs Resolved
Comment thread src/land.rs Resolved
Comment thread src/lib.rs Resolved
@lydakis
lydakis merged commit 838707a into main Oct 27, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants