-
Notifications
You must be signed in to change notification settings - Fork 31
🤖 feat: add /init slash command for AGENTS.md bootstrap #1190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds a new /init slash command that populates the chat input with a comprehensive prompt template for generating an AGENTS.md file. The command works in both workspace and creation variants, allowing users to bootstrap AI agent contribution guidelines for their projects.
Key changes:
- New
/initslash command that populates the input with a pre-written system prompt - Type declaration for importing
.txtfiles with the?rawsuffix - Parser tests for the new command
Reviewed changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/types/txt.d.ts | Adds TypeScript declaration module for importing .txt?raw files as strings |
| src/browser/utils/slashCommands/types.ts | Adds init type to the ParsedCommand union for slash command parsing |
| src/browser/utils/slashCommands/registry.ts | Defines the /init command handler that rejects arguments and registers it in the command list |
| src/browser/utils/slashCommands/parser.test.ts | Adds unit tests for /init command parsing with and without arguments |
| src/browser/components/ChatInput/index.tsx | Implements /init command handling in both creation and workspace variants to populate input with the init message |
| src/browser/assets/initMessage.txt | Contains the comprehensive system prompt template for generating AGENTS.md files |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@codex review |
|
Codex Review: Didn't find any major issues. Chef's kiss. ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
Add /init command that populates the chat input with a pre-written prompt to generate an AGENTS.md file for a project. - Works in both creation and workspace variants - Populates input for user review before sending - Added parser tests --- _Generated with `mux` • Model: `anthropic:claude-opus-4-5` • Thinking: `medium`_
ec9dd12 to
49680cb
Compare
Add
/initcommand that populates the chat input with a pre-written prompt to generate an AGENTS.md file for a project.Generated with
mux• Model:anthropic:claude-opus-4-5• Thinking:medium