Skip to main content
BeginnerDevelopmentEst. Time: 15-20 min

Solo AI Coding Developer

Maintain complete task discipline, prevent context drift, and ship verified features when working solo with an AI coding agent.

The Problem

Solo developers using AI assistants often suffer from hallucinated edits, wandering scope, and forgotten test runs. Without a structured workflow, the AI edits files impulsively, leaving broken tests and uncommitted debt.

Who It Is For

Independent software engineers, indie hackers, and open-source maintainers using Claude Code, OpenCode, Codex, or Antigravity.

Prerequisites & Tools

Prerequisites Checklist:
  • Node.js >= 20.0.0 installed locally
  • Git initialized in your local repository
  • @programinglive/dev-workflow installed globally via npm
Tool / CommandTypeRole in Tutorial
devwf doctorcliVerify local storage and environment before starting
start_taskmcpPin projectDir and lock task scope
create_feature_flowmcpRecord architecture flowchart before touching code
complete_taskmcpSafely persist outcomes and reset workflow state

Example Task Contract

Exact start_task payload representing this workflow in DevWorkflow local-first governance.

AI Tool Call: start_task payload
{
  "description": "Implement debounced username search filter in the Users table component",
  "type": "feature",
  "plan": [
    "Add unit test asserting search query fires 300ms after last keystroke",
    "Add useDebounce hook and bind search input to table state",
    "Run component tests and verify clean render"
  ],
  "definitionOfDone": [
    "Search input triggers query only after 300ms idle",
    "Table renders loading state and updates user rows accurately",
    "npm test passes 100% with no warnings"
  ]
}

Step-by-Step Tutorial Workflow

Follow these sequential actions with validated copyable commands and expected outputs.

1

Initialize Standalone Profile

Run devwf setup to ensure local SQLite WAL persistence is ready with zero cloud dependencies.

Copyable Command
Terminal Command
devwf setup && devwf doctor
Expected Terminal Output
[setup] Mode: LOCAL_FIRST_STANDALONE ready
All core health checks PASSED.
2

Create Branch & Start Task Contract

Always branch first. Then instruct your AI assistant to call start_task with your intent.

Copyable Command
Terminal Command
git checkout -b feat/user-search
Code / Tool Payload
Execution Payload
// Prompt to your AI agent:
"Please start a task: Add debounced username search filter to Users table."
3

Enforce TDD & Verify

Work with the agent to implement test-first logic. Inspect git diffs and verify test outputs.

Copyable Command
Terminal Command
npm test
Expected Terminal Output
ℹ tests 8 · pass 8 · fail 0 · duration_ms 42.1
4

Close Task with Evidence

Call complete_task to record the commit message and next steps in local history.

Code / Tool Payload
Execution Payload
{
  "commitMessage": "feat(users): add 300ms debounced username filter"
}

Verification Steps

Verify that your work genuinely satisfies the task contract before closing.

Run `git log -1` to confirm clean Conventional Commit on the feature branch
Run `devwf list` to verify the task is logged as completed in local SQLite history

Limitations & Troubleshooting

Issue: AI agent begins editing files before calling start_task
Resolution: The DevWorkflow pre-tool guard plugin blocks bash/mutation tools automatically until start_task is registered.