source: Klonkt/AGENTS.md@ 8b65e67

main
Last change on this file since 8b65e67 was 76e9cfd, checked in by robo <roboburr@…>, 4 months ago

bd init: initialize beads issue tracking

  • Property mode set to 100644
File size: 3.1 KB
Line 
1# Agent Instructions
2
3This project uses **bd** (beads) for issue tracking. Run `bd prime` for full workflow context.
4
5## Quick Reference
6
7```bash
8bd ready # Find available work
9bd show <id> # View issue details
10bd update <id> --claim # Claim work atomically
11bd close <id> # Complete work
12bd dolt push # Push beads data to remote
13```
14
15## Non-Interactive Shell Commands
16
17**ALWAYS use non-interactive flags** with file operations to avoid hanging on confirmation prompts.
18
19Shell commands like `cp`, `mv`, and `rm` may be aliased to include `-i` (interactive) mode on some systems, causing the agent to hang indefinitely waiting for y/n input.
20
21**Use these forms instead:**
22```bash
23# Force overwrite without prompting
24cp -f source dest # NOT: cp source dest
25mv -f source dest # NOT: mv source dest
26rm -f file # NOT: rm file
27
28# For recursive operations
29rm -rf directory # NOT: rm -r directory
30cp -rf source dest # NOT: cp -r source dest
31```
32
33**Other commands that may prompt:**
34- `scp` - use `-o BatchMode=yes` for non-interactive
35- `ssh` - use `-o BatchMode=yes` to fail instead of prompting
36- `apt-get` - use `-y` flag
37- `brew` - use `HOMEBREW_NO_AUTO_UPDATE=1` env var
38
39<!-- BEGIN BEADS INTEGRATION v:1 profile:minimal hash:7510c1e2 -->
40## Beads Issue Tracker
41
42This project uses **bd (beads)** for issue tracking. Run `bd prime` to see full workflow context and commands.
43
44### Quick Reference
45
46```bash
47bd ready # Find available work
48bd show <id> # View issue details
49bd update <id> --claim # Claim work
50bd close <id> # Complete work
51```
52
53### Rules
54
55- Use `bd` for ALL task tracking — do NOT use TodoWrite, TaskCreate, or markdown TODO lists
56- Run `bd prime` for detailed command reference and session close protocol
57- Use `bd remember` for persistent knowledge — do NOT use MEMORY.md files
58
59**Architecture in one line:** issues live in a local Dolt DB; sync uses `refs/dolt/data` on your git remote; `.beads/issues.jsonl` is a passive export. See https://github.com/gastownhall/beads/blob/main/docs/SYNC_CONCEPTS.md for details and anti-patterns.
60
61## Session Completion
62
63**When ending a work session**, you MUST complete ALL steps below. Work is NOT complete until `git push` succeeds.
64
65**MANDATORY WORKFLOW:**
66
671. **File issues for remaining work** - Create issues for anything that needs follow-up
682. **Run quality gates** (if code changed) - Tests, linters, builds
693. **Update issue status** - Close finished work, update in-progress items
704. **PUSH TO REMOTE** - This is MANDATORY:
71 ```bash
72 git pull --rebase
73 git push
74 git status # MUST show "up to date with origin"
75 ```
765. **Clean up** - Clear stashes, prune remote branches
776. **Verify** - All changes committed AND pushed
787. **Hand off** - Provide context for next session
79
80**CRITICAL RULES:**
81- Work is NOT complete until `git push` succeeds
82- NEVER stop before pushing - that leaves work stranded locally
83- NEVER say "ready to push when you are" - YOU must push
84- If push fails, resolve and retry until it succeeds
85<!-- END BEADS INTEGRATION -->
86
Note: See TracBrowser for help on using the repository browser.