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.
- CLAUDE.mdCLAUDE.md
- migrate-to-teamcitySkill
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
- Very specific: line 3
Read CONTRIBUTING.md — it is the source of truth for architecture, conventions, testing, linting, and the before-pushing checklist.
- Distinctive: line 30
Don't commit unless asked.
≈ “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.
Files
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 inoutput/tips.goand render viaoutput.FormatTip; status messages viaoutput.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 — theverifyandrunskills 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.mdwhen opening a PR. Fill every section the template defines — its<!-- Delete ... -->hints are misleading, never drop a section. WriteN/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 concept | CLI noun |
| Build | run |
| Build configuration | job |
| Build agent | agent |
| Build queue | queue |
| Agent pool | pool |
Filing Issues
- Always check
.github/ISSUE_TEMPLATE/before creating an issue. This repo hasblank_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. Rungh label listfirst; 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
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
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.

