Kode follows Semantic Versioning for its public interfaces.
This document defines what is considered “public/stable”, what counts as a breaking change, and how deprecations should be handled.
Kode considers the following as public contracts:
- CLI surface
- Commands, flags, option names, defaults, exit codes, and user-visible help text ordering for stable flags.
kode --help-liteoutput is treated as a stable compatibility contract.
- Protocols
stream-jsonoutput format (used by print mode / daemon WS events).- ACP/MCP schemas and method/tool surfaces, where documented.
- On-disk formats
.kode/**layouts (and documented legacy.claude/**compatibility).- Settings/config JSON schemas where documented.
Anything not documented may still be relied upon by users; changes should be treated cautiously and guarded by tests.
- MAJOR: breaking changes to any public interface.
- MINOR: backwards-compatible additions (new features, new optional flags, new tools).
- PATCH: bug fixes and internal refactors with no user-visible changes.
Examples of breaking changes:
- Removing or renaming a CLI command/flag, changing defaults, or changing help output for stable flags.
- Changing
--help-liteoutput. - Changing
stream-jsonmessage shapes in a way that breaks existing consumers. - Changing config file keys/meaning without a migration path.
- Changing tool registry names/order where consumers rely on stable naming.
Allowed without a MAJOR bump:
- Adding new optional CLI flags when opt-in and not affecting default behavior.
- Adding new tools or providers (as long as existing defaults/flows remain unchanged).
- Adding new protocol event variants while keeping existing variants valid.
When deprecating a public interface:
- Document the deprecation and replacement in
docs/. - Keep the deprecated behavior working for at least one MINOR release cycle.
- Provide a clear migration path (replacement flag/command/config).
- Only remove it in a MAJOR release, unless it is unsafe and must be removed immediately.
Kode uses contract tests to freeze key public surfaces (CLI help, tool lists, protocol schemas). Any refactor must keep these tests passing unless intentionally making a breaking change and bumping MAJOR.