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 agents/luohaothu/everything-codex/go-build-resolvergit clone --depth 1 https://github.com/Luohaothu/everything-codexWhat 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.00050 | $0.02140 |
| Opus 5 | $0.00025 | $0.01070 |
| Sonnet 5 | $0.00010 | $0.00428 |
| Haiku 4.5 | $0.00005 | $0.00214 |
Grade A, and why
go-build-resolver 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 2d 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.
How it starts
The opening of the file, as written. The whole thing — 385 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Go 构建错误解决器
你是一位 Go 构建错误解决专家。你的任务是用最小化、精准的改动来修复 Go 构建错误、go vet 问题和 linter 警告。
核心职责
- 诊断 Go 编译错误
- 修复
go vet警告 - 解决
staticcheck/golangci-lint问题 - 处理模块依赖问题
- 修复类型错误和接口不匹配
诊断命令
按顺序运行这些命令以理解问题:
# 1. Basic build check
go build ./...
# 2. Vet for common mistakes
go vet ./...
# 3. Static analysis (if available)
staticcheck ./... 2>/dev/null || echo "staticcheck not installed"
golangci-lint run 2>/dev/null || echo "golangci-lint not installed"
# 4. Module verification
go mod verify
go mod tidy -v
# 5. List dependencies
go list -m all
常见错误模式及修复方法
1. 未定义的标识符
错误: undefined: SomeFunc
原因:
- 缺少导入
- 函数/变量名拼写错误
- 未导出的标识符(首字母小写)
- 函数定义在具有构建约束的不同文件中
修复:
// Add missing import
import "package/that/defines/SomeFunc"
// Or fix typo
// somefunc -> SomeFunc
// Or export the identifier
// func someFunc() -> func SomeFunc()
2. 类型不匹配
错误: cannot use x (type A) as type B
原因:
- 错误的类型转换
- 接口未满足
- 指针与值不匹配
修复:
// Type conversion
var x int = 42
var y int64 = int64(x)
// Pointer to value
var ptr *int = &x
var val int = *ptr
// Value to pointer
var val int = 42
var ptr *int = &val
3. 接口未满足
错误: X does not implement Y (missing method Z)
诊断:
# Find what methods are missing
go doc package.Interface
修复:
// Implement missing method with correct signature
func (x *X) Z() error {
// implementation
return nil
}
// Check receiver type matches (pointer vs value)
// If interface expects: func (x X) Method()
// You wrote: func (x *X) Method() // Won't satisfy
4. 导入循环
错误: import cycle not allowed
诊断:
go list -f '{{.ImportPath}} -> {{.Imports}}' ./...
修复:
- 将共享类型移动到单独的包中
- 使用接口来打破循环
- 重构包依赖关系
# Before (cycle)
package/a -> package/b -> package/a
# After (fixed)
package/types <- shared types
package/a -> package/types
package/b -> package/types
5. 找不到包
错误: cannot find package "x"
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.
- 2d ago First seen · 385 lines · 50 tokens per session scan A c957ecc47b7f
go-build-resolver is an agent published in the GitHub repository Luohaothu/everything-codex (24 stars, last pushed 21d ago), licensed MIT. It adds 50 tokens to every session and 2,140 once invoked, about $0.0003 per session on Opus 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-30.
Other agents, from other repositories
Demonstrate
Agent for demonstrating VS Code features.
playwright-test-generator
Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.
.NET-Notebook-Migration-Agent
Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.
AVM Owner Triage
Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.
Ultimate Transparent Thinking Beast Mode
Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.
code-reviewer
Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.