ai-coach-core · the engine

Ai coach core

The part that runs without being asked. Every coach reads and writes through it.

#harness#memory#hooks#engine
install this one alone
$ claude plugin install ai-coach-core@ai-coach

How it flows

One session, start to finish

  • Automatic
  • Check or approval
  • Result
  1. AutomaticBrief at session startA ranked memory brief enters context, each line saying why it is there.
  2. AutomaticPrompt hintsNine detectors check what you type. At most two hints, shown to you, never the model.
  3. Check or approvalGuard and injection checkOpt-in guard blocks real credentials. Fetched content is scanned for injection, warn-only.
  4. AutomaticWork recordedEvery Edit, Write and Bash becomes a one-line observation; failures are marked.
  5. AutomaticSnapshot before compactionFiles you were in and what broke, handed back once by the next start.
  6. 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.