Repository navigation
feat: optional LLM classifier and guidance triggers - #27
Open
BaconDroid wants to merge 2 commits into
Open
BaconDroid wants to merge 2 commits into
BaconDroid wants to merge 2 commits into
Conversation
Fix the temporary-reset baseline, read assistant-shaped messages, merge guidance into the first system prompt, and replace Zod config parsing with a small validator.
Add an optional classifier (default opencode/big-pickle) and afterIdle/afterUserMessage triggers for the guidance. The classifier uses the same guidance, the last compaction summary or the current segment, and the current message last. Session state is bounded at 5,000 entries, expires after seven days, and is removed when a session is deleted.
BaconDroid
force-pushed
the
feat/classifier
branch
from
October 20, 2026 01:25
5388458 to
b9f9fef
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an optional LLM classifier and scopes the guidance to the turns that matter.
triggers.afterIdle: first request after an idle or session start when no user message is pending.triggers.afterUserMessage: first request after a real user message.triggersfor the original behavior (guidance on every request); bothfalsedisables the guidance.classifieris disabled by default and keepsopencode/big-pickleconfigured. When enabled, it runs on real user messages, uses the same guidance as its system prompt, the last compaction summary (assistant message withsummary: true) or the messages since session start/last idle, and the current message last. It applies the returned level to the triggering message.session.deleted.Stacked on #23.
Tests
pnpm verifypasses (28 tests, format, lint, typecheck, build).