TickerTick-API: Instructions file for Codex

AGENTS.md

TickerTick-API AGENTS.md is an instructions file for Codex, OpenCode from hczhu/TickerTick-API. It costs 1,457 tokens per session, scanned A, original, MIT.

Repository guidance for coding agents working on the TickerTick stock-news API documentation. It explains the API's endpoints, query language, and source-list files.

In plain words
What is it for?
Use it when an agent edits TickerTick-API documentation, API query examples, endpoints, or curated source lists.
Why use it?
It prevents an agent from changing the wrong repository or treating documentation as application code. It also records the API contract agents must preserve.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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 TickerTick-API AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/hczhu/tickertick-api/agents-md"><img src="https://agentmods.dev/badge/instructions/hczhu/tickertick-api/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,457 This file is loaded in full into every session.
When invoked 1,457 The same file — it is already loaded in full.
Security scan A 1 finding. 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.01457 $0.01457
Opus 5.5 $0.00583 $0.00583
Sonnet 5.5 $0.00291 $0.00291
Haiku 4.5 $0.00146 $0.00146

Measured 11d ago against content hash 26c607bf758d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

TickerTick-API AGENTS.md scanned grade A with 1 finding 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 11d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- GitHub's raw endpoint serves a symlink as plain text containing its target path. Verified: a committed symlink returned HTTP 200 with a 14-byte body of `../../SKILL.md`. A symlinked root copy would make the `curl` inst
AGENTS.md · 75 lines

How it starts

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

AGENTS.md

This file provides guidance to AI coding agents (Claude Code, Codex, and others) working in this repository.

What this repo is

Documentation-only repository: it is the public API contract for the TickerTick stock-news API served at https://api.tickertick.com. There is no application code, build, lint, or test here — the deliverable is README.md (rendered on GitHub as the API docs) plus the curated source lists in docs/. The backend that actually implements and serves this API lives in a separate repository, TickerTick-backend-private; editing files here changes documentation, not API behavior.

The two endpoints (the contract)

  • GET /feed?q=<query>&n=<1-200>&last=<story_id> — latest matching stories, reverse-chronological. last paginates by an existing story's id (a 64-bit int passed as a string). Story time is epoch milliseconds (JS Date.now() semantics). Rate limit: 10 req/min per IP (enforced; >5 requests in any 30s window → 30s block).
  • GET /tickers?p=<prefix>&n=<count> — ticker / company-name autocomplete.

The query language (the core artifact)

A context-free grammar; the full grammar and operator/term tables are in README.md:

  • Operators: (and ...), (or ...), (diff query1 query2) (matches query1 but not query2).
  • Terms: z:TICKER (narrow), tt:TICKER / TT:TICKER (broad), s:DOMAIN (no dots/slashes, e.g. s:wsj), T:story_type, tag:_best_ (editorial highlights, delivered as a _best_ entry in a story's tags).
  • T: story types: curated, earning, market, sec, sec_fin, trade, ugc, analysis, industry, fin_news.

README.md is the single source of truth for the whole contract, and its term and story-type tables are exhaustive. There is no second place to check: a term, story type, parameter or response field that is not in the README is not part of the documented API. docs/ holds only the curated source lists below — no prose documentation. Anything new belongs in the README, and skills/tickertick/SKILL.md follows it.

Read the full file on GitHub · 75 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. 11d ago First seen · 75 lines · 1,457 tokens per session scan A 26c607bf758d

Subscribe to this mod's changes

TickerTick-API AGENTS.md is an instructions file published in the GitHub repository hczhu/TickerTick-API (148 stars, last pushed yesterday), licensed MIT. It adds 1,457 tokens to every session, about $0.0058 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-24.

Related

TickerTick-API AGENTS.md compared with instructions from other repositories

TickerTick-API AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
TickerTick-API AGENTS.mdhczhu/TickerTick-APIInstructions file148yesterdayMITA1,457Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file150ktodayMITA4,951Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,685GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,303GitHub Copilot
deno copilot-instructions.mddenoland/denoInstructions file109kyesterdayMITA3,077GitHub Copilot