Halo-Theme-Ethereal: Instructions file for Codex

AGENTS.md

Halo-Theme-Ethereal AGENTS.md is an instructions file for Codex, OpenCode from AloneNanNan/Halo-Theme-Ethereal. It costs 5,035 tokens per session, scanned A, original, MIT.

Project instructions for developing Ethereal, an Astro-based theme for Halo CMS. Astro builds the source into Thymeleaf templates, which Halo uses to render pages on the server.

In plain words
What is it for?
Use them when developing, checking, formatting, building, packaging, or updating documentation for the Ethereal theme. They include the required Node.js and pnpm setup and the main validation commands.
Why use it?
They explain the project’s build model, tools, file roles, and important boundaries, so contributors know where changes belong and which generated files not to edit.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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 Halo-Theme-Ethereal AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/alonenannan/halo-theme-ethereal/agents-md/github.svg)](https://agentmods.dev/instructions/alonenannan/halo-theme-ethereal/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/alonenannan/halo-theme-ethereal/agents-md"><img src="https://agentmods.dev/badge/instructions/alonenannan/halo-theme-ethereal/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 Halo-Theme-Ethereal AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/alonenannan/halo-theme-ethereal/agents-md"><img src="https://agentmods.dev/badge/instructions/alonenannan/halo-theme-ethereal/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5,035 This file is loaded in full into every session.
When invoked 5,035 The same file — it is already loaded in full.
Security scan A 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.05035 $0.05035
Opus 5 $0.02518 $0.02518
Sonnet 5 $0.01007 $0.01007
Haiku 4.5 $0.00504 $0.00504

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

Security

Grade A, and why

Halo-Theme-Ethereal AGENTS.md scanned grade A 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 3d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- **Halo 模板缓存**:改完 `templates/` 后 Halo 不会自动重载,必须到后台「主题 → 重载主题」(或重新上传主题包)才生效。服务端渲染中途抛错会表现为**浏览器一直转圈(响应流截断)而非报错页**;此时用 curl 抓页面看是否以 `</html>` 结尾、并到日志搜 `TemplateProcessingException` 定位。直接 `>` 截断 `halo.log` 会因写入偏移错位产生空字节,要用
AGENTS.md · 147 lines

How it starts

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

AGENTS.md

面向 AI 协作者的开发约定与注意事项。本文件是给编码代理(Codex、opencode、Cursor 等)读取的,用于在改代码前快速了解本项目的构建方式、目录约定与常见坑,减少到处搜索。

项目是什么

Ethereal 是一款基于 Astro 构建的 Halo CMS 主题。它先用 Astro 编写组件与模板,构建后输出为 Halo 使用的 Thymeleaf 模板,再由 Halo(Spring Boot + Thymeleaf)在服务端渲染最终页面。

核心心智模型:你在 .astro 文件里写的 th:xxx 属性不是前端语法,而是给 Thymeleaf 模板引擎用的指令,构建后原样保留在 templates/*.html 里。

技术栈:Astro(页面/路由)+ Svelte 5(交互组件,如 Search、LightDarkSwitch)+ Tailwind CSS 4 + TypeScript + Swup(页面过渡动画)+ Iconify(图标)。

开发环境

  • 需要 Node.js >= 22.12.0(推荐 24.x,见 .nvmrc)与 pnpm
  • pnpm dev:监听 src/ 文件变更自动重建(不会打包 zip)。

构建与校验命令

命令 作用
pnpm build:only 仅执行 astro build,输出到 templates/(开发调试常用)
pnpm build astro build + pnpm package(打成发布 zip)
pnpm astro check 类型检查,务必在改动后运行确认 0 error
pnpm format prettier 格式化全项目,随后自动刷新 README-Halo.md
pnpm readme:halo 单独触发 README→README-Halo 转换(见「README-Halo 转换」)

重要:改完代码后运行的校验是 pnpm astro checkpnpm build:only 两类产物的位置不同:astro build 的 HTML 模板输出到 templates/pnpm package 打出的发布 zip 输出到 dist/。两者都是构建生成、勿手动编辑——要改就改 src/ 后重新构建。

经典脚本资产管线(I27 引入,astro.config.mjsbuildAssets integration):

src/scripts/assets/*.ts →(esbuild IIFE, build:start)→ public/assets/*.js
src/scripts/vendor/*.js →(原样拷贝, build:start)→ public/assets/*.js
→(astro 拷贝 public/)→ templates/assets/*.js →(esbuild 压缩, build:done)→ 产物
  • src/scripts/assets/ 是全部经典脚本源码(含 // @ts-nocheck 的 legacy 脚本),public/assets/ 是纯产物目录,勿手改。legacy 脚本(wave/navbar/wishes/upvote/banner-* 等)迁入后统一 .ts 后缀(兼容 nodemon watch,esbuild 照常编译)。
  • src/scripts/vendor/ 存放第三方 vendored 资产(如 qrcode.bundle.js UMD),构建期原样拷贝、不经过 esbuild 编译。
  • _ 前缀文件(如 _theme-config.ts)是被 import 的共享模块,不是独立入口,esbuild 会内联进各入口。
  • 产物带 /*__ETHEMEAL_MINIFIED__*/ 标记;build:done 只压缩白名单内 public 产物,不碰 Astro/Vite 的 hashed module 文件。
  • nodemon 的 ext 不含 js 是有意的:编译产物写入 public/ 不会触发重建(防编译→重建死循环)。不要给 nodemon.json 加 js;改脚本源码统一用 .ts 后缀。

Read the full file on GitHub · 147 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. 3d ago Changed · +4 lines · +197 tokens per session 3abeccdd0381
  2. 4d ago Changed · -8 lines · -427 tokens per session 4de98abe1ebd
  3. 10d ago First seen · 151 lines · 5,265 tokens per session scan A e47e7e977678

Subscribe to this mod's changes

Halo-Theme-Ethereal AGENTS.md is an instructions file published in the GitHub repository AloneNanNan/Halo-Theme-Ethereal (13 stars, last pushed 2d ago), licensed MIT. It adds 5,035 tokens to every session, about $0.0252 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 3,735 tokens