Repository navigation
v1.5.0
What's New
Schema versioning & structured errors
- All
--jsonoutputs includeschemaVersion: 1andcodesessionVersionfor forward compatibility - Structured error shape:
{ error: { code, message } }— parseerror.code, never string-compare - Exit code
1on all errors, including--jsonmode (previously exit 0 with error field)
Git-based file/commit accuracy
startGitHeadcaptured atcs start- On
cs end, runsgit diff --name-statusandgit logfrom 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 startfromrepo/apps/webscopes torepo/ gitRootfield in all JSON output
Pricing source transparency
cs log-ai --jsonreturnspricing: { source, modelKnown, inputPer1M, outputPer1M }- source is
built-in|custom|manual
Provider-namespaced pricing
cs pricing set --provider openai gpt-4o 2.50 10.00stores asopenai/gpt-4o- Lookup tries
provider/modelfirst, falls back to plainmodel
Atomic DB migration
~/.devsessionto~/.codesessionmigration: copy, integrity_check, use- Migration notice on stderr (doesn't break
--jsonstdout) - 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-cliOpenClaw users
clawhub install codesessionThen start a new OpenClaw session — the agent picks up the skill automatically.
Full Changelog: v1.4.0...v1.5.0