Trust-aware memory for AI agents: evidence-backed recall, deterministic verdicts, self-inspection, and a tamper-evident local ledger.
git clone https://github.com/Arakiss/nahuali{
"mcpServers": {
"nahuali": {
"command": "nahuali"
}
}
}MCP Servers overview
# Nahuali **Memory an agent can inspect before it trusts.** <p align="center"> <img src="assets/nahuali-tui.gif" alt="Nahuali exploring an evidence-backed decision and holding an unsupported update for review" width="100%"> </p> <p align="center"><sub>From an empty memory to evidence-backed recall: Nahuali shows what is ready to use and pauses what still needs review.</sub></p> <p align="center"> <a href="https://github.com/Arakiss/nahuali/actions/workflows/ci.yml"><img src="https://github.com/Arakiss/nahuali/actions/workflows/ci.yml/badge.svg?branch=main&event=push" alt="Tests"></a> <a href="https://github.com/Arakiss/nahuali/releases"><img src="https://img.shields.io/badge/release-0.8_beta-blue.svg" alt="Latest release train: 0.8 beta"></a> <a href="RELEASE_VERIFICATION.md"><img src="https://img.shields.io/badge/releases-Sigstore_signed-2f6f4e.svg" alt="Sigstore-signed release artifacts"></a> <a href="LICENSE"><img src="https://img.shields.io/badge/license-FSL--1.1--MIT-yellow.svg" alt="FSL-1.1-MIT license"></a> </p> Memory retrieval usually begins with *what context looks relevant?* Nahuali also exposes four separate questions: - What observation supports this memory? - What conflicts with it or makes it stale? - Do the current recorded-history checks pass? - Do the available evidence and health checks support using this result? The result is a local-first memory engine with deterministic trust verdicts, tamper-evident recorded history, and portable evidence. Its core does not need a model, account, API key, hosted service, or Docker. ## A 60-second tour Install the macOS or Linux binary. The installer requires the matching SHA-256 asset; the pinned path below can additionally require its Sigstore bundle. ```bash curl -fsSLo /tmp/nahuali-install.sh \ https://raw.githubusercontent.com/Arakiss/nahuali/main/scripts/install.sh sh /tmp/nahuali-install.sh export PATH="$HOME/.nahuali/bin:$PATH" ``` Run `nahuali --version` in a terminal to see the real axolotl spritesheet come alive beside the build identity. When the command is captured or redirected, it emits the stable `nahuali <semver>` line expected by agents, install checks, and benchmark tooling. Record an observation, derive a claim from it, and require evidence at recall: ```bash nahuali remember "Lena owns the release notes" --mention Lena --tag product nahuali claim Lena owns "release notes" --source-last --confidence 0.92 nahuali recall "Who owns the release notes?" --authority --require-evidence nahuali explore ``` `nahuali explore` is not just a record browser. It keeps three independent questions visible: | Axis | What it answers | |---|---| | `MEMORY` | Is this memory supported enough to use? | | `HISTORY` | Do this store's recorded-history checks pass? | | `EXTERNAL` | Was this state compared with an authorized reference kept outside this store? | Press `/` to search every displayed memory-item field, `Tab` to filter by memory kind, and `j`/`k` to inspect the evidence behind a result. The axolotl watches over the memory and changes with its status. Rebuild the GIF above from real Ghostty windows on macOS with `scripts/render-readme-tui-gif.sh`; the canonical README asset is never replaced by the lower-fidelity text fallback. Run `nahuali demo` for a narrated, non-mutating explanation of how Nahuali detects a specific in-place record change and keeps unsupported memory from driving action. The demo states which changes require an externally retained reference rather than relying on the live store alone. ## Where Nahuali fits Choose Nahuali when an agent needs local or operator-controlled memory and the decision to use a result must carry evidence, health signals, and explicit integrity limits. It is especially useful as a reliability layer around consequential memory rather than as a replacement for every retrieval system. Choose an established recall-first or managed memory platform when the main requirement is hosted operation, a broad framework ecosystem, or publicly disclosed LoCoMo/LongMemEval answer-quality results. Nahuali does not claim leadership on those axes today. An application can also pair another retrieval system with Nahuali's evidence and governance checks. ## What Nahuali checks ### Evidence is part of memory Observations are first-class episodes. Claims, relationships, procedures, and intentions can point back to the episode that supports them. Recall can refuse results without that path instead of filling the gap with confidence language. ### Verdicts stay separate from relevance Authority-aware recall carries one of four deterministic verdicts: | Verdict | Meaning | |---|---| | `certify` | Available checks support use with the attached evidence. | | `advisory` | Useful as a lead, but not ready to repeat as fact without qualification. | | `warn` | Evidence, freshness, or store-health problems require verification. | | `block` | The memory must not drive action until the conflict is resolved. | A `certify` verdict proves neither truth nor authorship. It means the available evidence and content-health checks passed; inspect `HISTORY` and `EXTERNAL` separately for internal history checks and an optional external comparison. Nahuali keeps those limits machine-readable instead of hiding them in documentation. ### History is inspectable The authoritative ledger is append-only and hash chained. Merkle inclusion and consistency proofs make verification compact; Ed25519 checkpoints bind a tree size, root, chain tip, origin, and ledger lineage to an external operator policy. Nahuali is not a blockchain. It applies the transparency-log primitives standardized in [RFC 9162](https://www.rfc-editor.org/rfc/rfc9162.html) without publishing private memory to a public network or requiring consensus. Independent witness co-signing is a future step, not a capability claimed today. ### One claim can travel with a receipt Portable claim receipts contain only the selected claim, its evidence episode, an optional source envelope, their Merkle inclusion paths, and one signed checkpoint. Verification is offline and requires a policy held separately from the receipt: ```bash CLAIM_ID="$(nahuali data --json | jq -r '.claims[-1].id')" nahuali receipt-export \ --claim-id "$CLAIM_ID" \ --checkpoint checkpoint.json \ --policy policy.json \ --output claim-receipt.json nahuali receipt-verify claim-receipt.json --policy policy.json ``` The verifier reports `receipt_integrity` separately from `content_authority`. Ledger commitment never becomes a claim that the remembered statement is true, that its author is authentic, or that an external source still contains the same bytes. Offline receipt verification checks only the selected envelopes, their Merkle paths, provenance links, and checkpoint authorization. It trusts the authorized signers' commitment to that root; it does not replay or validate the complete ledger prefix. Use `checkpoint-verify` with the ledger for that stronger check. Receipts contain the selected memory verbatim and should be handled as sensitive data, not published by default. ## Built for agents, operable by humans The CLI is canonical. The TUI, stdio MCP server, local HTTP API, and Rust crate all use the same deterministic engine: | Interface | Use it for | Reference | |---|---|---| | `nahuali` | Shell-capable agents, scripts, sustained ingestion, inspection, recovery, receipts, and the TUI | [CLI](crates/nahuali-cli/README.md) | | `nahuali-mcp` | Hosts that expose MCP tools but cannot run local commands directly | [MCP](crates/nahuali-mcp/README.md) | | `nahuali-api` | Local HTTP integrations with an OpenAPI contract | [HTTP API](crates/nahuali-api/README.md) | | `nahuali-core` | Embedding the engine in Rust | [Core](crates/nahuali-core/README.md) | Prefer the CLI for terminal-based agent workloads. It is the direct, scriptable interface, supports batch commands without an MCP tool-call round trip, and makes the exact database and JSON contract explicit in every invocation. MCP is an adapter for clients whose integration boundary is a tool protocol. Both interfaces have the same trust semantics; choosing the CLI does not bypass validation. An embedded database has one process owner, so do not point a running MCP server and CLI processes at the same embedded database simultaneously. Use remote SurrealDB when independent processes need shared access. Run `nahuali init` to install the bundled agent skill where supported and print a native MCP configuration. Nahuali is also published as `io.github.Arakiss/nahuali` in the official MCP Registry. See [MCP onboarding](crates/nahuali-mcp/ONBOARDING.md) for native and container configurations. The HTTP API is unauthenticated by design and must not be exposed to an untrusted network. ## Storage and recovery `memory_record` in SurrealDB is the source of truth. The current-memory view, graph tables, snapshots, and semantic vectors are derived and rebuildable. - A normal write appends one ledger event, updates the in-memory view, compares the desired graph with the last verified graph projection, and writes only rows that are new or changed. Rows no longer present are removed. - If the stored projection checkpoint, schema version, error state, or content manifest cannot be trusted, Nahuali clears the derived graph and rebuilds it from the ledger. Recovery never rewrites authoritative history. - Embedded SurrealKV is the zero-service default. - Remote SurrealDB supports deliberately shared deployments. - Lexical recall works without Qdrant or an embedding model. - Qdrant and local embeddings are optional semantic tiers. - Graph projection v2 fences concurrent rebuilds and validates a canonical content manifest for every ledger-derived projected table, not only row counts. SurrealDB projection-backed entity, timeline, pending-work, and health reads fail closed while a rebuild is active or when the manifest, schema version, o
What people ask about nahuali
What is Arakiss/nahuali?
+
Arakiss/nahuali is mcp servers for the Claude AI ecosystem. Trust-aware memory for AI agents: evidence-backed recall, deterministic verdicts, self-inspection, and a tamper-evident local ledger. It has 3 GitHub stars and was last updated today.
How do I install nahuali?
+
You can install nahuali by cloning the repository (https://github.com/Arakiss/nahuali) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.
Is Arakiss/nahuali safe to use?
+
Arakiss/nahuali has not been audited yet by our security agent. Review the original repository on GitHub before using it in production.
Who maintains Arakiss/nahuali?
+
Arakiss/nahuali is maintained by Arakiss. The last recorded GitHub activity is from today, with 0 open issues.
Are there alternatives to nahuali?
+
Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.
Deploy nahuali to your cloud
Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.
Maintain this repo? Add a badge to your README
Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.
[](https://claudewave.com/repo/arakiss-nahuali)<a href="https://claudewave.com/repo/arakiss-nahuali"><img src="https://claudewave.com/api/badge/arakiss-nahuali" alt="Featured on ClaudeWave: Arakiss/nahuali" width="320" height="64" /></a>More MCP Servers
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
An open-source AI agent that brings the power of Gemini directly into your terminal.
The fastest path to AI-powered full stack observability, even for lean teams.
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface
🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!