agentleFS
stefanprodanstefanprodan/podinfo/AGENTS.md

podinfo

AGENTS.md6.1k starsChanged 3 days agoApache-2.0View on GitHub

Podinfo is a tiny web application made with Go that showcases best practices of running microservices in Kubernetes. It is used by CNCF projects like Flux and Flagger for end-to-end testing and workshops. The project is structured as a Go module with the following components:

Adopted by

Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data

Week of Oct 4: 0 new projectsWeek of Oct 11: 0 new projectsWeek of Oct 18: 0 new projectsWeek of Oct 25: 0 new projectsWeek of Nov 1: 0 new projectsWeek of Nov 8: 0 new projectsWeek of Nov 15: 0 new projectsWeek of Nov 22: 0 new projects
Oct 2026Nov 2026Nov 2026
New projects taking a version of this file each week, over the 8 weeks our latest run read: only 0 in all, so this is a hint, not a trend.

Who's talking about stefanprodan/podinfo

The biggest 5 of 51 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 51

Talked about on GitHub and Hacker News (51 times).

On GitHub · 50

45 more on GitHub

On Hacker News · 1

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.

    Of the AGENTS.md files we read, the 35,196 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

The file

Show its rules and text

We split this AGENTS.md into the rules it gives an agent

22 rules. About 0 are common, 10 are distinctive, and 12 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 12

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Do not deviate from the established patterns in the codebase

    line 40
  2. Distinctive:

    All new features must have associated documentation and tests

    line 42
  3. Very specific:

    Never edit generated or vendored files by hand: *.pb.go, pkg/api/http/docs/swagger.json, charts/podinfo/values.schema.json and …

    line 43
  4. Distinctive:

    After modifying a function or type, update its doc comment

    line 45
  5. Distinctive:

    Add comments for complex logic but don't comment obvious code

    line 46
  6. Distinctive:

    Every HTTP handler must have Swagger annotations that match its methods, content types and status codes

    line 47
  7. Very specific:

    Keep the Helm chart, the Timoni module and the Kustomize overlay in sync when changing how podinfo is deployed

    line 50
  8. Distinctive:

    Read existing tests before writing new ones

    line 52
  9. Distinctive:

    Run individual tests when debugging, run the full test suite when done

    line 53
  10. Very specific:

    Use go doc to read func signatures in external packages

    line 54
  11. Very specific:

    Run make help to list the make targets

    line 58
  12. Very specific:

    Run make gen after modifying protos, Swagger annotations or the Helm chart values.yaml

    line 59
  13. Very specific:

    Run make fmt lint after completing a task and fix lint errors

    line 60
  14. Very specific:

    Run make test to execute all Go tests

    line 61
  15. Very specific:

    Run make run to start podinfo locally on port 9898, with gRPC on port 9999

    line 62
  16. Very specific:

    Run make run-ui-demo to review the web UI against a fake API

    line 63
  17. Very specific:

    Run make build-chart and make build-timoni after modifying the Helm chart or the Timoni module

    line 64
  18. Distinctive:

    Follow the maintenance guide to update pinned versions and to cut a release

    line 65
  19. Very specific:

    Write the commit subject in the imperative, capitalised, with no type prefix and no trailing period, like Add license header

    line 70
  20. Distinctive:

    Leave out the commit body unless the reason for the change is not obvious, then keep it to a line or two

    line 71
  21. Very specific:

    Do not add Co-authored-by trailers or session links for AI agents

    line 73
  22. Distinctive:

    Write the PR body as a short list of what changed, and list the behaviour changes separately

    line 76

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

AGENTS instructions

Project Overview

Podinfo is a tiny web application made with Go that showcases best practices of running microservices in Kubernetes. It is used by CNCF projects like Flux and Flagger for end-to-end testing and workshops.

The project is structured as a Go module with the following components:

  • podinfo: The server. It exposes an HTTP API built with gorilla/mux, a gRPC API, a web UI and Prometheus metrics, and exports traces, metrics and logs with OpenTelemetry. It is configured with viper from flags, PODINFO_ environment variables and a config file.
  • podcli: A command-line interface with health checks for HTTP, TCP, TLS certificates, WebSocket and gRPC endpoints. It is built using the Cobra library.
  • Web UI: Plain HTML, CSS and JavaScript embedded in the binary. It has no build step and makes no requests to other origins.
  • Installers: A Helm chart, a Timoni module and a Kustomize overlay that deploy podinfo on Kubernetes.

Repository Structure

├── charts/         # Helm chart
├── cmd/            # Main entrypoint for the binaries
│   ├── podcli/     # podinfo CLI
│   └── podinfo/    # podinfo server
├── deploy/         # Kustomize demo with frontend, backend and cache
│   └── otel/       # Docker Compose setup for OpenTelemetry
├── docs/           # API reference and guides, indexed in README.md
├── kustomize/      # Kustomize overlay
├── pkg/            # Go packages
│   ├── api/grpc/   # gRPC services, protos and generated stubs
│   ├── api/http/   # HTTP handlers, middlewares and the Swagger spec
│   ├── signals/    # Signal handling and graceful shutdown
│   ├── telemetry/  # OpenTelemetry setup and log correlation
│   └── version/    # Release version and Git revision
├── scripts/        # End-to-end tests with Kubernetes Kind
├── signing/        # Cosign and Notation public keys
├── timoni/         # Timoni module
└── ui/             # Web UI and the vendored Swagger UI

Rules of Engagement for AI Agents

  • Do not deviate from the established patterns in the codebase
  • New Go and JavaScript files must have the license header with the current year, never change the year of an existing header
  • All new features must have associated documentation and tests
  • Never edit generated or vendored files by hand: *.pb.go, pkg/api/http/docs/swagger.json, charts/podinfo/values.schema.json and ui/swagger/dist
  • Exported Go identifiers must have a doc comment that says what the name and signature do not
  • After modifying a function or type, update its doc comment
  • Add comments for complex logic but don't comment obvious code
  • Every HTTP handler must have Swagger annotations that match its methods, content types and status codes
  • A //nolint directive must name the linter and give the reason, never use golangci-lint run --fix
  • The web UI must not load scripts, styles, fonts or images from other origins
  • Keep the Helm chart, the Timoni module and the Kustomize overlay in sync when changing how podinfo is deployed
  • Name new make targets verb first and give them a ## description
  • Read existing tests before writing new ones
  • Run individual tests when debugging, run the full test suite when done
  • Use go doc to read func signatures in external packages

Development Commands for AI Agents

  • Run make help to list the make targets
  • Run make gen after modifying protos, Swagger annotations or the Helm chart values.yaml
  • Run make fmt lint after completing a task and fix lint errors
  • Run make test to execute all Go tests
  • Run make run to start podinfo locally on port 9898, with gRPC on port 9999
  • Run make run-ui-demo to review the web UI against a fake API
  • Run make build-chart and make build-timoni after modifying the Helm chart or the Timoni module
  • Follow the maintenance guide to update pinned versions and to cut a release

Commits and Pull Requests for AI Agents

  • Work on a branch, never commit to master
  • Write the commit subject in the imperative, capitalised, with no type prefix and no trailing period, like Add license header
  • Leave out the commit body unless the reason for the change is not obvious, then keep it to a line or two
  • Sign off every commit with git commit -s, the Signed-off-by trailer must name the human author
  • Do not add Co-authored-by trailers or session links for AI agents
  • Disclose the AI assistance with an Assisted-by: <agent>/<model> commit trailer and in the PR description
  • Show the PR title and body to the user and wait for approval before opening or editing a PR
  • Write the PR body as a short list of what changed, and list the behaviour changes separately

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.