Skip to content

[CLI-3864] Add AGENTS.md for cross-vendor agent guidance#3340

Open
Sajjad Lateef (sajjadlateef) wants to merge 2 commits intomainfrom
add-AGENTS.md
Open

[CLI-3864] Add AGENTS.md for cross-vendor agent guidance#3340
Sajjad Lateef (sajjadlateef) wants to merge 2 commits intomainfrom
add-AGENTS.md

Conversation

@sajjadlateef
Copy link
Copy Markdown

Summary

  • Adds AGENTS.md (139 lines, ~8.4 KB) following the agents.md open standard, donated to the Linux Foundation in Dec 2025. Compatible with OpenAI Codex, GitHub Copilot, Cursor, Google Jules, Amp, Claude Code, and Aider.
  • CLAUDE.md becomes a symlink → AGENTS.md so there is one source of truth (matches the pattern used in openai/codex, getcursor/cursor, and other major repos). Prevents drift between vendor-specific agent context files.
  • Adds /.planning/ to .gitignore (local artifact directory used by some agent tooling).

The content reflects 2026 best practices (OpenAI Codex AGENTS.md guide, Augment Code 2026 guide): documents only non-inferable details (error/output formatting rules, Cobra annotation pattern for Cloud/On-Prem gating, multi-delete pattern, compatibility rules, ✅⚠️🚫 edit zones), with build/test commands placed early. Architecture and call-graph detail were intentionally cut — agents discover them from the code.

Jira: https://confluentinc.atlassian.net/browse/CLI-3864

Test plan

  • Verify CLAUDE.md symlink resolves: cat CLAUDE.md returns the same content as cat AGENTS.md.
  • Verify the symlink stages correctly in fresh checkouts: git ls-files --stage CLAUDE.md shows mode 120000.
  • Confirm all in-file references resolve: pkg/cmd/ANNOTATIONS.md, pkg/cmd/AUTOCOMPLETION.md, pkg/errors/README.md, pkg/output/README.md, pkg/deletion/README.md, README.md, CONTRIBUTING.md.
  • Smoke test with at least one supported agent (Codex / Cursor / Claude Code) on a sample task in this repo to confirm AGENTS.md is picked up and used.
  • Confirm make lint && make test still pass on this branch (no code changes, but verifies the new files don't trip any lint rule).

🤖 Generated with Claude Code

@sajjadlateef Sajjad Lateef (sajjadlateef) requested a review from a team as a code owner April 29, 2026 22:12
@confluent-cla-assistant
Copy link
Copy Markdown

confluent-cla-assistant Bot commented Apr 29, 2026

🎉 All Contributor License Agreements have been signed. Ready to merge.
Please push an empty commit if you would like to re-run the checks to verify CLA status for all contributors.

Adds AGENTS.md following the agents.md open standard donated to the
Linux Foundation in Dec 2025. Compatible with OpenAI Codex, GitHub
Copilot, Cursor, Google Jules, Amp, Claude Code, and Aider.

CLAUDE.md is a symlink to AGENTS.md so there is one source of truth.

Also gitignores /.planning/ (local artifact directory).

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! I added some comments:

Comment thread AGENTS.md Outdated
Comment thread AGENTS.md Outdated
Comment thread AGENTS.md Outdated
Comment thread AGENTS.md Outdated
Comment thread AGENTS.md
Comment thread AGENTS.md Outdated
- Stack: drop the Go version literal (resists staleness) and Viper
  mention (Cobra is the framework callout).
- Testing: drop the workflow:true bullet; integration-test rule now
  exempts purely global flags like -v / --unsafe-trace.
- Compatibility: adding `omitempty` to a field that doesn't already
  have it is breaking — call it out explicitly.
- Edit zones: scope "edit freely" to specific paths (pkg/ccloudv2,
  pkg/schemaregistry, pkg/cmd/flags.go) instead of all of pkg/;
  expand "don't touch" to include pkg/admin, pkg/auth, pkg/cmd,
  pkg/secret, pkg/config.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@sonarqube-confluent
Copy link
Copy Markdown

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants