mirror of
https://github.com/symfony/ai-mate.git
synced 2026-03-24 00:02:10 +01:00
main
This PR was squashed before being merged into the main branch.
Discussion
----------
[Mate] Add Codex wrappers and refresh agent instructions on discover
| Q | A |
| ------------- | --- |
| Bug fix? | yes |
| New feature? | yes |
| Docs? | yes |
| Issues | n/a (no related issue) |
| License | MIT |
## Description
This PR improves Symfony AI Mate integration for Codex and keeps agent instructions in sync with extension discovery.
### What changed
- mate discover now also refreshes agent instruction artifacts:
- updates mate/AGENT_INSTRUCTIONS.md
- updates a managed AI Mate section in AGENTS.md
- mate init now scaffolds all integration artifacts (without running discover):
- keeps mcp.json + .mcp.json behavior
- adds Codex runtime wrappers:
- bin/codex (macOS/Linux)
- bin/codex.bat (Windows)
- adds mate/AGENT_INSTRUCTIONS.md template
- updates AGENTS.md managed section from current instruction file
- prints explicit next step to run vendor/bin/mate discover
- extracted extension sync logic to ExtensionConfigSynchronizer
- added AgentInstructionsMaterializer to centralize writing:
- mate/AGENT_INSTRUCTIONS.md
- managed block in AGENTS.md
- extended AgentInstructionsAggregator with aggregateForExtensions(...) to support fresh discovered maps and avoid stale container state
- updated Mate docs and changelog accordingly
## Usage
vendor/bin/mate init
vendor/bin/mate discover
./bin/codex
discover is now the command that refreshes both extension config and instruction artifacts.
Commits
-------
7362bb22 [Mate] Add Codex wrappers and refresh agent instructions on discover
feature #1682 [Mate] Add Codex wrappers and refresh agent instructions on discover (wachterjohannes)
Symfony AI - Mate Component
The Mate component provides an MCP (Model Context Protocol) server that enables AI assistants to interact with PHP applications (including Symfony) through standardized tools. This is a development tool, not intended for production use.
Installation
composer require --dev symfony/ai-mate
This repository is a READ-ONLY sub-tree split. See https://github.com/symfony/ai to create issues or submit pull requests.
Resources
Languages
PHP
99.6%
Shell
0.2%
Batchfile
0.2%