JEFF / workspace
CLAUDE.md1 starsChanged 3 months agoMITView on GitHub
Creates task workspaces under $JEFF_HOME/tasks/ and git worktrees under $JEFF_HOME/worktrees/<repo>/<branch>/, symlinked into task dirs. jeff done retires a task workspace rather than deleting it, because the dir holds the live session's cwd and its hook scripts and the settings.json naming them absolutely — deleting it broke every subsequent hook and Bash spawn in that session (#94). Worktrees are the disk cost (~200 MB–1 GB) and are still removed eagerly; a task dir is ~20 KB. Collection lives in task/gc.go (jeff…
In this repository17 other files it gives its agents.
- AGENTS.mdAGENTS.md
- crew/AGENTS.mdAGENTS.md
- hooks/AGENTS.mdAGENTS.md
- memory/AGENTS.mdAGENTS.md
- persona/AGENTS.mdAGENTS.md
- skill/AGENTS.mdAGENTS.md
- tui/AGENTS.mdAGENTS.md
- workspace/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- crew/CLAUDE.mdCLAUDE.md
- embed/CLAUDE.mdCLAUDE.md
- hooks/CLAUDE.mdCLAUDE.md
- memory/CLAUDE.mdCLAUDE.md
- persona/CLAUDE.mdCLAUDE.md
- skill/CLAUDE.mdCLAUDE.md
- tui/CLAUDE.mdCLAUDE.md
- provider-integrationSkill
The file
Files
workspace/ — Task directories and git worktrees
Creates task workspaces under $JEFF_HOME/tasks/ and git worktrees under $JEFF_HOME/worktrees/<repo>/<branch>/, symlinked into task dirs.
File roles
| File | What it does |
workspace.go | TaskDir struct, Create/Open/Remove/List, makeSlug |
worktree.go | WorktreeAdd/Remove/List, symlinkIntoTask, ReadBaseBranch |
branchname.go | RunBranchNameScript — sends task JSON on stdin |
Key behaviors
- Slug format:
gig-<id>-<title-slug>(e.g.,gig-ab12-refactor-auth) - Worktree location:
$JEFF_HOME/worktrees/<repo>/<branch>/ .jeff-base: written in worktree, read byjeff shipfor base branch- Remote fetch before branching when base branch is
origin/* - Branch naming script receives full task JSON on stdin (including custom attrs)
- TaskDir is ephemeral — gig is the source of truth, not the filesystem
Retirement (retire.go)
jeff done retires a task workspace rather than deleting it, because the dir
holds the live session's cwd and its hook scripts and the settings.json
naming them absolutely — deleting it broke every subsequent hook and Bash spawn in
that session (#94). Worktrees are the disk cost (~200 MB–1 GB) and are still
removed eagerly; a task dir is ~20 KB.
| Function | Use |
Retire(dir, taskID, reason) | drop dangling repo symlinks, write .closed |
ReadClosedMarker / IsRetired | the cheap offline "is this finished work?" test |
Unretire(dir) | called by Create — a reopened task reuses its retired dir |
ListActive | List minus retired dirs; use for anything showing current work |
PathContains / CwdInside | symlink-resolving containment (task dirs are reached via symlinks, and macOS adds /var→/private/var) |
DirSize | what jeff cleanup reports as reclaimed |
Collection lives in task/gc.go (jeff cleanup), not here — it needs gig and crew
state to know what is safe to remove.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

