File system intelligence tool — agentic directory analysis via Claude API
Find a file
Jeff Smith 8fb2f90678 feat(ai): skip survey pass for tiny targets (#7)
Adds a gate in _run_investigation that skips the survey API call when
a target has both fewer than _SURVEY_MIN_FILES (5) files AND fewer
than _SURVEY_MIN_DIRS (2) directories. AND semantics handle the
deep-narrow edge case correctly: a target with 4 files spread across
50 directories still gets a survey because dir count amortizes the
cost across 50 dir loops.

When skipped, _default_survey() supplies a synthetic dict with
confidence=0.0 — chosen specifically so _filter_dir_tools() never
enforces skip_tools from a synthetic value. The dir loop receives
a generic "small target, read everything" framing in its prompt and
keeps its full toolbox.

Reorders _discover_directories() to run before the survey gate so
total_dirs is available without a second walk.

#46 tracks revisiting the threshold values with empirical data after
Phase 2 ships and we've run --ai on a variety of real targets.

Smoke tested on a 2-file target: gate triggers, default survey
substituted, dir loop completes normally. Adds 4 unit tests for
_default_survey() covering schema, confidence guard, filter
interaction, and empty skip_tools.
2026-04-06 22:19:25 -06:00
docs chore: add dev workflow, branching discipline, ADHD protocols, session docs 2026-04-06 16:20:51 -06:00
luminos_lib feat(ai): skip survey pass for tiny targets (#7) 2026-04-06 22:19:25 -06:00
tests feat(ai): skip survey pass for tiny targets (#7) 2026-04-06 22:19:25 -06:00
.gitignore chore: ignore docs/wiki/ — separate git repo 2026-04-06 16:13:31 -06:00
CLAUDE.md chore: update CLAUDE.md for session 3 2026-04-06 21:15:27 -06:00
luminos.py feat: add -x/--exclude flag to exclude directories from scan and AI analysis 2026-04-06 14:32:12 -06:00
PLAN.md docs(plan): add Phase 2.5 context budget reliability (#44) 2026-04-06 21:59:01 -06:00
setup_env.sh chore: add venv setup script and update CLAUDE.md for optional deps 2026-03-30 12:14:13 -06:00