Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add instructions/kiryusento2017/glight/claude-mdgit clone --depth 1 https://github.com/kiryusento2017/GlightWrote 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/kiryusento2017/glight/claude-md)<a href="https://agentmods.dev/instructions/kiryusento2017/glight/claude-md"><img src="https://agentmods.dev/badge/instructions/kiryusento2017/glight/claude-md.svg" alt="Measured on agentmods" 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 | $0.05147 | $0.05147 |
| Opus 5 | $0.02573 | $0.02573 |
| Sonnet 5 | $0.01029 | $0.01029 |
| Haiku 4.5 | $0.00515 | $0.00515 |
Grade B, and why
Glight CLAUDE.md 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 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.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
hookinstall.go — 把状态 hook 安全合并进 ~/.claude/settings.json(幂等:靠当前 exe 真名识别、备份/只增不删) How it starts
The opening of the file, as written. The whole thing — 217 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
项目概述
Glight(原名 Claude Code Light;产出的二进制仍叫 claude-traffic-light.exe)— Windows 桌面红绿灯挂件,实时显示 Claude Code 工作状态。单一 .exe,存于 U 盘即插即用。
构建命令
Go 不在 PATH 中,需完整路径:
# 调试(带控制台看输出,不产生 exe 文件)
C:\Open Source Projects\go\bin\go.exe run .
# 编译 exe(本地试装 / 发行,唯一一条;dist 不存在先建)
# 发行版文件名格式:Glight-v<版本号>-windows-amd64.exe
C:\Open Source Projects\go\bin\go.exe build -trimpath -buildvcs=false -ldflags="-H windowsgui" -o dist\Glight-v1.5.1-windows-amd64.exe .
# 运行测试
C:\Open Source Projects\go\bin\go.exe test ./...
工作目录:D:\vs code projects\claude code light。完整流程见 docs/编译构建发行.md。
构建规则(铁律,凡是编译成 exe 一律遵守)
发行前强制流程(每次,无例外)
第一步:问版本号。 构建发行版前,必须先停下来问用户「当前要发哪个版本(Major.Minor.Patch)」,不许沿用 versioninfo.json 里的旧版本号直接构建。
第二步:改版本。 用户确认版本后,改 versioninfo.json 的 FileVersion、ProductVersion(FixedFileInfo 和 StringFileInfo 各有一处),再重生成 syso:
& "$env:USERPROFILE\go\bin\goversioninfo.exe" -icon="<绝对路径>\claude-traffic-light.ico" -o="<绝对路径>\rsrc_windows_amd64.syso"
第三步:构建。 syso 更新后,再跑下面那条唯一的构建命令。
第四步:验证版本信息。
(Get-Item "dist\claude-traffic-light.exe").VersionInfo | Select-Object ProductName, FileVersion, CompanyName
确认 ProductName / FileVersion / CompanyName 全部正确后,构建才算完成。
第五步:推 tag。 构建验证通过、所有提交已推送后,打带注释 tag 并推到远端:
git tag -a v1.x.x -m "Glight v1.x.x" <commit-hash>
git push origin v1.x.x
第六步:发 Release(用户操作)。 这台机器没有 gh CLI,Release 页由用户在 GitHub 网页完成:
进入 https://github.com/kiryusento2017/Glight/releases/new?tag=v1.x.x,选好 tag,填 Title、Release notes,上传 dist\claude-traffic-light.exe,点 Publish。
Claude 负责准备好 Release notes 正文和 SHA256 供用户粘贴。
核心原则:调试用 go run .(不产 exe、带控制台);凡是产出 exe 文件,只有一条命令,所有防护一次带齐。
go build -trimpath -buildvcs=false -ldflags="-H windowsgui" -o dist\Glight-v<版本号>-windows-amd64.exe .
四件防护,缺一不可:
-trimpath:清掉二进制里的本机绝对路径——GOROOT(C:\Open Source Projects\go)、Windows 用户名(cache 路径C:\Users\<用户名>\...)、项目路径(D:\vs code projects\...)。换成模块相对路径,盘符/用户名/目录全清。-buildvcs=false:去掉嵌入的 git revision / 提交时间 / dirty 标记。-ldflags="-H windowsgui":无控制台黑窗(GUI 程序)。-o dist\...:统一输出dist/(已 gitignore),与源码隔离。go build 不自动建目录,dist 不存在先mkdir dist。文件名格式Glight-v<版本号>-windows-amd64.exe。- 自动链接
rsrc_windows_amd64.syso(图标 + 版本信息),让裸 exe 有正规身份、降启发式误报。
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.
- 3d ago First seen · 217 lines · 5,147 tokens per session scan B f515ecca4f30
Glight CLAUDE.md is an instructions file published in the GitHub repository kiryusento2017/Glight (2 stars, last pushed 2mo ago), licensed MIT. It adds 5,147 tokens to every session, about $0.0257 per session on Opus 5. 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-08-31.
Other instructions, from other repositories
cc-safe-setup CLAUDE.md
Claude Code instructions for yurukusa/cc-safe-setup, covering project rules, safety, code style and git.
Throughline CLAUDE.md
Claude Code instructions for kitepon/Throughline, covering claude.md, プロジェクト概要, 必読ドキュメント, 実装済みファイルの役割 and コア.
claude-hangar CLAUDE.md
Claude Code instructions for claude-hangar/claude-hangar, covering claude hangar — project instructions, what is this?, repository structure, language & communication and quality standards.
conclaude CLAUDE.md
Claude Code instructions for connerohnesorge/conclaude, covering you are the orchestrator, your role: master orchestrator, your mandatory workflow, step 1: analyze & plan (you do this) and step 2: delegate to subagents (one todo at a time).
cc-agents-kit CLAUDE.md
Claude Code instructions for AndrewDongminYoo/cc-agents-kit, covering claude.md, what this repo is, commands, layout contract and hook contract.
claude-code-notifire CLAUDE.md
Claude Code instructions for faustoFF/claude-code-notifire, covering claude.md, language, what this is, commands and architecture.