ruoyi-plus-soybean: Command for Claude Code

.codex/prompts/athena-preferences.md

athena-preferences is a command for Claude Code, Codex from m-xlsea/ruoyi-plus-soybean. It costs 0 tokens per session (818 once invoked), scanned B, original, MIT.

A command called athena-preferences for recording tool and style preferences in Codex. Codex is an AI coding assistant, and the command stores tool preferences in its shared instruction file.

In plain words
What is it for?
It helps remember tool choices, show saved preferences, and direct users to Codex approval and sandbox settings.
Why use it?
It gives future coding sessions a consistent set of preferences and explains which security settings must be changed manually.

Command for Claude CodeCodex

Written for Claude Code and Codex: $ARGUMENTS substitution, but also installed under .codex/. Also seen: mentions AGENTS.md; mentions Codex.

This is m-xlsea/ruoyi-plus-soybean's own configuration. It tells Claude Code and Codex how to work on ruoyi-plus-soybean 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 ruoyi-plus-soybean configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/m-xlsea/ruoyi-plus-soybean/master/.codex/prompts/athena-preferences.md
Clone the repo
git clone --depth 1 https://github.com/m-xlsea/ruoyi-plus-soybean

Made for: Claude Code, Codex.

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 athena-preferences

README.md
[![agentmods](https://agentmods.dev/badge/commands/m-xlsea/ruoyi-plus-soybean/athena-preferences/github.svg)](https://agentmods.dev/commands/m-xlsea/ruoyi-plus-soybean/athena-preferences)
Your own site
<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.

agentmods 80×15 button for athena-preferences

Your own site · 80×15
<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>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 818 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 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.00000 $0.00818
Opus 5 $0.00000 $0.00409
Sonnet 5 $0.00000 $0.00164
Haiku 4.5 $0.00000 $0.00082

Measured 10d ago against content hash 7d1df2cfba7a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

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
.codex/prompts/athena-preferences.md · 81 lines

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.tomlapproval_policysandbox_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

Read the full file on GitHub · 81 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. 10d ago First seen · 81 lines · 0 tokens per session scan B 7d1df2cfba7a

Subscribe to this mod's changes

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.