Skip to content

docs: add root AGENTS.md entry point#1419

Open
omribz156 wants to merge 2 commits into
microsoft:mainfrom
omribz156:codex/add-agents-md
Open

docs: add root AGENTS.md entry point#1419
omribz156 wants to merge 2 commits into
microsoft:mainfrom
omribz156:codex/add-agents-md

Conversation

@omribz156
Copy link
Copy Markdown

Description

Adds the missing root AGENTS.md entry point for coding agents and stops ignoring that file in .gitignore so it can be committed.

The new file keeps the top-level guidance concise and points agents to the existing .github/instructions/*.instructions.md files for detailed area-specific rules.

Fixes #695

Type of change

  • Bug fix
  • New feature
  • Documentation
  • Maintenance / refactor

Testing

  • Tested locally
  • All existing tests pass
  • Added tests for new functionality (if applicable)

Verification run:

  • Confirmed referenced instruction/docs paths exist.
  • Confirmed AGENTS.md contains printable ASCII only.
  • Ran PowerShell equivalents of the CI YAML I/O and portable_relpath() grep guards.
  • Ran git diff --check -- .gitignore AGENTS.md.

I did not run the full Python test suite because this is a docs-only change.

Implemented with Codex assistance; I kept the patch focused and manually reviewed the final diff.

@omribz156 omribz156 requested a review from danielmeppiel as a code owner May 20, 2026 16:47
Copilot AI review requested due to automatic review settings May 20, 2026 16:47
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds a root-level AGENTS.md entry point for AI coding agents and updates .gitignore so the file can be committed, pointing agents to existing area-specific instruction docs.

Changes:

  • Added root AGENTS.md with concise top-level agent workflow and CI guardrails
  • Linked to existing .github/instructions/*.instructions.md for detailed rules by area
  • Removed AGENTS.md from .gitignore to allow committing the new entry point

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 2 comments.

File Description
AGENTS.md Introduces the root agent entry point and links to detailed instruction files
.gitignore Stops ignoring AGENTS.md so it can be tracked in Git

Comment thread AGENTS.md Outdated
uv run apm --version
```

## Before Opening A PR
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Fixed in a734cb0: changed the heading to Before Opening a PR. Verified with ASCII and git diff --check.

Comment thread AGENTS.md Outdated
- Keep source files and CLI output printable ASCII. Do not add emoji, box drawing, curly quotes, or en/em dashes.
- Do not write YAML with direct `yaml.dump()` or `yaml.safe_dump()` calls to file handles outside `src/apm_cli/utils/yaml_io.py`; use `yaml_io.dump_yaml()`.
- Do not use `str(path.relative_to(base))`; use `portable_relpath()` from `apm_cli.utils.paths`.
- Keep new Python source files below the current CI file-length guardrail.
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Fixed in a734cb0: the guardrail now points to .github/workflows/ci.yml and names MAX_LINES=2450 so agents can validate it locally. Verified with ASCII and git diff --check.

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.

[FEATURE] Create root AGENTS.md documenting all CI-enforced rules for coding agents

2 participants