$at

Enables AI coding agents (e.g. Claude Code) to access ProcessWire's API

AgentTools

via CLI, and provides a database migration system for transferring changes across environments.

Copyright 2026 Ryan Cramer and Claude (Anthropic) | MIT


Click any linked item for full usage details and examples. Hookable methods are indicated with the icon. In addition to those shown below, the AgentTools class also inherits all the methods and properties of: WireData and Wire.

Show $var?     Show args?       Only hookable?    

Common

NameReturnSummary 
$at->addAppliedMigration(string $file)
None

Record a migration as applied in the registry

 
$at->callUnknown(string $method, array $arguments)
AgentToolsHelper mixed null

Allow helpers to be called as methods, e.g. $at->sitemap()->generate()

$at->get(string $key)
mixed

Get property

 
$at->getAgents()
AgentToolsAgents

Get all defined agents

 
$at->getAppliedMigrations()
array

Get applied migrations registry from module config

 
$at->getCliCommands()
array

Get CLI commands for ProcessWire 3.0.259 CliModule interface

 
$at->getFilesPath()
string

Get main files path for AgentTools assets

 
$at->getMigrationName(string $file)
string

Get the migration name from its filename

 
$at->getPrimaryAgent()
AgentToolsAgent false

Get primary agent

 
$at->isMigrationApplied(string $file)
bool

Is the given migration already applied?

 
$at->renderHelp()
string

Render CLI summary of available commands

 
$at->upgrade($fromVersion, $toVersion)
None

Upgrade module

$at->wired()
None

Called when module is wired to API

 

Properties

NameReturnSummary 
$at->engineer AgentToolsEngineer 
$at->engineer_additional_models string 
$at->engineer_api_key string 
$at->engineer_endpoint string 
$at->engineer_instructions string 
$at->engineer_label string 
$at->engineer_mem_qty int 
$at->engineer_model string 
$at->engineer_provider string 
$at->engineer_readonly int bool 
$at->migrations AgentToolsMigrations 
$at->sitemap AgentToolsSitemap 

Additional methods and properties

In addition to the methods and properties above, AgentTools also inherits the methods and properties of these classes:

API reference based on ProcessWire core version 3.0.261