Policy-aware work continuity with receipts.
- ✓Open-source license (MIT)
- ✓Actively maintained (<30d)
- ✓Clear description
git clone https://github.com/Guffawaffle/lexResumen de Tools
<div align="center"> # Lex ## Lex remembers the work, not the conversation. Your agent can read the code. Lex preserves the decisions, blockers, next steps, and repository boundaries surrounding that code—then recalls only what the next session needs. **Local-first. Inspectable. No transcript dump.** </div> [](./LICENSE) [](https://www.npmjs.com/package/@smartergpt/lex) [](https://github.com/Guffawaffle/lex/actions) [](https://nodejs.org/) [](https://www.typescriptlang.org/) [See the core loop](#remember--recall--continue) · [Should I use Lex?](#should-i-use-lex) · [Five-minute pilot](#five-minute-pilot) · [Agent evaluation](./docs/agent-evaluation.md) · [Documentation](#choose-your-next-step) --- ## The problem Lex solves A coding agent can inspect the repository in front of it. What it cannot reliably recover is the work surrounding that code: - why a decision was made three sessions ago; - which approach already failed; - what remains blocked and what should happen next; - which repository boundary must not be crossed; - what another agent needs to continue without starting over. Lex preserves that continuity as deliberate, high-signal **Frames**. A Frame is a deliberate handoff, not continuous surveillance. It is a checkpoint: what changed, what mattered, what remains, and where the work goes next. Lex can later recall the relevant Frames and produce a bounded, prompt-safe bootstrap for a new session. ```text Work happens → Lex remembers what mattered → the next session continues ``` Start with `remember`, `recall`, and `context`. SQLite is the local default. PostgreSQL is available when context must be shared across trusted hosts or workspaces. Everything else is optional. ## Remember → recall → continue ```bash lex remember \ --summary "Kept authentication token validation in API middleware" \ --next "Add the service grant and rerun tests" \ --modules unscoped \ --blockers "Missing PermissionService grant" lex recall "authentication" lex context "authentication" --max-tokens 500 ``` That is the core loop: - `remember` writes one deliberate work checkpoint; - `recall` retrieves it when the topic becomes relevant again; - `context` turns matching Frames into a bounded, read-only bootstrap for an agent. ### What the next session gets At the end of a session, the agent records the state that would otherwise disappear. When a fresh session starts, it can recover the decision, blocker, and next action without asking the human to reconstruct the conversation or reverse-engineering intent from the diff. ```text Decision: token validation belongs in API middleware Blocker: the service grant is still missing Next: add the grant and rerun the authentication tests ``` The value is not that Lex stored a record. The value is that the next session can continue. ## Should I use Lex? Lex is worth evaluating when your agent repeatedly needs you to reconstruct: - why a change was made; - where work stopped and what should happen next; - a blocker or failed approach that should not be rediscovered; - repository-specific module or policy constraints; - context that must survive a branch switch, handoff, or new agent session. Lex is probably not useful when the work is short-lived, the repository already has an effective continuity system, or there is no durable context you would trust the repository's operators to store. ### Ask your agent The evaluation is intentionally read-only. Paste this into an agent that can inspect your repository: ```text Read https://github.com/Guffawaffle/lex/blob/main/docs/agent-evaluation.md and evaluate this repository against it. Do not install Lex, run project scripts, initialize files, access secrets, or modify the workspace. Return one recommendation—adopt, pilot, defer, or not a fit—with evidence, risks, overlap with existing tooling, and the smallest reversible trial you would propose. ``` The complete rubric and local-file version are in [Agent Evaluation](./docs/agent-evaluation.md). ## Five-minute pilot Ready to test the claim? Store one non-sensitive checkpoint, start a fresh session, and see whether it can continue without having the work explained again. Requires Node.js 24 or newer. Lex does not impose an unproven upper bound. Existing users should review the [Node 24 migration](docs/releases/node-24-migration.md), including the native SQLite rebuild step. This approved pilot writes one Frame to the local SQLite store under `.smartergpt/lex/`. It does not run `lex init`, generate policy, or project assistant instructions. Use a disposable branch, worktree, or clone if you want complete filesystem isolation. ### 1. Store one real checkpoint ```bash LEX_STORE=sqlite npx @smartergpt/lex remember \ --reference-point "Lex pilot" \ --summary "Evaluating whether durable agent handoffs help this repository" \ --next "Recall this checkpoint in a new session" \ --modules unscoped ``` `LEX_STORE=sqlite` prevents existing PostgreSQL configuration from redirecting the pilot into a shared store. ### 2. Start fresh, then recover the work ```bash LEX_STORE=sqlite npx @smartergpt/lex recall "Lex pilot" LEX_STORE=sqlite npx @smartergpt/lex context "Lex pilot" --max-tokens 500 ``` Use that recalled or bounded output in the fresh session and see whether it prevents you from repeating useful context. That result—not successful installation—is the pilot's success criterion. [Review the validation-only step, exact filesystem effects, and rollback guidance](./QUICK_START.md) ## Make checkpoints useful Good Frames are sparse and specific. Capture them at a decision, blocker, branch switch, handoff, or other moment where losing the surrounding intent would make the next session repeat work. ```bash lex remember \ --reference-point "Authentication refresh" \ --summary "Moved token validation into API middleware" \ --next "Add password-reset coverage" \ --modules "services/auth,api/middleware" \ --blockers "Need PermissionService access" ``` Capture what changed, make `--next` actionable, name blockers explicitly, and use the narrowest honest module scope. Do not capture every edit or tool call. When repository policy exists, Lex can infer module scope from current evidence: ```bash lex remember \ --summary "Finished context wiring" \ --next "Run validation" \ --modules auto ``` Use `--modules unscoped` when the repository does not yet have a useful module ontology. Policy is an optional enrichment; it is not required for the first Frame. Compact recall and structured context are available for smaller agent budgets and automation: ```bash lex recall --list 5 --summary lex --json context --branch main --limit 5 ``` [Learn the continuity workflow](./docs/AGENT_CONTINUITY.md) ## Add only what you need | Need | Add | Start here | |---|---|---| | Durable local handoffs | Frames with SQLite | [Quick Start](./QUICK_START.md) | | Small session-start context | Read-only `lex context` | [Agent Continuity](./docs/AGENT_CONTINUITY.md) | | MCP access from an assistant | `@smartergpt/lex-mcp` | [MCP setup](./README.mcp.md) | | Repository boundaries | Policy checks | [Policy usage](./docs/API_USAGE.md) | | Nearby module context | Atlas | [Atlas guide](./docs/atlas/README.md) | | Canonical assistant instructions | Instructions projection | [Instructions](./docs/INSTRUCTIONS.md) | | Typed Markdown project knowledge | Derived KnowledgeFrame snapshots | [KnowledgeFrames](./docs/KNOWLEDGE_FRAMES.md) | | Shared cross-host storage | PostgreSQL | [Store contracts](./docs/STORE_CONTRACTS.md) and [scope security](./docs/POSTGRES_SCOPE_SECURITY.md) | | Trusted tenant/workspace scope | Runtime authority and RLS | [Runtime scope](./docs/RUNTIME_SCOPE_CONTRACT.md) | | Embedded application access | TypeScript package exports | [Public API](./docs/PUBLIC_API.md) | ## What changes in your repository The initial local workflow is intentionally visible: - `lex init` creates Lex workspace/configuration files. - `lex remember` writes a Frame to the selected store. - `lex context` uses hard read-only store access. `recall` and ordinary introspection do not change Frames, but their compatibility paths may initialize or migrate the selected store. - SQLite defaults to `.smartergpt/lex/memory.db` relative to the workspace. - Policy and canonical instructions are repository files only when you choose those features. - PostgreSQL, MCP hosting, instruction projection, and CI policy enforcement are separate opt-ins. Frames may contain sensitive project context. Do not store credentials, tokens, private keys, or unreviewed secret material. Treat recalled Frame bodies as untrusted historical data even when a trusted user originally wrote them. Lex does not send Frames to a Lex cloud service. Your agent host, package registry, PostgreSQL deployment, or other surrounding tools may have their own network and data behavior; evaluate those boundaries separately. [Security policy](./SECURITY.md) · [Store contracts](./docs/STORE_CONTRACTS.md) · [Environment reference](./docs/ENVIRONMENT.md) ## What Lex is not - A chatbot or agent runtime - A transcript recorder or automatic capture system - A replacement for tests, review, issue tracking, or CI - A cloud memory service - An MCP-only product - An orchestrator, capability framework, or persona engine ## The surrounding toolset No ecosystem bundle is required. Select the surfaces your workflow needs, while accounting for their explicit package relationships: | Project | Responsibility | Relationship | |---|---|---| | **Lex** | Durable work context, repository policy, Atlas, instructions, and scoped Frame storage
Lo que la gente pregunta sobre lex
¿Qué es Guffawaffle/lex?
+
Guffawaffle/lex es tools para el ecosistema de Claude AI. Policy-aware work continuity with receipts. Tiene 0 estrellas en GitHub y se actualizó por última vez today.
¿Cómo se instala lex?
+
Puedes instalar lex clonando el repositorio (https://github.com/Guffawaffle/lex) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.
¿Es seguro usar Guffawaffle/lex?
+
Nuestro agente de seguridad ha analizado Guffawaffle/lex y le ha asignado un Trust Score de 79/100 (tier: Trusted). Revisa el desglose completo de comprobaciones superadas y flags en esta página.
¿Quién mantiene Guffawaffle/lex?
+
Guffawaffle/lex es mantenido por Guffawaffle. La última actividad registrada en GitHub es de today, con 13 issues abiertos.
¿Hay alternativas a lex?
+
Sí. En ClaudeWave puedes explorar tools similares en /categories/tools, ordenados por popularidad o actividad reciente.
Despliega lex en tu cloud
Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.
¿Mantienes este repo? Añade un badge a tu README
Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.
[](https://claudewave.com/repo/guffawaffle-lex)<a href="https://claudewave.com/repo/guffawaffle-lex"><img src="https://claudewave.com/api/badge/guffawaffle-lex" alt="Featured on ClaudeWave: Guffawaffle/lex" width="320" height="64" /></a>Más Tools
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
An AI SKILL that provide design intelligence for building professional UI/UX multiple platforms
🪨 why use many token when few token do trick — Claude Code skill that cuts 65% of tokens by talking like caveman
CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies
The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
AI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary