difflore-core 0.4.0

Core library for the difflore CLI — rule store, retrieval, MCP server, hooks, cloud sync. Not intended for direct use; depend on `difflore-cli` instead.
docs.rs failed to build difflore-core-0.4.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: difflore-core-0.1.0

difflore

CI Apache 2.0 MCP

DiffLore is an open-source CLI that imports your private PR/MR review backlog into source-backed local rules for AI coding agents.

It stores rules in local SQLite, wires them into local AI CLIs through MCP and hooks, and serves the relevant review judgment before an agent edits code.

Install

macOS/Linux:

curl -fsSL https://difflore.dev/install.sh | sh

Windows PowerShell:

irm https://difflore.dev/install.ps1 | iex

Update later:

difflore update

GitHub import needs git and gh auth login. GitLab import uses a stored PAT:

echo "<TOKEN>" | difflore auth gitlab

Quickstart

Try the demo:

difflore try

Use it in a repo:

cd your-repo
difflore init
difflore import-reviews --dry-run
difflore import-reviews
difflore agents install
difflore status
difflore recall --diff

DiffLore works with private repos and local AI CLIs. It never requires a public repo, and it never commits, pushes, opens PRs, or posts GitHub comments.

Commands

Command Purpose
difflore try Run the demo
difflore init Set up the current repo
difflore import-reviews Import private GitHub PR or GitLab MR review backlog locally
difflore agents install Wire DiffLore into local AI CLIs and agents
difflore status Show readiness and the next command
difflore memory Inspect local rules, drafts, queues, and autopilot state
difflore memory review Review pending local memory
difflore recall --diff Retrieve matching rules for the current diff
difflore review --diff all Review the current diff without modifying files
difflore fix Apply rule-aware local fixes
difflore capabilities --json Print the machine-readable CLI/MCP contract

Run difflore --help for the full command list.

Agents

difflore agents install configures MCP and hooks for supported local agents. Run difflore agents status to inspect the current machine.

Local AI CLI calls that need an LLM backend use gate4agent.

Data

DiffLore is local-first:

  • Rules and activity are stored in local SQLite by default.
  • Private review imports do not require public repos or cloud upload.
  • Cloud sync is optional and explicit through difflore cloud ...; use it for team sync, multi-device access, or managed token/embedding paths.
  • MCP is for agent context, retrieval, explanation, and proposals.
  • Approval, rejection, sync, auth, provider setup, and file mutation stay in the CLI.

Development

cargo fmt --all --check
cargo check -p difflore-cli
cargo test -p difflore-cli

Issues and PRs are welcome. Do not include secrets, private PR text, or private code in examples.

For suspected vulnerabilities, email hello@difflore.dev instead of opening a public issue. See SECURITY.md.

License

Apache 2.0. See LICENSE.