Skip to content

Commit 9f23928

Browse files
committed
chore: update CLAUDE.md with beads workflow and ignore last-touched
1 parent 786dfa6 commit 9f23928

3 files changed

Lines changed: 71 additions & 0 deletions

File tree

.beads/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,6 @@ beads.right.meta.json
3636
# contributors to accidentally commit upstream issue databases.
3737
# The JSONL files (issues.jsonl, interactions.jsonl) and config files
3838
# are tracked by git by default since no pattern above ignores them.
39+
40+
# Recently accessed files tracking
41+
last-touched

.vscode/extensions.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"recommendations": [
33
"dbaeumer.vscode-eslint",
44
"esbenp.prettier-vscode",
5+
"planet57.vscode-beads",
56
"Prisma.prisma",
67
"bradlc.vscode-tailwindcss",
78
"GitHub.vscode-pull-request-github"

CLAUDE.md

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,3 +333,70 @@ complete until `git push` succeeds.
333333
- NEVER stop before pushing - that leaves work stranded locally
334334
- NEVER say "ready to push when you are" - YOU must push
335335
- If push fails, resolve and retry until it succeeds
336+
337+
<!-- bv-agent-instructions-v1 -->
338+
339+
---
340+
341+
## Beads Workflow Integration
342+
343+
This project uses
344+
[beads_viewer](https://github.com/Dicklesworthstone/beads_viewer) for issue
345+
tracking. Issues are stored in `.beads/` and tracked in git.
346+
347+
### Essential Commands
348+
349+
```bash
350+
# View issues (launches TUI - avoid in automated sessions)
351+
bv
352+
353+
# CLI commands for agents (use these instead)
354+
bd ready # Show issues ready to work (no blockers)
355+
bd list --status=open # All open issues
356+
bd show <id> # Full issue details with dependencies
357+
bd create --title="..." --type=task --priority=2
358+
bd update <id> --status=in_progress
359+
bd close <id> --reason="Completed"
360+
bd close <id1> <id2> # Close multiple issues at once
361+
bd sync # Commit and push changes
362+
```
363+
364+
### Workflow Pattern
365+
366+
1. **Start**: Run `bd ready` to find actionable work
367+
2. **Claim**: Use `bd update <id> --status=in_progress`
368+
3. **Work**: Implement the task
369+
4. **Complete**: Use `bd close <id>`
370+
5. **Sync**: Always run `bd sync` at session end
371+
372+
### Key Concepts
373+
374+
- **Dependencies**: Issues can block other issues. `bd ready` shows only
375+
unblocked work.
376+
- **Priority**: P0=critical, P1=high, P2=medium, P3=low, P4=backlog (use
377+
numbers, not words)
378+
- **Types**: task, bug, feature, epic, question, docs
379+
- **Blocking**: `bd dep add <issue> <depends-on>` to add dependencies
380+
381+
### Session Protocol
382+
383+
**Before ending any session, run this checklist:**
384+
385+
```bash
386+
git status # Check what changed
387+
git add <files> # Stage code changes
388+
bd sync # Commit beads changes
389+
git commit -m "..." # Commit code
390+
bd sync # Commit any new beads changes
391+
git push # Push to remote
392+
```
393+
394+
### Best Practices
395+
396+
- Check `bd ready` at session start to find available work
397+
- Update status as you work (in_progress → closed)
398+
- Create new issues with `bd create` when you discover tasks
399+
- Use descriptive titles and set appropriate priority/type
400+
- Always `bd sync` before ending session
401+
402+
<!-- end-bv-agent-instructions -->

0 commit comments

Comments
 (0)