freshcrate
Skin:/
Home > AI Agents > lavra

lavra

A plugin with compound engineering workflows and memory for AI coding agents

Why this rank:Strong adoptionRelease freshnessHealthy release cadence

Description

A plugin with compound engineering workflows and memory for AI coding agents

README

Lavra (/ˈla.vɾɐ/ — Portuguese for "harvest")

License Release Beads CLI

Lavra turns your AI coding agent into a development team that gets smarter with every task.

A plugin for coding agents that orchestrates the full development lifecycle -- from brainstorming to shipping -- while automatically capturing and recalling knowledge so each unit of work makes the next one easier.

Claude Code OpenCode Gemini CLI Cortex Code

Quick Start | Full Catalog | Architecture | Security | Command Map | v0.7.6 Release Notes

Without Lavra

  • The agent forgets everything between sessions -- you re-explain context every time
  • Planning is shallow: it jumps to code before thinking through the problem
  • Review is inconsistent: sometimes thorough, sometimes a rubber stamp
  • Knowledge stays in your head. When a teammate hits the same bug, they start from zero
  • Shipping is manual: you run tests, create the PR, close tickets, push -- every time
Forgetful agent surrounded by scattered documents

With Lavra

  • Automatic memory. Knowledge is captured inline during work and recalled automatically at the start of every session. Hit the same OAuth bug next month? The agent already knows the fix.
  • Structured planning. Brainstorm with scope sharpening, research with domain-matched agents, adversarial plan review -- all before a single line of code is written.
  • Disciplined execution. Agents follow deviation rules (what to auto-fix vs. escalate), commit per task with traceable bead IDs, and verify every success criterion before marking work done.
  • Built-in quality gates. Every implementation runs through a review-fix-learn loop. Knowledge capture is mandatory, not optional.
  • Team-shareable knowledge. Memory lives in .lavra/memory/knowledge.jsonl, tracked by git. Your team compounds knowledge together.
Agent with memory climbing stairs of compounding knowledge

The workflow

Most of the time, you type three commands:

/lavra-design "I want users to upload photos for listings"

This runs the full planning pipeline as a single command: interactive brainstorm with scope sharpening, structured plan with phased beads, domain-matched research agents, plan revision, and adversarial review. The output is detailed enough that implementation is mechanical.

/lavra-work

Picks up the approved plan and implements it. Auto-routes between single and multi-bead parallel execution. Includes mandatory review, fix loop, and knowledge curation -- all automatic.

/lavra-ship

Rebases on main, runs tests, scans for secrets and debug leftovers, creates the PR, closes beads, and pushes the backup. One command to land the plane.

Add /lavra-qa between work and ship when building web apps -- it maps changed files to routes and runs browser-based verification with screenshots.

Who this is for

Anyone using coding agents who wants consistent, high-quality output instead of hoping the agent gets it right this time.

  • Non-technical users: /lavra-design "build me X" handles the brainstorming, planning, and research. /lavra-work handles the implementation with built-in quality gates. You get working software without needing to know how to code.
  • Solo developers: The memory system acts as a second brain. Past decisions, patterns, and gotchas surface automatically when they're relevant.
  • Teams: Knowledge compounds across contributors. One person's hard-won insight becomes everyone's starting context.

Install

Requires: beads CLI, jq, sqlite3

npx @lavralabs/lavra@latest

Or manual:

git clone https://github.com/roberto-mello/lavra.git
cd lavra
./install.sh               # Claude Code (default)
./install.sh --opencode    # OpenCode
./install.sh --gemini      # Gemini CLI
./install.sh --cortex      # Cortex Code
All commands

Pipeline (4): /lavra-design, /lavra-work, /lavra-qa, /lavra-ship

Supporting (9): /lavra-quick (fast path with escalation), /lavra-learn (knowledge curation), /lavra-recall (mid-session search), /lavra-checkpoint (save progress), /lavra-retro (weekly analytics), /lavra-import, /lavra-triage, /changelog, /test-browser

Power-user (6): /lavra-plan, /lavra-research, /lavra-eng-review, /lavra-review (15 specialized review agents), /lavra-work-ralph (autonomous retry), /lavra-work-teams (persistent workers)

30 specialized agents across review, research, design, workflow, and docs. Each runs at the right model tier to keep costs 60-70% lower than running everything on Opus.

See docs/CATALOG.md for the full listing.

How knowledge compounds

brainstorm  --DECISION-->  design
design      <--LEARNED/PATTERN--  auto-recall from prior work
research    --FACT/INVESTIGATION-->  plan revision
work        --LEARNED (inline)-->  mandatory knowledge gate
review      --LEARNED-->  issues become future recall
retro       synthesizes patterns, surfaces gaps

