auto_trader: Instructions file for Codex

AGENTS.md

auto_trader AGENTS.md is an instructions file for Codex, OpenCode from mgh3326/auto_trader. It costs 7,943 tokens per session, scanned A, original, MIT.

Entry instructions for an automated trading repository, covering its architecture, safe operating rules, and required project guidance.

In plain words
What is it for?
They are for entering the repository safely, finding its main instructions, and understanding limits around trading execution, model use, code changes, and financial records.
Why use it?
They tell an outside coding agent which rules to follow before changing trading code, including branch, worktree, broker, and ledger restrictions.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

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

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/mgh3326/work/auto_trader.

Reuse

Borrowing it

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

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 auto_trader AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/mgh3326/auto_trader/agents-md"><img src="https://agentmods.dev/badge/instructions/mgh3326/auto_trader/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 7,943 This file is loaded in full into every session.
When invoked 7,943 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.07943 $0.07943
Opus 5.5 $0.03177 $0.03177
Sonnet 5.5 $0.01589 $0.01589
Haiku 4.5 $0.00794 $0.00794

Measured today against content hash f3d8aa8a615a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

auto_trader 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 today.

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 · 403 lines

How it starts

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

AGENTS.md

이 파일이 이 레포의 유일한 에이전트 진입점이자 정본이다. Codex 등 모든 에이전트가 이 파일을 읽고, Claude Code는 한 줄 스텁 CLAUDE.md(@AGENTS.md)를 통해 같은 파일을 읽는다. 에이전트 지침은 여기에만 쓴다 — CLAUDE.md에 내용을 추가하지 마라.

프로젝트 개요

AI 기반 자동 거래 분석 시스템으로, 다양한 금융 데이터를 수집하고 out-of-process MCP consumer(claude 세션 등)를 통해 투자 분석을 제공합니다.

주요 특징:

  • 다중 시장 지원: 국내주식(KIS), 해외주식(KIS/Yahoo Finance), 암호화폐(Upbit)
  • 다중 시간대 분석: 일봉 200개 + 분봉(60분/5분/1분)
  • AI 분석: out-of-process MCP consumer(claude 세션 등)가 담당 (런타임은 in-process LLM provider 미탑재 — ROB-501 가드)

핵심 명령어

테스트

make test                         # 모든 테스트 실행
make test-unit                    # 단위 테스트만
make test-integration             # 통합 테스트만
make test-cov                     # 커버리지 리포트 포함
uv run pytest tests/test_*.py -v -k "test_name"  # 특정 테스트만

코드 품질

make lint                         # Ruff + ty 검사
make format                       # Ruff로 코드 포맷팅
make typecheck                    # ty 타입 체킹
make security                     # bandit, safety 보안 검사

데이터베이스

# 마이그레이션 생성 및 적용
uv run alembic revision --autogenerate -m "migration message"
uv run alembic upgrade head

# 마이그레이션 롤백
uv run alembic downgrade -1

# 현재 버전 확인
uv run alembic current

개발 도구

python manage_users.py list                 # 사용자 권한/상태 확인
python websocket_monitor.py --mode both     # 통합 WebSocket 모니터링
python kis_websocket_monitor.py             # KIS WebSocket 모니터링
python upbit_websocket_monitor.py           # Upbit WebSocket 모니터링

작업 시작 전 필독 계약

작업을 시작하기 전에 이 파일 전체와 아래 계약 파일 전부를 읽어라. 관심 기능만 골라 읽는 것은 허용되지 않는다.

@docs/agent-contracts/mcp-and-analysis-contracts.md @docs/agent-contracts/broker-and-ledger-contracts.md @docs/agent-contracts/market-data-and-screener-contracts.md @docs/agent-contracts/approval-and-shadow-contracts.md @docs/agent-contracts/data-model-and-symbol-contracts.md @docs/agent-contracts/developer-reference-contracts.md

필독 파일 중 하나라도 없거나 읽을 수 없으면 작업을 중단하라. 찾아보기 표는 탐색 보조일 뿐 필독 면제가 아니다. 문서 속 예시 명령은 실행 승인이나 운영 권한을 부여하지 않는다.

Read the full file on GitHub · 403 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. today Changed · +28 lines · +753 tokens per session f3d8aa8a615a
  2. 2d ago Changed · +213 lines · +3,642 tokens per session cacf3ed9e5ed
  3. 3d ago Changed · +14 lines · +397 tokens per session 371b93c91943
  4. 1mo ago Changed · +2 lines · +63 tokens per session 7faa8849d149
  5. 1mo ago Changed · +3 lines · +68 tokens per session acfb2f2691a5
  6. 1mo ago Changed · +6 lines · +156 tokens per session f3f7ba86d93f
  7. 1mo ago Changed · +6 lines · +103 tokens per session 21f4b15f497a
  8. 1mo ago Changed · +4 lines · +149 tokens per session cafa3628873d
  9. 1mo ago Changed · +12 lines · +164 tokens per session b6642c65e70a
  10. 2mo ago First seen · 115 lines · 2,448 tokens per session scan A 7726bfeb7973

Subscribe to this mod's changes

auto_trader AGENTS.md is an instructions file published in the GitHub repository mgh3326/auto_trader (10 stars, last pushed yesterday), licensed MIT. It adds 7,943 tokens to every session, about $0.0318 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-31.

Related

auto_trader AGENTS.md compared with instructions from other repositories

auto_trader AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
auto_trader AGENTS.mdmgh3326/auto_traderInstructions file10yesterdayMITA7,943Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode