Skip to content

Conversation

@onlyhyde
Copy link

Summary

  • Add comprehensive AGENT.md documentation for AI coding assistants (Gemini, Claude, Cursor, etc.)
  • Include project overview, code style requirements, CI/CD checks, contributing workflow, and maintenance guidelines
  • Add tool-specific setup instructions for creating local symbolic links
  • Update .cspell/custom-words.txt with technical terms (docstrings, shellcheck, shfmt)

Changes

File Description
AGENT.md New documentation file for AI agents (534 lines)
.cspell/custom-words.txt Added technical terms for spell check

Document Sections

  1. Tool-Specific Setup - Instructions for creating symbolic links (GEMINI.md, CLAUDE.md)
  2. Project Overview - Repository structure, key concepts, protocol flow
  3. Code Style Requirements - Python, Shell, Markdown rules
  4. CI/CD Pipeline Checks - Conventional commits, linters, spell check
  5. Development Setup - Prerequisites, environment, running scenarios
  6. Contributing Workflow - CLA, branch naming, commit format, PR checklist
  7. Common Tasks - Adding agents, modifying mandates, spellcheck words
  8. Finding and Reviewing Issues - Dynamic issue search using GitHub CLI
  9. Maintaining This Document - When and how to update

Checklist

  • Follow CONTRIBUTING guide
  • PR title uses Conventional Commits format
  • All CI checks pass (linter, spellcheck, etc.)
  • Documentation follows project style guidelines

Fixes #49

Add comprehensive documentation for AI agents working on the AP2 repository:

- Project overview and repository structure
- Key concepts (Mandate types, Agent roles, Protocol flow)
- Code style requirements (Python, Shell, Markdown)
- CI/CD pipeline checks and linter configuration
- Development setup and environment configuration
- Contributing workflow and PR checklist
- Common tasks with code examples
- Dynamic issue search guide using GitHub CLI
- Document maintenance guidelines

Also adds technical terms to cspell custom dictionary.

Fixes google-agentic-commerce#49
@onlyhyde onlyhyde requested a review from a team as a code owner January 18, 2026 06:24
@google-cla
Copy link

google-cla bot commented Jan 18, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @onlyhyde, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces a new, detailed AGENT.md document designed to provide AI coding assistants with essential context for working within the AP2 repository. This documentation covers project structure, coding standards, CI/CD processes, and contribution guidelines, aiming to streamline AI agent integration and development. Additionally, it updates the project's custom spellcheck dictionary with relevant technical terms.

Highlights

  • New AI Agent Documentation: A comprehensive AGENT.md file has been added, specifically designed to provide context and guidelines for AI coding assistants (e.g., Gemini, Claude, Cursor) working on the AP2 repository.
  • Documentation Content: The new AGENT.md covers a wide range of topics including project overview, detailed code style requirements (Python, Shell, Markdown), CI/CD pipeline checks, development setup, contributing workflow, common tasks, issue finding, and guidelines for maintaining the document itself.
  • Tool-Specific Setup: Instructions are included in AGENT.md for creating local symbolic links (e.g., GEMINI.md, CLAUDE.md) to AGENT.md, allowing various AI tools to easily access the documentation.
  • Spellcheck Dictionary Update: The .cspell/custom-words.txt file has been updated to include new technical terms such as 'docstrings', 'shellcheck', and 'shfmt', ensuring these terms are recognized by the spellchecker.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces an excellent and comprehensive AGENT.md file to guide AI coding assistants. The documentation is well-structured, detailed, and covers crucial aspects of the project, from setup and architecture to coding standards and contribution workflows. The update to the custom dictionary is also noted. My review focuses on a few minor corrections to ensure accuracy and consistency, including fixing a command path, correcting potential typos in a model name, and removing example terms from the spellcheck dictionary. Overall, this is a high-quality addition to the project's documentation.

bash samples/python/scenarios/a2a/human-present/cards/run.sh

# x402 payment scenario
bash samples/python/scenarios/a2a/human-present/cards/run.sh --payment-method x402
Copy link
Contributor

Choose a reason for hiding this comment

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

high

The command for the x402 payment scenario incorrectly points to the run.sh script within the cards directory. According to the repository structure outlined in this document, it should point to the run.sh within the x402 directory.

Suggested change
bash samples/python/scenarios/a2a/human-present/cards/run.sh --payment-method x402
bash samples/python/scenarios/a2a/human-present/x402/run.sh --payment-method x402

Agentic
agenticpayments
Algorand
anotherterm
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

The word anotherterm appears to be an example placeholder from the AGENT.md documentation (lines 387-388). It should probably be removed from the project's actual custom words dictionary.

celerybeat
classpath
CLASSPATH
customterm
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

The word customterm appears to be an example placeholder from the AGENT.md documentation (lines 387-388). It should probably be removed from the project's actual custom words dictionary.

| License | Apache 2.0 |
| Languages | Python (primary), Go, Kotlin (Android) |
| Framework | Google Agent Development Kit (ADK) |
| LLM | Gemini 2.5 Flash |
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

The model name Gemini 2.5 Flash appears to be a typo. The latest available model in this family is Gemini 1.5 Flash. Please verify and correct the version number.

Suggested change
| LLM | Gemini 2.5 Flash |
| LLM | Gemini 1.5 Flash |

AGENT.md Outdated

agent = RetryingLlmAgent(
max_retries=5,
model='gemini-2.5-flash',
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

Similar to the project overview table, the model name gemini-2.5-flash in this code example seems to be a typo. It should likely be gemini-1.5-flash.

Suggested change
model='gemini-2.5-flash',
model='gemini-1.5-flash',

AGENT.md Outdated
Comment on lines 387 to 388
customterm
anotherterm
Copy link
Contributor

Choose a reason for hiding this comment

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

low

The example words under Adding Custom Words for Spellcheck are not in alphabetical order, which contradicts the instruction on line 383. Swapping them would make the example consistent with the rule.

Suggested change
customterm
anotherterm
anotherterm
anotherterm

- Fix markdown lint errors (MD060, MD029, MD031)
- Remove placeholder words from cspell dictionary
- Fix alphabetical order in spellcheck example
- Align table formatting for consistency
@onlyhyde onlyhyde marked this pull request as draft January 18, 2026 11:09
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.

[Feat]: Add a official GEMINI.md or AGENT.md file

1 participant