Octop AGENTS.md

Octop AGENTS.md is an instructions file for Codex, OpenCode from TencentCloud/Octop. It costs 7,899 tokens per session, scanned A, original, MIT.

Repository instructions for AI coding agents working in a specific TencentCloud/Octop codebase. They set rules for planning changes, keeping edits small, and communicating uncertainty.

In plain words
What is it for?
Use them when modifying this codebase, especially when deciding what to change, reviewing the project, or checking that an edit stays within scope.
Why use it?
They help prevent unnecessary refactoring, guesses, and broad edits while work is being done in the repository.

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/tencentcloud/octop/agents-md
Clone the repo
git clone --depth 1 https://github.com/TencentCloud/Octop

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/tencentcloud/octop/agents-md.svg)](https://agentmods.dev/instructions/tencentcloud/octop/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/tencentcloud/octop/agents-md"><img src="https://agentmods.dev/badge/instructions/tencentcloud/octop/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 7,899 This file is loaded in full into every session.
When invoked 7,899 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.07899 $0.07899
Opus 5 $0.03950 $0.03950
Sonnet 5 $0.01580 $0.01580
Haiku 4.5 $0.00790 $0.00790

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

Security

Grade A, and why

Octop 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 4d 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 · 415 lines

How it starts

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

AGENTS.md

Navigation guide for AI coding agents working in this repository.

1. Collaboration principles

Favor caution over speed; trivial tasks may relax these rules. These principles complement §10 Change workflow and §11 Communication.

Think before writing

  • State assumptions up front; ask when unsure — do not guess.
  • When multiple interpretations exist, list them and let the user choose — do not pick silently.
  • Suggest simpler approaches when they exist; push back when appropriate.
  • Stop when blocked; name exactly what is unclear.

Simplicity first

  • Write the minimum code that solves the problem; no unrequested features, abstractions, or config knobs.
  • Do not add defensive error handling for scenarios that cannot realistically happen.
  • Trim the diff when it grows unnecessarily large.

Surgical edits

  • Touch only lines directly related to the task; do not opportunistically "clean up" nearby code, comments, or formatting.
  • Do not refactor working code or unify style just because it differs from yours.
  • Unrelated dead code: mention it, do not delete it proactively.
  • Remove orphan imports, variables, and functions you introduced.

Verifiable outcomes

  • Turn tasks into verifiable goals (what to test, which command proves success).
  • For multi-step work, sketch a short plan: step → verify: …
  • Before saying "done", provide verification evidence; the default ship bar is make all green (see §6 Run commands, §10 Change workflow).

2. What this is

Octop — self-hosted AI assistant platform (multi-user, multi-agent). One Python wheel: FastAPI backend + React dashboard + Click CLI. No external queue. No required services beyond an LLM provider.

3. Tech stack

Layer Technology
Language Python 3.12+
Web framework FastAPI + uvicorn
Async runtime asyncio (no threads except run_in_executor)
Database SQLite via sync sqlite3 (WAL) or PostgreSQL via psycopg / psycopg_pool
LLM runtime harness-agent (LangGraph) at /workspace/harness-agent
Gateway harness-gateway at /workspace/harness-gateway
Frontend React 18 + TypeScript + Vite
Package manager uv — always uv run pytest, never bare pytest
API docs UI Scalar (scalar-fastapi) at /api/docs

Read the full file on GitHub · 415 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. 4d ago First seen · 415 lines · 7,899 tokens per session scan A 058ee2281e73

Subscribe to this mod's changes

Octop AGENTS.md is an instructions file published in the GitHub repository TencentCloud/Octop (1,292 stars, last pushed 4d ago), licensed MIT. It adds 7,899 tokens to every session, about $0.0395 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.