Skip to content

docs: add AGENTS.md with CLI design patterns for AI agents#3676

Merged
eablack merged 2 commits intomainfrom
eb/add-agents-md
Apr 22, 2026
Merged

docs: add AGENTS.md with CLI design patterns for AI agents#3676
eablack merged 2 commits intomainfrom
eb/add-agents-md

Conversation

@eablack
Copy link
Copy Markdown
Contributor

@eablack eablack commented Apr 21, 2026

Summary

Adds an AGENTS.md file to document CLI design patterns and best practices for AI agents (like Claude, Copilot, Cursor) working on this codebase. The guidelines are derived from RFC 000282: CLI Design Patterns and Best Practices.

Type of Change

Patch Updates (patch semver update)

  • chore: Change that does not affect production code

Testing

Notes:
This is a documentation-only change that adds guidelines for AI agents. No functional code changes.

Steps:

  1. Passing CI suffices
  2. Review the AGENTS.md file to ensure all design patterns from RFC 000282 are accurately documented

@eablack eablack requested a review from a team as a code owner April 21, 2026 13:37
@eablack eablack temporarily deployed to AcceptanceTests April 21, 2026 13:37 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests April 21, 2026 13:37 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests April 21, 2026 13:37 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests April 21, 2026 13:37 — with GitHub Actions Inactive
Copy link
Copy Markdown
Contributor

@k80bowman k80bowman left a comment

Choose a reason for hiding this comment

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

Just one question, but it's not blocking. This is awesome, thank you!

Comment thread AGENTS.md
@eablack eablack temporarily deployed to AcceptanceTests April 22, 2026 14:06 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests April 22, 2026 14:06 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests April 22, 2026 14:06 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests April 22, 2026 14:06 — with GitHub Actions Inactive
eablack added 2 commits April 22, 2026 10:26
Add comprehensive guidelines for AI agents working on the CLI codebase.
This file documents CLI design patterns from RFC 000282, including:

- Command naming conventions (lowercase-hyphenated, action verbs)
- Arguments and flags best practices (prefer flags over args)
- Language and help text guidelines
- Output and exit code handling
- Data handling patterns (thin validation, concurrent API calls)
- UX component usage (ux.action, ux.table, confirmCommand, etc.)

This helps ensure AI coding assistants like Claude, Copilot, and Cursor
follow consistent patterns when contributing to the codebase.
Add component source documentation clarifying that basic UX components (stdout, stderr, action.start/stop) come from oclif/core, while more involved components (table, color system) come from heroku-cli-util. Update component references to use correct prefixes (hux.table, hux.confirm, etc.) and add link to heroku-cli-util color system documentation.
@eablack eablack temporarily deployed to AcceptanceTests April 22, 2026 14:26 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests April 22, 2026 14:26 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests April 22, 2026 14:26 — with GitHub Actions Inactive
@eablack eablack temporarily deployed to AcceptanceTests April 22, 2026 14:26 — with GitHub Actions Inactive
@eablack eablack merged commit d547ed5 into main Apr 22, 2026
17 checks passed
@eablack eablack deleted the eb/add-agents-md branch April 22, 2026 14:53
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