Six knowledge types (LEARNED, DECISION, FACT, PATTERN, INVESTIGATION, DEVIATION) are captured inline during work and stored in .lavra/memory/knowledge.jsonl. At session start, relevant entries are recalled automatically based on your current beads and git branch. The system gets smarter over time -- not just for you, but for your whole team.

Configuration

.lavra/config/lavra.json can be created manually or by the /lavra-setup command. It allows users to toggle workflow phases, planning and execution behavior:

{
  "workflow": {
    "research": true,             // run research agents in /lavra-design
    "plan_review": true,          // run plan review phase in /lavra-design
    "goal_verification": true,    // verify completion criteria in /lavra-work and /lavra-ship
    "testing_scope": "targeted"   // "targeted" (hooks, API routes, complex logic only) or "full" (all tests)
  },
  "execution": {
    "max_parallel_agents": 3,     // max subagents running at once
    "commit_granularity": "task"  // "task" (atomic, default) or "wave" (legacy)
  },
  "model_profile": "balanced"     // "balanced" (default) or "quality" (opus for review/verification agents)
}

/lavra-setup: run this to generate a codebase profile (stack, architecture, conventions) that informs planning.

Acknowledgments

Built by Roberto Mello, extending compound-engineering by Every. Task tracking by Beads.

Inspired by Every's writing on compound engineering, with ideas from Mario Zechner, Simon Willison, Get Shit Done, gstach by Garry Tan and many others. Thanks to my friend Dan for rubber-ducking Lavra.


Lavra (/ˈla.vɾɐ/) is the Portuguese word for "harvest" — the idea that every session plants knowledge that the next one reaps. Named by Roberto Mello, who is Brazilian.

Release History

