# Mneme Wiki

> The Mneme knowledge tier (Tier 2) — a per-corpus wiki built from documents, read on demand and never injected into a chat. Use when ingesting a source into a wiki, querying a wiki, or auditing one. Distinct from the lean cache (Tier 1).

- **Type:** Skill
- **Install:** `agentstack add skill-aexagon-mneme-mneme-wiki`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [Aexagon](https://agentstack.voostack.com/s/aexagon)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [Aexagon](https://github.com/Aexagon)
- **Source:** https://github.com/Aexagon/mneme/tree/main/plugins/mneme/skills/mneme-wiki

## Install

```sh
agentstack add skill-aexagon-mneme-mneme-wiki
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Mneme wiki — the knowledge tier

The cache (Tier 1) is lean and injected into every chat. A **wiki** (Tier 2) is the opposite: a per-corpus knowledge base built from your documents, read **on demand** and **never injected**. So a wiki can be large — 10–15 pages per source is fine. This is the gist's "LLM Wiki": maintained markdown over raw documents.

## Where a wiki lives

- Home: `dirname()/wiki/` (a sibling of `cache/`), override `MNEME_WIKI_DIR`. Project overlay: `/.mneme/wiki/`.
- One **corpus** per subdir: `wiki//`
  - `index.md` — the corpus table of contents (Pages / Entities / Concepts). Hand-maintained.
  - `pages/.md` — summary, entity, and concept pages. Frontmatter like a cache note, but bodies may be long. Cross-link with `[[slug]]`.
  - `sources/` — the raw (and `markitdown`-converted) source files.
  - `log.md` — append-only timeline (`ingest`, `recall-filed`, `lint-fix`), via `lib/log.sh`. Never injected.

## The loop

1. **Ingest** — `/mneme:ingest  [--wiki ]` brings a document in, summarizes it into pages, and updates `index.md`.
2. **Query** — `/mneme:recall "" --wiki ` reads `index.md` first, then the relevant pages, and answers with citations. Plain `/recall` never touches a wiki.
3. **Audit** — `/mneme:lint --wiki ` runs the link checks (dead `[[links]]`, orphans) over the corpus's pages.

## Shared engine

A wiki reuses `lib/` (the same as the cache): `log.sh` for `log.md`, `links.sh` for `[[link]]` graphs between pages, `md.sh` for frontmatter, `wiki.sh` for home/corpus resolution. Run helpers under explicit `bash` (the agent's shell may be zsh). The cache and the wiki are two tiers on one engine.

## The invariant

A wiki is **never injected**. The SessionStart loader emits at most one line naming the corpora (`Wikis:  — query with /recall --wiki `); it never reads a wiki's `index.md` or pages. Knowledge enters a chat only when you query it.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [Aexagon](https://github.com/Aexagon)
- **Source:** [Aexagon/mneme](https://github.com/Aexagon/mneme)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-aexagon-mneme-mneme-wiki
- Seller: https://agentstack.voostack.com/s/aexagon
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
