Skip to main content

Lore — Agent Task Manager

  _      ___  ___ ___
 | |    / _ \| _ \ __|
 | |__ | (_) |   / _|
 |____| \___/|_|_\___|
 Agent Task Manager

Lore was built entirely by AI agents. No code was written by hand. Every feature, test, refactor, and commit was executed by an AI worker operating under missions tracked in Lore itself. The human role was operator: writing requirements, reviewing output, unblocking missions, shipping releases.

That is not a gimmick. It is proof of concept. If you are running AI agents to build software, Lore is what gives them memory.


The Problem

Running AI agents on real software projects surfaces two problems quickly.

Agents lose track of work. Agents are stateless. They do not know what has been done, what is blocked, or what to do next unless you tell them. Without shared state, agents repeat themselves, contradict each other, and stall. You end up babysitting instead of operating.

Agents do not know your project. Every new conversation, the agent has no memory of your architecture decisions, your coding standards, the choices you made last sprint. You re-explain the same things session after session. New features drift from old ones. Consistency erodes.

Lore solves both.


What Lore Does

Lore is two systems in one tool.

Task engine — Quests, Missions, and Doctrines give agents structured state. An agent always knows what to work on, what it is blocked by, and how to behave: a Mission points at a doctrine mission file, and lore show hands the worker its instructions alongside its task. The orchestrator always knows what is done, what is in progress, and what is waiting.

Project memory (Codex) — A queryable knowledge graph of typed markdown documents living in .lore/codex/. Architecture decisions, conceptual guides, workflow standards, design records — all linked and searchable. Any agent can orient itself before acting. New features stay consistent with old ones. You stop repeating yourself.

Lore is dumb infrastructure. It stores state and answers queries. It does not orchestrate, spawn agents, or make decisions. All intelligence stays in the consuming orchestrator — Claude, Codex, Gemini, your own pipeline. Lore is the notepad with structure.


Install

pip install lore-agent-task-manager

Or with uv:

uv pip install lore-agent-task-manager

Then initialize a project:

lore init

In a terminal, lore init asks how agents work with Lore's files (the Lore CLI, or their own file tools) and which optional features the project uses: Memory (codex, rites, glossary), Quests & Missions and Watchers. Doctrines, Artifacts and lore health are always installed. Memory has three opt-ins (search, index, graph and bindings) and Quests need the Lore CLI whatever the route. It installs only the skills and instruction text those answers use, and an instruction file never names a command the project turned off. Every question has a flag, so a script answers without a terminal:

lore init --agent claude --route harness --memory yes --memory-search yes \
  --quests no --yes

--access and --skills still work as deprecated aliases. A project initialised before the feature questions is migrated once.


Task Engine — Commands to Know

lore ready               # what should I work on next?
lore show <id>           # what is this quest or mission?
lore claim <id>          # I am working on this
lore done <id>           # finished
lore block <id> "reason" # stuck — here is why
lore health              # audit project state — schemas, bindings, glossary

Quests group related work. Missions are individual tasks. An orchestrator creates them; agents claim and close them.

lore new quest "Build authentication"
lore new mission "Design auth schema" -q <quest-id>
lore list          # open quests
lore list missions # open missions

Missions can depend on each other. lore ready only surfaces unblocked work — agents never pick up a task before its dependencies are done.


Project Memory — Codex Commands

lore codex search "auth"          # find relevant documents
lore codex show <id>              # read one document (or many at once)
lore codex map <id>               # traverse the graph (bidirectional by default)
lore codex chaos <id>             # random-walk traversal from a seed document
lore codex list                   # see everything
lore impacts <path>               # which codex docs govern this file?
lore impacts <codex-id>           # which files does this doc bind?
lore glossary search <term>       # look up project vocabulary

The Codex is a graph of typed markdown documents. Documents link to each other via a related field, and bind to source files via a binds field. An agent reading a decision document can follow links to the conceptual guide, the workflow spec, and the code it governs — all in one traversal.

New agents orient using the Codex before doing anything else. This is how consistency survives across sessions, across agents, and across months of development.


Core Vocabulary

Term What it is
Quest A body of work — a feature, bug fix, refactor, or spike
Mission One task inside a Quest. The unit an agent picks up and closes.
Doctrine A workflow template — a directory of prose: a design document describing the missions and their ordering, plus one mission file telling a worker how to do its part
Artifact A reusable document template agents scaffold new files from
Watcher A YAML definition for an agent that monitors and reacts to project state
Codex The project knowledge graph — decisions, concepts, standards
Glossary Project-specific controlled vocabulary, auto-surfaced on lore codex show
Source Raw upstream material (tickets, transcripts) captured verbatim under codex/sources/ — deletable once facts are in canonical docs

How It Fits Together

Lore is the foundation layer of the Camelot system:

Citadel  →  Realm  →  Lore
(UI)         (AI orchestrator)   (task engine — you are here)
  • Lore stores all state. Zero dependencies on Realm or Citadel.
  • Realm is the AI orchestration layer. It consumes Lore to run agents automatically.
  • Citadel is the human-facing UI for monitoring and control.

Any orchestrator can consume Lore. The Camelot stack is one way to use it — not the only way.


Python API

Realm and other orchestrators consume Lore via Python import rather than CLI:

from lore.api import Quest, Mission, MissionStatus, DoctrineListEntry

lore.api.__all__ defines the stable public API surface. lore.api is a facade that re-exports selected names from the internal modules; every name in it carries semver stability guarantees, and anything not in __all__ is an internal detail that may change without notice.

Every CLI command is backed by a Python function. The CLI is a thin wrapper — the real interface is the Python modules underneath.


Philosophy

Three principles drive every design decision in Lore:

Dumb infrastructure. Lore stores data and answers queries — nothing more. No hidden state transitions, no autonomous decisions. Agents can rely on Lore doing exactly what they ask. All intelligence lives in the orchestrator.

Short commands. Most operations are lore [verb] or lore [verb] [id]. No flags required for common operations. Every CLI invocation costs context window — commands return everything needed in one call.

State is authoritative. If Lore says a Mission is blocked, it is blocked. No other system maintains a parallel copy. Agents trust the state they read.


Built by AI. Operated by a Human.

Every line of code in Lore was written by an AI agent. The human role throughout was: write a requirement, dispatch a mission, review the result, mark it done.

The requirements were tracked in Lore. The agents oriented using the Codex. The workflow followed Doctrines, and each worker's brief was the doctrine mission file it was pointed at.

Lore built itself using itself. That is what it is designed to let you do.


Requirements

  • Python 3.11+
  • uv (recommended)

Development

uv sync
uv run pytest

Metadata

Release files for lore-agent-task-manager 0.14.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 lore-agent-task-manager 0.14.0
File Size Uploaded Provenance Actions
lore_agent_task_manager-0.14.0.tar.gz 2.5 MB Without provenance Details for lore_agent_task_manager-0.14.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lore-agent-task-manager 0.14.0
File Interpreter ABI Platform Actions
lore_agent_task_manager-0.14.0-py3-none-any.whl Python 3 none any Details for lore_agent_task_manager-0.14.0-py3-none-any.whl

Total release size: 3.1 MB

Release files / lore_agent_task_manager-0.14.0.tar.gz

Download URL lore_agent_task_manager-0.14.0.tar.gz
Size 2.5 MB
Tags Source
SHA-256 checksum
How to use checksums
d45ff2c231124f950ef453aabdb27a69a7e058eb6a769c7f2d71ba8db2c4f5d3
BLAKE2b-256 checksum
How to use checksums
31dc0af394aa68688bc789687b22f2029e1486d3fe94b5415af540542510c704
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"CachyOS Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / lore_agent_task_manager-0.14.0-py3-none-any.whl

Download URL lore_agent_task_manager-0.14.0-py3-none-any.whl
Size 610.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
09e9e3baa9923866eb1372cc744e71e6eda78c883bf7da2f58ec0f17e6332d12
BLAKE2b-256 checksum
How to use checksums
93d01bac51b1d7e5a3e9743cdff2e091dd17c89652b4c5f01855bc0395141956
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"CachyOS Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for lore-agent-task-manager 0.14.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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