Blog

Skarn 0.39.0: Grok Build CLI 2.0 and Grok Build (formerly Cursor)

Skarn 0.39.0 reads the sessions written by Grok Build CLI 2.0 and by Grok Build (formerly Cursor), the desktop app. The scan and the session search cover them with the commands you already use. Sessions from Grok Build CLI 1.x and from earlier Cursor versions are read as before.

Published 2026-12-03. Skarn 0.39.0 was released on 2026-12-02. Measured on macOS with Grok Build CLI 2.0.6 and 2.0.7 and Grok Build (formerly Cursor) 3.33.4.

Which version you have

grok --version

On the Mac used here it prints grok 2.0.7 followed by a build id. For the desktop app, read the version in the application's About window; here it is 3.33.4.

The same commands

skarn assess scans every assistant on the machine and needs no license. To look at these sessions alone:

skarn assess --cli grok skarn recent --cli grok skarn search "<a phrase from a session>" --cli grok

Sessions of the terminal app are listed under grok. For the desktop app, use --cli cursor.

A Grok Build CLI 2.0 session lists its messages, its tool calls, its model and its token usage:

Project Branch CLI Model Msgs Tools Tokens Cost Duration Last ID acme-deploy grok grok-4.7 3 1 49.1K/668 - 15s 2026-12-02 23:35 f8e0ead1

One token, scanned

A Grok Build CLI 2.0.7 session was given a file that held a made-up GitHub token with a valid checksum, and asked to print it. The token belongs to no account. Skarn 0.39.0 reports it in the tool output and in the assistant's reply, masked:

$ skarn check --cli grok --hours 1 --severity low Act on this first 1. HIGH github-pat [g****9P] - acme-deploy - confidence high, active use, GitHub token, attack chain, last seen 2026-12-02 CRITICAL Multi-phase attack chain detected across kill chain stages (2-phase chain (taint-linked): generic-api-key --[g****9P]-->) - acme-deploy, tool input [confidence high] Reach: 1 session, 1 assistant, 1 project, execution unknown, chains 0 HIGH [LLM02:2025] Uncovered a GitHub Personal Access Token, potentially leading to unauthorized repository access and sensitive content exposure. [g****9P] - acme-deploy, tool result, assistant message [confidence high] also matched: dotenv-contents-leaked, generic-api-key Reach: 1 session, 1 assistant, 1 project, execution unknown, chains 0 HIGH [LLM02:2025 AML.T0057] Secret read by agent was echoed back in output (active use detected) [g****9P] - acme-deploy, assistant message [confidence high] Reach: 1 session, 1 assistant, 1 project, execution unknown, chains 0 12:35AM INFO 1 sessions scanned (140 KB) in 0.5s 12:35AM INFO 255 rules loaded (155 community + 100 ai-specific) 12:35AM INFO use --rules <path> to add custom detection rules 12:35AM WARNING 5 incidents (11 total matches) 12:35AM INFO by severity: 1 critical, 4 high, 0 medium, 0 low (1 critical is an attack chain or behavior with no secret value) 12:35AM INFO session risk score: 76/100 12:35AM WARNING 1 attack chain(s) detected 12:35AM WARNING 2 secret(s) exposed - rotate any live credentials: HIGH [github-pat] g****9P - acme-deploy also matched: dotenv-contents-leaked, generic-api-key HIGH [secret-echo-back] g****9P - acme-deploy

skarn check needs a registered license of any tier. The value is never printed: the preview keeps a short prefix and suffix.

The same session is searchable:

$ skarn search "made-up token" --cli grok --hours 1 grok [f8e0ead1] acme-deploy [USER]: ... nd show me its output. The file holds a made-up token used for a scanner demonstration. grok [f8e0ead1] acme-deploy [ASST]: ``` # made-up token for a scan demonstration, belongs to no account GITHUB_TOKEN=g****9P ``` 2 matches in 1 session

What was measured

macOS only. Grok Build CLI 2.0.6 and 2.0.7; the output above is one headless 2.0.7 session. Grok Build (formerly Cursor) 3.33.4: a session it wrote is listed under cursor on the same Mac. Linux and Windows were not measured.

Update

Install or update Skarn, then run skarn assess.

Related: everything in Skarn 0.39.0, what Grok Build CLI picks up from Claude Code and Cursor, where each assistant stores sessions, what Skarn is