sheet-git
v0.0.1-preview.2
Published
Workspace-scoped Spreadsheet Git control plane for agent-sheet workspaces.
Maintainers
Readme
sheet-git
sheet-git is the workspace-scoped Spreadsheet Git control plane for agent-sheet workspaces.
Phase 1 is local-first and commit-history-first:
- local entries only
- one workspace = one repo
- one commit can include multiple workbooks
- one workbook contributes at most one changeset to a commit
- repo truth lives under
.sheet-git/ - capture still requires durable local substrate, but
stagenow auto-flushes dirty local mutations before capture when it can
Current Commands
sheet-git init
sheet-git stage --entry-id <id> [--entry-id <id>...]
sheet-git stage --all
sheet-git reset --entry-id <id> [--entry-id <id>...]
sheet-git reset --all
sheet-git status
sheet-git commit --message "..."
sheet-git checkpoint list
sheet-git checkpoint create <name> [<commit>]
sheet-git history [--limit <n>]
sheet-git show [<commit-or-checkpoint>]
sheet-git diff
sheet-git diff <commit-or-checkpoint>
sheet-git diff <base> <target>
sheet-git blame --entry-id <id> --cell <Sheet!A1> [<commit-or-checkpoint>]
sheet-git fetch origin <entry-id>
sheet-git pull origin <proposal-or-entry-id>
sheet-git pull origin --force-to-latest <proposal-or-entry-id>
sheet-git rebase origin <entry-id>Supported revision selectors:
HEAD- full commit id
- unique commit id prefix
checkpoint:<name>
Phase 1 Workflow
- Use
agent-sheetto edit a local workbook entry. - Run
sheet-git stage --entry-id <id>orsheet-git stage --all.stageauto-flushes dirty local mutations before capture when it can. - Inspect staged state with
sheet-git statusorsheet-git diff.statusdistinguishes staged, unstaged local, and blocked local changes. - Commit with
sheet-git commit --message "...". - Inspect history with
sheet-git history/sheet-git show. - Create a stable named pointer with
sheet-git checkpoint create <name>. - Trace a cell with
sheet-git blame --entry-id <id> --cell <Sheet!A1>.
For origin-facing collaboration:
- Use
sheet-git fetch origin <entry-id>to inspect remote confirmed revision and pull readiness. - Use
sheet-git pull origin <entry-id>only when readiness isready. - Use
sheet-git pull origin --force-to-latest <entry-id>only for local materialization repair. - If
fetch originreportsrebase-required, usesheet-git rebase origin <entry-id>to replay the local-only linear continuation on top of the newer confirmed remote base.
Workspace Layout
.agent-sheet/
entries/
ei_xxxxxxxx/
runner/
workbook.snapshot.json
workbook.mutations.jsonl
.sheet-git/
HEAD
index.json
meta.json
refs/
heads/
main
checkpoints/
objects/
snapshots/
commits/
artifacts/
transactions/
commit.json
locks/
write.lock
logs/
events.jsonlBoundaries
agent-sheetowns editing, entry metadata, and runner integration.sheet-gitowns staged state, commit history, checkpoints, and blame.sheet-gitreads persisted local-entry files only. It does not read live in-memory runner state.- first-commit summaries include initial payload signal for added sheets instead of looking empty by default
blamein Phase 1 is cell-level only. Structural blame is intentionally deferred.
