wiki-context.en — Claude Code rule: what it does, how to install
wiki-context.en is a Claude Code rule that reads relevant wiki hints and lesson entries during a terminal session.
Apache-2.0 ★ 262 updated 2026-11-17
.claude/rules/wiki-context.en.mdWhat wiki-context.en does
wiki-context.en handles terminal messages that point to potentially relevant wiki pages. It reads a page only when the match matters and limits the read to the supplied hit lines through sed -n, rather than loading the whole page.
The rule also reads quoted lessons from rule-candidates-recurrence*.md under GATE_WIKI. These cover first-turn reminders, correction hints, and one daily reminder for unanswered proposals. WIKI_INGEST skips the injection. An optional weekly comparison uses HOOK_LESSONS_TRIAL_START with an ISO date and is disabled by default.
What it helps with
- identify a relevant wiki page from a terminal-session hint
- read only matching page lines with
sed -n - bring recurrence lessons into the first agent turn
- surface a daily reminder for unanswered proposals
- skip lesson injection with
WIKI_INGEST
Example prompts for the agent
- Read the relevant wiki page, using only the hit lines supplied through
sed -n. - Load the first-turn lessons from
GATE_WIKI/rule-candidates-recurrence*.mdand include the correction hints. - Set
HOOK_LESSONS_TRIAL_STARTto an ISO date for the optional weekly comparison.
How to install wiki-context.en
Manually: put the files in place
.claude/rules/wiki-context.en.mdThe paths frontmatter field limits the files
AGENTS.md
Codex reads AGENTS.md: paste the rule text there
Manually: put the files in place
.cursor/rules/wiki-context.en.mdcFrontmatter: description, globs, alwaysApply
Manually: put the files in place
.github/instructions/wiki-context.en.instructions.mdThe applyTo field sets which files it applies to
Manually: put the files in place
.devin/rules/wiki-context.en.mdManually: put the files in place
.clinerules/wiki-context.en.mdStep by step, with commands for each platform: AGENTS.md vs CLAUDE.md: what they are and which one to use
Questions about wiki-context.en
How do I install wiki-context.en in Claude Code?
Place the rule file at .claude/rules/wiki-context.en.md.
What does wiki-context.en do?
It uses terminal wiki hints to select relevant pages and reads only their supplied matching lines with sed -n. It also loads lessons from rule-candidates-recurrence*.md under GATE_WIKI for the first turn, correction hints, and a daily unanswered-proposal reminder.
What does wiki-context.en need to work?
It needs a terminal session, the GATE_WIKI directory with rule-candidates-recurrence*.md, and sed -n. The optional weekly comparison uses HOOK_LESSONS_TRIAL_START with an ISO date, while WIKI_INGEST skips injection.
Source text
wiki-context.en.md · Apache-2.0
- Wiki hints (wiki-context): in a terminal session a message may start with 「可能相关的 wiki 页」; read a page only when it is relevant, and only the hit lines given (`sed -n`), not the whole page. - Read quoted lessons from rule-candidates-recurrence*.md under GATE_WIKI: first-turn high-frequency reminders, correction hints and one daily reminder for unanswered proposals. WIKI_INGEST skips injection. Set HOOK_LESSONS_TRIAL_START to an ISO date for the optional weekly comparison (disabled by default).
© zuiho-kai · Apache-2.0 · zuiho-kai/bothouse