feat(evolve-lite): per-project config file to toggle auto-learn and auto-recall
Currently there's no way to disable auto-learn or auto-recall without editing hooks.json directly or reaching into plugin internals. This makes it hard to opt out on a per-project basis.
Proposal
Add support for .evolve/config.toml — a per-project config file that controls hook behavior:
# Automatically learn from conversations after each task (default: true)
auto_learn = false
# Inject learned entities before each prompt (default: true)
# auto_recall = false
Both keys default to true when absent, so existing installs are unaffected.
Changes
lib/entity_io.py — add load_config() using tomllib (stdlib, Python 3.11+). Search order mirrors find_entities_dir(): CLAUDE_PROJECT_ROOT/.evolve/config.toml → .evolve/config.toml.
skills/recall/scripts/retrieve_entities.py — early exit at start of main() if auto_recall = false.
hooks/hooks.json — update Stop hook agent prompt to check auto_learn before running the learn skill.
Notes
- The file can be committed (team-wide default) or gitignored (per-developer preference)
EVOLVE_ENTITIES_DIRstill overrides entity storage location; it does not affect config resolution- Malformed or missing config files are silently ignored (defaults apply)