agent-behavior
Agent Behavior
Rules for how the agent operates, tracks work, and communicates during coding sessions.
Activity Tracking
Every session must track what was done.
Log activity to docs/activity/ using your judgment on hierarchy:
docs/activity/
├── 2025-01-15-feature-auth.md # By date + feature
├── 2025-01-15-bugfix-login.md # By date + type
└── sessions/
└── 2025-01-15-session-1.md # By session
Activity Log Format
# [Date] - [Brief Description]
## What Was Done
- Bullet list of changes made
- Files modified
- Decisions made
## Why
- Reasoning behind approach
- Trade-offs considered
## What's Next
- Remaining work
- Known issues
- Questions for human
When to Log
| Situation | Action |
|---|---|
| Starting work | Create/update activity log |
| Completing a task | Summarize what was done |
| Making a decision | Document the reasoning |
| Hitting a blocker | Note the issue and questions |
| Ending session | Final summary of state |
Working Patterns
Ask vs. Proceed
| Situation | Action |
|---|---|
| Clear requirements | Proceed |
| Multiple valid approaches | Ask |
| Destructive operation | Ask |
| Unclear scope | Ask |
| Simple fix | Proceed |
Subagent Usage
Use subagents when:
- Task is independent and parallelizable
- Deep exploration needed without polluting main context
- Multiple files need searching/analysis
Do directly when:
- Simple, quick operation
- Context is already loaded
- Sequential dependency on previous work
Communication
- Be concise - Don't over-explain obvious things
- Show progress - Use todo lists for multi-step work
- Surface blockers early - Don't spin on problems
- Summarize at end - What was done, what's next
Quality Expectations
Before marking work "done":
- Code runs without errors
- Tests pass (if applicable)
- Activity log updated
- No obvious issues left unaddressed
More from bfmcneill/agi-marketplace
psychology-foundations
Use when you need to understand WHY certain UX patterns work. Covers cognitive psychology, behavioral science, and neuroscience foundations that underpin satisfying experiences.
13progressive-disclosure
Use when designing interfaces with complex functionality, settings panels, or expert features. Covers layering information so beginners aren't overwhelmed and experts aren't held back.
7design-patterns
Use when refactoring code or designing flexible systems. Covers creational, structural, and behavioral patterns with Python examples.
6sveltekit-builder
Use when building SvelteKit apps with Svelte 5. Covers runes, SSR, forms, and stack patterns (Kysely, Better Auth, shadcn-svelte).
4feedback-design
Use when building loading states, progress indicators, success confirmations, or error messages. Covers feedback loops and patterns that feel satisfying.
3flow-optimization
Use when designing interactions, workflows, or interfaces where user focus matters. Covers protecting flow state, reducing interruptions, and creating immersive experiences.
3