GooFish-AIMonitor: Instructions file for Codex

AGENTS.md

GooFish-AIMonitor AGENTS.md is an instructions file for Codex, OpenCode from tristanwqy/GooFish-AIMonitor. It costs 1,839 tokens per session, scanned A, original, MIT.

Repository guidance for GooFish-AIMonitor, a web console for finding products on Xianyu and monitoring price drops. It documents the Python and JavaScript technologies, project rules, validation commands, and code structure.

In plain words
What is it for?
Use it when changing the Xianyu crawler, its FastAPI backend, database and scheduler code, or its React/Vite frontend, and when running the required tests, type checks, and build.
Why use it?
It tells an agent which checks are authoritative and where sensitive settings belong, reducing incorrect diagnostics and preventing secrets or fixed business settings from entering the repository.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

This is tristanwqy/GooFish-AIMonitor's own configuration. It tells Codex and OpenCode how to work on GooFish-AIMonitor 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 GooFish-AIMonitor configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is cd frontend && npm run build # 产物 → ../src/xianyu_crawler/web/static.

Reuse

Borrowing it

Nothing to install: this file belongs to tristanwqy/GooFish-AIMonitor. 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/tristanwqy/GooFish-AIMonitor/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/tristanwqy/GooFish-AIMonitor

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 GooFish-AIMonitor AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/tristanwqy/goofish-aimonitor/agents-md/github.svg)](https://agentmods.dev/instructions/tristanwqy/goofish-aimonitor/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/tristanwqy/goofish-aimonitor/agents-md"><img src="https://agentmods.dev/badge/instructions/tristanwqy/goofish-aimonitor/agents-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 GooFish-AIMonitor AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/tristanwqy/goofish-aimonitor/agents-md"><img src="https://agentmods.dev/badge/instructions/tristanwqy/goofish-aimonitor/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,839 This file is loaded in full into every session.
When invoked 1,839 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.01839 $0.01839
Opus 5 $0.00920 $0.00920
Sonnet 5 $0.00368 $0.00368
Haiku 4.5 $0.00184 $0.00184

Measured 10d ago against content hash 39017115a442, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

GooFish-AIMonitor 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 10d 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 · 99 lines

How it starts

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

AGENTS.md — 给 AI 协作者的工程指南

闲鱼控制台:本地运行的闲鱼选品(R1) + 降价监控(R2) Web 控制台。Python 3.12+ / Playwright(sync) / SQLAlchemy 2 / FastAPI + APScheduler / React + Vite。面向人类的说明见 README.md

黄金规则(先读这条)

  1. 内置(inline)Pyright 在本仓库是坏的,会报不可能的错(import time 无法解析、X | None 操作符不支持、Mapped[...] 参数错误等)。不要信任内置诊断。权威检查只用:
    npx --yes pyright@latest --pythonpath /opt/miniconda3/bin/python src tests scripts
    /opt/miniconda3/bin/python -m pytest -q
    
  2. 绝不把隐私/密钥写进仓库:邮箱、SMTP 密码、LLM Token、内网接口地址、登录态——全部只能来自系统环境变量或 gitignored 的 data/secret.env。内网/私有模型代理等地址只配在 data/secret.env,代码里默认值必须是通用占位(https://api.openai.com/v1)。
  3. 没有任何写死的业务配置:可调项走 config.py 默认 ← AppConfig(DB) ← 设置页 三层。新增配置项要三层都过。
  4. 不要主动 git commit,除非用户明确要求。
  5. 默认中文回答;代码标识符/库名/报错保留英文。

验证命令(完成前必跑)

/opt/miniconda3/bin/python -m pytest -q
npx --yes pyright@latest --pythonpath /opt/miniconda3/bin/python src tests scripts
cd frontend && npm run build          # 产物 → ../src/xianyu_crawler/web/static

代码地图

src/xianyu_crawler/
  config.py        Settings(BaseSettings, env_prefix=XIANYU_, 读 .env + data/secret.env) + Watch + 默认提示词
  models.py        Item 等领域值对象
  search.py        搜索(关键词空格合并成一条 query, 单次 goto)
  filter.py        matches(): 价格/城市/成色/包邮 规则过滤
  favorite.py      点"收藏"(get_by_text("收藏", exact=True)) — 不是"想要"
  favorites_list.py 读收藏夹(含 reducePrice、死链信号)
  price_monitor.py / pipeline.py  降价检测 + 事件
  review.py        LLM 二次审核(OpenAI 兼容)
  liveness.py      详情页核活(死链判定)
  parsing.py       mtop JSON 字段解析(随版本变, 有 *.sample.json 回归)
  service.py       用例层: 桥接 DB ↔ 引擎; effective_settings() 做配置合并
  storage/
    orm.py         ItemRow / PriceHistory / Event / WatchRow / AppConfig
    repo.py        纯 DB 操作(可独立测试); _now() = naive UTC
    migrate.py     幂等 ALTER 列迁移(加字段必改这里)
    db.py          make_session(create=True 时自动跑迁移)
  web/
    app.py         FastAPI 路由(/api/*) + SPA 静态托管
    runner.py      浏览器 worker(全局 _LOCK 串行) + _notify(按事件类型过滤邮件)
    scheduler.py   APScheduler 两个周期: crawl + favorites
    login_runner.py 扫码登录状态机 + logout() + _account()(取 tracknick 昵称)
    dto.py         Pydantic DTO + row↔DTO 映射; _iso() 把 naive UTC 标成 +00:00
    runtime.py     进程内单例 session
frontend/src/
  App.jsx          全屏 grid 外壳(顶栏/侧栏/主区/右栏) + 5 皮肤 + 收起 + 轮询
  sections/        Recommendations / Drops(收藏) / Watches / Settings
  components/ui.jsx, api.js, util.js, styles.css(设计系统 + 5 皮肤令牌)

Read the full file on GitHub · 99 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. 10d ago First seen · 99 lines · 1,839 tokens per session scan A 39017115a442

Subscribe to this mod's changes

GooFish-AIMonitor AGENTS.md is an instructions file published in the GitHub repository tristanwqy/GooFish-AIMonitor (26 stars, last pushed 2mo ago), licensed MIT. It adds 1,839 tokens to every session, about $0.0092 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

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,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

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 · 6,785 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, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 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,469 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 3,735 tokens