Skip to content

Commit 2cbee71

Browse files
authored
Merge pull request #14 from jpicklyk/feature/ai-guidance-and-workflow-improvements
feat: AI guidance improvements and bulk task updates
2 parents 727f804 + 6690b92 commit 2cbee71

File tree

70 files changed

+8929
-2729
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+8929
-2729
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ build/
99
.idea/jarRepositories.xml
1010
.idea/compiler.xml
1111
.idea/libraries/
12+
.idea/misc.xml
1213
*.iws
1314
*.iml
1415
*.ipr

.idea/misc.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,30 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
## [Unreleased]
99

1010
### Added
11+
- **Bulk Task Updates** - Efficient multi-task update operation
12+
- `bulk_update_tasks` tool for updating 3-100 tasks in single operation
13+
- 70-95% token savings vs individual update_task calls
14+
- Supports partial updates (each task updates only specified fields)
15+
- Atomic operation with detailed success/failure reporting
16+
- Example: 10-task update saves 11,850 characters (95% reduction)
17+
- Comprehensive test suite with 23 tests covering validation, happy paths, errors, and performance
18+
- **Template Caching** - In-memory caching for template operations
19+
- CachedTemplateRepository decorator wraps SQLiteTemplateRepository
20+
- Caches individual templates, template lists, and template sections
21+
- Automatic cache invalidation on modifications (create, update, delete, enable/disable)
22+
- Significant performance improvement for `list_templates` and template application
23+
- Thread-safe using ConcurrentHashMap
24+
- No configuration needed - enabled by default
25+
- **Selective Section Loading** - Token optimization for AI agents
26+
- `includeContent` parameter for `get_sections` (default: true) - Browse section metadata without content (85-99% token savings)
27+
- `sectionIds` parameter for `get_sections` - Fetch specific sections by ID for selective loading
28+
- Enables two-step workflow: browse metadata first, then fetch specific content
29+
- Backward compatible with default behavior
30+
- **Database Performance Optimization** - V4 migration adds 10 strategic indexes
31+
- Dependency directional lookups (fromTaskId, toTaskId indexes)
32+
- Search vector indexes for full-text search optimization
33+
- Composite indexes for common filter patterns (status+priority, featureId+status, projectId+status, priority+createdAt)
34+
- 2-10x performance improvement for concurrent multi-agent access
1135
- Markdown transformation tools for exporting entities to markdown format with YAML frontmatter
1236
- `task_to_markdown` - Transform tasks to markdown documents
1337
- `feature_to_markdown` - Transform features to markdown documents
@@ -17,13 +41,26 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1741

1842
### Changed
1943
- Removed `includeMarkdownView` parameter from get_task, get_feature, and get_project tools
20-
- Updated API reference documentation to reflect 40 total tools (was 37)
21-
- Updated tool category counts: Task Management (7 tools), Feature Management (6 tools), Project Management (6 tools)
44+
- Updated API reference documentation to reflect 38 total tools (was 37)
45+
- Updated tool category counts: Task Management (8 tools, was 7), Feature Management (6 tools), Project Management (6 tools)
46+
47+
### Performance
48+
- Bulk task updates: 70-95% token reduction vs individual update_task calls
49+
- 10 tasks: 95% savings (11,850 characters saved)
50+
- 20 tasks: 95% savings (23,700 characters saved)
51+
- Single database transaction vs multiple round-trips
52+
- V4 migration: Dependency lookups 5-10x faster with directional indexes
53+
- V4 migration: Search operations 2-5x faster with search vector indexes
54+
- V4 migration: Filtered queries 2-4x faster with composite indexes
55+
- Selective section loading: 85-99% token reduction when browsing section structure
2256

2357
### Technical Details
2458
- Markdown transformation uses existing MarkdownRenderer from domain layer
2559
- Dedicated tools avoid content duplication in responses
2660
- Better use case clarity for AI agents: JSON for inspection, markdown for export/rendering
61+
- Selective section loading implemented at tool layer (no repository changes required)
62+
- Content field excluded from response when includeContent=false
63+
- Section filtering applied before content exclusion for efficiency
2764

2865
## [1.1.0-alpha-01]
2966

0 commit comments

Comments
 (0)