Expand description
State classifiers: determine agent state from virtual screen content.
Each agent type (Claude, Codex, Kiro, Generic) has different prompt patterns, spinner indicators, and context exhaustion messages.
Structs§
Enums§
- Agent
Type - Agent type selector for the shim classifier.
- Narration
Line Kind - How a single output line should be treated by narration enforcement.
- Screen
Verdict - What the classifier thinks the agent is doing.
Constants§
Functions§
- classify
- Classify screen content based on agent type.
- classify_
narration_ line - Classify a single output line for narration-loop detection.
- classify_
with_ confidence - Classify screen content and return a confidence score for the match.
- detect_
claude_ dialog - Legacy alias for backward compatibility in tests.
- detect_
meta_ conversation - Detect meta-conversation patterns where the agent keeps planning or narrating without moving to concrete execution.
- detect_
narration_ pattern - Detect whether the current screen content looks like narration instead of concrete execution. This is intentionally screen-level so daemon health checks can count consecutive narration polls.
- detect_
startup_ dialog - Detect known startup dialogs that should be auto-dismissed by the shim. Works for Claude, Codex, and other agents that show trust prompts.