-`gt submit --no-edit` - Push and create/update PRs (use `--no-edit` to avoid interactive prompts)
-`gt log short` - View stack status
**Note**: `gt submit` runs in interactive mode by default and won't push in automated contexts. Always use `gt submit --no-edit` or `gt submit -q` when running from Claude.
**Graphite Stack Safety Rules:**
- Graphite force-pushes everything - old commits only recoverable via reflog
- Never have uncommitted changes when switching branches - they get lost during restack
- Never use `git stash` with Graphite - causes conflicts when `gt modify` restacks
- Never use `git checkout HEAD -- <file>` after editing - silently restores unfixed version
- Always use `gt checkout` (not `git checkout`) to switch branches
-`gt modify --no-edit` with unstaged/untracked files stages ALL changes
-`gt sync` pulls FROM remote, doesn't push TO remote
-`gt modify` restacks children locally but doesn't push them
- Always verify with `git status -sb` after stack operations
- When resuming from summarized conversation, never trust cached IDs - re-fetch from git/GitHub API
**Safe multi-branch fix workflow:**
```bash
gt checkout parent-branch
# make edits
gt modify -a--no-edit# Stage all, amend, restack children
git show HEAD -- <files> # VERIFY fix is in commit
gt submit --no-edit# Push immediately
gt checkout child-branch # Already restacked from gt modify
# make edits
gt modify -a--no-edit
git show HEAD -- <files> # VERIFY
gt submit --no-edit
```
## Build Commands
```bash
# Build the Next.js package (dev server only - faster)
pnpm --filter=next build:dev-server
# Build everything
pnpm build
# Run specific task
pnpm --filter=next taskfile <task>
```
## Fast Local Development
For iterative development, use watch mode + fast test execution:
**1. Start watch build in background:**
```bash
# Runs taskr in watch mode - auto-rebuilds on file changes
# Use Bash(run_in_background=true) to keep working while it runs
pnpm --filter=next dev
```
**2. Run tests fast (no isolation, no packing):**
```bash
# NEXT_SKIP_ISOLATE=1 - skip packing Next.js for each test (much faster)
# testonly - runs with --runInBand (no worker isolation overhead)
-`gt submit --no-edit` - Push and create/update PRs (use `--no-edit` to avoid interactive prompts)
-`gt log short` - View stack status
**Note**: `gt submit` runs in interactive mode by default and won't push in automated contexts. Always use `gt submit --no-edit` or `gt submit -q` when running from Claude.
**Graphite Stack Safety Rules:**
- Graphite force-pushes everything - old commits only recoverable via reflog
- Never have uncommitted changes when switching branches - they get lost during restack
- Never use `git stash` with Graphite - causes conflicts when `gt modify` restacks
- Never use `git checkout HEAD -- <file>` after editing - silently restores unfixed version
- Always use `gt checkout` (not `git checkout`) to switch branches
-`gt modify --no-edit` with unstaged/untracked files stages ALL changes
-`gt sync` pulls FROM remote, doesn't push TO remote
-`gt modify` restacks children locally but doesn't push them
- Always verify with `git status -sb` after stack operations
- When resuming from summarized conversation, never trust cached IDs - re-fetch from git/GitHub API
**Safe multi-branch fix workflow:**
```bash
gt checkout parent-branch
# make edits
gt modify -a--no-edit# Stage all, amend, restack children
git show HEAD -- <files> # VERIFY fix is in commit
gt submit --no-edit# Push immediately
gt checkout child-branch # Already restacked from gt modify
# make edits
gt modify -a--no-edit
git show HEAD -- <files> # VERIFY
gt submit --no-edit
```
## Build Commands
```bash
# Build the Next.js package (dev server only - faster)
pnpm --filter=next build:dev-server
# Build everything
pnpm build
# Run specific task
pnpm --filter=next taskfile <task>
```
## Fast Local Development
For iterative development, use watch mode + fast test execution:
**1. Start watch build in background:**
```bash
# Runs taskr in watch mode - auto-rebuilds on file changes
# Use Bash(run_in_background=true) to keep working while it runs
pnpm --filter=next dev
```
**2. Run tests fast (no isolation, no packing):**
```bash
# NEXT_SKIP_ISOLATE=1 - skip packing Next.js for each test (much faster)
# testonly - runs with --runInBand (no worker isolation overhead)