hpf_Linux_Config: Instructions file for Codex

AGENTS.md

hpf_Linux_Config AGENTS.md is an instructions file for Codex, OpenCode from huangpufan/hpf_Linux_Config. It costs 1,042 tokens per session, scanned A, original, MIT.

Repository instructions for hpf_Linux_Config, a Linux machine-setup project. They explain which documentation and scripts to read for installing tools, configuring accounts, and setting up supported Ubuntu versions.

In plain words
What is it for?
Use them when installing or checking development tools, configuring Git or GitHub, setting package sources, or choosing a setup preset. They also guide work on Ubuntu 20.04, 22.04, and 24.04.
Why use it?
They reduce the risk of using the wrong script or applying personal machine settings to another account. They also define the project’s preferred installation entry point and special checks for personal bootstrap actions.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/huangpufan/hpf_linux_config/agents-md"><img src="https://agentmods.dev/badge/instructions/huangpufan/hpf_linux_config/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,042 This file is loaded in full into every session.
When invoked 1,042 The same file — it is already loaded in full.
Security scan A 0 findings. 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.01042 $0.01042
Opus 5.5 $0.00417 $0.00417
Sonnet 5.5 $0.00208 $0.00208
Haiku 4.5 $0.00104 $0.00104

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

Security

Grade A, and why

hpf_Linux_Config 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 12d 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 · 45 lines

How it starts

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

AGENTS

本仓库以 install-script/ 为核心。凡是“安装环境”“检查安装状态”“自动化执行安装” 这类任务,不要先在历史脚本里随意翻找,先按下面的顺序读。

安装任务阅读顺序

  1. 先读 docs/agent-install-playbook.md
  2. 默认使用 install-script/agent-runner.py
  3. 把 install-script/agent-tools.json 当作唯一工具目录与 tool id / check_cmd 来源
  4. 再进入 install-script/ 下对应的子目录看具体脚本

安装时该看哪个文件夹

  • install-script/presets/:预设组合入口:bootstrap、minimal、dev-cli、dev-full、all-tools、agents;以 python3 install-script/agent-runner.py list 的输出为准,不要凭文档里的清单推断
  • install-script/setup/:系统与账号配置,例如 Git 身份、GitHub 认证、apt 镜像、npm/cargo registry
  • install-script/basic/:基础环境引导与兼容性脚本
  • install-script/tools/:单工具安装脚本,一个工具一个脚本
  • install-script/openharmony/:OpenHarmony 专用环境与依赖,不属于默认机器初始化
  • nvim/:编辑器配置,不是整机安装主入口
  • agent-config/:AI coding agent 配置正本(私有 submodule,不含任何密钥);preset agents 只装 CLI 本体,取回与部署走 install agent-config

仓库约定

  • 仓库路径固定为 ~/hpf_Linux_Config
  • runner 优先:优先用 python3 install-script/agent-runner.py ...,不要默认直接执行脚本
  • github-auth 单工具默认走 gh + HTTPS
  • bootstrap / all-tools 是本仓库所有者的个人新机路径,默认会生成/上传 SSH key,并把 GitHub git protocol 切到 ssh
  • agents 预设只安装 pi、codex、claude、opencode、gemini、cursor-agent、devin、kimi 的 CLI 本体,不处理登录与凭据,也不属于 all-tools
  • agent-config 是私有 submodule,由 install agent-config 取回并部署:它会覆盖本机已有的 agent 配置(覆盖前备份为 <文件>.bak.<时间戳>)。已有自己配置的机器上,先 bash agent-config/install.sh --check(只检查漂移、不改任何文件)并让用户确认;不要绕过 runner 直接跑不带 --check 的 install.sh
  • dsh-plugins 是私有仓库,由 install dsh-plugins 取回到 ~/project/dsh-plugins(DSH_PLUGINS_DIR 可改)并运行它自带的 runner。退出码 2(需要人,如缺 API key)按成功返回并提示 needs you;--include-heavy(下载数 GB)和 --overwrite-config 只经 DSH_PLUGINS_APPLY_ARGS 显式传入,先问用户
  • 新机器完整顺序:preset bootstrap → install nvm → preset agents → install agent-config → install dsh-plugins(后两步取回私有仓库,依赖 bootstrap 上传的 SSH key 与账号权限;细节见 playbook 4.1)
  • 执行 bootstrap / all-tools 前先探测当前账户;如果是 hpf,直接执行;如果不是 hpf,必须先问用户是否仍要执行个人 SSH bootstrap,并确认 Git 邮箱,获准后用 HPF_BOOTSTRAP_CONFIRM_PERSONAL=yes 和 HPF_GIT_EMAIL 执行
  • 支持 Ubuntu 20.04 / 22.04 / 24.04;其中 Ubuntu 24.04 的换源走 ubuntu.sources,不是旧的 sources.list
  • 所有修改完成后必须 git add -A && git commit && git push,不允许只改不推

Read the full file on GitHub · 45 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. 12d ago Changed · +5 lines · +412 tokens per session 3f3176ee1e29
  2. 2mo ago First seen · 40 lines · 630 tokens per session scan A ba4417062eae

Subscribe to this mod's changes

hpf_Linux_Config AGENTS.md is an instructions file published in the GitHub repository huangpufan/hpf_Linux_Config (5 stars, last pushed 13d ago), licensed MIT. It adds 1,042 tokens to every session, about $0.0042 per session on Opus 5.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.

Related

hpf_Linux_Config AGENTS.md compared with instructions from other repositories

hpf_Linux_Config AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
hpf_Linux_Config AGENTS.mdhuangpufan/hpf_Linux_ConfigInstructions file513d agoMITA1,042Codex, 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