agentleFS
naman10parikhnaman10parikh/wikimem/AGENTS.md

wikimem

AGENTS.md8 starsChanged 25 days agoMITView on GitHub

The one set of instructions for every coding agent and every person working with WikiMem. CLAUDE.md and GEMINI.md import this file. (AGENTS.md.example is different: it is the schema file that wikimem init copies into a user's vault.) WikiMem is memory for agents. It turns files, links and connected apps into a linked Markdown wiki, then lets agents and people search it, ask it questions and improve it. It runs on your machine; the wiki is a folder of Markdown files…

  • Reads credentials

The file

We split this AGENTS.md into the rules it gives an agent

7 rules. About 0 are common, 2 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Run from a clone with node dist/index.js <command> after pnpm build, or straight from GitHub with npx -y -p github:naman10parikh/wikimem …

    line 19
  2. Very specific:

    Never write to a vault's raw/ folder.

    line 68
  3. Distinctive:

    Never overwrite a page a person edited without showing the diff first.

    line 69
  4. Very specific:

    Never pass a token a client gave WikiMem on to a third-party API.

    line 70
  5. Very specific:

    Never put a key in a file, a log or a URL.

    line 71
  6. Very specific:

    Never run observe --improve or improve without a budget.

    line 73
  7. Distinctive:

    Never merge a change that lowers an eval score or fails a test.

    line 74

≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

AGENTS.md — WikiMem

The one set of instructions for every coding agent and every person working with WikiMem. CLAUDE.md and GEMINI.md import this file. (AGENTS.md.example is different: it is the schema file that wikimem init copies into a user's vault.)

What it does

WikiMem is memory for agents. It turns files, links and connected apps into a linked Markdown wiki, then lets agents and people search it, ask it questions and improve it. It runs on your machine; the wiki is a folder of Markdown files and a git repository, and every vault opens in Obsidian.

Its agent employee is Codex (identity/SOUL.md): it ingests, links, observes and improves.

Its tools, and how to call them

Command line (wikimem)

Run from a clone with node dist/index.js <command> after pnpm build, or straight from GitHub with npx -y -p github:naman10parikh/wikimem wikimem <command>. Every command takes --help; most take --vault <path> (default: the current folder).

CommandWhat it doesNeeds an LLM key
init [dir]Create a vault (--template personal|research|business|codebase, --from-folder, --from-repo)no (yes with --from-*)
ingest <source> / add-source <path>Turn a file, folder or URL into wiki pages; add-source skips unchanged filesyes
search <query>BM25 keyword search over the wikino
ask <question> / query <question>Answer from the wiki with cited pagesyes
lintFind orphan pages, broken wikilinks and missing summariesno
status [--json]Count pages, words, sources, links and orphansno
observe [--json]Score every page and list weak pages, orphans and gaps; --improve spends budgetno (yes with --improve)
improveRewrite weak pages through an LLM reviewyes
watch, scrape, sandbox-runAuto-ingest raw/; pull RSS, GitHub and URLs; fetch untrusted pages inside an E2B sandboxsandbox-run needs E2B_API_KEY
serveThe web app on port 3141, plus the MCP endpoint /mcp with OAuth 2.1no
mcpThe MCP server over stdio (same as the wikimem-mcp bin)no
export, publish, history, open, duplicatesGraph export, static site and feeds, change history, open a page, list rejected duplicatesno

MCP server (wikimem-mcp)

wikimem-mcp --vault <path> speaks MCP over stdio; with no --vault it serves the current folder. wikimem serve exposes the same tools over HTTP at /mcp, behind OAuth 2.1 (dynamic client registration, PKCE S256, resource indicators), so a Claude custom connector can use it. 19 tools, defined in src/mcp-server.ts:

GroupTools
Readwikimem_search, wikimem_read, wikimem_list, wikimem_status, wikimem_ask
Writewikimem_ingest, wikimem_ingest_url, wikimem_pipeline, wikimem_scrape
Improvewikimem_observe, wikimem_run_observer, wikimem_get_report, wikimem_improve, wikimem_lint
Connectorswikimem_connectors, wikimem_list_connectors, wikimem_connect, wikimem_sync, wikimem_preview

Skills

SkillUse it when
wikimemYou need to ingest, search, ask, sync a connector or expose a vault over MCP
wikimem-ingest-pipelineYou turn files, folders or URLs into linted, linked pages, or keep a changing folder in sync
wikimem-observerYou score a vault, find weak or missing pages, or run the improvement loop

Sub-agents (.claude/agents/)

vault-curator reviews a vault's quality and proposes fixes. mcp-auth-auditor checks the MCP OAuth 2.1 server and client against the specification. The others (architect, code-reviewer, agent-auditor, performance-analyzer, research-agent, security-reviewer, test-writer) are general reviewers. All of them research and report; the parent agent makes the change.

What not to do

  • Never write to a vault's raw/ folder. It is the record of the original sources.
  • Never overwrite a page a person edited without showing the diff first.
  • Never pass a token a client gave WikiMem on to a third-party API; use WikiMem's own provider token.
  • Never put a key in a file, a log or a URL. Keys come from environment variables (ANTHROPIC_API_KEY, OPENAI_API_KEY, E2B_API_KEY and the rest in the README).
  • Never run observe --improve or improve without a budget; the default cap is $2.00.
  • Never merge a change that lowers an eval score or fails a test.

Working on this repository

FolderWhat it holds
src/Product code: cli/, core/, mcp/, processors/, providers/, search/, web/
tests/Vitest suites (unit and integration)
eval/Golden-task evals (pnpm eval) and the weekly self-review
skills/The skills above, shipped with the package and the plugin
identity/Codex's SOUL, BRAND, HEARTBEAT and memory bootstrap
memory/Long-term memory: MEMORY.md index and LEARNINGS.md
brain/An Obsidian vault of this repository's own docs
docs/Architecture, configuration, connectors, OAuth app registration
templates/Vault templates and slash commands copied by wikimem init

The gate before any change: pnpm build && pnpm test && pnpm eval. CI runs the same on Node 18, 20 and 22.

Commits: conventional (feat:, fix:, docs:, refactor:); harness changes may use feat(skill):, feat(employee): or feat(company): so a change can be rolled back at that size.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.