* Description: Provides the workspace, git, and GitHub coding tools a coding agent uses to make tracked, reviewable changes — whether the agent runtime runs on the host or inside a Codebox sandbox. Owns AGENTS.md and the workspace area. Activation is the declarative "a coding agent lives here" signal.
'label' => 'Weekly — reports workspace disk hygiene',
'task_params' => array(
'source' => 'recurring_schedule',
'include_cleanup' => true,
'include_sizes' => false,
),
);
return$schedules;
}
);
/**
* Register code context memory file.
*
* Scaffolds contexts/code.md with GitHub, workspace, and git instructions.
* The file is written once — after that, the agent owns it.
*/
add_filter(
'datamachine_default_context_files', function ( array$defaults ): array {
$content = <<<'MD'
# Code Context
This context is active when you have developer tools available — GitHub integration, workspace file operations, and git workflows.
## GitHub Issue Creation
When using create_github_issue: include a clear title and detailed body with context, reproduction steps, and relevant log snippets. Use labels to categorize. Route to the most appropriate repo. Never create duplicates.
MD;
// Append available repos dynamically.
if ( class_exists('\DataMachineCode\Abilities\GitHubAbilities') ) {