Octopal AGENTS.md

Octopal AGENTS.md is an instructions file for Codex, OpenCode from pmbstyle/Octopal. It costs 2,634 tokens per session, scanned A, original, MIT.

Repository instructions for Octopal, a Python application with a web dashboard, messaging integrations, worker processes, and stored runtime data. They explain the project layout, commands, coding style, and testing expectations.

In plain words
What is it for?
Use them when developing Octopal features, changing its dashboard or integrations, working on workers or memory, or running its test suite.
Why use it?
They help developers find the right files and run the correct setup, build, and test commands without guessing.

Instructions file for CodexOpenCode

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

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/pmbstyle/octopal/agents-md
Clone the repo
git clone --depth 1 https://github.com/pmbstyle/Octopal

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/pmbstyle/octopal/agents-md.svg)](https://agentmods.dev/instructions/pmbstyle/octopal/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/pmbstyle/octopal/agents-md"><img src="https://agentmods.dev/badge/instructions/pmbstyle/octopal/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,634 This file is loaded in full into every session.
When invoked 2,634 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.1 $0.02634 $0.02634
Opus 5 $0.01317 $0.01317
Sonnet 5 $0.00527 $0.00527
Haiku 4.5 $0.00263 $0.00263

Measured 6d ago against content hash f1eb8bf7603e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

Octopal 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 6d 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 · 93 lines

How it starts

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

Repository Guidelines

Project Structure & Module Organization

  • src/octopal/ contains the main Python package: CLI, channels, gateway, memory, policy, providers, Octo runtime, scheduler, WhatsApp/Telegram integrations, workers, and shared utilities.
  • webapp/ holds the Vite-based dashboard frontend. src/ contains app code and dist/ contains built assets.
  • tests/ contains the pytest suite for CLI, dashboard, runtime, worker orchestration, memory, and channel behavior.
  • scripts/ contains setup and maintenance helpers such as bootstrap, repository-hosted install scripts (octopal.sh, octopal.ps1), and worker-template sync utilities.
  • docker/ contains container assets, including the worker image Dockerfile.
  • data/ is runtime state storage for SQLite, metrics, auth state, and logs; avoid committing generated contents.
  • workspace/ is the default Octo/worker workspace and scratch area.
  • workspace_templates/ contains bootstrap content copied into new workspaces.
  • docs/ stores additional project documentation.

Build, Test, and Development Commands

  • uv sync installs the project and the cross-platform CPU-only ONNX semantic-memory runtime without PyTorch; the pinned local model bundle downloads and validates on first runtime start.
  • python -m venv .venv and pip install -e .[dev] are the non-uv editable setup path.
  • uv run octopal configure runs the interactive configuration wizard and bootstraps missing workspace files.
  • uv run octopal config show [--reveal-secrets] prints the effective config for inspection, and uv run octopal config migrate writes the current .env-backed settings into config.json.
  • uv run octopal start starts Octopal in background mode.
  • uv run octopal start --foreground runs the Octo and gateway in the foreground.
  • uv run octopal stop, uv run octopal restart, and uv run octopal status manage the local runtime.
  • uv run octopal update applies the latest release update flow for an existing install.
  • uv run octopal logs prints data/logs/octopal.log, and uv run octopal logs --follow tails it.
  • uv run octopal gateway starts the FastAPI gateway directly.
  • uv run octopal dashboard --once prints one dashboard snapshot; uv run octopal dashboard --watch runs the live terminal dashboard; uv run octopal dashboard --json emits a machine-readable snapshot; --compact and --last <N> tune terminal output.
  • uv run octopal workers list shows registered workers, their current status, and the current task when available.
  • uv run octopal audit list [--limit <N>] lists recent audit events, and uv run octopal audit show <event-id> prints one audit event in detail.
  • uv run octopal episodes list [--worker-run-id <id>] [--limit <N>] [--json] and uv run octopal episodes show <episode-id> [--json] inspect metadata-only execution evidence. --reveal-evidence explicitly decrypts raw content, uv run octopal episodes erase-evidence <episode-id> [--yes] securely deletes only the encrypted raw payload, and uv run octopal episodes purge-storage retries a blocked WAL purge without deleting live evidence.
  • uv run octopal connector status [--json] checks connector authorization/readiness after connector setup flows; uv run octopal connector auth <name> and uv run octopal connector disconnect <name> [--forget-credentials] handle CLI-based connector auth maintenance.
  • uv run octopal sync-worker-templates --overwrite refreshes default worker templates into workspace/workers.
  • uv run octopal memory stats and uv run octopal memory cleanup [--keep-days <days>] [--keep-count <count>] [--dry-run] cover common memory maintenance. uv run octopal memory proposals list [--state <state>] [--json] and show <proposal-id> [--json] inspect provenance-bearing canon proposals; promote <proposal-id> [--yes] activates one, while deprecate <proposal-id> [--yes] rolls back its active canon content. uv run octopal memory recipes propose <definition.json> [--include-matching] records an episode-backed candidate; context <recipe-id> --json exports bounded benchmark context, evaluate <recipe-id> <baseline.json> <candidate.json> records held-out evidence, and list, show, promote <recipe-id> --yes, and deprecate <recipe-id> --yes manage its explicit lifecycle.
  • uv run octopal whatsapp install-bridge, uv run octopal whatsapp link [--timeout <seconds>], uv run octopal whatsapp status, and uv run octopal whatsapp logout manage the WhatsApp bridge lifecycle.
  • uv run octopal tools resolve [--profile <name>] [--preset all|octo] [--blocked|--available-only] [--json] explains which tools are available and why others are blocked.
  • uv run octopal skill list [--json], uv run octopal skill install <source>, uv run octopal skill update <skill-id>, uv run octopal skill verify <skill-id>, uv run octopal skill enable <skill-id>, uv run octopal skill disable <skill-id>, uv run octopal skill trust <skill-id> [--force], uv run octopal skill untrust <skill-id>, uv run octopal skill prepare-env <skill-id>, uv run octopal skill remove-env <skill-id>, and uv run octopal skill remove <skill-id> cover the installed skill workflow.
  • uv run octopal build-worker-image --tag octopal-worker:latest builds the Docker worker image.
  • uv run pytest runs the test suite.
  • uv run ruff check ., uv run black --check ., and uv run mypy are the configured lint/format/type-check commands.
  • npm install and npm run build from webapp/ build the dashboard bundle manually when needed.
  • uv run python scripts/benchmark_web_backends.py --backends basic,markdown_new,webclaw,browser --webclaw-binary <path> --repeat 3 --output data/web-backend-benchmark.json compares web extraction backends without starting an Octopal runtime.
  • uv run python scripts/worker_bench.py --suite <suite.json> --workspace workspace_templates --mode live --config <test-config.json> --preflight-only validates provider budgets, read-only tools, credentials, and per-run isolation without making provider or tool calls. Remove --preflight-only only for a manually approved bounded live run.
  • uv run python scripts/worker_bench.py --suite <suite.json> --mode replay --replay-dir <artifacts-dir> [--baseline <result.json>] --out <result.json> grades saved worker JSONL offline; baseline mode exits non-zero only for outcome regressions. Live suites must explicitly declare provider/model, strict thinking, LLM-call and tool-call caps, token/cost ceilings, and current model pricing.
  • uv run python scripts/tool_call_bench.py --suite <suite.json> --config <test-config.json> --preflight-only [--out <result.json>] validates a zero-execution tool-argument benchmark. Remove --preflight-only only for a bounded live run; suites are capped at three single-attempt model calls and artifacts retain no prompts or arguments.
  • uv run octopal adaptation cluster <bench-result.json>, uv run octopal adaptation propose <definition.json>, uv run octopal adaptation context <candidate-id>, and uv run octopal adaptation evaluate <candidate-id> <baseline.json> <candidate.json> cover the offline adaptation workflow. promote <candidate-id> --yes and rollback <candidate-id> --yes update only the approved registry version; runtime prompts, tools, routes, and recipes remain untouched. bandit-readiness reports why online routing is still disabled.

Read the full file on GitHub · 93 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. 6d ago First seen · 93 lines · 2,634 tokens per session scan A f1eb8bf7603e

Subscribe to this mod's changes

Octopal AGENTS.md is an instructions file published in the GitHub repository pmbstyle/Octopal (10 stars, last pushed 20d ago), licensed MIT. It adds 2,634 tokens to every session, about $0.0132 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-31.