financial-analysis AGENTS.md

financial-analysis AGENTS.md is an instructions file for Codex, OpenCode from sorahjy/financial-analysis. It costs 3,479 tokens per session, scanned A, original, MIT.

A repository instruction file for a financial-analysis project. It tells coding agents and maintainers how the project works, which commands to use, and how to handle changes and financial output.

In plain words
What is it for?
It guides setup, local development, testing, document and code changes, data handling, and work with the project's Flask, SQLite, JSON, and SVG components.
Why use it?
It gives agents project-specific facts and safety boundaries before they edit code or documentation. It also warns them not to treat research signals as guaranteed returns or automated trading.

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

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 financial-analysis AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/sorahjy/financial-analysis/agents-md.svg)](https://agentmods.dev/instructions/sorahjy/financial-analysis/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/sorahjy/financial-analysis/agents-md"><img src="https://agentmods.dev/badge/instructions/sorahjy/financial-analysis/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 3,479 This file is loaded in full into every session.
When invoked 3,479 The same file — it is already loaded in full.
Security scan A 0 findings. 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.03479 $0.03479
Opus 5 $0.01740 $0.01740
Sonnet 5 $0.00696 $0.00696
Haiku 4.5 $0.00348 $0.00348

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

Security

Grade A, and why

financial-analysis 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 5d 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 · 215 lines

How it starts

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

AGENTS.md

本文件适用于仓库根目录及所有子目录,供后续编码 agent 和维护者使用。开始修改前先读 README.mdARCHITECTURE.md。如果未来某个子目录增加更具体的 AGENTS.md,以离目标文件最近的规则为准。

1. 工作原则

  1. 先确认真实实现,再改文档或代码。入口、CLI、数据源和产物经常一起演进,不要只根据文件名或旧注释推断。
  2. 把当前工作区视为用户现场。先运行 git status --short 和相关 git diff;已有修改、未跟踪研究结果和本地数据库都属于用户,不能顺手清理、覆盖或回滚。
  3. 保持改动聚焦。不要把文档任务扩成模型调参,不要把诊断任务扩成生产修复,也不要为通过测试而改变未被请求的策略口径。
  4. 用最小但足够的验证证明改动。优先跑直接相关测试,再根据风险决定是否跑完整套件。
  5. 所有金融输出都是研究信号。新增页面文案、导出或报告时,不得暗示确定收益或自动交易能力。

2. 仓库事实

  • 运行环境:Python 3.10+;当前代码使用 X | Noneargparse.BooleanOptionalAction 和内置泛型等语法,文档编写时在 Python 3.12.12 验证。
  • Web:Flask + Jinja + 原生 JavaScript/CSS,无前端构建步骤。
  • 测试:标准库 unittest;没有 pytest.inipyproject.toml、tox 或项目级 lint/format 配置。
  • 依赖:requirements.txt 没有锁定精确版本,也没有单独的开发依赖文件。
  • 主存储:本地 SQLite;运行产物为 JSON/SVG。
  • 工作目录很重要:多个存储模块使用相对路径 Path("data"),命令必须从仓库根目录执行。
  • 网络抓取依赖公开接口,可能受代理、限流、字段变化和非交易日影响。

3. 环境与常用命令

macOS、Linux 及基于 Linux/Unix 的国产系统从仓库根目录执行:

python3 -m venv .venv
source .venv/bin/activate
python -m pip install -r requirements.txt

Windows PowerShell:

py -3 -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install -r requirements.txt

启动本地工作台:

python run.py --port 8765

跑单个测试文件:

PYTHONDONTWRITEBYTECODE=1 python -m unittest discover -s tests -p 'test_hot_money_radar.py' -v

跑完整测试:

PYTHONDONTWRITEBYTECODE=1 python -m unittest discover -s tests -v

Windows PowerShell 对应写法:

$env:PYTHONDONTWRITEBYTECODE = "1"
python -m unittest discover -s tests -v

交付前至少运行:

git diff --check
git status --short

不要用联网刷新命令充当普通单元测试。测试外部数据适配时注入 fetcher、mock HTTP/AkShare 响应,并用临时目录或 :memory: SQLite。

4. 写入与副作用分级

明确会联网并写本地状态

  • python fund_data_refresh.py
  • python stock_radar_fresh_data.py
  • stock_crawl_*.pyplate_crawl_history.py 等抓取器
  • stock_data_refresh.py
  • stock_hot_money_radar.py 的生产/实验模式
  • stock_crawl_news.pymf_pilot.py crawl

除非任务明确要求刷新真实数据,否则不要在验证阶段运行这些命令。

两个 .py 刷新入口都会复用当前解释器,并在 Windows 与 POSIX 系统上通过参数列表启动子进程。fund_data_refresh.py 保持为根目录基金刷新入口,内部子步骤通过 python -m fund... 运行。

Read the full file on GitHub · 215 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. 5d ago First seen · 215 lines · 3,479 tokens per session scan A e2a3977d75b4

Subscribe to this mod's changes

financial-analysis AGENTS.md is an instructions file published in the GitHub repository sorahjy/financial-analysis (25 stars, last pushed 1mo ago), licensed MIT. It adds 3,479 tokens to every session, about $0.0174 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

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

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 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,182 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,733 tokens