Skip to content

Conversation

@deansheather
Copy link
Member

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

@chatgpt-codex-connector
Copy link

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

Copy link

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

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 /init slash command that populates the input with a pre-written system prompt
  • Type declaration for importing .txt files with the ?raw suffix
  • 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.

@ibetitsmike
Copy link
Contributor

@codex review

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. Chef's kiss.

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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`_
@deansheather deansheather force-pushed the init-command-precanned-message branch from ec9dd12 to 49680cb Compare December 18, 2025 14:34
@deansheather deansheather added this pull request to the merge queue Dec 18, 2025
Merged via the queue into main with commit 3cf3d07 Dec 18, 2025
20 checks passed
@deansheather deansheather deleted the init-command-precanned-message branch December 18, 2025 14:50
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