Replies: 1 comment
|
Seems like a good direction for development to introduce multiple providers. One thing that's interesting for me is the fixed set of activities per AgentEvent. The list of values for 'activity' key seems small. Also, why we need to have a set here? |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Problem
The current activity detection polls
~/.claude/projects/**/*.jsonltranscripts and uses regex/heuristics to map text → activity state. The project's own README notes this "often misfires." This also hard-couples Pixel Agents to Claude Code CLI — users of Aider, Cursor, continue.dev, or custom agent runtimes cannot adopt the extension.Proposal
Introduce an abstract
AgentEventSourceinterface:Ship a default
ClaudeCodeJsonlSourceimplementing the interface (preserving current behavior). Allow third-party sources via extension settings or a registration API.Acceptance criteria (binary)
AgentEventSourceinterface exported from extension's public APIClaudeCodeJsonlSourceis the default implementation, behaviorally identical to v1.3.0pixel-agents.registerSource()or equivalentAgentEvent, not raw textdocs/custom-event-sources.mdOut of scope
Why this benefits all users
Fixes the "misfires" symptom for Claude Code users (typed events > text matching). Unlocks the repo for any AI-agent runtime. Keeps current behavior as default — zero breakage.
All reactions