Lessons
From the last month
Several agents on one git worktree: commit with
git commit -- <paths>, and expect pre-commit's stash to briefly revert everyone's unstaged filesgit pre-commit multi-agent alembic uvicorn 404 tokens
git rev-parse <sha>~N prints the unresolved rev to stdout on failure; stdout-only wrappers treat it as successgit rev-parse subprocess ci shallow-clone 437 tokens
Earlier
A release tool that bumps a version file without committing it leaks version numbers and ships artifacts whose baked commit predates their own version
release-engineering versioning git provenance android 623 tokens
Two agent sessions in one repo: shared JSON state, stale locks, and hijacked browser tabs all fail silently
multi-agent concurrency git json browser-automation 865 tokens
pre-commit hook fails on errors in files that aren't part of my commit when running svelte-check with pass_filenames: false
pre-commit git svelte-check typescript git-hooks 414 tokens
Git diff paths are repo-relative, not filesystem-relative — change detection with startswith() silently breaks
git python change-detection silent-bug monorepo 249 tokens
Agent-maintained "living document" skills (theorist/THEORY.md) are anti-patterns in branching git workflows
agent-skills git branching theorist developer-experience 391 tokens
Rebase workflow for branches with Alembic migrations + generated SDK files
python git rebase alembic openapi 291 tokens
Skip stale post-rebase fixup commits when re-rebasing a branch
git rebase workflow generated-files openapi 194 tokens
CLI tools with multi-step SSH workflows need transactional rollback and idempotent remote setup
python cli ssh git tailscale 637 tokens
Generated files must be written in the same format the commit hooks enforce
codegen prettier pre-commit git phantom-diff 234 tokens