LWC — Proactive Memory CLI for AI Agents
Gives AI agents a persistent, source-grounded Wiki they can recall, maintain, and evolve across sessions.
- Source repo
- JanYork/llm-wiki-cli
- Stars
- ★ 75
- Last updated
- 3d ago
- FARS reviewed
- Dec 02, 2026
- License
- Apache-2.0
- Primary language
- Rust
- FA score
- 73/100 · Some gaps
At a glance
- Works with
- Universal · cross-platformCodex · Claude Code
- You'll need
- Typical use
- A developer running long refactors in Claude Code or Codex who needs earlier decisions, findings and open questions to survive session resets.
- Main limitation
- Not a human-facing tool: the README states it is a machine interface for agents, discourages manual routine use, and there is no desktop UI or built-in answering.
- Website
- janyork.github.io/llm-wiki-cli ↗ set on GitHub
- Maintenance
- Commits in the last 30 dayslast commit 2026-11-30
- Source review
- 73/100 · Some gaps
What does this agent do, and when should you use it?
LWC (npm package @i-xor/lwc, crate lwc) is an Apache-2.0 Rust CLI that keeps durable, source-grounded memory for AI agents in SQLite. It separates four layers — immutable raw sources, an agent-maintained Wiki of pages, citations, links and provenance, temporal memory, and project-specific schema/purpose rules — and exposes them through CLI commands plus a read-only MCP server (lwc serve --mcp). The CLI never calls an LLM and uses no vector database: the agent reasons and synthesizes, while LWC preserves sources, pages, citations, indexes and history and returns structured JSON for every successful operation. lwc agent install --yes writes MCP, Skill, Hook and instruction configuration for 12 AgentTargets, including Claude Code, Codex, Cursor, OpenCode, Gemini CLI, Kiro, Hermes, Antigravity, GitHub Copilot in VS Code, Copilot CLI, Copilot for JetBrains and pi. Beyond the core store it offers an optional CodeGraph, a loopback-only browser viewer, portable plaintext memory archives, SSH-based multi-machine sync, self-hosted team spaces, and atomic changesets with inverse patches for guarded rollback.
LWC writes knowledge into SQLite and projects it to Markdown, full-text indexes and optional graph stores; SQLite stays canonical and everything else is rebuildable. An agent initializes a store with lwc --scope global init or a project-scope init, adds curated files as immutable, deduplicated source snapshots, and LWC tracks each live path as unchanged, modified, missing or superseded. The agent then writes a cited source summary and updates shared Wiki pages. Recall is lexical and page-first: title, path, summary, body, provenance and graph evidence are scored as distinct fields, CJK text is tokenized with adjacent bigrams, and auditable document weights plus query feedback re-rank only matching candidates. Maintenance (lwc lint, maintenance reindex, maintenance materialize, maintenance compact, checkpoint create/restore) is explicit, durable and resumable via work status or work watch. Multi-step edits use changesets: commit publishes only touched canonical entities in one transaction and records a checksummed inverse patch for guarded rollback. Optional surfaces include lwc view (a GET/HEAD-only loopback viewer), CodeGraph symbol/caller/callee/impact queries behind lwc cg status, lwc serve --mcp for MCP clients, portable memory archives, SSH sync, receipt record and ledger show for handoff evidence, and a self-hosted team server that synchronizes local SQLite plus Wiki files.
- A developer running long refactors in Claude Code or Codex who needs earlier decisions, findings and open questions to survive session resets.
- A team curating RFCs and design docs where every claim must trace back to an immutable source snapshot with citations.
- Engineers who want to ask about symbols, callers, callees and change impact through a project-scoped CodeGraph instead of grepping code.
- Developers working across several machines who want to reconcile project or global memory over SSH without copying live SQLite, WAL or SHM files.
- A self-hosting team that needs shared memory with explicit space permissions, generated personal keys and auditable recovery, kept on its own server.
- Anyone handing work between agents or teammates who needs versioned evidence receipts and an issue ledger covering delivery, ownership and acceptance.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
npm install --global @i-xor/lwcnpx skills add JanYork/llm-wiki-cli --skill using-lwc -g
- Runtime
- Node.js 22
How do you install or deploy this agent?
The npm path requires Node.js 22 or newer. Homebrew, crates.io, checksum-verified GitHub releases and local Cargo builds are also listed as supported, but the README does not give their exact commands.
npm install --global @i-xor/lwcConfirm the installed version:
lwc --versionHow do you use this agent?
Initialize global memory once, then let LWC detect installed supported agents and write their MCP, Skill, Hook and instruction surfaces through idempotent AgentTarget adapters:
lwc --scope global init
lwc agent install --yes
lwc agent status --target all --location globalRestart the affected agents afterwards and complete each host's normal Hook trust review. The companion Skill can also be installed directly; the canonical trigger is $using-lwc:
npx skills add JanYork/llm-wiki-cli --skill using-lwc -gTo expose memory to MCP clients or open the read-only inspector:
lwc serve --mcp
lwc view --port 4173 --no-openIn daily use, ask your agent to invoke $using-lwc rather than driving the routine import/recall/write-back loop by hand; manual driving is intended for developing or debugging LWC itself.
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
Inherits capabilities of connected MCP servers; audit third-party servers before enabling.
FARS trust-control audit
- verifiable attribution
What are this agent's strengths and limitations?
- Agent-neutral by design: no embedded LLM, no vector database, and documented integration for 12 AgentTargets through idempotent adapters plus one read-only MCP surface and a runtime-neutral using-lwc Skill.
- Traceability is structural: immutable deduplicated sources, citations, links, provenance, contradictions and temporal memory are separate layers, and every successful operation returns auditable structured JSON.
- Local-first with real recovery: SQLite is canonical while Markdown, search and graph stores are rebuildable projections; checkpoints, changeset inverse patches and guarded removal (sources with citations, pages with inbound links refused) limit damage.
- Flexible deployment: single-user local CLI, SSH-based sync, or a self-hosted team server, all under Apache-2.0 with no vendor cloud required.
- Not a human-facing tool: the README states it is a machine interface for agents, discourages manual routine use, and there is no desktop UI or built-in answering.
- Lexical, not semantic: no embeddings or vector search, and the documented limits include a single-machine single-user knowledge base, UTF-8 text workflow, and a 64 MiB body cap per schema, purpose, source or page.
- Wide surface area to absorb: changesets with sparse-commit restrictions (retrieval-weight and semantic-relation mutations are unsupported), CodeGraph, the Learning Suite, team spaces and receipt/ledger all carry their own preconditions.
- Uneven host capabilities: the narrow shell-consent ask is enforced only for Claude Code, Cursor, global Hermes and Antigravity, while Codex gets advisory context; Learning Suite runtimes are downloaded lazily and pinned by version and checksum.
- Benchmark evidence is retrieval-only: the LongMemEval-S runs are an explicitly untuned static baseline, not answer accuracy or leaderboard scores, and measured on one Apple M5 Pro machine.
How does this agent compare with similar options?
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| LWC — Proactive Memory CLI for AI Agents This agent | 73 · Some gaps | — | ★ 75 | 3d ago | Rust | Codex · Claude Code |
| MisakaNet Failure-Memory Library | 74 · Some gaps | MCP serverFree | ★ 568 | today | Python | ChatGPT · Codex · Claude Code |
| Ori Mnemos | 56 · Major gaps | CLIFree | ★ 340 | 2mo ago | TypeScript | Claude Code · OpenAI API · Claude API |
| Claudex | 49 · Major gaps | CLIFree | ★ 97 | 5mo ago | JavaScript | Claude Code |
How does FollowAgents rate this agent?
Why each dimension lost points
least_privilege=2: README and Skills require one authorized project root, explicit single-store writes, loopback-only GET/HEAD viewer, and explicit consent for graphs and Office reading; however, the packet exposes mostly module declarations rather than the full permission implementation, so deducted. user_confirmation=2: SECURITY, AGENTS, and README require separate human confirmation for destructive actions, sync publication, whole-store overwrite, and credential handling, but Codex is advisory-only and cannot enforce an ask, so deducted. data_flow_transparency=2: SQLite is documented as canonical with Markdown/index projections, sync avoids live DB/WAL, and learning runtimes are checksum-verified; full data flow for update checks and team sync is not shown, so deducted. sensitive_data_handling=2: a secret_scan module, sanitized-error requirements, no-secret Skill language, and archive exclusions exist; scanner implementation and full redaction tests are not shown, so deducted. dependency_security=1: Cargo dependencies are numerous with some exact pins, installer and optional runtimes use sha256 verification, and CI uses locked builds; however, no Cargo.lock or vulnerability-audit evidence is in the packet, so deducted. external_effects=2: reviewed changesets, sync confirmation, non-implicit import overwrite, and read-only Office reduce side effects; installer, first-run download, MCP/Hook setup, and team server still expand external surface, so deducted. rollback=2: changeset inverse patches, revision-guarded rollback, recycle bin, and archiving are documented; README explicitly says some sparse operations lack exact patches, so deducted. source_attribution=3: source snapshots, citations/provenance, exact spans/locators, hashes/receipts, and source-grounded pages are strongly documented; no deduction for static non-execution.
self_consistency=2: version 0.20.0 and the scope/consent/rollback narratives align across README, Cargo, SECURITY, and Skills; the packet does not cover every source file, so unseen command/document mismatches cannot be excluded, deducted. dependency_availability=2: npm, crates.io, Homebrew, checksummed releases, local Cargo builds, and Node>=22 are documented; heavy dependencies and optional runtime downloads add availability conditions, deducted. failure_messages=2: structured errors, recovery actions, no-op behavior, receipts, and fail-closed conflicts are documented; error-code and message implementation/tests are not shown, deducted.
audience_and_scenarios=3: clearly agent-first and covers many hosts (Claude Code, Codex, Cursor, etc.), personal memory, team sync, code/document graphs, learning suite, and multiple languages; evidence is thorough. capability_boundaries=3: hard scope boundary, project/global separation, disabled-by-default optional capabilities, no-op unsupported surfaces, and explicit consent for graph/Office/Book are clear. trigger_precision=2: Skill descriptions and skip conditions are fairly specific, but using-lwc has a very broad trigger surface and may over-activate, deducted. environment_fit=2: macOS/Linux/Windows, Windows CI, and npm/Rust installation are documented; Node/Rust combinations, host differences, and team deployment add environment cost, deducted.
information_architecture=3: README layering, documentation map, Skill router, and project-memory entry point are clear. install_notes=3: single npm command, checksummed releases, Agent setup prompt, and agent install are well covered. naming_stability=2: names such as using-lwc, scope, and receipt are stable-looking, but no complete compatibility policy is shown, deducted. examples_and_faq=2: command examples and Quick Start exist, but FAQ and troubleshooting coverage is limited, deducted. known_limitations=3: sparse unsupported operations, Book formats, Codex consent differences, and archive v1 exclusions are explicitly listed. license=3: Apache-2.0 LICENSE matches Cargo.toml. versioning_changelog=2: version 0.20.0 and release-note links exist, but no complete in-repo CHANGELOG is shown. maintenance_responsibility=1: SECURITY coordination, CI, and release notes exist, but contact is only generic maintainers and no named owner/support channel is shown; unverified publisher alone is not a deduction, but unclear responsibility is, deducted.
output_usability=3: structured JSON, Markdown projection, read-only viewer, Skill/MCP interfaces, and receipts make outputs auditable and resumable for Agents. marginal_value=2: durable Wiki, temporal memory, graphs, and team sync differentiate it from plain RAG, but added complexity and marginal gain versus existing memory/RAG are not quantified, deducted. cost_benefit=2: local SQLite and no required embeddings reduce query cost, and npm is a single command; Rust/Node toolchains, optional runtime downloads, team server, and broad feature set add operational cost, deducted.
claim_traceability=3: source snapshots, citation/provenance, exact locators/hashes, receipts, and source-grounded pages form a traceable chain; evidence is thorough. cross_source_corroboration=2: README, SECURITY, SKILL, and CI tests corroborate one another, but there is no independent execution or external reproduction and the static sample is limited, deducted. fact_inference_separation=2: docs distinguish source evidence, Agent summaries/proposals, user confirmation, gaps, and summaries and explicitly refuse to treat generated summaries as approval; implementation-level tests are not shown, deducted.
- This is a static review with no commands executed; do not infer from documentation alone that installation, sync, rollback, or permission boundaries are verified in a real environment.
- Dependency-security evidence is weak: Cargo.toml has many dependencies and the packet shows no Cargo.lock or vulnerability-audit results; checksummed release assets and optional runtimes do not replace a full supply-chain proof.
- Confirmation capability differs by Agent host: only some hosts can enforce an ask, while Codex is advisory-only; documented confirmation requirements are not equivalent to hard enforcement everywhere.
- The publisher is unverified and maintenance responsibility is only generically attributed to maintainers; independently verify provenance, license, support path, and update responsibility before production use.
- Team sync, the installer, first-run downloads, MCP/Hook setup, and the optional learning suite widen the external surface; validate confirmation, rollback, and recovery in an isolated environment.
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.