Skip to content

docs: add agents documentation and CI validation instructions#696

Merged
ilopezluna merged 2 commits intomainfrom
update-docs
Feb 19, 2026
Merged

docs: add agents documentation and CI validation instructions#696
ilopezluna merged 2 commits intomainfrom
update-docs

Conversation

@ilopezluna
Copy link
Contributor

External contributors can't run CI workflows on their forks, so they submit PRs that fail CI silently. Maintainers only discover failures after manually triggering workflows, creating a slow feedback loop.

Added make validate-all — a single command that runs all CI checks locally (go mod tidy, lint, tests with race detection, shellcheck). Created AGENTS.md instructing contributors/agents to run it before committing, with prerequisites and links to project docs. Updated README.md to reflect all current Makefile targets.

@ilopezluna ilopezluna requested a review from a team February 19, 2026 08:35
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @ilopezluna, 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 significantly enhances the developer experience for contributors by providing a unified local validation command (make validate-all) that mirrors the project's CI checks. This change aims to reduce friction and improve the feedback loop for external contributors, who previously faced challenges in validating their changes against CI requirements. Complementary documentation in AGENTS.md guides users through the process, while README.md updates ensure the project's development workflow is clearly articulated.

Highlights

  • Local CI Validation Command: Introduced a new make validate-all command that consolidates and runs all CI checks locally, including go mod tidy, linting, tests with race detection, and shellcheck, to enable contributors to validate changes before committing.
  • Contributor Documentation: Added a new AGENTS.md file providing clear instructions for external contributors on how to use the make validate-all command, including prerequisites and links to relevant project documentation.
  • Makefile Documentation Update: Updated the README.md to reflect the new make validate-all target and other existing Makefile targets, improving the clarity and completeness of the project's development task documentation.

🧠 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.

Changelog
  • AGENTS.md
    • Added a new documentation file.
    • Provided instructions for running local CI validations using make validate-all.
    • Listed prerequisites for running the validation checks.
    • Included links to other project documentation.
  • Makefile
    • Added validate-all to the .PHONY list.
    • Implemented the validate-all target to perform go mod tidy check, linting, tests with race detection, and shellcheck validation.
    • Updated the help target output to include the new validate-all target and clarify existing ones.
  • README.md
    • Updated the "Using the Makefile" section.
    • Added build-cli, install-cli, docs, validate-all, lint, validate, and integration-tests to the list of key Makefile targets.
    • Revised descriptions for existing targets like integration-tests and help.
Activity
  • No specific activity (comments, reviews, progress) was provided in the context.
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

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey - I've found 2 issues, and left some high level feedback:

  • In AGENTS.md, the prerequisite Go 1.25.6+ appears to reference a non-existent Go version; consider correcting this to the actual minimum supported Go version (e.g., 1.22.x) to avoid confusing contributors.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- In `AGENTS.md`, the prerequisite `Go 1.25.6+` appears to reference a non-existent Go version; consider correcting this to the actual minimum supported Go version (e.g., 1.22.x) to avoid confusing contributors.

## Individual Comments

### Comment 1
<location> `AGENTS.md:22` </location>
<code_context>
+
+### Prerequisites
+
+- **Go 1.25.6+**
+- **golangci-lint v2.7.2+**[Install instructions](https://golangci-lint.run/welcome/install/)
+- **shellcheck**`brew install shellcheck` (macOS) or `apt-get install shellcheck` (Linux)
</code_context>

<issue_to_address>
**issue (typo):** The documented Go version `1.25.6+` looks incorrect and may be a typo for a currently available Go release.

Prerequisites list `Go 1.25.6+`, but there is no 1.25.x Go release. Please confirm the intended minimum Go version (e.g., `1.22.6+`) and update this entry so contributors know which version to install.

```suggestion
- **Go 1.22.6+**
```
</issue_to_address>

### Comment 2
<location> `AGENTS.md:16` </location>
<code_context>
+1. **go mod tidy** — ensures `go.mod`/`go.sum` are clean
+2. **Lint** — runs `golangci-lint` (see [`.golangci.yml`](./.golangci.yml) for configuration)
+3. **Tests** — runs all unit tests with race detection (`go test -race ./...`)
+4. **Shellcheck** — validates all shell scripts
+
+If any step fails, fix the issue and re-run before committing.
</code_context>

<issue_to_address>
**nitpick (typo):** Consider using the official capitalization "ShellCheck" for the tool name and keeping it consistent.

Here it’s written as "Shellcheck" and elsewhere as `shellcheck`. Please standardize on the official tool name "ShellCheck" when referring to it in text, and use lowercase `shellcheck` only for the command/package name.

Suggested implementation:

```
4. **ShellCheck** — validates all shell scripts

```

```
- **ShellCheck** — `brew install shellcheck` (macOS) or `apt-get install shellcheck` (Linux)

```
</issue_to_address>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

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 a valuable validate-all Makefile target and an AGENTS.md guide, which significantly improves the local development workflow and CI parity for contributors. The additions are well-integrated into the existing documentation and help system. I have identified a likely typo in the linter version and a small opportunity to clarify an error message.

Makefile Outdated
validate-all:
@echo "==> Checking go mod tidy..."
@go mod tidy
@git diff --exit-code go.mod go.sum || (echo "ERROR: go.mod/go.sum are not tidy. Run 'go mod tidy' and commit the changes." && exit 1)
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 error message currently instructs the user to run go mod tidy, but the validate-all target has already executed that command on the previous line. It would be more helpful to inform the user that the files were modified and they should commit the changes.

	@git diff --exit-code go.mod go.sum || (echo "ERROR: go.mod/go.sum were not tidy. Please commit the changes applied by 'go mod tidy'." && exit 1)

@ilopezluna ilopezluna merged commit 58bf78d into main Feb 19, 2026
11 checks passed
@ilopezluna ilopezluna deleted the update-docs branch February 19, 2026 09:07
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