Synopsis
Description
Thereset command permanently deletes all Uzi data from your system by removing the entire ~/.local/share/uzi directory. This is a nuclear option that clears:
- All state tracking (
state.json) - All worktree directories
- All configuration and metadata
- All session history
- Git repositories or branches (you’ll need to clean those manually)
- Tmux sessions (you’ll need to kill those manually)
- Your Uzi configuration file (
uzi.yamlin your project directories)
Interactive Confirmation
The command always asks for confirmation before proceeding:y or yes to proceed. Any other input cancels the operation.
What Gets Deleted
State File
State File
Location:
~/.local/share/uzi/state.jsonContains all session metadata:- Prompts
- Branch names
- Worktree paths
- Model names
- Dev server ports
- Timestamps
Worktree Directories
Worktree Directories
Location:
~/.local/share/uzi/worktrees/Contains isolated git worktrees for all agents:- Source code
- Uncommitted changes
- Build artifacts
- Node modules, etc.
Worktree State Directories
Worktree State Directories
Location:
~/.local/share/uzi/worktree/Internal state directories for each worktree.Any Other Data
Any Other Data
All other files and directories under
~/.local/share/uzi/.What Remains
Examples
Basic Reset
Cancel Reset
No Data to Reset
reset.
Complete Cleanup Workflow
For a truly clean slate, combinereset with manual cleanup:
Manual Cleanup of Leftovers
If you runreset without first running uzi kill all, you may have orphaned resources:
Clean Orphaned Git Worktrees
Clean Orphaned Git Branches
Clean Orphaned Tmux Sessions
When to Use Reset
Good reasons to reset:
- Corrupted state file causing errors
- Starting a new project/workflow from scratch
- Debugging Uzi issues
- Freeing disk space after many experiments
- Testing Uzi setup/configuration
Data Recovery
If you need to preserve data before resetting:Difference from kill all
| Feature | reset | kill all |
|---|---|---|
| Deletes state | ✓ | ✓ |
| Removes worktrees | ✓ | ✓ |
| Deletes branches | ✗ | ✓ |
| Kills tmux sessions | ✗ | ✓ |
| Scope | All repos | Current repo |
| Requires confirmation | ✓ | ✗ |
Impact on Running Agents
If you runreset while agents are still running:
- Tmux sessions continue - Agents keep running but are no longer tracked
- State is lost -
uzi lswon’t show them anymore - Orphaned resources - Worktrees, branches remain until manually cleaned
uzi kill all before uzi reset.
After Reset
After resetting, you can immediately start fresh:Related Commands
kill- Remove specific agents or all agents for current repols- Check what state exists before resetting
Notes
Configuration files (
uzi.yaml in your projects) are not affected by reset. Only data in ~/.local/share/uzi/ is deleted.