seek AGENTS.md

A project guide for Seek, an AI coding assistant whose instructions are loaded automatically when the tool starts. It defines the required architecture and workflow and points to a record of known pitfalls.

In plain words
What is it for?
Use it when working on Seek's code, tools, architecture, or integrations. When a non-obvious issue is fixed, it explains how to record the symptom, cause, fix, lesson, and a matching commit trailer.
Why use it?
It gives the assistant consistent rules for handling surprising behavior, undocumented API limits, and non-obvious bugs. Recording these lessons helps future work avoid the same problems.

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

Made for: Codex, OpenCode.

Per session 5,225 This file is loaded in full into every session.
When invoked 5,225 The same file — it is already loaded in full.
Security scan A 1 finding. 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.05225 $0.05225
Opus 5 $0.02612 $0.02612
Sonnet 5 $0.01045 $0.01045
Haiku 4.5 $0.00522 $0.00522

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

Security

Grade A, and why

seek AGENTS.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 2d 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

Copies of this mod

1 near-identical copy found in the catalogue:

AGENTS.md · 164 lines

How it starts

The opening of the file, as written. The whole thing — 164 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 auto-loaded by seek at startup (and by other agent tools that follow the AGENTS.md convention). The canonical agent instructions for this repo live here. CLAUDE.md mirrors structural content for Claude Code; 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 · 164 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. 2d ago First seen · 164 lines · 5,225 tokens per session scan A 876311534301

Subscribe to this mod's changes

seek AGENTS.md is an instructions file published in the GitHub repository whyiyhw/seek (19 stars, last pushed 10d ago), licensed MIT. It adds 5,225 tokens to every session, about $0.0261 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). 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