local-search / scripts
Purpose
Small agent-callable wrappers around the Rust CLI for cleanup and maintenance.
Mental model & key files
local-search-cleanup.shdelegates tolsearch cleanup.- Scripts should stay thin; command behavior belongs in Rust.
Patterns to follow / invariants
- Dry-run by default for cleanup.
- Do not delete browser profile data or cookies from scripts.
- Prefer exact managed local-search targets over broad browser/process cleanup.
Common tasks → first action
- Need to stop the managed browser: run
scripts/local-search-cleanup.sh --kill. - Need to inspect cleanup state: run
scripts/local-search-cleanup.sh --pretty.
Gotchas
- The managed Chrome profile is persistent by design. Cleanup removes lock and DevTools marker files, not profile data.