llm-wiki

llm-wiki is a skill for Claude Code, Codex from graniet/kheish. It costs 32 tokens per session (4,299 once invoked), scanned B, a copy of llm-wiki, Apache-2.0.

A persistent, linked set of Markdown notes for collecting, connecting, searching, and maintaining knowledge from sources.

In plain words
What is it for?
Use it to build a reference wiki, add source summaries, find related notes, and flag inconsistencies.
Why use it?
It keeps useful findings in one organised place instead of making you rediscover and reconcile them for every question.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to build a reference wiki, add source summaries, find related notes, and flag inconsistencies.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/graniet/kheish/llm-wiki
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add graniet/kheish --skill llm-wiki
Clone the repo
git clone --depth 1 https://github.com/graniet/kheish

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for llm-wiki

README.md
[![agentmods](https://agentmods.dev/badge/skills/graniet/kheish/llm-wiki/github.svg)](https://agentmods.dev/skills/graniet/kheish/llm-wiki)
Your own site
<a href="https://agentmods.dev/skills/graniet/kheish/llm-wiki"><img src="https://agentmods.dev/badge/skills/graniet/kheish/llm-wiki/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for llm-wiki

Your own site · 80×15
<a href="https://agentmods.dev/skills/graniet/kheish/llm-wiki"><img src="https://agentmods.dev/badge/skills/graniet/kheish/llm-wiki.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,299 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 81% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00032 $0.04299
Opus 5 $0.00016 $0.02150
Sonnet 5 $0.00006 $0.00860
Haiku 4.5 $0.00003 $0.00430

Measured 8d ago against content hash dcfc2ff0905a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade B, and why

llm-wiki scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo loginctl enable-linger $USER
Origin

This is a copy

81% identical to llm-wiki — 132 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/research/llm-wiki/SKILL.md · 482 lines

How it starts

The opening of the file, as written. The whole thing — 482 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Kheish Compatibility

This skill is repo-local and stays inactive until explicitly activated.

When the original instructions refer to legacy tool names, use these Kheish mappings:

  • terminal => bash
  • web_extract => web_fetch, plus web_search when discovery is needed
  • search_files => grep_search and glob_search
  • browser_* tools require a browser-capable surfaced tool or MCP; if none is available, use the closest available surface and say so explicitly

When the instructions mention local helper files, resolve them from ${KHEISH_SKILL_DIR}.

Karpathy's LLM Wiki

Build and maintain a persistent, compounding knowledge base as interlinked markdown files. Based on Andrej Karpathy's LLM Wiki pattern.

Unlike traditional RAG (which rediscovers knowledge from scratch per query), the wiki compiles knowledge once and keeps it current. Cross-references are already there. Contradictions have already been flagged. Synthesis reflects everything ingested.

Division of labor: The human curates sources and directs analysis. The agent summarizes, cross-references, files, and maintains consistency.

When This Skill Activates

Use this skill when the user:

  • Asks to create, build, or start a wiki or knowledge base
  • Asks to ingest, add, or process a source into their wiki
  • Asks a question and an existing wiki is present at the configured path
  • Asks to lint, audit, or health-check their wiki
  • References their wiki, knowledge base, or "notes" in a research context

Wiki Location

Configured via skills.config.wiki.path in ~/.kheish/config.yaml (prompted during your initial environment setup):

skills:
  config:
    wiki:
      path: ~/wiki

Falls back to ~/wiki default. The resolved path is injected when this skill loads — check the [Skill config: ...] block above for the active value.

The wiki is just a directory of markdown files — open it in Obsidian, VS Code, or any editor. No database, no special tooling required.

Read the full file on GitHub · 482 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 482 lines · 32 tokens per session scan B dcfc2ff0905a

Subscribe to this mod's changes

llm-wiki is a skill published in the GitHub repository graniet/kheish (227 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 32 tokens to every session and 4,299 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). It is 81% identical to llm-wiki, differing in 132 lines, and is treated as a copy.

Related

Other skills, from other repositories

hive.context-preservation

Proactively extract critical values from tool results into working notes before automatic context pruning destroys them.

aden-hive/hive · 24 tokens

hive.note-taking

Maintain a free-form scratchpad of decisions, extracted values, and open questions so context pruning doesn't lose anything you still need.

aden-hive/hive · 30 tokens

ha-data-stores

Map of Hope Agent's local data stores and safe read-only query workflow. Use when the user asks where Hope Agent stores data, wants to inspect sessions/messages/memory/logs/background jobs/knowledge indexes/settings, asks the model to query local app data, or debugging requires checking persisted state. Trigger…

shiwenwen/hope-agent · 115 tokens

ha-knowledge

Working method for the Hope Agent knowledge space — how to capture, organize, link, retrieve, and maintain Markdown notes well with the note tools. Load whenever you are reading or writing notes in an attached knowledge base. Trigger on: user asks to take / save / organize / restructure notes, build or grow a…

shiwenwen/hope-agent · 187 tokens

memory-consolidate

A memory-maintenance skill that stores a small number of durable, searchable facts and keeps the main memory file concise.

zhinjs/zhin · 46 tokens

persona-knowledge

Persistent, incremental, searchable persona knowledge base. Ingests data from Obsidian vaults, chat exports, X/Twitter archives, and more into a MemPalace-backed store with a Karpathy LLM Wiki knowledge layer. Exports training/ directories for persona-model-trainer.

acnlabs/OpenPersona · 62 tokens