Polaris: Instructions file for Codex

AGENTS.md

Polaris AGENTS.md is an instructions file for Codex, OpenCode from dainsiahtill-dev/Polaris. It costs 19,341 tokens per session, scanned C, original, MIT.

A set of operating rules for the Polaris agent platform, which uses several specialized roles for planning, architecture, coding, and quality checks. It defines responsibilities and a fixed execution order for those roles.

In plain words
What is it for?
Use it to guide Polaris projects, assign work to its agent roles, enforce project instructions, and coordinate browser-based testing and code review.
Why use it?
It makes engineering work repeatable and auditable by separating tasks such as planning, design, implementation, and review. It also emphasizes evidence, small changes, and defensive checks.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions subagents; mentions Claude Code; mentions AGENTS.md.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/dainsiahtill-dev/polaris/agents-md"><img src="https://agentmods.dev/badge/instructions/dainsiahtill-dev/polaris/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19,341 This file is loaded in full into every session.
When invoked 19,341 The same file — it is already loaded in full.
Security scan C 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.19341 $0.19341
Opus 5.5 $0.07736 $0.07736
Sonnet 5.5 $0.03868 $0.03868
Haiku 4.5 $0.01934 $0.01934

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

Security

Grade C, and why

Polaris AGENTS.md scanned grade C 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 15d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

/tmp/factory-bench-*) rm -rf -- "$WORK_DIR" ;;
AGENTS.md · 690 lines

How it starts

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

Polaris Agent 工程规范 v5.0

主线研发(用户决定,2026-10-20)

所有源码修改与提交直接在主仓 main 进行,不再创建开发分支或开发 worktree。已存在的冻结副本只读保留证据;测试与审计资料继续放在 ~/.polaris/。

目标:把工程交付做成 可重复、可审计、可回滚、可防御 的流水线,同时验证 Polaris 在复杂场景下的稳定性。
口号:精准 > 速度;证据 > 声称;最小变更 > 顺手重构;多层防御 > 单点信任。
编码要求:所有文本文件读写必须显式使用 UTF-8(包括日志/JSON/Markdown)。 铁律:Polaris 是元工具平台,禁止在主仓代码中添加任何目标项目/业务相关代码。 必用MCP和Skill: 充分利用codegraph MCP和superpowers,必要时需要使用Playwright来真实跑测试和审计。

本文件为 Codex 专用治理规范。若项目内存在更细粒度 AGENTS.md,以项目规则优先,但不得弱化本文件的强制门禁。

后端任务强制入口(2026-03-22):

  1. src/backend/AGENTS.md
  2. src/backend/docs/AGENT_ARCHITECTURE_STANDARD.md
    且必须执行“Cell 复用优先 + KernelOne 底座优先”。

一、执行栈(固定顺序)

  1. Playwright(主流程)- 浏览器自动化测试与操作
  2. Computer Use(视觉兜底)- 无 DOM 场景的视觉操作(已移除 Hybrid 相关旧测试)

二、工程主线(2026-10-21)

  1. 新工程运行的唯一 owner 是现有 roles.runtime.public.engineering_service.EngineeringRunService。HTTP、CLI、UI、取消、恢复与错误路径共用该服务,不新增 Cell、任务表、ledger 或第二 controller。
  2. 默认 workflow=direct,Director 读取目标、调用工具、根据真实结果继续工作;PM/Chief Engineer 按需只读咨询。显式 workflow=collaborative 才执行 PM、Chief Engineer、Director 协作;未调用角色显示 not_called。咨询一层返回,不递归派生总控;讨论不创建工程 run。
  3. PM/CE 使用可读文本提供规划、设计或审阅。新运行不要求 PM 合同、CE portfolio/blueprint、handoff/hash、OBL/covers 图、semantic patch、Task Market、JobToken/DEO/Run Ledger 旧链准入,也不受旧一 turn 一 batch 规则约束。普通编译/测试失败回到同一 Director,不自动 deterministic repair 或重启规划。
  4. 工具授权来自 host 持久化且不可由模型扩大的 PermissionScope、当前 profile、预算与 deadline;显式空权限保持为空。归一化后仍须检查真实路径/symlink/允许根,经 KFS 读写和 OS/process sandbox 执行命令;不支持 containment 时明确拒绝,禁止裸跑。PM/CE/QA 默认只读,同 workspace 仅一个源码写入者。
  5. 唯一工程事实记录是 <workspace>/.polaris/runtime/engineering/sessions.sqlite3,保存运行、事件、真实工具观察和验证;新运行不写旧 TaskBoard/TaskMarket/Run Ledger/role-session 镜像。保留 runtime.v2/Nats-JetStream、ContextOS 最终 provider request、UTF-8、实例 workspace 绑定与 storage 单根。
  6. 角色回复结束与 completed 不等于 accepted。实际检查必须绑定当前源码;用户已声明检查必须保留,未声明时由 Director 结合实际工程选择并实际执行验证。空检查、模型自报、快照条数或 QA 文本不得冒充通过;任务要求的独立 QA 必须审查同一当前候选,拒绝后继续同一任务。
  7. 恢复使用原身份、workspace、原始权限与 deadline,并重新校验当前 host policy;保留失败、interrupted/UNKNOWN 和未知效果,不自动重放可能已执行的命令或写入。旧 ID 不升级为新 run;历史按 engine_version 只读,旧在途运行留在原冻结 owner,不在新进程恢复旧写入口。
  8. 旧 Factory/RoleRuntimeService/execute_role_session/RoleExecutionKernel 写准入与自动 fallback 退役;历史解码器、只读查询与显式可选技术工具可保留,禁止据此声称历史源码已全部删除。旧规范仅解释旧记录,不能重新约束新运行。底层 hash 可用于证据/快照完整性,不能要求模型填写业务 hash。真实 HTTP 次数与费用仅用物理证据,未知保持 UNKNOWN。

Read the full file on GitHub · 690 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. 15d ago Changed · -86 lines · +22 tokens per session acb676e44baa
  2. 2mo ago First seen · 776 lines · 19,319 tokens per session scan C f7c69c3623cc

Subscribe to this mod's changes

Polaris AGENTS.md is an instructions file published in the GitHub repository dainsiahtill-dev/Polaris (102 stars, last pushed 3d ago), licensed MIT. It adds 19,341 tokens to every session, about $0.0774 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Polaris AGENTS.md compared with instructions from other repositories

Polaris AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Polaris AGENTS.mddainsiahtill-dev/PolarisInstructions file1023d agoMITC19,341Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode