Symfony AI in Practice: Symfony Mate 0.14, Give Eyes to Your Coding Agent

Automated English translation of the original Spanish article. Code examples keep their original identifiers.

A coding agent can statically inspect an entire Symfony project; however, deducing its runtime behavior usually requires indirect inferences. Symfony Mate bridges this gap by granting it direct access to the dependency injection container, log records, and the Symfony Profiler.

Without this runtime visibility, the agent must reconstruct application state by parsing source files or writing throwaway scripts to inspect data that the framework already computes. Mate offers a native alternative: diagnostic tools that provide empirical application data, incorporate sensitive data masking (with specific limitations detailed below), and use a format optimized to minimize token consumption in context.

This article continues the Symfony AI in Practice series. Tests were conducted on a reproducible environment running the following versions:

  • Symfony AI Mate 0.14.0 (version v0.14.1 of Symfony AI referenced in previous articles belongs to the monorepo root tags; Composer does not register a standalone 0.14.1 version for Mate components).
  • Symfony 8.1.10 and PHP 8.4.27.
  • Doctrine ORM 3.7, Monolog, and Symfony Web Profiler.

Version note: Newer versions of Mate exist on Packagist: stable v0.15.0 (October 22, 2026) and v1.0.0-BETA1 (October 26, 2026). This analysis strictly evaluates the behavior observed in version 0.14.0. Note that the version constraint ^0.14 used below will not resolve to 0.15, as Composer’s SemVer convention for 0.x versions locks the minor version when using the caret operator (^).

The following sections examine Mate’s actual architecture in this release (distinguishing it from early implementations), its installation process, its diagnostic capability when facing a real N+1 query problem, the implementation of a custom tool, and the results of a comparative experiment across six coding agent sessions with and without Mate.

What Mate Is in 0.14

In version 0.14.0, Mate operates as a command-line interface (CLI) with skills for autonomous agents, not as an MCP server.

Early literature, including the initial pull request from December 2025 and several introductory articles, describes the tool as an MCP server executed via mate serve. That architecture changed: the official CHANGELOG documents that version 0.13 dropped the MCP server in favor of a native CLI. In version 0.14.0, the vendor/bin/mate binary does not implement the serve command, and mate init no longer generates mcp.json configuration files.

The agent’s operational workflow is as follows:

  1. It reads operational instructions provided in AGENTS.md, CLAUDE.md, and mate/AGENT_INSTRUCTIONS.md.
  2. It discovers the catalog of available tools via vendor/bin/mate tools:list and inspects their schemas and parameters with vendor/bin/mate tools:inspect.
  3. It invokes executions via vendor/bin/mate tools:call --parameter=value and consumes structured resources via vendor/bin/mate resources:read.

Additionally, the discover subcommand provisions 7 specialized agent skills (placed in .agents/skills/ and symlinked into .claude/skills/), which instruct the model on when and how to apply each tool based on the observed symptom:

  • Core (ai-mate): mate-php-environment-check, mate-system-information.
  • Symfony (ai-symfony-mate-extension): mate-symfony-request-triage, mate-symfony-profiler-debugging, mate-symfony-service-inspection, mate-symfony-dotenv-diagnostics.
  • Monolog (ai-monolog-mate-extension): mate-symfony-log-investigation.

Tool Catalog in 0.14.0

When combining core symfony/ai-mate with the Symfony and Monolog extensions, the debug:capabilities command exposes 11 tools and 2 URI resource templates:

ExtensionRegistered Tools
ai-mateserver-info
ai-symfony-mate-extensionsymfony-services, symfony-service-detail, symfony-profiler-list, symfony-profiler-get, symfony-dotenv-check
ai-monolog-mate-extensionmonolog-search, monolog-context-search, monolog-tail, monolog-list-files, monolog-list-channels

The provided resource templates correspond to symfony-profiler://profile/{token} and symfony-profiler://profile/{token}/{collector}. Packages associated with Mate must always be installed with the --dev flag, as they are exclusively diagnostic tools intended for development environments.

Installation and Initial Configuration

Deployment requires four sequential commands. The only interactive step is authorizing the execution of a Composer plugin:

composer require --dev "symfony/ai-mate:^0.14" \
  "symfony/ai-symfony-mate-extension:^0.14" \
  "symfony/ai-monolog-mate-extension:^0.14"

vendor/bin/mate init
composer dump-autoload
vendor/bin/mate discover

During composer require, the package manager prompts for trust confirmation for the symfony/ai-mate-composer-plugin plugin. This component automatically invokes mate discover after every composer install and composer update, which requires arbitrary code execution permissions. While it originates from the official Symfony ecosystem, it represents a security delegation that should be deliberately evaluated.

Effects of mate init

The initialization wizard asks which command the agent should use to invoke the binary (by default vendor/bin/mate; in containerized setups like Docker or DDEV, it should be prefixed with the corresponding container runner). Next, it generates the following artifacts:

  • mate/config.php, mate/extensions.php, an empty mate/.env file, and mate/AGENT_INSTRUCTIONS.md.
  • The mate/src/ directory to host custom tools, automatically registering the Mate\ namespace in composer.json.
  • A managed block in AGENTS.md alongside a CLAUDE.md file that imports it, enabling Claude Code to load the operational context.

After executing discover, Mate detects the three extensions, initializes them, and installs the 7 skills.

Inside mate/config.php lies a critical directive: mate.php_version. This is locked to the running PHP version (in this environment, 8.4). The Mate process will abort execution if it detects a different major.minor version, ensuring that the diagnostic tooling does not inspect an environment mismatched with the application’s runtime.

Anomalous Behaviors Identified in 0.14.0

  1. Packaging issue in exclusion template: During mate init, the CLI throws a PHP Warning when failing to locate the internal template resources/mate/.gitignore inside the vendor/symfony/ai-mate package. Although the terminal summary indicates that mate/.gitignore was created, the file is not written to disk. This failure does not break the process, but requires manually creating the .gitignore file if you wish to avoid tracking Mate’s cache directory. The root cause lies in the upstream repository’s .gitattributes file, where the rule .gitignore export-ignore recursively excludes any file with that name. In v0.15.0, this rule was scoped strictly to the root (/.gitignore), resolving the issue.
  2. Redundant Composer notification: Every subsequent run of composer require outputs the message «AI Mate installed! Run vendor/bin/mate init» to stdout, even when initialization has already been completed. It is a purely cosmetic notification with no operational impact.

To verify the integrity of registered capabilities and tools:

vendor/bin/mate debug:extensions --show-all
vendor/bin/mate debug:capabilities
vendor/bin/mate tools:list

Test Environment

To evaluate Mate’s effectiveness empirically, a scenario was designed around a textbook Doctrine N+1 query problem, its optimized relational aggregation counterpart, and a route purposefully throwing exceptions and writing logs.

The project was configured on Symfony 8.1 rather than 8.0. When attempting initialization via composer create-project symfony/skeleton:"8.0.*", the dependency solver failed: all available 8.0.x versions of symfony/yaml (up to v8.0.15) had active security advisories without patches on that branch, forcing Composer’s security policy to reject them. The technically sound approach was upgrading to Symfony 8.1 rather than bypassing vulnerability checks.

composer create-project symfony/skeleton:"8.1.*" symfony-mate-demo
cd symfony-mate-demo
composer require symfony/orm-pack symfony/monolog-bundle symfony/twig-bundle
composer require --dev symfony/web-profiler-bundle symfony/maker-bundle

To simplify infrastructure without altering persistence logic, the default PostgreSQL-on-Docker configuration was replaced with a local SQLite database (DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db"), and the built-in PHP web server was started (php -S 127.0.0.1:8000 -t public).

Domain Model and Test Endpoints

The domain model consists of two entities: Category (holding a One-to-Many relation with Product) and Product. Using an app:seed command, 20 categories were seeded with 10 associated products each.

The controller exposes three distinct behaviors:

#[Route('/catalog')]
class CatalogController extends AbstractController
{
    public function __construct(private EntityManagerInterface $em) {}

    #[Route('/slow', name: 'catalog_slow')]
    public function slow(): JsonResponse
    {
        $data = [];
        foreach ($this->em->getRepository(Category::class)->findAll() as $category) {
            $data[$category->getName()] = $category->getProducts()
                ->map(fn (Product $p) => $p->getName())
                ->toArray();
        }

        return $this->json($data);
    }

    #[Route('/fast', name: 'catalog_fast')]
    public function fast(): JsonResponse
    {
        $categories = $this->em->createQueryBuilder()
            ->select('c', 'p')
            ->from(Category::class, 'c')
            ->leftJoin('c.products', 'p')
            ->getQuery()
            ->getResult();
        
        $data = [];
        foreach ($categories as $category) {
            $data[$category->getName()] = $category->getProducts()
                ->map(fn (Product $p) => $p->getName())
                ->toArray();
        }

        return $this->json($data);
    }

    #[Route('/boom', name: 'catalog_boom')]
    public function boom(LoggerInterface $logger): never
    {
        $logger->error('Fallo simulado en el catálogo', ['sku' => 'X-001']);
        throw new \RuntimeException('Catálogo no disponible');
    }
}
  • /catalog/slow triggers the N+1 problem: it executes 1 initial query to fetch categories and 20 additional queries as it lazily loads each entity’s products collection.
  • /catalog/fast performs eager loading using a single LEFT JOIN.
  • /catalog/boom writes a structured error event to the log and returns an HTTP 500 status code.

After invoking these routes via HTTP requests, the Symfony Profiler and the var/log/dev.log file are primed for subsequent forensic analysis.

Functional Evaluation of the Tools

Through Mate, diagnosing the N+1 problem in /catalog/slow takes three straightforward commands without needing to open or statically analyze source code: 21 queries are observed versus 1, with an identical SQL statement executed 20 times.

Below is an overview of the structure and behavior of tools invoked manually via tools:call and resources:read.

Security Wrapper in Responses

Every tool reading internal application data (container services, profiles, or log files) wraps the content inside the untrusted_data property and injects a _security_notice object.

This header explicitly warns the LLM that the data originates from the application runtime, may contain user-manipulated input, and must be interpreted strictly as passive data, mitigating indirect prompt injection attempts embedded in logs or HTTP parameters.

Regarding data privacy:

  • SQL query parameters extracted from the Profiler are systematically obfuscated as ***REDACTED***.
  • Authorization headers, session tokens, and cookies are stripped per package specifications.

Technical limitation of masking: Filtering is not applied uniformly across all extensions. Monolog tools filter values based on predefined key names. During testing, monolog-search returned Doctrine SQL parameters written to dev.log in plain text (both in the message string and inside context.params). While the test used numeric identifiers, this behavior implies that any sensitive value recorded by the logger in debug mode will be exposed to the agent if it queries Monolog records.

Inspecting the Container and Environment

vendor/bin/mate tools:call symfony-services --query=Kernel --limit=3

The response returns three matching service definitions (kernel, file_locator, argument_metadata_factory), the absolute total (count: 92), and the boolean flag truncated: true, alerting the model that additional elements were omitted from the payload to conserve context window tokens.

The tool symfony-dotenv-check --key=APP_ENV reveals a noteworthy architectural characteristic:

  • It returns app_env: dev and confirms the variable is declared in the .env file.
  • However, it reports resolved: false alongside the status declared_not_resolved_in_this_process.

This happens because Mate does not autonomously load the host project’s .env file (the local mate/.env file is generated empty, and the mate.env_file directive is commented out by default in mate/config.php). As a result, the tool reports the environment state inside the Mate CLI process, not inside the web server or application runtime. By design, it never exposes secret values in plain text, showing only string length and a partially masked representation.

Structured Log Queries with Monolog

vendor/bin/mate tools:call monolog-list-files
vendor/bin/mate tools:call monolog-search --term="Fallo simulado" --level=ERROR

monolog-list-files located the var/log/dev.log file (~125 KB). A subsequent search isolated the event generated by /catalog/boom: channel app, severity ERROR, exact message, and serialized context {"sku":"X-001"}, reporting total_matched: 1 and truncated: false.

Remember that in a development environment, DoctrineBundle logs every executed statement to dev.log under the doctrine channel at DEBUG level, turning the Monolog component into an alternative avenue for auditing persistence activity.

Diagnosing N+1 Queries in the Profiler

vendor/bin/mate tools:call symfony-profiler-list --limit=5
vendor/bin/mate resources:read symfony-profiler://profile/403f58/db
vendor/bin/mate resources:read symfony-profiler://profile/3b0e78/db

The initial listing provides high-level request metadata (HTTP method, path, status code, and profile token) with support for filters such as --statusCode, --url, or time ranges. When requesting /catalog/boom, the Profiler registers two profiles hierarchically linked via parent_token: one for the original request and one for the sub-request rendering the error page.

It is helpful to clarify the distinction between tools and URI resources here: the tool symfony-profiler-get --token=<t> returns only general profile metadata (without listing collectors), while the resource symfony-profiler://profile/{token} enumerates which collectors are present for that request along with their URIs. In turn, each collector (request, db, exception, logger, time) is consumed independently via symfony-profiler://profile/{token}/{collector}—providing both a triage view (summary) and complete detail (data)—preventing token saturation in the LLM’s context window.

The db collector does not return an unstructured dump of all 21 individual statements. Instead, it aggregates identical queries, computes their frequency, and quantifies distinct SQL structures showing duplication:

EndpointTotal QueriesDatabase Time (single request)Repeated Statements (duplicate_query_count)
/catalog/slow21 (20 × SELECT ... FROM product WHERE category_id = ? + 1 initial)3.67 ms1
/catalog/fast1 (LEFT JOIN)0.34 ms0

The key metric is duplicate_query_count: 1, which quantifies types of duplicate statements rather than execution count (which is 20 in this case).

In this setup (20 categories on local SQLite storage), execution time degradation is negligible and inherently noisy across successive requests. Therefore, the diagnostic indicator is not response latency, but rather the structural anomaly in SQL query counts and repetition.

For the error route /catalog/boom, reading the exception collector directly yields the exception class (RuntimeException), the associated message, the physical file path, the exact line of failure (CatalogController.php:59), and the complete stack trace.

Implementing Custom Tools with #[MateTool]

Creating extensions in Mate requires no service configuration in XML or YAML: declaring a class inside mate/src/ and decorating its public methods with the #[MateTool] PHP attribute is sufficient.

In version 0.14.0, the attribute accepts a mandatory name argument, plus optional title and description arguments. The method signature, combined with PHPDoc @param tags, automatically defines the input JSON Schema. The method must return a string, which is typically serialized using ResponseEncoder::encode() or, if transporting data originating from the analyzed application, via ResponseEncoder::encodeUntrusted() to include the security header.

Difference from early versions: Much of the earlier documentation references the #[McpTool] attribute. That attribute belongs to the experimental MCP SDK and is not used in Mate’s current architecture.

As a practical example, app-routes was implemented to list the route map registered in the application. Because the Mate process runs inside its own service container independent of the web application, the tool delegates inspection to bin/console debug:router via symfony/process, which is part of Mate’s native dependencies:

// mate/src/AppRoutes.php
namespace Mate;

use Symfony\AI\Mate\Attribute\MateTool;
use Symfony\AI\Mate\Encoding\ResponseEncoder;
use Symfony\Component\Process\Process;

class AppRoutes
{
    /**
     * @param string|null $path Filtra por fragmento de ruta, por ejemplo "/catalog"
     */
    #[MateTool(
        name: 'app-routes',
        title: 'App Routes',
        description: 'List the application routes (name, path, methods) using bin/console debug:router, optionally filtered by a path fragment',
    )]
    public function list(?string $path = null): string
    {
        $process = new Process(
            [\PHP_BINARY, 'bin/console', 'debug:router', '--format=json', '--env=dev'],
            \dirname(__DIR__, 2),
        );
        $process->setTimeout(30);
        $process->run();

        if (!$process->isSuccessful()) {
            return ResponseEncoder::encodeUntrusted(['error' => trim($process->getErrorOutput())]);
        }

        $routes = json_decode($process->getOutput(), true, flags: \JSON_THROW_ON_ERROR);

        $result = [];
        foreach ($routes as $name => $route) {
            // Se omiten rutas internas del framework y del Profiler
            if (str_starts_with($name, '_')) {
                continue;
            }
            if (null !== $path && !str_contains($route['path'], $path)) {
                continue;
            }
            $result[] = [
                'name' => $name,
                'path' => $route['path'],
                'methods' => $route['method'],
            ];
        }

        return ResponseEncoder::encodeUntrusted([
            'routes' => $result,
            'count' => \count($result),
        ]);
    }
}

After rebuilding the class map with composer dump-autoload, debug:capabilities immediately indexes the tool under the “Root Project” category (while tools:list references it under the _custom namespace) without requiring registration in mate/config.php.

The command vendor/bin/mate tools:inspect app-routes reflects the generated schema: type (null|string), default values, and the description extracted from the PHPDoc block.

Its invocation:

vendor/bin/mate tools:call app-routes --path=/catalog

Yields JSON grouping all three endpoints (catalog_slow, catalog_fast, and catalog_boom) along with count: 3, properly encapsulated inside untrusted_data. HTTP methods are reported as ANY, reflecting the absence of explicit HTTP verb constraints in the route attributes.

Empirical Evaluation with an Autonomous Agent

Across six independent sessions, Claude Code consumed a comparable volume of tokens with and without Mate; both approaches converged on an identical diagnosis and the same refactoring pattern. The fundamental divergence lies in the methodological path taken to collect diagnostic data.

Beyond manual tool execution via CLI, the essential question is whether a coding agent adopts these tools autonomously and whether this access optimizes its problem-solving workflow.

Experiment Methodology

  • Model and environment: Claude Code 2.1.317 running on claude-opus-5-5. Each run started from a completely clean session with this standardized prompt:

“The /catalog/slow endpoint responds slowly. Investigate why and suggest a fix, without modifying files.”

In sessions without Mate, an explicit restriction was added:

“Do not use vendor/bin/mate.”

  • Sampling structure: Six total sessions (three with Mate and three without Mate), executed in strict alternation (with, without, with, without, with, without).
  • Initial conditions: Prior to each run, an identical state was guaranteed: clean Git working tree, full cache purge of the Profiler and dev.log, along with pre-warming five requests to /catalog/slow and five to /catalog/fast to populate profile history. The built-in PHP web server remained active on port 8000 throughout testing.
  • Metric collection: Data was extracted directly from structured JSONL traces stored by Claude Code in ~/.claude/projects/: total latency between the first and last log entry, output tokens generated, cached tokens read and written, and the count of shell invocations executing vendor/bin/mate.

Discarded Iterations and Variable Control

Two preliminary batches were formally invalidated:

  1. In the first batch, the test controller still contained two explanatory comments (// N+1: ... and // Fixed: ...), which passively provided the solution before the agent inspected the Profiler. They were removed in a dedicated commit.
  2. In the second batch, sessions shared Profiler storage accumulatively. Later runs benefited from profile traces generated by exploratory requests from prior sessions. For the final test suite, storage state and log files were formally wiped clean before starting each session.

Quantitative Results

Metrics recorded per session:

SessionConditionDurationMate CallsOutput TokensCache ReadCache Created
1With Mate78 s46,061517,01148,014
2Without Mate67 s06,029378,01430,017
3With Mate80 s36,342524,46533,554
4Without Mate183 s09,806601,77030,285
5With Mate67 s45,580371,58926,915
6Without Mate85 s07,137542,44431,695

Median analysis:

  • Duration: 78 s in the Mate group versus 85 s in the group without Mate (an 8% reduction favoring Mate).
  • Output tokens: 6,061 versus 7,137 (a 15% reduction favoring Mate).
  • Cache read: 517,011 versus 542,444 tokens (a 5% reduction favoring Mate).
  • Cache created: 33,554 versus 30,285 tokens (an 11% increase with Mate). This difference is not due to base prompt instructions—present in both conditions—but likely stems from loading the mate-symfony-profiler-debugging skill, invoked exclusively by Mate-assisted sessions.

The variance in the group without Mate was heavily influenced by a single 183 s outlier session; the remaining two (67 s and 85 s) aligned closely with the range achieved by assisted sessions (between 67 s and 80 s).

Agent Behavior and Strategy

All six runs arrived at the same functional diagnosis: an N+1 query issue involving 21 queries versus 1, whose performance penalty in this small dataset accounted for only 5 to 10 ms (showing that baseline latency was shared with /catalog/fast). The proposed fix was consistent across all sessions: consolidate category and product loading using a single LEFT JOIN. Five sessions placed the fix inside a new repository method, while one (Session 5) implemented it as a private method within the controller itself.

The critical difference appeared in the data collection strategy:

  • Sessions with Mate: Queried pre-existing profiles via symfony-profiler-list and inspected specific collectors without executing a single curl request (Session 1 wrote a small helper script, but solely to aggregate already persisted data).
  • Sessions without Mate: Generated aggressive HTTP traffic (7, 15, and 10 curl requests respectively) and queried the Profiler web interface (/_profiler), a mechanism strictly dependent on a live PHP server. They reached the same conclusion (21 queries vs 1), but required more intermediate operational steps.

The 183-second session without Mate took a significantly deeper exploratory path: it verified which process was listening on port 8000, chained four diagnostic scripts after inspecting the code, and generated a temporary database populated with 2,000 categories and 20,000 products to stress-test the logic. That load test revealed 2,001 SQL queries and a median latency of 2,288 ms versus 1,157 ms—making it the only session in the entire sample that empirically quantified the scalability impact.

Scope and Validity of Conclusions

The recorded data does not conclusively prove that Mate accelerates the agent’s overall resolution speed. The sample size is three sessions per condition, duration intervals overlap (both groups recorded a 67 s session), and the 183 s outlier was due to a load test the agent chose to run autonomously, an artifact of the stochastic nature of LLMs.

The experimental setup has two methodological constraints:

  1. Solution visibility in source code: Although explanatory comments were scrubbed, the /catalog/fast endpoint remained defined within the same file. All six runs analyzed that controller and modeled their proposed optimization directly after fast’s implementation. This partially diminishes Mate’s unique value in blind debugging scenarios where root causes cannot be inferred from code alone.
  2. Partial isolation of the control group: Banning the vendor/bin/mate binary in the prompt prevents tool execution, but does not remove Mate instructions from the global context file, meaning the control group did not operate in total isolation.

The empirically demonstrated advantage lies in operational hygiene: with Mate, the agent consumes pre-collected structured data, adheres to redaction policies, and avoids generating live traffic or relying on a running web server to audit application behavior. However, this decoupling requires pre-existing profiles; otherwise, the Mate-assisted agent would have also needed to generate synthetic traffic.

Technical Considerations and Version Limitations

Symfony Mate 0.14 is in an early stage of development and exhibits operational nuances worth noting:

  • Semantic maturity (0.x versions): The API and architecture are still shifting considerably. The migration from an MCP server to a native CLI with skills is one example. Furthermore, the October 2026 releases of stable v0.15.0 and v1.0.0-BETA1 introduce changes outside the scope of this evaluation. Pinning constraints in composer.json and reviewing changelogs before upgrading is essential.
  • Packaging details in 0.14.0: A PHP Warning occurs during mate init due to the missing .gitignore template (fixed in v0.15.0), alongside recurring post-install notices on every composer require run.
  • Strict development scope: Dependencies must remain restricted to --dev. The Profiler and local logs can contain sensitive business data, and sanitization mechanisms have known gaps: SQL parameters were still exposed in plain text through Monolog extensions. The untrusted_data wrapper protects against prompt injections, but does not act as sensitive data encryption.
  • PHP runtime coupling: The mate.php_version directive is pinned in mate/config.php. Mate will strictly refuse to run if it detects a major.minor version different from the configured value.
  • Containerized environments (Docker, DDEV, Lando): Running the binary on the host machine might lack visibility into database services, the DI container, or Profiler cache files generated inside the container. While mate init supports execution prefixes (such as ddev exec), this setup requires explicit configuration.
  • Variable resolution in symfony-dotenv-check: It reflects the context of Mate’s local CLI process rather than the runtime environment of the main application, unless mate.env_file is explicitly configured.
  • Passive diagnostics: No native tool autonomously diagnoses an N+1 problem. Mate presents the relational db collector cleanly organized and counted; deducing the inefficient pattern relies entirely on the agent’s analytical capabilities.
  • Isolation of custom tools: Classes using #[MateTool] are instantiated within Mate’s own container, not Symfony’s application container. To interact with the host framework, tools must resort to decoupled process calls such as bin/console.
  • Representativeness of the case study: Experimental findings must be taken in context: a sample size of three runs per condition, a synthetic relational schema, local SQLite, and having the optimized solution in the same controller prevent extrapolating universal conclusions to complex production environments.

Conclusions and Lines of Exploration

Symfony Mate 0.14 provides a coding agent with direct visibility into measured application state (dependency injection, the Profiler, and structured logs) while including partial sanitization safeguards. However, within a focused test setup, it did not demonstrate a drastic reduction in token consumption or overall resolution time compared to an unassisted agent.

The tool’s primary value lies in structure and observability: it enables identifying an N+1 pattern through structured metrics in the db collector (21 queries vs 1, with 20 identical duplicates), decouples diagnostics from the need to generate active HTTP traffic, and enhances safety via untrusted data boundaries. Conversely, the tool carries the early-stage quirks of a 0.x lifecycle, minor packaging inconsistencies, and rapid changes in subsequent versions (v0.15.0 and v1.0.0-BETA1) that could alter aspects of this architecture.

To objectively evaluate its adoption, it is best tested on complex codebases where performance and concurrency issues cannot be diagnosed simply by reading source files.

Future areas of investigation:

  • Replicate the comparison on a larger-scale system featuring remote relational storage, complete isolation of the optimized controller, and total removal of Mate context from control runs.
  • Evaluate architecture and stability changes introduced in v0.15.0 and the 1.0 release candidate branch.
  • Integrate the helgesverre/toon library (suggested during mate init) to measure its impact on token reduction across JSON payloads.

Sources and References

Test project repository: jure-ve/symfony-mate-demo

Official Documentation and Packages

Symfony AI in Practice Series