Skip to content

Lore CLI v0.1.0: First Official Release

The Lore CLI is officially available on npm. Install it with:

Terminal window
npm install -g lore-protocol

This is the first public release of the tool described in our paper. It implements the full Revised Specification v1.0 — every command, trailer type, and output format described in the documentation.

15 commands covering the full workflow:

  • Setup: lore init, lore doctor
  • Query: lore context, lore constraints, lore rejected, lore directives, lore tested (alias: coverage), lore why, lore search, lore log, lore stale, lore trace
  • Authoring: lore commit, lore validate
  • Maintenance: lore squash

12 trailer types for structured decision context: Lore-id, Constraint, Rejected, Confidence, Scope-risk, Reversibility, Directive, Tested, Not-tested, Supersedes, Depends-on, Related.

Dual output: human-readable colored text by default, structured JSON with --json for agent consumption.

v0.1.0 ships with pre-built instruction files that teach AI coding agents to use Lore automatically. Copy one file into your project:

AgentDestination
Claude CodeAppend skills/adapters/claude-code.md to your CLAUDE.md
CursorCopy skills/adapters/cursor.mdc to .cursor/rules/lore.mdc
GitHub CopilotAppend skills/adapters/github-copilot.md to .github/copilot-instructions.md
WindsurfAppend skills/adapters/windsurf.md to .windsurfrules
AiderCopy skills/adapters/aider.md to .aider/lore-instructions.md

Each adapter tells the agent to query lore constraints, lore rejected, and lore directives before modifying code, and to write Lore-enriched commits with structured JSON.

Lore Protocol is MIT licensed and built in the open. Source code, issues, and contributions are welcome on GitHub.

Terminal window
npm install -g lore-protocol
cd your-project
lore init

Then follow the Quick Start guide or jump straight to the CLI command reference.