Launch your first agent
Status: ShippedEvery story gets its own worktree: a separate checkout of its repo, on its own branch, with your team’s context already written in. You open it from the story, and run Claude Code or Codex in its terminal.
This page uses Ledgerline’s story LL-214 (“Refund endpoint idempotency
keys”), which changes ledgerline/api.
Before you start
-
The story’s repo is attached. See Attach your repos.
-
The story file has
type: story(orbugorspike) and asource_repo. The first lines ofLL-214look like this:---type: storystory_id: LL-214title: Refund endpoint idempotency keysstatus: reviewsource_repo: ledgerline/apidepends_on: [LL-209]--- -
claudeorcodexis installed and on yourPATH.
1. Open the story’s worktree
In the left nav, right-click the story and choose Open story workspace.
The first time, CodeSense creates the worktree and its branch, then opens a terminal there. Next time, it reopens the same one.
- Branch. The story’s
branchfield if it has one; otherwise the repo’s branch prefix plus the story id. With the default prefixfeat/,LL-214getsfeat/LL-214. - Folder. By default
../{repo}-wt/{slug}next to the repo’s clone, where{slug}is the branch with/turned into-. For a clone at~/code/api, that’s~/code/api-wt/feat-LL-214.
You can change both per repo. See Worktrees.
2. Check the context is there
The terminal opens as soon as the worktree exists, and the context write follows a moment later:
ls CLAUDE.md AGENTS.md .claude/skillsgit status --short # clean: context paths are excluded from git3. Start the agent
Type the agent’s command in the terminal, as you would anywhere else:
claude# orcodexThe agent starts in the worktree, so it reads the team’s CLAUDE.md or
AGENTS.md and skills from the folder. CodeSense also registers its MCP
bridge in the worktree’s .mcp.json and .codex/config.toml, kept out of git,
which gives the agent
CodeSense tools such as validating a story or pulling an epic’s stories into
the worktree. See MCP tools for agents.
A good first prompt names the story:
Implement story LL-214. Read the story and its depends_on stories first,and use the add-endpoint skill.4. Read the status dot
A terminal tab running an agent shows a small dot that tracks it, so you don’t have to watch every terminal. Claude Code reports through a hook; Codex through its notifications. The dot hasn’t been checked end to end with a real Claude Code session yet, so treat the colours as a guide.
| Dot | Meaning |
|---|---|
| Blue, pulsing | Working |
| Orange | Needs your permission |
| Amber | Done |
| Red | Error |
| Hollow grey ring | Idle |
What’s next
- Launch several stories at once and watch them side by side: Launch agents and watch them.
- Bring your own scripts and CLIs: Run your own tools and scripts in a worktree.
- When the story is merged, CodeSense can remove its worktree for you. See Worktrees.
How we know this is accurate 13 sources
Checked against the app at 1b3d5a69d73473db077dfb44f4390b42cded6bd4.
Feature inventory
-
C-53 -
D-10 -
D-11 -
D-19 -
D-42
Code
-
src/features/dashboard/components/status-nav/nav-context-menu.tsx -
src/shared/stores/viewer-store.ts -
src/shared/lib/worktree/resolve.ts -
src-tauri/src/commands/worktree.rs -
src-tauri/src/commands/content_engine.rs -
src/features/viewer/components/ai-status-colors.ts -
src/shared/lib/terminal-ai-status.ts -
src-tauri/src/http/routes/terminal.rs