Skip to main content

Lore

Lore — agents that know why. Deterministic. Read-only. No RAG, no guessing.

CI PyPI Python License: MIT

Give your coding agent the decisions your team already made — so it stops re-doing things you ruled out.

Lore keeps your team's recorded knowledge — requirements, decisions, designs, roadmaps, and prompts — as typed Markdown in your repo and serves it read-only to Claude Code, Cursor, and Claude Desktop over MCP, so the agent cites your decisions instead of violating them. It is built on RAC — Requirements as Code, the open-source engine underneath; the package, CLI, and MCP server ship under the rac name.

Install

pip install requirements-as-code

Requires Python 3.11+. uv tool install requirements-as-code also works.

Connect your agent

Claude Code (from your repo root):

claude mcp add lore -- rac mcp

Claude Desktop / Cursor (mcpServers in the client config):

{
  "mcpServers": {
    "lore": { "command": "rac", "args": ["mcp", "--root", "/absolute/path/to/your/repo"] }
  }
}

Author and enforce artifacts

rac quickstart             # one command: set up identity + scaffold your first artifact
rac validate rac/          # check every artifact in a directory
rac inspect requirement.md # see its type and completeness
rac review rac/            # full repository review, worst problems first
rac export rac/ --html --out lore-export.html    # the Portal, one file

Importing an existing decision

Already have decisions in Confluence, Notion, or loose Markdown? The rac-import agent skill turns one existing document into one valid RAC artifact, with a human-review step before anything is written.

rac skill install rac-import   # installs into .claude/skills/ (Claude Code / Cursor auto-discover)

Then ask your agent, in plain language: "import this decision doc into RAC" (paste the text or give a path). The skill reads the real schema with rac schema, drafts the artifact from only what your document says, and shows you the proposed type, title, and any relationships to confirm or correct before it writes a file. It scaffolds with rac new (which mints the id), then closes on rac validate — and offers fixes if validation fails, so it never leaves an invalid artifact behind. It is single-document by design; for multi-format or bulk conversion use the rac-ingest skill.

Who it's for

  • Teams running coding agents heavily (Claude Code, Cursor) who are tired of the agent ignoring decisions the team already made.
  • Teams who already write ADRs and want those decisions to actually shape what the agent does.
  • Anyone who wants the why behind their software versioned alongside the code.

How it relates to OKF

Google's Open Knowledge Format (OKF) standardises the carrier — a Git tree of Markdown with YAML front matter — and is deliberately permissive: an OKF consumer must not reject a bundle for missing fields, unknown types, or broken links. RAC writes that same carrier and adds what OKF leaves to the consumer: write-time enforcement in CI. rac validate and rac relationships --validate reject malformed artifacts, broken or ambiguous links, references to superseded decisions, and relationship edges a type does not support — deterministically, before the knowledge lands. OKF is read-optimised interchange; RAC is write-time enforcement, and rac export --okf turns any RAC repo into a conformant OKF bundle — so the two compose rather than compete.

Documentation

Full documentation: https://tcballard.github.io/requirements-as-code/

Project status

Lore is early and evolving quickly. The MCP server ships today. Contributions, ideas, and experiments welcome — see CONTRIBUTING.md.

License

MIT

Metadata

Release files for requirements-as-code 0.19.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for requirements-as-code 0.19.0
File Size Uploaded Provenance Actions
requirements_as_code-0.19.0.tar.gz 3.3 MB With provenance Details for requirements_as_code-0.19.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for requirements-as-code 0.19.0
File Interpreter ABI Platform Actions
requirements_as_code-0.19.0-py3-none-any.whl Python 3 none any Details for requirements_as_code-0.19.0-py3-none-any.whl

Total release size: 3.6 MB

Release files / requirements_as_code-0.19.0.tar.gz

Download URL requirements_as_code-0.19.0.tar.gz
Size 3.3 MB
Tags Source
SHA-256 checksum
How to use checksums
d110db8b01eda6aa38ce0a7c2d64036ff68196606201d4e607350e51e1939cff
BLAKE2b-256 checksum
How to use checksums
287c9b9208805b905b158bf7b24076016ea9e683fdb945f690fc1519594d8a73
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 15, 2026.

Transparency log

Release files / requirements_as_code-0.19.0-py3-none-any.whl

Download URL requirements_as_code-0.19.0-py3-none-any.whl
Size 297.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2ce6f2839e88e76097936a8af2a5d2505db76228d472618ee0e17666abafa50c
BLAKE2b-256 checksum
How to use checksums
1615cbc92eea48934a9e24a44a1f3fc91ca270ab3fd50e680eb1e93b65c88c5e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 15, 2026.

Transparency log

Security for requirements-as-code 0.19.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for requirements_as_code-0.19.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 15, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page