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.5 | $0.00736 | $0.00736 |
| Sonnet 5.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 2mo 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.
- 2mo 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 (43 stars, last pushed 4mo ago), licensed MIT. It adds 1,839 tokens to every session, about $0.0074 per session on Opus 5.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.
GooFish-AIMonitor AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| GooFish-AIMonitor AGENTS.mdtristanwqy/GooFish-AIMonitor | Instructions file | 43 | 4mo ago | MIT | A | 1,839 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |