Octop: Instructions file for Codex

AGENTS.md

Octop AGENTS.md is an instructions file for Codex, OpenCode from TencentCloud/Octop. It costs 8,458 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

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

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

About the project

Octop is a self-hosted, multi-user AI assistant that runs multiple specialized agents and connects them to chat interfaces, tools, and external services. It is for individuals, families, and teams who want a locally operated assistant with shared experts and persistent capabilities. Catalogue add-ons extend its agent and assistant workflows.

TencentCloud/Octop · 11,705 stars · on GitHub · octop.cloud

Reuse

Borrowing it

Nothing to install: this file belongs to TencentCloud/Octop. 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/TencentCloud/Octop/main/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/github.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/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 Octop AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/tencentcloud/octop/agents-md"><img src="https://agentmods.dev/badge/instructions/tencentcloud/octop/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 8,458 This file is loaded in full into every session.
When invoked 8,458 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.08458 $0.08458
Opus 5.5 $0.03383 $0.03383
Sonnet 5.5 $0.01692 $0.01692
Haiku 4.5 $0.00846 $0.00846

Measured 4d ago against content hash e7a44a81fa47, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 · 438 lines

How it starts

The opening of the file, as written. The whole thing — 438 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.
  • Name the owning repository before editing (see Runtime libraries).

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.

Runtime libraries

Octop hosts four libraries. Put the change in the library that owns the behavior. This repo only wires users, the control-plane database, HTTP, CLI, dashboard, and cron.

Read the full file on GitHub · 438 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 Changed · +18 lines · +356 tokens per session e7a44a81fa47
  2. 11d ago Changed · +1 lines · +40 tokens per session 80f2920e0837
  3. 24d ago Changed · +1 lines · +71 tokens per session 0cabbd6cc8c9
  4. 1mo ago Changed · +1 lines · +45 tokens per session c78654069512
  5. 1mo ago Changed · +2 lines · +63 tokens per session 3d41c42483ae
  6. 1mo ago Changed · -14 tokens per session 222e9eeb0595
  7. 1mo ago Changed · -2 tokens per session 7adb71a924b7
  8. 2mo 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 (11,705 stars, last pushed today), licensed MIT. It adds 8,458 tokens to every session, about $0.0338 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

Octop AGENTS.md compared with instructions from other repositories

Octop AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Octop AGENTS.mdTencentCloud/OctopInstructions file12ktodayMITA8,458Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode