-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Summary
Exploration of whether the system agent should be able to make code changes and submit PRs autonomously, rather than just filing issues for humans to fix.
Current State
Agent can:
- Read
debug.logfor PHP diagnostics - Read DM logs for application-level issues
- File GitHub issues in any repo the PAT can access
- Explore codebase via
LocalSearchandWorkspacetools
Proposed Capability
Agent could:
- Clone repo to workspace
- Create feature branch
- Make code changes
- Commit + push to fork
- Submit PR for human review
New Abilities Needed
| Ability | Purpose |
|---|---|
datamachine/git-clone |
Clone repo to workspace directory |
datamachine/git-checkout |
Create/switch branches |
datamachine/git-commit |
Stage + commit changes |
datamachine/git-push |
Push to fork |
datamachine/create-pr |
Submit PR via gh |
Use Cases
For sites managed by developers (like ours):
- Probably NOT needed — we have OpenCode/Kimaki for this
- Agent filing issues is sufficient; humans write the code
For regular WordPress users (solo site owners):
- Could auto-fix simple issues (deprecated functions, typos, config errors)
- Could apply security patches from upstream
- Could update theme/plugin code for compatibility
Concerns
- Safety — autonomous code changes could break production
- Scope creep — this is a big feature, not visibility/decision-making
- Tooling overlap — we already have OpenCode for code changes
- Testing — how does agent verify changes work?
Discussion Questions
- Is this a core DM feature or a separate "DM Code Agent" plugin?
- Should it be opt-in per-repo with an allowlist?
- Is this solving a problem we actually have?
- Does this make sense for the "visibility for decisions" focus?
Related
- Settings update ability silently ignores unknown keys — not extensible data-machine#751 — extensible settings for
github_pat - refactor(#751): GitHubIssueTask delegates to GitHubAbilities::createIssue() data-machine#753 — GitHubIssueTask refactored to use abilities
- feat(#751): add datamachine/read-debug-log ability for PHP diagnostics data-machine#754 —
read-debug-logability for PHP diagnostics
Status
This is a brainstorming/RFC issue. Not currently planned for implementation. Adding for visibility and future discussion.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels