ai-coach-core · the engine
Ai coach core
The part that runs without being asked. Every coach reads and writes through it.
$ claude plugin install ai-coach-core@ai-coach
How it flows
One session, start to finish
- Automatic
- Check or approval
- Result
- AutomaticBrief at session startA ranked memory brief enters context, each line saying why it is there.
- AutomaticPrompt hintsNine detectors check what you type. At most two hints, shown to you, never the model.
- Check or approvalGuard and injection checkOpt-in guard blocks real credentials. Fetched content is scanned for injection, warn-only.
- AutomaticWork recordedEvery Edit, Write and Bash becomes a one-line observation; failures are marked.
- AutomaticSnapshot before compactionFiles you were in and what broke, handed back once by the next start.
- ResultSession distilledOne Haiku call at session end writes a summary and 0–3 learnings.
The engine runs without being asked.
Hooks and a local SQLite database in your home directory. Every coach reads and writes through it. It has no skills of its own.
A session brief
Capped and ranked, with the reason each line is there: branch, global, from a teammate, distilled.
Corrections recorded
When a failure surfaces, that fact is kept. The richest signal in a session, and the one nothing else captures.
Session-end distillation
One Haiku call turns a session into 0–3 learnings, marked distilled. Unrecalled for 90 days, they are pruned.
A snapshot before compaction
Which files you were in, what broke last, what is still open — handed back once, then deleted.
Prompt hints
At most two, shown to you and never to the model. Exploratory questions are exempt.
Injection check
Fetched pages and outside files are scanned for injection markers. Warn-only, and honest that it is a pre-filter, not a gate.
Secrets guard — off by default
Turn it on and real credentials are blocked outright. It ships off, so a default install does no credential blocking. Said plainly.