seek CLAUDE.md

seek CLAUDE.md is an instructions file for coding agents from whyiyhw/seek. It costs 5,032 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

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/whyiyhw/seek/claude-md
Clone the repo
git clone --depth 1 https://github.com/whyiyhw/seek

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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 5,032 This file is loaded in full into every session.
When invoked 5,032 The same file — it is already loaded in full.
Security scan A 1 finding. Scan, not verified.
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 $0.05032 $0.05032
Opus 5 $0.02516 $0.02516
Sonnet 5 $0.01006 $0.01006
Haiku 4.5 $0.00503 $0.00503

Measured 4d ago against content hash bdabbbf8dcc2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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.

Makes network callslowCapability

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

- **Try alternative paths to the same answer.** webfetch returned garbage on an HTML page? Try a different URL form — raw GitHub (`https://raw.githubusercontent.com/...`), the API reference instead of the rendered doc, a
Origin

This is a copy

86% identical to seek AGENTS.md — 32 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 · 156 lines

How it starts

The opening of the file, as written. The whole thing — 156 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. 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.
  • 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 · 156 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 · 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 (19 stars, last pushed 12d ago), licensed MIT. It adds 5,032 tokens to every session, about $0.0252 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). It is 86% identical to seek AGENTS.md, differing in 32 lines, and is treated as a copy.

Related

Other instructions, from other repositories