Skip to content

v1.5.0

Choose a tag to compare

@brian-mwirigi brian-mwirigi released this 09 Feb 11:45
· 166 commits to main since this release

What's New

Schema versioning & structured errors

  • All --json outputs include schemaVersion: 1 and codesessionVersion for forward compatibility
  • Structured error shape: { error: { code, message } } — parse error.code, never string-compare
  • Exit code 1 on all errors, including --json mode (previously exit 0 with error field)

Git-based file/commit accuracy

  • startGitHead captured at cs start
  • On cs end, runs git diff --name-status and git log from start HEAD to backfill accurate file/commit counts — even in agent mode where watcher isn't running

Session scoping by git root

  • Sessions resolve to nearest git root, not exact cwd — prevents subdirectory fragmentation
  • Running cs start from repo/apps/web scopes to repo/
  • gitRoot field in all JSON output

Pricing source transparency

  • cs log-ai --json returns pricing: { source, modelKnown, inputPer1M, outputPer1M }
  • source is built-in | custom | manual

Provider-namespaced pricing

  • cs pricing set --provider openai gpt-4o 2.50 10.00 stores as openai/gpt-4o
  • Lookup tries provider/model first, falls back to plain model

Atomic DB migration

  • ~/.devsession to ~/.codesession migration: copy, integrity_check, use
  • Migration notice on stderr (doesn't break --json stdout)
  • Old files preserved — delete manually when ready

Docs

  • Integration contract: schemaVersion, error codes, exit codes, Windows notes
  • Session scoping by git root explained
  • Migration behavior documented (copy-only, which wins)
  • Provider pricing namespacing examples

Install

npm i -g codesession-cli

OpenClaw users

clawhub install codesession

Then start a new OpenClaw session — the agent picks up the skill automatically.

Full Changelog: v1.4.0...v1.5.0