feat: add cortex-code transcript provider#20
Open
jamescha-earley wants to merge 1 commit intovtemian:mainfrom
Open
feat: add cortex-code transcript provider#20jamescha-earley wants to merge 1 commit intovtemian:mainfrom
jamescha-earley wants to merge 1 commit intovtemian:mainfrom
Conversation
There was a problem hiding this comment.
1 issue found across 18 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="src/providers/cortex-code/transcripts.ts">
<violation number="1" location="src/providers/cortex-code/transcripts.ts:237">
P2: Hardcoded source string diverges from the canonical CORTEX_CODE_SOURCE_KIND, risking identifier drift and downstream mismatches.</violation>
</file>
Since this is your first cubic review, here's how it works:
- cubic automatically reviews your code and comments on bugs and improvements
- Teach cubic by replying to its comments. cubic learns from your replies and gets better over time
- Add one-off context when rerunning by tagging
@cubic-dev-aiwith guidance or docs links (includingllms.txt) - Ask questions if you need clarification on any suggestion
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.
Add a new provider that discovers and parses Snowflake Cortex Code conversation transcripts from ~/.snowflake/cortex/conversations/*.json. - Scopes discovery to workspace via working_directory matching - Detects running/idle/completed status from last_updated recency - Extracts connection name, message count, tool call count, session type - Caches file headers by mtime to skip unchanged files - Registers as default provider alongside cursor, claude-code, codex, opencode - 41 new tests across schemas, discovery, transcripts, and provider integration .... Generated with [Cortex Code](https://docs.snowflake.com/en/user-guide/cortex-code/cortex-code) Co-Authored-By: Cortex Code <noreply@snowflake.com>
12add4c to
c645adf
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
cortexCodetranscript provider that discovers and parses Snowflake Cortex Code conversation transcripts from~/.snowflake/cortex/conversations/*.jsonworking_directorymatching, detects running/idle/completed status fromlast_updatedrecency and active tool callsTest plan
npm run checkpasses (biome + typecheck + 262 tests across 36 files)providers/cortex-codeentry pointChecklist
npm run checkpasses.... Generated with Cortex Code
Summary by cubic
Adds a new
cortexCodetranscript provider that discovers and parses Snowflake Cortex Code session JSONs and normalizes them into agent snapshots. It’s included in the default provider set for observers.New Features
~/.snowflake/cortex/conversations/*.json, scoped byworking_directory.last_updatedrecency and active tool calls.@agentprobe/core/providers/cortex-code; registered as a default provider; 41 tests added.Migration
createObserver()now includescortexCode()by default.cortexCodefrom@agentprobe/core/providers/cortex-codeand pass options likecortexHomePath,maxFiles, or disablewatch.Written for commit c645adf. Summary will update on new commits.