Repository navigation
feat: add Devin local-agent session support - #74
Open
omeraltinova wants to merge 1 commit into
Open
omeraltinova wants to merge 1 commit into
omeraltinova wants to merge 1 commit into
Conversation
Devin's local agent (the `devin` CLI and the Devin IDE built-in agent via ACP) stores sessions in ~/.local/share/devin/cli/sessions.db. Since the IDE moved from Cascade to ACP these sessions were invisible to Agentlytics. - New editors/devin-cli.js reads `sessions` and `message_nodes`, deduplicates the message forest by message_id (context compaction re-inserts earlier nodes under new roots) and skips system-prompt nodes - Extracts per-message input/output/cache-read/cache-write tokens, the generation model and tool calls; tool calls are also rendered into the assistant content as "[tool-call: name(args)]" like the Claude and Codex adapters - Maps Devin model ids to canonical ids: strips the reasoning-effort suffix and reorders "claude-5-fable" to "claude-fable-5" - windsurf.js merges these chats into the existing 'devin' source next to the Cascade trajectories and routes their messages by the persisted _type = 'devin-cli' marker, so cached chats refetch without the app running; ~/.config/devin/mcp_config.json is registered under Devin - bubbleCount counts user, assistant and tool messages so it matches the analyzed message count and stays stable across rescans
This branch has not been deployed
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
Devin's local agent (the
devinCLI and the Devin IDE built-in agent viaACP) stores sessions in
~/.local/share/devin/cli/sessions.db. Since theIDE moved from Cascade to ACP these sessions were invisible. This reads
that store and merges the sessions into the existing Devin source.
Changes
editors/devin-cli.js: readssessionsandmessage_nodes, dedupesthe message tree by
message_id, skips system-prompt nodes, extractsper-message tokens (input/output/cache read/cache write), model and
tool calls.
gpt-5-6-sol-medium→gpt-5-6-sol,claude-5-fable→claude-fable-5).editors/windsurf.js: merges these chats under sourcedevinandroutes their messages via a persisted
_typemarker. No app needs tobe running.
Verification
Local store with 11 sessions: 4 with conversation, 7 empty (skipped).
Message counts match distinct
message_ids. Devin lists 37 sessions(33 Cascade + 4 local agent), none counted twice.
Pricing for
claude-fable-5andgpt-5-6-soldepends on #73.