UNPKG

sqlew

Version:

MCP server for efficient context sharing between Claude Code sub-agents (60-70% token reduction), Kanban Task Watcher, Decision or Constraint Context, and streamlined documentation

73 lines (55 loc) 2.75 kB
# Tool Selection Guide **Quick reference for choosing the right tool** ## Tool Comparison Table | Tool | Use For | Don't Use For | Key Feature | |------|---------|---------------|-------------| | **decision** | Recording choices made | Future work, requirements | Version history tracking | | **message** | Agent communication | Permanent records, decisions | Priority-based delivery | | **constraint** | Requirements & rules | Decisions, tasks | Category-based organization | | **task** | Work tracking (TODO) | Decisions, history | Auto-stale detection | | **file** | File change tracking | Code search, content | Layer-based organization | | **stats** | Metrics & cleanup | Data storage | Aggregated views | | **config** | Retention settings | Business logic | Auto-deletion control | ## Decision vs Constraint vs Task | Concept | Definition | Example | |---------|------------|---------| | **Decision** | A choice that WAS made | "We chose JWT authentication" | | **Constraint** | A requirement that MUST be followed | "Response time must be <100ms" | | **Task** | Work that NEEDS to be done | "Implement JWT authentication" | ## Decision vs Task: WHY vs WHAT **Critical**: `decision` = WHY (reasoning), `task` = WHAT (work status) | Question | Tool | |----------|------| | WHY did we choose this? | **decision** | | WHAT needs to be done? | **task** | | WHY was this bug introduced? | **decision** | | WHAT is the completion status? | **task** | ## Common Scenarios **Breaking API Change:** 1. `decision` - Record WHY change was necessary with reasoning 2. `constraint` - Add requirement for version prefixes going forward 3. `task` - Create migration work item 4. `message` - Alert other agents **Performance Issue:** 1. `decision` - Record analysis and WHY this solution 2. `constraint` - Add performance requirement 3. `task` - Create optimization work item **Security Vulnerability:** 1. `decision` - Record WHY this mitigation approach 2. `constraint` - Add security requirement 3. `task` - Create fix work item 4. `message` - Alert all agents ## Search Action Selection | Action | Use For | |--------|---------| | **list** | Simple status/layer/tag filters | | **search_tags** | Tag-focused with AND/OR logic | | **search_layer** | Layer-focused queries | | **search_advanced** | Complex multi-filter, pagination, full-text | | **versions** | Version history of specific decision | --- ## Related Documentation - [TOOL_REFERENCE.md](TOOL_REFERENCE.md) - Parameter reference - [WORKFLOWS.md](WORKFLOWS.md) - Multi-step workflows - [BEST_PRACTICES.md](BEST_PRACTICES.md) - Common errors - [SHARED_CONCEPTS.md](SHARED_CONCEPTS.md) - Layers, enums, concepts