LearnNewsExamplesServices
Frontmatter
id7917
titleFeat: Create ''Dev Agent'' MVP (Ticket -> PR)
stateClosed
labels
enhancementai
assignees[]
createdAtNov 29, 2025, 4:09 PM
updatedAtNov 29, 2025, 10:44 PM
githubUrlhttps://github.com/neomjs/neo/issues/7917
authortobiu
commentsCount2
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtNov 29, 2025, 10:44 PM

Feat: Create 'Dev Agent' MVP (Ticket -> PR)

Closed v11.14.0 enhancementai
tobiu
tobiu commented on Nov 29, 2025, 4:09 PM

Feat: Create 'Dev Agent' MVP (Ticket -> PR)

Context

This is the execution arm of the "Feature Factory" experiment (Epic #7914). Once a PM Agent has created technical tickets, we need a "Developer Agent" to pick them up and implement the code.

Goal

Create a standalone Node.js script ai/agents/dev.mjs that acts as a "Headless Developer Agent."

Requirements

1. Input

  • The script must accept an Issue Number as a CLI argument: node ai/agents/dev.mjs --issue 456
  • (Future enhancement: Polling mode that scans for agent-task:pending)

2. Logic (The "Brain")

  • Read: Fetch the Issue body (YAML contract) to understand the requirements.
  • Explore: Use codebase_investigator or search_file_content (via SDK) to locate relevant files.
  • Implement: Use read_file / write_file to modify the code.
  • Verify: Run tests (if specified in the ticket) to ensure correctness.

3. Output (Execution)

  • Commit: Create a new branch feature/issue-456.
  • Push: Push changes to the repository.
  • PR: Create a Pull Request linking to the original issue.
  • Update Status: Update the issue labels to agent-task:completed (or agent-task:blocked if it failed).

Tech Stack

  • Use ai/services.mjs for the AI logic.
  • Use simple-git or shell commands for Git operations.
  • Adhere strictly to the ai/agents/PROTOCOL.md state machine.
tobiu added the enhancement label on Nov 29, 2025, 4:09 PM
tobiu added the ai label on Nov 29, 2025, 4:09 PM
tobiu cross-referenced by #7914 on Nov 29, 2025, 5:24 PM
tobiu
tobiu Nov 29, 2025, 10:18 PM

Input from Gemini 2.5:

Implementation Update: Adopting the "Fake Agent" pattern to accelerate the MVP.

  • Architecture: The agent is a standalone Node.js script using direct imports from ai/services.mjs.
  • Context: The agent now consumes the full raw markdown content of the issue (including frontmatter) to provide maximum context to the LLM.
  • Execution: Uses child_process for Git operations and GoogleGenerativeAI for code generation.
tobiu
tobiu Nov 29, 2025, 10:43 PM

Feature Factory Success: The MVP is operational.

  • Executed on Test Issue #7933.
  • Created Branch .
  • Modified .
  • Submitted PR #7934.

The infrastructure () has been pushed to . Closing this implementation ticket.

tobiu closed this issue on Nov 29, 2025, 10:44 PM