seek: Instructions file for Claude Code

CLAUDE.md

seek CLAUDE.md is an instructions file for Claude Code from whyiyhw/seek. It costs 4,868 tokens per session, scanned A, a copy of seek AGENTS.md, MIT.

A project guide for Seek, an AI coding assistant whose architecture and tool workflow are treated as fixed conventions. It also records non-obvious problems and their solutions in a pitfalls document.

In plain words
What is it for?
Use it when fixing bugs, discovering tool or API limitations, or changing Seek's architecture and workflow. It explains what to record in docs/pitfalls.md and how to label the related commit.
Why use it?
It helps assistants avoid repeating known mistakes and preserves undocumented API constraints or surprising behavior. Commit trailers make those lessons easier to collect again if the document falls out of sync.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions subagents; mentions Claude Code.

This is whyiyhw/seek's own configuration. It tells Claude Code how to work on seek itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything seek configures →

Reuse

Borrowing it

Nothing to install: this file belongs to whyiyhw/seek. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/whyiyhw/seek/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/whyiyhw/seek

Made for: Claude Code.

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 seek CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/whyiyhw/seek/claude-md/github.svg)](https://agentmods.dev/instructions/whyiyhw/seek/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/whyiyhw/seek/claude-md"><img src="https://agentmods.dev/badge/instructions/whyiyhw/seek/claude-md/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 seek CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/whyiyhw/seek/claude-md"><img src="https://agentmods.dev/badge/instructions/whyiyhw/seek/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,868 This file is loaded in full into every session.
When invoked 4,868 The same file — it is already loaded in full.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 86% 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.04868 $0.04868
Opus 5.5 $0.01947 $0.01947
Sonnet 5.5 $0.00974 $0.00974
Haiku 4.5 $0.00487 $0.00487

Measured 1mo ago against content hash 943801f91963, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

seek CLAUDE.md scanned grade A 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 1mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- **Try alternative paths.** webfetch returned garbage on an HTML page? Try raw GitHub, the API reference instead of the rendered doc, a mirror, the project's own `docs/`. bash denied in plan-analyze? Use the purpose-bui
Origin

This is a copy

86% identical to seek AGENTS.md — 26 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.

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.

seek — project guide for AI assistants

This file is read at the start of every Claude Code session in this repo. It mirrors AGENTS.md, which seek itself auto-loads at startup. The two files are related but allowed to diverge where each agent's tooling differs (see AGENTS.md vs CLAUDE.md).

Treat the instructions below as mandatory project conventions.

Pitfall recording (load-bearing — read this)

When you fix a non-obvious bug, discover an undocumented API constraint, or find a surprising piece of behaviour:

  1. Append an entry to docs/pitfalls.md using the template at the top of that file. Categorise it (TUI / DeepSeek API / Go / Tooling / etc.); keep it terse — symptom, root cause, fix, lesson, refs.
  2. Add a Pitfall: <one-line summary> trailer to the commit message. Multiple pitfalls in one commit = multiple trailers.
  3. The trailer is what scripts/extract-pitfalls.sh reads — it's the redundant signal so docs/pitfalls.md can be regenerated if it ever falls out of sync.

What counts as "non-obvious":

  • A behaviour that surprised you (or the user) for more than a minute.
  • An API contract that isn't documented in the obvious spot.
  • A workaround for a tooling / classifier / sandbox limitation.
  • A design constraint that, if forgotten, would be re-discovered painfully.

What does not count:

  • Routine typos, missing imports, version bumps, refactors.
  • Anything obvious from reading the code or running go vet.

If you're not sure: log it — but only for pitfalls produced by the change at hand; if you stumble on something unrelated mid-task, name it in your final message instead of expanding the diff, and let the user decide whether it deserves an entry. Cheap to add, expensive to recover from memory months later.

Architecture (non-negotiable)

  • DeepSeek-first, two-tier providers. pkg/deepseek is a first-class client with DeepSeek-specific fields (cache metadata, FIM endpoint, reasoner content). pkg/llm is a thin generic interface for second-tier providers (Anthropic / OpenAI / Gemini — landing in M6).
  • pkg/deepseek must not import pkg/llm (CI lint enforces this — see .github/workflows/ci.yml). The whole point of the split is that DeepSeek-specific optimisations don't get lowered into a generic interface.
  • Skill subsystem (v2): read-only loader in internal/skill (Anthropic Agent Skills layout: <dir>/SKILL.md + frontmatter); install/uninstall/update in internal/skillmgr; call-stats JSONL in internal/skillstats; shared CLI/TUI dispatcher in internal/skillcli. Loader is the only path that runs at startup; everything else is on-demand. Never add filesystem writes under ~/.seek/skills/ outside internal/skillmgr and internal/skillstats — those are the only two packages allowed to mutate user-level skill state.
  • Plan-mode subsystem (v2 + v2.x): confirmation-gated workflow analyze → propose → execute → adjust → report. Driven by the propose tool (internal/tools/propose/) and progress-tracked by the plan tool (internal/tools/plan/). Substate state machine lives in permission.Policy (Mode / preApproved flag) + agent mode reminder + TUI status bar; transcript event-sourcing reconstructs state on seek -resume (see plan/reconstruct.go). Plan-approval artifacts (write-once markdown snapshots) land in ~/.seek/projects/<id>/plans/ via plan/artifact.go. Full design + status table in docs/prd/feature-plan-mode.md.
  • i18n (view layer only): catalogue in internal/i18n (i18n.T; every key goes in ALL catalogues — parity-tested). Human-facing prose only; LLM-visible strings and the status bar stay English (prefix-cache bytes + width oracle). Language resolves once per session; /lang is the only runtime swap. Design + scope: docs/prd/feature-i18n.md.
  • See docs/prd/ for the full PRD series: v0 initial, v1 Memory, v2 Skill lifecycle, plus standalone feature PRDs (feature-plan-mode.md, feature-webfetch.md, feature-permission-refactor.md, feature-active-memory.md, feature-mcp-client.md, …).

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. 1mo ago Changed · -5 lines · -164 tokens per session 943801f91963
  2. 1mo ago First seen · 156 lines · 5,032 tokens per session scan A bdabbbf8dcc2

Subscribe to this mod's changes

seek CLAUDE.md is an instructions file published in the GitHub repository whyiyhw/seek (22 stars, last pushed 1mo ago), licensed MIT. It adds 4,868 tokens to every session, about $0.0195 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). It is 86% identical to seek AGENTS.md, differing in 26 lines, and is treated as a copy.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,581 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno · 3,077 tokens