Skip to content

LevelCode v0.7.2

Choose a tag to compare

@github-actions github-actions released this 19 Jul 21:59
3943d66

LevelCode v0.7.2

A focused follow-up to v0.7.1 that lands the headline feature: repository project rules. Drop an AGENTS.md into a repo and the agent follows your conventions from the first turn. Plus two autopilot/UX refinements and a clearer always-on working indicator.

Highlights

Project rules — AGENTS.md drives the agent

LevelCode now reads a project rules file from each workspace folder and folds it into the agent's system prompt.

  • Standard files: looks for AGENTS.md first, then falls back to CLAUDE.md or .cursorrules so existing repos keep working without a rename.
  • Multi-root aware: each folder's rules are labelled by folder name when detected; first-present file per folder wins.
  • ** Cached & bounded:** loaded once per run into the byte-stable system block, so it rides the prompt cache (~0.1× on reads); capped at 16 KB per file with a truncation marker.
  • Visible but quiet: when rules are active, a timeline chip (📋 project rules · AGENTS.md) appears at the top of the run.
  • Trust model: rules are repository-author text injected by design, but they yield to any direct request in the conversation and cannot disable host-side safety gates (deletion, sudo, force-push, remote-piped shells, publishing, etc.).

See the full write-up in docs/PROJECT-RULES.md.

Autopilot reacts immediately

The Autopilot toggle was snapshotted at run start, so flipping it mid-run had no effect on the in-flight run. It is now read live at every command decision, meaning the switch takes effect on the very next command.

A persistent working indicator

The previous working status was an ephemeral inline element that tool cards and streaming bubbles frequently cleared. The UI now shows a persistent bar above the composer whenever a run is streaming, with a label that tracks the current activity:

  • Thinking
  • Running command
  • Responding

It hides the instant the run ends, and it is an ARIA live region so screen readers announce state changes.

Under the hood

  • extensions/levelcode-ai/projectRules.js — pure, injected-file-system loader for rules discovery and truncation.
  • extensions/levelcode-ai/agent.js — reads rules once per run and renders the active-rules timeline chip.
  • extensions/levelcode-ai/test/projectRules.test.js — 12 cases covering discovery, alias fallback, first-present-wins, multi-root labels, empty-file skip, truncation, throwing reader, and a real-filesystem smoke test.
  • docs/PROJECT-RULES.md — documentation for users of the feature.

Test coverage

The release CI gate now runs 13 test files, including the new projectRules suite.

Full changelog: v0.7.1...v0.7.2