llmwiki-cli CLAUDE.md

llmwiki-cli CLAUDE.md is an instructions file for coding agents from doum1004/llmwiki-cli. It costs 1,695 tokens per session, scanned A, original, MIT.

Project instructions for llmwiki-cli, a command-line tool that lets AI agents create, edit, search, and connect personal knowledge-base pages stored as Markdown files.

In plain words
What is it for?
Use them when developing or maintaining the TypeScript CLI, its filesystem-based wiki storage, Markdown indexes, commands, and build process.
Why use it?
They explain the project's architecture and write process so coding agents can change the CLI without confusing it with an AI service; the CLI itself does not call an AI API.

Instructions file

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.

agentmods
npx agentmods add instructions/doum1004/llmwiki-cli/claude-md
Clone the repo
git clone --depth 1 https://github.com/doum1004/llmwiki-cli

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 llmwiki-cli CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/doum1004/llmwiki-cli/claude-md.svg)](https://agentmods.dev/instructions/doum1004/llmwiki-cli/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/doum1004/llmwiki-cli/claude-md"><img src="https://agentmods.dev/badge/instructions/doum1004/llmwiki-cli/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,695 This file is loaded in full into every session.
When invoked 1,695 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found 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 $0.01695 $0.01695
Opus 5 $0.00847 $0.00847
Sonnet 5 $0.00339 $0.00339
Haiku 4.5 $0.00169 $0.00169

Measured 3d ago against content hash 10f9bf4b46b3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

llmwiki-cli CLAUDE.md scanned grade A with 0 findings 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 3d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 151 lines

How it starts

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

LLM Wiki CLI — AI / agent context

Audience: This file is for AI assistants and coding agents (instructions, rules, architecture, conventions). Humans should use README.md for project overview, installation, badges, and user-oriented examples.

What this is

A CLI tool that helps LLM agents (Claude Code, Codex, etc.) build and maintain personal knowledge bases. The CLI is the hands — it reads, writes, searches, and manages wiki files. The LLM is the brain — it decides what to create, update, and connect.

Key principle: The CLI never calls any LLM API. It is a pure filesystem tool: markdown under the wiki root via StorageProvider / WikiManager.

Write path: wiki write <path> reads JSON from stdin, validates fields, writes YAML frontmatter + markdown body, and upserts wiki/index.md for paths under wiki/ (except wiki/index.md). There is no separate index command. To edit a page: wiki read → merge in the agent → wiki write with full JSON.

Tech stack

  • Runtime: Bun (development), Node.js (published bundle)
  • Language: TypeScript
  • Dependencies: commander (CLI), js-yaml (YAML parsing)
  • Build: bun build bundles to dist/index.js targeting Node.js
  • Tests: Bun test runner (bun test)

LLM agent skill guide

Run wiki skill to print the full guide. Source of truth for that text is the SKILL_GUIDE string in src/commands/skill.ts — keep it aligned with commands registered in src/index.ts and with scaffolded wiki docs in src/lib/templates.ts (e.g. SCHEMA.md). End users are also pointed here from README.

Project structure

dist/index.js            # Built bundle (npm-published artifact)
src/
  index.ts               # CLI entry point (source)
  types.ts               # Shared TypeScript interfaces
  lib/
    storage.ts           # StorageProvider factory (createProvider → WikiManager)
    wiki.ts              # WikiManager: filesystem StorageProvider
    config.ts            # .llmwiki.yaml read/write
    registry.ts          # Global registry (~/.config/llmwiki/registry.yaml)
    resolver.ts          # Wiki resolution chain (--wiki → cwd → walk up → default)
    templates.ts         # Default file content (SCHEMA.md, index.md; optional viz workflow/scripts for drop-in)
    search.ts            # Full-text search with term-frequency ranking
    index-manager.ts     # IndexManager: uses StorageProvider for index.md (upsert/remove)
    frontmatter.ts       # YAML frontmatter parse/detect/add
    link-parser.ts       # Wikilink extraction and link graph building
  commands/
    init.ts              # wiki init (--name, --domain)
    registry.ts          # wiki registry
    use.ts               # wiki use
    read.ts              # wiki read
    write.ts             # wiki write (JSON stdin)
    delete.ts            # wiki delete
    list.ts              # wiki list
    search.ts            # wiki search
    lint.ts              # wiki lint
    links.ts             # wiki links
    backlinks.ts         # wiki backlinks
    orphans.ts           # wiki orphans
    status.ts            # wiki status
    skill.ts             # wiki skill (print LLM agent guide)
test/
  init.test.ts           # Config, registry, resolver, templates, init integration
  read-write.test.ts     # WikiManager page operations
  storage.test.ts        # StorageProvider factory
  filesystem-provider.test.ts # Filesystem provider contract tests
  commands.test.ts       # End-to-end CLI command integration tests
scripts/
  generate-viz-scripts.ts # Extracts viz build scripts from templates.ts (used by demo workflow)
test-wiki-page/
  wiki/                  # Example wiki pages for live demo on GitHub Pages

Read the full file on GitHub · 151 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. 3d ago First seen · 151 lines · 1,695 tokens per session scan A 10f9bf4b46b3

Subscribe to this mod's changes

llmwiki-cli CLAUDE.md is an instructions file published in the GitHub repository doum1004/llmwiki-cli (101 stars, last pushed 4mo ago), licensed MIT. It adds 1,695 tokens to every session, about $0.0085 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories