Summary
Phase 2 expands Data Machine Code beyond the extracted functionality with new developer-oriented tools that don't exist yet in core. These are the tools that make DM Code a real coding agent extension.
New Tools
Code Search
Code Analysis
Enhanced Git Operations
File Operations
Design Principles
- All new tools register via
datamachine_tools filter
- All new abilities register via Abilities API
- CLI commands under
wp datamachine-code
- Read-only tools exposed via REST, mutating tools CLI/agent-only
- Security: path containment, allowlists, audit logging
Summary
Phase 2 expands Data Machine Code beyond the extracted functionality with new developer-oriented tools that don't exist yet in core. These are the tools that make DM Code a real coding agent extension.
New Tools
Code Search
greptool — search file contents across workspace repos using regexfind/globtool — find files by name/pattern across reposripgrepwrapper — fast content search with context linesCode Analysis
Enhanced Git Operations
git checkout— create/switch branchesgit stash— stash/pop/list stashed changesgit merge— merge branches (with conflict detection)git rebase— rebase onto target branchgit cherry-pick— pick specific commitsFile Operations
Design Principles
datamachine_toolsfilterwp datamachine-code