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.
curl -O https://raw.githubusercontent.com/tristanwqy/GooFish-AIMonitor/main/AGENTS.mdgit clone --depth 1 https://github.com/tristanwqy/GooFish-AIMonitorWrote 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.
[](https://agentmods.dev/instructions/tristanwqy/goofish-aimonitor/agents-md)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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。
黄金规则(先读这条)
- 内置(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 - 绝不把隐私/密钥写进仓库:邮箱、SMTP 密码、LLM Token、内网接口地址、登录态——全部只能来自系统环境变量或 gitignored 的
data/secret.env。内网/私有模型代理等地址只配在data/secret.env,代码里默认值必须是通用占位(https://api.openai.com/v1)。 - 没有任何写死的业务配置:可调项走
config.py默认 ←AppConfig(DB) ← 设置页 三层。新增配置项要三层都过。 - 不要主动
git commit,除非用户明确要求。 - 默认中文回答;代码标识符/库名/报错保留英文。
验证命令(完成前必跑)
/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 皮肤令牌)
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.
- 10d ago First seen · 99 lines · 1,839 tokens per session scan A 39017115a442
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.
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.
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.
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).
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).
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.
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.