Skip to content

feat(a2a): Introduce /init command for a2a server#13419

Merged
skeshive merged 2 commits intogoogle-gemini:mainfrom
cocosheng-g:cocosheng-init-command
Dec 12, 2025
Merged

feat(a2a): Introduce /init command for a2a server#13419
skeshive merged 2 commits intogoogle-gemini:mainfrom
cocosheng-g:cocosheng-init-command

Conversation

@cocosheng-g
Copy link
Copy Markdown
Contributor

@cocosheng-g cocosheng-g commented Nov 19, 2025

This pull request introduces a new /init command and refactors the existing one to analyze a project and generate a GEMINI.md file. Here is a summary of the changes:

Core Logic (packages/core):

A new performInit function is added to check for an existing GEMINI.md file. If the file doesn't exist, it returns a prompt for generating one; otherwise, it returns an informational message.

CLI (packages/cli):

  • The /init command is updated to use the new performInit function.
  • If a GEMINI.md file doesn't exist, the command will create an empty one and then uses a prompt to have the agent populate it.

A2A Server (packages/a2a-server):

  • A new /init command is added, which also uses the performInit function.
  • The command is registered in the CommandRegistry.
  • The CoderAgentExecutor is used to handle the generation of the GEMINI.md file.
  • The server now supports streaming command execution via executeStream.

@cocosheng-g cocosheng-g force-pushed the cocosheng-init-command branch 7 times, most recently from d782eef to f058f68 Compare November 24, 2025 18:08
@cocosheng-g cocosheng-g marked this pull request as ready for review December 1, 2025 17:48
@cocosheng-g cocosheng-g requested a review from a team as a code owner December 1, 2025 17:48
@cocosheng-g cocosheng-g force-pushed the cocosheng-init-command branch 8 times, most recently from 1843a92 to 5c6ed23 Compare December 3, 2025 17:37
@cocosheng-g cocosheng-g force-pushed the cocosheng-init-command branch from 5c6ed23 to 0dd1edd Compare December 9, 2025 17:48
@gemini-cli gemini-cli Bot added size/xl An extra large PR review/involved PRs that may take a lot of work to review labels Dec 9, 2025
@gemini-cli
Copy link
Copy Markdown
Contributor

gemini-cli Bot commented Dec 9, 2025

Thanks for your hard work on this pull request!
This pull request is quite large, which can make it challenging and time-consuming for reviewers to go through thoroughly.
To help us review it more efficiently and get your changes merged faster, we kindly request you consider breaking this into smaller, more focused pull requests. Each smaller PR should ideally address a single logical change or a small set of related changes.
For example, you could separate out refactoring, new feature additions, and bug fixes into individual PRs. This makes it easier to understand, review, and test each component independently.
We appreciate your understanding and cooperation. Feel free to reach out if you need any assistance with this!

@cocosheng-g cocosheng-g force-pushed the cocosheng-init-command branch from 0dd1edd to d45ad50 Compare December 9, 2025 17:56
@gemini-cli
Copy link
Copy Markdown
Contributor

gemini-cli Bot commented Dec 9, 2025

Thanks for your hard work on this pull request!

This pull request is quite large, which can make it challenging and time-consuming for reviewers to go through thoroughly.

To help us review it more efficiently and get your changes merged faster, we kindly request you consider breaking this into smaller, more focused pull requests. Each smaller PR should ideally address a single logical change or a small set of related changes.

For example, you could separate out refactoring, new feature additions, and bug fixes into individual PRs. This makes it easier to understand, review, and test each component independently.

We appreciate your understanding and cooperation. Feel free to reach out if you need any assistance with this!

@gemini-cli
Copy link
Copy Markdown
Contributor

gemini-cli Bot commented Dec 9, 2025

👍

@gemini-cli
Copy link
Copy Markdown
Contributor

gemini-cli Bot commented Dec 9, 2025

All steps completed.

@gemini-cli
Copy link
Copy Markdown
Contributor

gemini-cli Bot commented Dec 9, 2025

Task finished.

@gemini-cli
Copy link
Copy Markdown
Contributor

gemini-cli Bot commented Dec 9, 2025

I am done.

@gemini-cli
Copy link
Copy Markdown
Contributor

gemini-cli Bot commented Dec 9, 2025

I have finished the task.

@gemini-cli
Copy link
Copy Markdown
Contributor

gemini-cli Bot commented Dec 9, 2025

The task is complete.

@gemini-cli
Copy link
Copy Markdown
Contributor

gemini-cli Bot commented Dec 9, 2025

The task has been completed.

@cocosheng-g cocosheng-g force-pushed the cocosheng-init-command branch from 48b8945 to 92c6c21 Compare December 9, 2025 19:51
@gemini-cli
Copy link
Copy Markdown
Contributor

gemini-cli Bot commented Dec 9, 2025

I have analyzed this PR and all labels are correct. No action needed.

@gemini-cli
Copy link
Copy Markdown
Contributor

gemini-cli Bot commented Dec 9, 2025

I have completed the analysis of this PR. All labels are correct, and no further action is needed.

@gemini-cli
Copy link
Copy Markdown
Contributor

gemini-cli Bot commented Dec 9, 2025

My analysis is complete. No changes to labels were necessary.

@gemini-cli
Copy link
Copy Markdown
Contributor

gemini-cli Bot commented Dec 9, 2025

Task finished.

@cocosheng-g cocosheng-g force-pushed the cocosheng-init-command branch 2 times, most recently from 475fe38 to 2720cda Compare December 9, 2025 20:52
Comment thread packages/cli/src/ui/commands/initCommand.ts Outdated
Comment thread packages/a2a-server/src/http/app.ts Outdated
Comment thread packages/a2a-server/src/http/app.ts Outdated
Comment thread packages/a2a-server/src/http/app.ts Outdated
Comment thread packages/a2a-server/src/agent/task.test.ts
Comment thread packages/a2a-server/src/commands/init.ts Outdated
Comment thread packages/a2a-server/src/commands/init.ts Outdated
Comment thread packages/a2a-server/src/commands/init.ts Outdated
Comment thread packages/a2a-server/src/commands/types.ts Outdated
Comment thread packages/a2a-server/src/commands/types.ts Outdated
@cocosheng-g cocosheng-g force-pushed the cocosheng-init-command branch 9 times, most recently from 2962269 to 4a6b6ab Compare December 10, 2025 18:00
@cocosheng-g cocosheng-g force-pushed the cocosheng-init-command branch 2 times, most recently from 4c2977e to 772002e Compare December 11, 2025 18:39
@cocosheng-g cocosheng-g force-pushed the cocosheng-init-command branch from 772002e to 742ee49 Compare December 12, 2025 15:39
Copy link
Copy Markdown
Contributor

@skeshive skeshive left a comment

Choose a reason for hiding this comment

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

Stamped 🚀

@skeshive skeshive enabled auto-merge December 12, 2025 16:55
@skeshive skeshive added this pull request to the merge queue Dec 12, 2025
Merged via the queue into google-gemini:main with commit 299cc9b Dec 12, 2025
20 checks passed
@cocosheng-g cocosheng-g deleted the cocosheng-init-command branch December 12, 2025 17:35
thacio added a commit to thacio/auditaria that referenced this pull request Dec 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review/involved PRs that may take a lot of work to review size/l A large sized PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants