# lore

> Long-term project memory for AI agents to record architecture, decisions, and conventions in plain Markdown.

lore is a free AI agent skill on Agensi by TheaDust, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [TheaDust](https://www.agensi.io/creators/theadust)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Uses: 2
- Version: 1.0
- Last updated: 2026-10-08
- Security: scan passed (2026-10-08); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/lore
- Tags: ai-agents, documentation, project-management, markdown, knowledge-base

## About this skill

Stop losing critical project context to the "memory hole" of long AI chat sessions. Lore provides a framework-agnostic, long-term memory layer for your codebase that persists across agents, IDEs, and sessions. It captures the high-level architecture, design decisions, and coding conventions that live in a senior developer's head but rarely make it into the documentation.

### What it does
- **Persistent memory** stores project architecture, decisions, and conventions in plain Markdown files within a `.lore/` directory.
- **Bi-directional syncing** records new decisions or architectural changes after features, refactors, or bug fixes.
- **Platform mirroring** projects project memory into agent-specific files like `CLAUDE.md`, `.cursorrules`, or `AGENTS.md`.
- **Intelligent auditing** compares stored project memory against the actual source code to identify drift and stale information.
- **Context compression** generates a `SUMMARY.md` digest to help agents quickly ingest large knowledge bases without hitting token limits.

### How it works
1. **Initialize** the memory bank by scanning the codebase and workspace configuration to establish the initial `.lore/` structure.
2. **Record changes** using `sync` to capture the "why" behind non-trivial code modifications and update relevant entries.
3. **Recall context** via `query` to answer questions about project conventions or historical design choices.
4. **Maintain accuracy** through periodic `audit` and `compress` cycles to ensure memory matches reality and stays concise.

### Frameworks & tools
This skill is language and framework agnostic. It supports monorepo detection for pnpm, Yarn, npm, Lerna, Nx, Rush, Cargo, Go, and Bazel. It integrates with Claude Code, Cursor, Aider, and Cline via mirror files.

### Why this beats prompting it yourself
Manual prompts about project context are transient and inconsistent across sessions. This skill enforces a deterministic ID system and a structured ARCH/DEC/CONV schema that ensures your project's history remains searchable, auditable, and transferable between different AI agents.

### Use cases
- Record why a specific library was chosen over a popular alternative to prevent future refactoring loops.
- Enforce custom linting or architectural rules that generic AI models don't know by default.
- Onboard a new AI agent to a complex monorepo by providing a structured summary of every scope.
- Audit a legacy codebase to find where the actual implementation has drifted from documented conventions.

### Known limitations
Does not replace changelogs or version control. Requires manual confirmation for file mutations. Mirror updates are not triggered on every sync by default to avoid git noise.

## Requires

- Python

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the lore skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does Lore prevent project context from being lost during long AI chat sessions?

Lore creates a persistent, version-controlled `.lore/` directory in your codebase that stores high-level architectural decisions and conventions in Markdown, ensuring this context survives even when chat history is cleared.

### Which AI agents and IDEs are compatible with this skill?

Lore is framework-agnostic and works with any agent that can read local files, featuring built-in mirroring for tools like Claude Code, Cursor, Aider, and Cline by automatically updating their specific rule files.

### Can Lore detect if my project's documentation has become outdated?

The 'audit' feature scans your current source code and compares it against your stored memory files to identify 'drift,' alerting you when your documentation no longer matches the actual implementation.

### How does the skill handle very large codebases without hitting token limits?

Lore uses context compression to generate a `SUMMARY.md` digest, allowing agents to understand large, complex monorepos without consuming excessive tokens or hitting model context limits.

### Does Lore replace my existing version control or changelog workflow?

No, Lore is designed to complement Git by capturing the 'why' behind decisions and architectural patterns that aren't always clear from code diffs or commit messages alone.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
