manifold AGENTS.md

A set of project instructions for a Go codebase, including where packages, commands, documentation, assets, deployment files, and tests should live. Go is a programming language.

In plain words
What is it for?
Use it when adding or changing Go services, command-line programs, packages, tests, or deployment files in the described project.
Why use it?
It gives coding agents consistent rules for organizing files, avoiding import cycles, injecting dependencies, and handling concurrency.

Instructions file for CodexOpenCode

Install

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.

agentmods
npx agentmods add instructions/intelligencedev/manifold/agents-md
Clone the repo
git clone --depth 1 https://github.com/intelligencedev/manifold

Made for: Codex, OpenCode.

Per session 2,315 This file is loaded in full into every session.
When invoked 2,315 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.02315 $0.02315
Opus 5 $0.01157 $0.01157
Sonnet 5 $0.00463 $0.00463
Haiku 4.5 $0.00231 $0.00231

Measured 2d ago against content hash b71c212722b2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

AGENTS.md · 171 lines

How it starts

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

Go/manifold

Coding Conventions

Project Structure & Module Organization

Source lives in internal/ (e.g., internal/agent, internal/orchestrator); keep new packages focused on one concern and avoid import cycles. CLI/Server entrypoints sit under cmd/ with binaries for the agent, HTTP server (manifold, implemented in cmd/agentd), and embedctl (if present). Docs reside in docs/, assets in assets/, and deployment scaffolding in docker/, configs/, and top-level example.env. Co-locate tests with their packages and share fakes through internal/testhelpers.

Package Organization

  • Keep packages small and focused on a single responsibility.
  • Avoid cyclical dependencies; extract interfaces when necessary.

Dependency Injection

  • Promote testability via interface‑driven design.
  • Use constructor functions (e.g., NewService(...)) to inject dependencies.

Concurrency

Follows Go's concurrency mantra: "Don't communicate by sharing memory; share memory by communicating." The channel becomes the synchronization point.

Essential Go CLI Tools

The following Go command-line tools are essential for development, testing, and maintenance in this project. Use them as described to ensure code quality and consistency:

Tool Purpose
go build Compiles packages and their dependencies into an executable.
go run Compiles and runs the specified Go program.
go fmt Formats Go source code according to the language's style guidelines.
gofmt Standalone formatter; also available as an executable.
go test Runs tests and benchmarks. Use -coverprofile with go tool cover to analyze test coverage.
go vet Examines Go source code and reports suspicious constructs that could be bugs.
go doc Extracts and generates documentation for Go packages.
go get Adds, updates, or removes dependencies in the go.mod file.
go mod Provides access to module operations (e.g., go mod tidy to clean up dependencies).
go tool Runs the specified Go tool (see below for examples).
cgo Enables the creation of Go packages that call C code.
pprof For profiling Go programs.
fix Rewrites Go programs that use old language and library features.

Read the full file on GitHub · 171 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. 2d ago First seen · 171 lines · 2,315 tokens per session scan A b71c212722b2

Subscribe to this mod's changes

manifold AGENTS.md is an instructions file published in the GitHub repository intelligencedev/manifold (497 stars, last pushed 25d ago), licensed MIT. It adds 2,315 tokens to every session, about $0.0116 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.

Related

Other instructions, from other repositories