VersionChangesUrgencyDate
v0.7.6**Full Changelog**: https://github.com/roberto-mello/lavra/compare/v0.7.5...v0.7.6High4/21/2026
v0.7.5## What's Changed * lavra-ceh: split lavra-work + add Karpathy principles by @roberto-mello in https://github.com/roberto-mello/lavra/pull/9 * lavra-ziy: caveman-lite prose guide, rg check, agent compression by @roberto-mello in https://github.com/roberto-mello/lavra/pull/10 * lavra-3hp.2: scope lavra-review to introduced diff, split pre-existing findings by @roberto-mello in https://github.com/roberto-mello/lavra/pull/12 **Full Changelog**: https://github.com/roberto-mello/lavra/compare/v0.7.High4/19/2026
v0.7.4**Full Changelog**: https://github.com/roberto-mello/lavra/compare/v0.7.3...v0.7.4High4/8/2026
v0.7.3**Full Changelog**: https://github.com/roberto-mello/lavra/compare/v0.7.2...v0.7.3Medium4/8/2026
v0.7.2## What's Changed * fix: arithmetic increment crashes installer steps 5-7 under set -e by @xanharris in https://github.com/roberto-mello/lavra/pull/6 * fix(memory-capture): scope extraction to first matching bd comment line by @xanharris in https://github.com/roberto-mello/lavra/pull/7 * v0.7.2: review_scope config, configuration page, agent colors, memory hardening by @roberto-mello in https://github.com/roberto-mello/lavra/pull/8 ## New Contributors * @xanharris made their first contribution Medium4/8/2026
v0.7.1## What's Changed * feat: .lavra/ migration, ASCII banner, npm publish as @lavralabs/lavra by @roberto-mello in https://github.com/roberto-mello/lavra/pull/3 **Full Changelog**: https://github.com/roberto-mello/lavra/compare/v0.7.0...v0.7.1Medium3/27/2026
v0.7.0## What's Changed * bdcompound-9f5 epic work by @roberto-mello in https://github.com/roberto-mello/lavra/pull/2 **Full Changelog**: https://github.com/roberto-mello/lavra/compare/v0.6.8...v0.7.0Low3/18/2026
v0.6.8**Full Changelog**: https://github.com/roberto-mello/beads-compound-plugin/compare/v0.6.7...v0.6.8Low3/11/2026
v0.6.7**Full Changelog**: https://github.com/roberto-mello/beads-compound-plugin/compare/v0.6.6...v0.6.7Low3/5/2026
v0.6.6## What's Changed ### Improved: Memory recall is now a required gate, not a suggestion Agents were acknowledged to be skipping memory recall before starting work — even when the instructions were explicit. This release makes recall structurally harder to skip across both `beads-work` and `beads-parallel`. **`/beads-work`** - Phase 1 step 2 now marked as "required — do not skip" - Agent must output recall results (or "No relevant knowledge found") before proceeding to implementation **`/beadsLow2/23/2026
v0.6.5**Full Changelog**: https://github.com/roberto-mello/beads-compound-plugin/compare/v0.6.4...v0.6.5Low2/23/2026
v0.6.4**Full Changelog**: https://github.com/roberto-mello/beads-compound-plugin/compare/v0.6.2...v0.6.4Low2/21/2026
v0.6.2# beads-compound v0.6.2 Release Notes ## Highlights This release focuses on safer parallel work, better mid-session knowledge access, and a major DSPy.rb skill update. ### `/beads-recall` — Mid-Session Knowledge Lookup A new lightweight command that lets you search the knowledge base at any point during a session — not just at startup. Auto-recall runs when a session begins, but if you switch tasks or need to check something specific, `/beads-recall` gives you instant access without a restarLow2/17/2026
v0.6.1# Release Notes: beads-compound v0.6.1 **Release Date:** February 15, 2026 This is a maintenance release focused on installation reliability, cross-platform compatibility, and fixing critical bugs in the memory system. ## Highlights ### 🔧 Fixed Critical Memory System Bug - **Duplicate knowledge entries** causing JSONL/SQLite desynchronization are now prevented - memory-capture.sh now validates keys before appending to knowledge.jsonl - Ensures dual-write consistency between JSONL and SQLiteLow2/15/2026
v0.6.0### Added - **OpenCode support** via native TypeScript plugin (`plugins/beads-compound/opencode/plugin.ts`) - Auto-recall: inject relevant knowledge at session start - Memory capture: extract knowledge from `bd comments add` - Subagent wrapup: warn when subagents complete without logging knowledge - Uses Bun.spawn() for security (prevents shell injection) - Pre-fork filtering for performance (avoids subprocess overhead on non-matching bash commands) - **Gemini CLI support** via extensiLow2/14/2026
v0.5.0## Highlights **Native plugin system support** -- Install with two commands instead of cloning and running install.sh: ```bash /plugin marketplace add https://github.com/roberto-mello/beads-compound-plugin /plugin install beads-compound ``` **Memory auto-bootstrap** -- `.beads/memory/` is created automatically on first session in any beads-enabled project. No manual setup needed. ## What's Changed ### Added - Native plugin system support (`/plugin marketplace add` + `/plugin install`) - MemLow2/11/2026
v0.4.0# beads-compound v0.4.0 ## 🚀 Major Performance Improvements ### Context Budget Optimization (94% reduction) Fixed critical issue where the plugin was consuming **854% of Claude Code's description budget**, causing components to be silently excluded from context. Claude literally didn't know some agents/skills existed during sessions. **Before:** - 136,639 chars (854% over budget) - Components silently excluded - Claude unaware of many agents **After:** - 8,227 chars (51.4% of budget) - AllLow2/9/2026
v0.3.0# beads-compound v0.3.0 Claude Code plugin providing beads-based persistent memory with multi-agent workflows. ## Installation (Claude Code) ```bash git clone https://github.com/roberto-mello/beads-compound-plugin.git cd beads-compound-plugin ./install.sh /path/to/your-project ``` ## Installation (OpenCode) For OpenCode users, download the pre-converted plugin: ```bash curl -L https://github.com/roberto-mello/beads-compound-plugin/releases/download/v0.3.0/beads-compound-opencode.tar.gz | tLow2/8/2026

Dependencies & License Audit

Loading dependencies...

Similar Packages

ai-task-managerTask management for AI coding assistantsv3.2.0
ai-coding-rules🤖 Enhance AI coding assistants with battle-tested rules for reliability, predictability, and effectiveness in your projects.main@2026-06-01
beadsBeads - A memory upgrade for your coding agentv1.0.5
autoresearchClaude Autoresearch Skill — Autonomous goal-directed iteration for Claude Code. Inspired by Karpathy's autoresearch. Modify → Verify → Keep/Discard → Repeat forever.v2.1.2
skillctrlCLI to manage and deploy AI agent skillsv1.4.0

More in AI Agents

@blockrun/franklinFranklin — The AI agent with a wallet. Spends USDC autonomously to get real work done. Pay per action, no subscriptions.
hermes-agentThe agent that grows with you
awesome-copilotCommunity-contributed instructions, agents, skills, and configurations to help you make the most of GitHub Copilot.
e2bE2B SDK that give agents cloud environments