This project uses Context (ctx) for persistent AI context
management. Your memory is NOT ephemeral — it lives in .context/ files.
Read these files in order before starting any work:
.context/CONSTITUTION.md: Hard rules, NEVER violate.context/TASKS.md: Current work items.context/CONVENTIONS.md: Code patterns and standards.context/ARCHITECTURE.md: System structure.context/DECISIONS.md: Architectural decisions with rationale.context/LEARNINGS.md: Gotchas, tips, lessons learned.context/GLOSSARY.md: Domain terms and abbreviations.context/AGENT_PLAYBOOK.md: How to use this context system
After reading, confirm: "I have read the required context files and I'm following project conventions."
Do this FIRST (silently):
- Read
.context/TASKS.md - Read
.context/DECISIONS.mdand.context/LEARNINGS.md - Check
.context/sessions/for recent session files
Then respond with a structured readback:
- Last session: cite the most recent session topic and date
- Active work: list pending or in-progress tasks
- Recent context: mention 1-2 recent decisions or learnings
- Next step: offer to continue or ask what to focus on
Never lead with "I don't have memory." The .context/ files are
your memory. Read them silently, then present what you found as recall.
After completing meaningful work, save a session summary to
.context/sessions/.
Create a file named YYYY-MM-DD-topic.md:
# Session: YYYY-MM-DD — Brief Topic Description
## What Was Done
- Describe completed work items
## Decisions
- Key decisions made and their rationale
## Learnings
- Gotchas, tips, or insights discovered
## Next Steps
- Follow-up work or remaining items- After completing a task or feature
- After making architectural decisions
- After a debugging session
- Before ending the session
- At natural breakpoints in long sessions
Proactively update context files as you work:
| Event | Action |
|---|---|
| Made architectural decision | Add to .context/DECISIONS.md |
| Discovered gotcha/bug | Add to .context/LEARNINGS.md |
| Established new pattern | Add to .context/CONVENTIONS.md |
| Completed task | Mark [x] in .context/TASKS.md |
Periodically ask yourself:
"If this session ended right now, would the next session know what happened?"
If no — save a session file or update context files before continuing.
If ctx is installed, use these commands:
ctx status # Context summary and health check
ctx agent # AI-ready context packet
ctx drift # Check for stale context
ctx journal source --limit 5 # Recent session history