Borrowing it
Nothing to install: this file belongs to m-xlsea/ruoyi-plus-soybean. 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/m-xlsea/ruoyi-plus-soybean/master/.codex/prompts/athena-preferences.mdgit clone --depth 1 https://github.com/m-xlsea/ruoyi-plus-soybeanWrote 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/commands/m-xlsea/ruoyi-plus-soybean/athena-preferences)<a href="https://agentmods.dev/commands/m-xlsea/ruoyi-plus-soybean/athena-preferences"><img src="https://agentmods.dev/badge/commands/m-xlsea/ruoyi-plus-soybean/athena-preferences/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/commands/m-xlsea/ruoyi-plus-soybean/athena-preferences"><img src="https://agentmods.dev/badge/commands/m-xlsea/ruoyi-plus-soybean/athena-preferences.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.00000 | $0.00818 |
| Opus 5 | $0.00000 | $0.00409 |
| Sonnet 5 | $0.00000 | $0.00164 |
| Haiku 4.5 | $0.00000 | $0.00082 |
Grade B, and why
athena-preferences scanned grade B 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 10d 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.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
- `/athena:show-preferences` → cat ~/.codex/AGENTS.md How it starts
The opening of the file, as written. The whole thing — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/athena-preferences (Codex)
设计原则 (同 CC 版)
Athena 不造私有偏好文件。所有写入都是 Codex 原生位置:
| 偏好类型 | Codex 落点 |
|---|---|
| 工具偏好 (pnpm/vitest) | ~/.codex/AGENTS.md "## Tool Preferences" 段 |
| 风格偏好 (Linus 模式等) | ~/.codex/AGENTS.md |
Codex 没有 CC 风格的 permissions.allow/deny. Codex 用:
approval_policy(on-request / never / on-failure / untrusted) — 顶层sandbox_mode(workspace-write / read-only / danger-full-access)[shell_environment_policy]控制环境
参考: https://developers.openai.com/codex/config-reference
所以 /athena:remember-allow|deny 在 Codex 上部分语义不可映射, 当前实现:
/athena:remember-tool <key>=<value>→ 写~/.codex/AGENTS.md"## Tool Preferences"/athena:show-preferences→ cat ~/.codex/AGENTS.md/athena:remember-allow|deny→ 提示用户在~/.codex/config.toml改approval_policy或sandbox_mode, 不自动改 (那是 critical 配置)
子命令 (Codex)
/athena:remember-tool <key>=<value>
GLOBAL_AGENTS_MD="$HOME/.codex/AGENTS.md"
mkdir -p "$(dirname "$GLOBAL_AGENTS_MD")"
# 创建文件 / 找到 Tool Preferences 段 / 追加
python3 << PY
import os, re
p = os.path.expanduser("~/.codex/AGENTS.md")
try:
content = open(p).read()
except FileNotFoundError:
content = ""
section = "## Tool Preferences"
arg = "$ARGUMENTS" # 由 Codex 替换
if section not in content:
if content and not content.endswith("\n"):
content += "\n"
content += "\n" + section + "\n\n- " + arg + "\n"
else:
# 在 section 后追加一行 (避免重复)
if "- " + arg in content:
print(f"⚠️ 已存在: {arg}")
exit(0)
content = re.sub(r"(" + re.escape(section) + r"\n+)", r"\g<1>- " + arg + "\n", content, count=1)
open(p, "w").write(content)
print(f"✓ 已加入 ~/.codex/AGENTS.md Tool Preferences: {arg}")
PY
/athena:show-preferences
echo "=== ~/.codex/AGENTS.md (Tool Preferences) ==="
sed -n '/^## Tool Preferences/,/^## /p' ~/.codex/AGENTS.md 2>/dev/null | head -30
echo ""
echo "=== ~/.codex/config.toml (approvals / sandbox) ==="
grep -E "^(approval_policy|sandbox_mode)" ~/.codex/config.toml 2>/dev/null
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.
- 10d ago First seen · 81 lines · 0 tokens per session scan B 7d1df2cfba7a
athena-preferences is a command published in the GitHub repository m-xlsea/ruoyi-plus-soybean (325 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 818 tokens. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-01.
Other commands, from other repositories
cancel-ralph
Cancel active Ralph Loop.
obsidian-recap
Summarize a time period from the vault - today, week, or month.
setup-pm-skills
Onboard a new user — find out what they do, recommend the right bundles & top skills, and set up a project CONTEXT.md so every skill is tailored to them.
statusbar-style
Switch the status-bar style (classic / capsule / hairline).
engage.actions
Execute Phase 7 - Actions on Objectives and Goal Achievement.
superpowers-execute
Execute the current GSD phase plan with Superpowers instead of gsd-execute-phase.