Skip to content

LevelCode v0.7.1

Choose a tag to compare

@github-actions github-actions released this 19 Jul 03:36
cdf2549

LevelCode v0.7.1

A feature-rich point release on v0.7.0 that makes day-to-day agent work faster and more legible: an autopilot mode, context compaction for long sessions, real cost + cache visibility in the editor, a redesigned command-approval card, and the fix that makes the Agents window reachable again.

Highlights

Autopilot — the agent runs, it doesn't ask

A new approvals control in the chat status bar. Default Approvals asks before every command (unchanged). Flip to Autopilot and the agent runs commands for you and verifies its own work instead of pausing — except a danger set that always stops and asks:

  • deleting files (rm, rimraf, git clean, find … -delete, the delete_file tool)
  • discarding uncommitted work (git reset --hard, git checkout -- ., git restore)
  • sudo, force-push / history rewrite, piping a remote script into a shell, publishing a package, and writes outside the project.

The classifier (commandSafety.js) is a pure, unit-tested security gate, deliberately biased to ask when unsure. File edits stay reviewable with Keep/Undo in either mode.

Context compaction — long sessions don't hit the wall

The agent transcript only ever grew, and a long run used to dead-end with "start a new chat." The context-window popover now has a Compact button: it summarizes the earlier turns into a briefing, keeps the most recent turns verbatim, and the session continues. The cut lands only on a safe goal boundary, so a tool_use/tool_result pair is never orphaned (agentMemory.js, unit-tested).

Cost and cache, made visible

  • Running $ spend — the response bar shows what each run cost and the credits left, in real retail micro-dollars from the metered gateway (no more length/4 estimates).
  • Cache read — the context-window popover (click the ring in the status bar) shows cache_read_input_tokens as a share of the turn's input, with the dot greening in proportion to the hit rate. Prompt caching bills those reads at ~0.1×, so this is the savings made legible.

The command-approval card is a proper permission dialog

Redesigned: a clear title, the reason, the command in a recessed well, and Skip / Run at opposite ends. Approving now re-engages auto-scroll so you follow the output; the shell highlighter can no longer drop a character from the displayed command; and the misleading zsh · cwd label is gone.

The Agents window is reachable again

v0.7.0 shipped a regression where a de-branding change gated OPEN_AGENTS_WINDOW_PRECONDITION on the wrong flag, making the Agents window (plus the Agent Plugins view and chat participants) unreachable. Fixed — the de-brand is gated on the specific menu item now, never on Setup.hidden.

Under the hood

  • Prompt-caching internals extracted into pure, exported functions (splitOutCachedTokens, withRollingCacheBreakpoint), each with tests.
  • New coverage: agentMemory, commandSafety, promptCaching, shHighlight — the release CI gate now runs 12 test files before it builds.

Notable new modules

  • extensions/levelcode-ai/commandSafety.js — the autopilot danger classifier
  • extensions/levelcode-ai/agentMemory.js — the compaction transcript surgery
  • extensions/levelcode-ai/test/{agentMemory,commandSafety,promptCaching,shHighlight}.test.js

Full changelog: v0.7.0...v0.7.1