agentleFS
JetBrainsKnown publisherJetBrains/teamcity-cli/AGENTS.md

teamcity-cli

AGENTS.md124 starsChanged 6 months agoApache-2.0View on GitHub

Read CONTRIBUTING.md — it is the source of truth for architecture, conventions, testing, linting, and the before-pushing checklist. Everything below is additive guidance for AI agents only. - Always check .github/ISSUE_TEMPLATE/ before creating an issue. This repo has blank_issues_enabled: false — every issue must use a template. Match the template to the issue type (bug, feature, eval task). - Follow the template structure exactly. Fill in each section as defined in the YAML fields. Do not add extra sections, root-cause…

  • Installs packages
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 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.

  • In this repository2 other files it gives its agents.

The file

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

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read CONTRIBUTING.md — it is the source of truth for architecture, conventions, testing, linting, and the before-pushing checklist.

    line 3
  2. Distinctive:

    Don't commit unless asked.

    line 30

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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

Agent Instructions

Read CONTRIBUTING.md — it is the source of truth for architecture, conventions, testing, linting, and the before-pushing checklist. Everything below is additive guidance for AI agents only.

Quick reference

just build          # go build → bin/teamcity
just install        # go install ./tc → $GOPATH/bin/teamcity
just lint           # go fmt + go fix + golangci-lint
just unit           # unit tests
just test           # unit + integration (testcontainers)
just acceptance     # e2e against cli.teamcity.com (-tags=acceptance)
just snapshot       # goreleaser local snapshot (all platforms)
just docs-generate  # regenerate CLI command reference
just record-gifs <name>  # record GIF from docs/tapes/<name>.tape → docs/images/

Code style

  • Start lean. First draft is the bare minimum — the observable behavior plus the guards needed to make it correct. Don't pre-emptively add throttle files, *_NO_* env knobs, marker state, helper helpers, or "in case" escape hatches. Add them when a real signal asks for them.
  • One-line comments by default. Single-line godoc on exported symbols; only wrap when an invariant or trade-off truly needs the room.
  • Reuse what's there before inventing. Output goes through internal/output — tip strings live in output/tips.go and render via output.FormatTip; status messages via output.Printer. Search for an existing helper before adding a parallel path.
  • Verify visible behavior before claiming done. For runtime/UX changes, build (just build) and exercise the binary — the verify and run skills exist for this. Type-check passing ≠ feature works.

Commits and PRs

  • Don't commit unless asked.
  • Conventional format: feat(scope):, fix(scope):, refactor(scope):.
  • Subject line only by default. Recent commits are single-line; push the why into the PR description, not the commit body. Add a body only when context genuinely won't fit anywhere else.
  • Always respect .github/PULL_REQUEST_TEMPLATE.md when opening a PR. Fill every section the template defines — its <!-- Delete ... --> hints are misleading, never drop a section. Write N/A — <reason> for sections that don't apply. Don't invent extra sections.
  • PR descriptions stay lean. Summary fits a paragraph; Changes is a short bullet list; no marketing copy, no restated diff. If Design Decisions has nothing non-obvious, write Straightforward. and move on.

Terminology

TeamCity conceptCLI noun
Buildrun
Build configurationjob
Build agentagent
Build queuequeue
Agent poolpool

Filing Issues

  • Always check .github/ISSUE_TEMPLATE/ before creating an issue. This repo has blank_issues_enabled: false — every issue must use a template. Match the template to the issue type (bug, feature, eval task).
  • Follow the template structure exactly. Fill in each section as defined in the YAML fields. Do not add extra sections, root-cause analysis, or fix suggestions unless the template asks for them.
  • Verify labels exist before using them. Templates declare labels (e.g. eval) that may not yet exist in the repo. Run gh label list first; create missing labels only if the template requires them.

Eval Issues (eval_task.yml)

Eval issues document real agent failures to turn into automated benchmarks. Keep them focused on observable behavior:

  • Prompt: what the agent was asked to do
  • What the agent did: paste the actual commands and reasoning — no interpretation
  • Correct behavior: numbered list of concrete steps / assertions
  • Failure type checkboxes: select from the predefined list only

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.