wenlan AGENTS.md

wenlan AGENTS.md is an instructions file for Codex, OpenCode from 7xuanlu/wenlan. It costs 1,347 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for Wenlan, a local-first memory system whose monorepo contains its daemon, command-line tool, shared types, core logic, server, and desktop app. They direct you to the closest instructions for each part.

In plain words
What is it for?
Use them when changing Wenlan’s business logic, Rust services, desktop or React interface, browser tests, evaluation files, cross-platform code, or release scripts.
Why use it?
They show where to find the rules for each component, reducing mistakes when working in a repository with several connected applications.

Instructions file for CodexOpenCode

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/7xuanlu/wenlan/agents-md
Clone the repo
git clone --depth 1 https://github.com/7xuanlu/wenlan

Made for: Codex, OpenCode.

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 wenlan AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/7xuanlu/wenlan/agents-md.svg)](https://agentmods.dev/instructions/7xuanlu/wenlan/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/7xuanlu/wenlan/agents-md"><img src="https://agentmods.dev/badge/instructions/7xuanlu/wenlan/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,347 This file is loaded in full into every session.
When invoked 1,347 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.01347 $0.01347
Opus 5 $0.00674 $0.00674
Sonnet 5 $0.00269 $0.00269
Haiku 4.5 $0.00135 $0.00135

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

Security

Grade A, and why

wenlan AGENTS.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 4d 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.

AGENTS.md · 98 lines

How it starts

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

AGENTS.md

Wenlan is a local-first agent memory system. This monorepo ships the daemon, CLI, shared wire types, business-logic core, MCP server, and Tauri desktop app.

Keep this file to repository-wide behavior. Detailed facts, flag receipts, eval methodology, and historical decisions belong in the owning reference or runbook and are read only when the task needs them.

Start here

Work Read
Business logic, storage, retrieval, enrichment crates/wenlan-core/AGENTS.md
HTTP daemon and runtime workers crates/wenlan-server/AGENTS.md
Desktop app and frontend app/AGENTS.md or the closest nested AGENTS.md
React frontend (Tauri UI) src/AGENTS.md
Browser e2e tests e2e/AGENTS.md
Browser-only preview harness preview/AGENTS.md
Release, sidecar, and repo-inventory scripts scripts/AGENTS.md
Eval fixtures and artifacts app/eval/AGENTS.md
Rust eval runners and experiment design crates/wenlan-core/src/eval/AGENTS.md
Test routing and CI layers docs/test-layers.md
Platform and release work docs/cross-platform.md, RELEASING.md
Live daemon/app verification .claude/skills/run-wenlan/SKILL.md, then the relevant verify/prove skill

Build and verification

The default Cargo workspace covers the five daemon crates; the desktop app must be selected explicitly with -p wenlan-app.

  • During implementation, run the smallest test that exercises the changed behavior.
  • Before publishing a stable head, run the affected-package and reverse-dependency closure selected by the existing CI planner, or locally via WENLAN_PUSH_FULL=1 git push (pre-push is fast/non-compiling by default; CI is the required gate).
  • The full workspace suite is the CI/main backstop, not a per-worker or per-review-pass default. Do not rerun an unchanged, trustworthy receipt without a concrete reason.
  • Eval quality runs, live GPU smokes, and deployed checks are measurement lanes. Run them only when the change or requested evidence requires them.
  • A missing fixture or unavailable gate is unchecked, never a pass. Follow docs/ci-flake-policy.md before rerunning or quarantining an intermittent CI failure.

Read the full file on GitHub · 98 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. 4d ago First seen · 98 lines · 1,347 tokens per session scan A 4594cfc3d4e5

Subscribe to this mod's changes

wenlan AGENTS.md is an instructions file published in the GitHub repository 7xuanlu/wenlan (62 stars, last pushed today), licensed Apache-2.0. It adds 1,347 tokens to every session, about $0.0067 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

obsidian-llm-wiki AGENTS.md

AGENTS.md instructions for green-dalii/obsidian-llm-wiki, covering llm wiki plugin project development standards, 🛡️ six-gate quality closure, gate 1: five-gate automated, gate 2: no side effects and gate 3: no breaking changes.

green-dalii/obsidian-llm-wiki · 7,700 tokens

remnic AGENTS.md

AGENTS.md instructions for joshuaswarren/remnic, covering remnic - agent guide, architecture boundaries (non-negotiable), upstream references, adapter implementation rules and openclaw compatibility window.

joshuaswarren/remnic · 31,441 tokens

engraphis AGENTS.md

AGENTS.md instructions for Coding-Dev-Tools/engraphis, covering agents.md — engraphis, internal subagent delegation, 0. read this first — two architectures live in one package, 1. commands and ── unified dashboard + memory inspector ──.

Coding-Dev-Tools/engraphis · 4,947 tokens

braindb CLAUDE.md

Claude Code instructions for dimknaf/braindb, covering braindb — claude instructions, ⚠ tool priority — read this first, it overrides habit, at the start of every session, 1. get always-on rules (behavioral guidelines) and project structure.

dimknaf/braindb · 2,750 tokens

neurostack CLAUDE.md

Instructions for raphasouthall/neurostack, covering neurostack - claude code guide, quick reference, installation, mcp server (recommended for claude code) and openai-compatible api.

raphasouthall/neurostack · 3,464 tokens

llm-wiki-newsroom CLAUDE.md

Instructions for alfadur7/llm-wiki-newsroom, covering llm wiki newsroom, roles, universal cycle, the four loops and reground.

alfadur7/llm-wiki-newsroom · 4,746 tokens