Christian Gick
f7f9cfe3d8
Add investigation type and duplicate detection (CF-166 Phase 1)
...
Enhancements:
1. Investigation Task Type
- Added 'investigation' to task type enum
- Migration 013: Updated PostgreSQL constraint
- Updated TypeScript schemas (task_add, task_list, task_update)
- Enables tracking research/debugging workflows
2. Duplicate Detection
- Enhanced task_add to check for similar tasks before creating
- Uses pgvector semantic search (>70% similarity threshold)
- Warns about potential duplicates with similarity scores
- Suggests linking command for related tasks
- Gracefully handles when embeddings unavailable
Example Output:
```
Created: CF-123
Title: Fix API rate limiting
Type: task
Priority: P2
Project: CF
⚠️ Similar tasks found:
- CF-120: Add rate limit monitoring (85% match, in_progress)
- CF-115: Implement API throttling (72% match, open)
Consider linking with: task link <from> <to> relates_to
```
Benefits:
- Prevents accidental duplicate tasks
- Surfaces related work automatically
- Reduces manual task linking
- Investigation type for research workflows
Files Changed:
- migrations/013_investigation_type.sql (new)
- src/tools/crud.ts (duplicate detection logic)
- src/tools/index.ts (investigation type in enums)
Remaining CF-166 Features (Phase 2):
- Session-aware task context
- Automatic linking within session
- Investigation workflow helper
- Task creation reminders
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com >
2026-01-17 08:38:18 +02:00
Christian Gick
d474c1c368
fix: Auto-detect project from CWD in task_list and epic_list
...
Previously these functions only filtered by project when explicitly
passed. Now they auto-detect from CWD using detectProjectFromCwd(),
matching the behavior of project_context.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-12 08:12:49 +02:00
Christian Gick
5015b1416f
feat: Add version management, session tracking, and commit linking
...
Phase 1: Version Management
- Migration 006: Add git_tag, git_sha columns to versions
- New tools: version_add, version_list, version_show, version_update,
version_release, version_assign_task
- Links versions to git tags for release tracking
Phase 2: Session/Task Activity Tracking
- Migration 007: Create task_activity table
- Track task changes per session (created, updated, status_change, closed)
- Session ID from env/cache file (usage-stats format)
- New tool: session_tasks to query tasks by session
Phase 3: Commit-Task Linking
- Migration 008: Create task_commits junction table
- New tools: task_commit_add, task_commit_remove, task_commits_list,
task_link_commits (batch parsing)
- Stores SHA references only (Gitea MCP owns full data)
- Commits shown in task_show output
17 new MCP tools total. All migrations applied to docker-host postgres.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-10 10:28:21 +02:00
Christian Gick
e21072ea54
feat: Add delegation tracking MCP tools
...
Session 374: Task-MCP and Delegation System Integration (Phase 4 & 6)
- Add task_delegations tool: query delegations for a specific task
- Add task_delegation_query tool: query across all tasks by status/backend
- Enhance taskShow() to display recent delegation history
- New delegations.ts module with getRecentDelegations helper
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-09 10:43:13 +02:00
Christian Gick
f193581805
feat: Make relates_to and duplicates links bidirectional
...
- relates_to and duplicates now create reverse links automatically
- task_show displays Related and Duplicates sections
- blocks remains unidirectional (A blocks B, B is blocked by A)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-08 23:45:15 +02:00
Christian Gick
a03e9e065a
feat: Add task-mcp server for task management via MCP
...
Implements 10 MCP tools for task management:
- CRUD: task_add, task_list, task_show, task_close, task_update
- Search: task_similar (pgvector), task_context
- Relations: task_link, task_checklist_add, task_checklist_toggle
Uses PostgreSQL with pgvector for semantic search via LiteLLM embeddings.
Connects via SSH tunnel to docker-host:5435.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-08 20:58:14 +02:00