valuecell: Instructions file for Codex

AGENTS.md

valuecell AGENTS.md is an instructions file for Codex, OpenCode from ValueCell-ai/valuecell. It costs 1,224 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for Python development in the ValueCell-ai/valuecell project. They describe the project’s package manager, virtual environment, testing command, import practices, and runtime-check preferences.

In plain words
What is it for?
Use them when writing Python code, choosing how to import names, running tests, or adding runtime validation in that repository.
Why use it?
They give coding agents consistent project rules and reduce avoidable problems with dependencies, imports, and type handling.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

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

About the project

ValueCell is a community-driven platform where multiple AI agents support financial activities such as stock research, market analysis, portfolio tracking, and trading. It is for people and developers working with equity and cryptocurrency markets, with sensitive information kept locally on the user's device.

ValueCell-ai/valuecell · 11,043 stars · on GitHub · valuecell.ai

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/valuecell-ai/valuecell/agents-md"><img src="https://agentmods.dev/badge/instructions/valuecell-ai/valuecell/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,224 This file is loaded in full into every session.
When invoked 1,224 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.01224 $0.01224
Opus 5.5 $0.00490 $0.00490
Sonnet 5.5 $0.00245 $0.00245
Haiku 4.5 $0.00122 $0.00122

Measured 2mo ago against content hash 33b2f7087c55, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

valuecell 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.

AGENTS.md · 160 lines

How it starts

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

Guidelines

Python Programming

Python Environment

  • Package manager: uv
  • Virtual environment: ./python/.venv
  • Testing command: uv run pytest

Imports

  • Avoid inline imports unless required to break a circular dependency.
  • If you import more than three names from a single module, prefer qualified imports:
    • Prefer: import pathlib; pathlib.Path, pathlib.PurePath
    • Avoid: from pathlib import Path, PurePath, PurePosixPath, ...
  • Postpone changes to __init__ and __all__ until APIs stabilize.
  • Use TYPE_CHECKING for imports only needed for type hints.
from typing import TYPE_CHECKING

if TYPE_CHECKING:
    from mypkg.schemas import AgentConfig

Runtime Checks

  • Avoid excessive use of getattr, hasattr, and runtime type checks.
  • If an object is a pydantic BaseModel, prefer using its validated attributes and type annotations instead of probing attributes at runtime.
  • Rely on pydantic validation, model validators, and type hints; prefer TypedDict or Protocol for structural typing when appropriate.
  • When runtime checks are necessary, make them explicit, minimal, and well-documented so the reason for the guard is clear.

Async-First Design

  • Prefer asynchronous APIs for I/O-bound work.
  • Use asyncio or anyio; for HTTP, prefer httpx (async client).
  • Ensure clear async boundaries: public APIs and I/O paths should be async.
  • Provide minimal sync adapters only when needed, and document them.
import asyncio
from loguru import logger
import httpx

async def fetch_agent_state(url: str, timeout_s: float) -> dict:
    """Fetch agent state from a remote endpoint."""
    async with httpx.AsyncClient(timeout=timeout_s) as client:
        resp = await client.get(url)
        resp.raise_for_status()
        data = resp.json()
        logger.info("Fetched state from {url}", url=url)
        return data

def fetch_agent_state_sync(url: str, timeout_s: float) -> dict:
    """Synchronous adapter. Prefer the async variant."""
    return asyncio.run(fetch_agent_state(url, timeout_s))

Read the full file on GitHub · 160 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. 2mo ago First seen · 160 lines · 1,224 tokens per session scan A 33b2f7087c55

Subscribe to this mod's changes

valuecell AGENTS.md is an instructions file published in the GitHub repository ValueCell-ai/valuecell (11,043 stars, last pushed 8mo ago), licensed Apache-2.0. It adds 1,224 tokens to every session, about $0.0049 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.

Related

valuecell AGENTS.md compared with instructions from other repositories

valuecell AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
valuecell AGENTS.mdValueCell-ai/valuecellInstructions file11k8mo agoApache-2.0A1,224Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,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 file195ktodayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode