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.
curl -O https://raw.githubusercontent.com/dainsiahtill-dev/Polaris/main/AGENTS.mdgit clone --depth 1 https://github.com/dainsiahtill-dev/PolarisWrote 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.
[](https://agentmods.dev/instructions/dainsiahtill-dev/polaris/agents-md)<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.
<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>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.
| Model | Per session | Once 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 |
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" ;; 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):
src/backend/AGENTS.mdsrc/backend/docs/AGENT_ARCHITECTURE_STANDARD.md
且必须执行“Cell 复用优先 + KernelOne 底座优先”。
一、执行栈(固定顺序)
- Playwright(主流程)- 浏览器自动化测试与操作
- Computer Use(视觉兜底)- 无 DOM 场景的视觉操作(已移除 Hybrid 相关旧测试)
二、工程主线(2026-10-21)
- 新工程运行的唯一 owner 是现有
roles.runtime.public.engineering_service.EngineeringRunService。HTTP、CLI、UI、取消、恢复与错误路径共用该服务,不新增 Cell、任务表、ledger 或第二 controller。 - 默认
workflow=direct,Director 读取目标、调用工具、根据真实结果继续工作;PM/Chief Engineer 按需只读咨询。显式workflow=collaborative才执行 PM、Chief Engineer、Director 协作;未调用角色显示not_called。咨询一层返回,不递归派生总控;讨论不创建工程 run。 - PM/CE 使用可读文本提供规划、设计或审阅。新运行不要求 PM 合同、CE portfolio/blueprint、handoff/hash、OBL/covers 图、semantic patch、Task Market、JobToken/DEO/Run Ledger 旧链准入,也不受旧一 turn 一 batch 规则约束。普通编译/测试失败回到同一 Director,不自动 deterministic repair 或重启规划。
- 工具授权来自 host 持久化且不可由模型扩大的
PermissionScope、当前 profile、预算与 deadline;显式空权限保持为空。归一化后仍须检查真实路径/symlink/允许根,经 KFS 读写和 OS/process sandbox 执行命令;不支持 containment 时明确拒绝,禁止裸跑。PM/CE/QA 默认只读,同 workspace 仅一个源码写入者。 - 唯一工程事实记录是
<workspace>/.polaris/runtime/engineering/sessions.sqlite3,保存运行、事件、真实工具观察和验证;新运行不写旧 TaskBoard/TaskMarket/Run Ledger/role-session 镜像。保留 runtime.v2/Nats-JetStream、ContextOS 最终 provider request、UTF-8、实例 workspace 绑定与 storage 单根。 - 角色回复结束与
completed不等于accepted。实际检查必须绑定当前源码;用户已声明检查必须保留,未声明时由 Director 结合实际工程选择并实际执行验证。空检查、模型自报、快照条数或 QA 文本不得冒充通过;任务要求的独立 QA 必须审查同一当前候选,拒绝后继续同一任务。 - 恢复使用原身份、workspace、原始权限与 deadline,并重新校验当前 host policy;保留失败、interrupted/UNKNOWN 和未知效果,不自动重放可能已执行的命令或写入。旧 ID 不升级为新 run;历史按
engine_version只读,旧在途运行留在原冻结 owner,不在新进程恢复旧写入口。 - 旧 Factory/RoleRuntimeService/execute_role_session/RoleExecutionKernel 写准入与自动 fallback 退役;历史解码器、只读查询与显式可选技术工具可保留,禁止据此声称历史源码已全部删除。旧规范仅解释旧记录,不能重新约束新运行。底层 hash 可用于证据/快照完整性,不能要求模型填写业务 hash。真实 HTTP 次数与费用仅用物理证据,未知保持 UNKNOWN。
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.
- 15d ago Changed · -86 lines · +22 tokens per session acb676e44baa
- 2mo ago First seen · 776 lines · 19,319 tokens per session scan C f7c69c3623cc
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.
Polaris AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| Polaris AGENTS.mddainsiahtill-dev/Polaris | Instructions file | 102 | 3d ago | MIT | C | 19,341 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |