File system intelligence tool — agentic directory analysis via Claude API
Find a file
Jeff Smith 907dcf0a37 refactor: replace single-shot API with multi-pass agentic investigation
Rewrites ai.py from a single Claude API call into a multi-pass,
cache-driven agent architecture:

- Per-directory isolated agent loops (max 10 turns each) with context
  discarded between directories
- Leaves-first processing order so child summaries inform parents
- Disk cache (/tmp/luminos/{uuid}/) persists across runs for resumability
- Investigation ID persistence keyed by target realpath
- Separate synthesis pass reads only directory-level cache entries
- Replaces urllib with Anthropic SDK (streaming, automatic retries)
- Token counting with 70% context budget threshold for early exit
- parse_structure tool via tree-sitter (Python, JS, Rust, Go)
- python-magic integration for MIME-aware directory listings
- Cost tracking printed at end of investigation

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 12:13:55 -06:00
luminos_lib refactor: replace single-shot API with multi-pass agentic investigation 2026-03-30 12:13:55 -06:00
.gitignore chore: initial project scaffold 2026-03-30 09:57:11 -06:00
luminos.py feat: add AI-powered directory analysis via Claude API 2026-03-30 10:03:48 -06:00