-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
Problem Statement
The context fetcher reads OctopusGarden's CLAUDE.md and architecture.md each scan cycle. It should cache these files and detect when they change, since changes to OctopusGarden's architecture affect how articles should be analyzed.
Proposed Change
Add intelligent caching with change detection for OctopusGarden context.
Files to Modify
- `tentacle/context.py` - Add file-based caching with SHA-256 checksums, detect changes between scans, include diff summary in analysis context when architecture changes
- `tentacle/db.py` - Add `context_cache` table (file, content, checksum, fetched_at)
- `tests/test_context.py` - New test file for context caching logic
Acceptance Criteria
- Context files cached to `~/.cache/tentacle/` with checksums
- Cache invalidation when checksum changes
- Change summary included in LLM context when architecture evolves
- Graceful fallback when OctopusGarden repo is unreachable
- Tests cover caching, invalidation, fallback
Design Notes
Cache files locally with metadata JSON. When architecture.md changes, include a "Recent Changes" section in the analysis context so the LLM can assess relevance against the latest architecture.
Generated by tentacle bootstrap plan.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels