Store and manage coding context in git. Use when saving decisions, tracking tasks, planning complex work, or coordinating with other agents. Activates on mentions of "save context", "track task", "planning", or multi-agent coordination.
Use git ctx to persist context in git. Local by default, share with --shared.
# Memory (context entries)
git ctx add --title "Title" -m "Content" # Add context
git ctx add --title "Title" # Opens editor
git ctx list # List local
git ctx list --all # List all
git ctx show <id> # View entry
git ctx edit <id> # Edit entry
git ctx rm <id> # Remove
git ctx search "query" # Search
# Tasks
git ctx task add "Title" # Create task
git ctx task add "Title" -d "Description" # With description
git ctx task list # List tasks
git ctx task show <id> # View task
git ctx task claim <id> # Claim (take ownership)
git ctx task done <id> # Complete
git ctx task comment <id> "message" # Add comment
# Sync (shared entries only)
git ctx push # Push to remote
git ctx pull # Pull from remote
# Flags
--shared, -s # Use shared storage (syncs)
--all, -a # Show local + shared
--json # JSON output
git ctx add --title "Why PostgreSQL"git ctx add --title "API rate limits"git ctx add --title "Session handoff"git ctx add --title "Bug: Auth edge case"For complex tasks, create a plan entry:
git ctx add --title "Plan: [Feature Name]" << 'EOF'
## Goal
[One sentence describing success]
## Phases
- [ ] Phase 1: Setup and planning
- [ ] Phase 2: Core implementation
- [ ] Phase 3: Testing
- [ ] Phase 4: Documentation
## Key Questions
1. [Question to answer]
2. [Question to answer]
## Decisions Made
- (none yet)
## Errors Encountered
- (none yet)
## Status
**Currently in Phase 1** - Planning
EOF
Before each major decision → Re-read the plan
git ctx show <plan-id>
After each phase → Update the plan
git ctx edit <plan-id>
# Mark [x] completed, update Status section
When you learn something → Save to separate entry
git ctx add --title "Notes: [Topic]"
This keeps goals in your attention window and builds knowledge.
# Create shared tasks
git ctx task add --shared "Implement auth" -d "JWT with refresh tokens"
git ctx task add --shared "Setup database" -d "PostgreSQL schema"
git ctx task add --shared "Write tests"
git ctx push
# 1. Pull latest
git ctx pull
# 2. Check available tasks
git ctx task list --shared
# task-001 Implement auth [open]
# task-002 Setup database [open]
# 3. Claim one
git ctx task claim task-001
git ctx push
# 4. Work on it, add comments
git ctx task comment task-001 "Using bcrypt for passwords"
# 5. Complete
git ctx task done task-001
git ctx push
At end of session:
git ctx add --title "Handoff: [Date]" << 'EOF'
## Completed
- [What was done]
## In Progress
- [Current state]
## Next Steps
- [What to do next]
## Blockers
- [Any issues]
EOF
Next session:
git ctx list
git ctx show <handoff-id>
| Don't | Do Instead |
|-------|------------|
| Forget context between sessions | Save with git ctx add |
| Start complex work immediately | Create plan first |
| Claim tasks without pulling | Always git ctx pull first |
| Keep findings in head | Save to entries |
| Retry errors silently | Log errors in plan |
.git/
├── context/ ← LOCAL (private, never syncs)
│ ├── memory/
│ └── tasks/
└── refs/context/ ← SHARED (syncs with push/pull)
├── memory/
└── tasks/
git ctx show abc12345echo "text" | git ctx add --title "Note"git ctx search "auth" finds all relatedgit ctx list --json | jq ...Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer