DevFlow — Autonomous AI Engineering Pipeline
From idea to deployed GitHub project to LinkedIn post — fully automated. One click.
What is DevFlow?
Every senior engineer knows the overhead: you have an idea for a portfolio project, you spend 3 hours building it, then another hour setting up CI/CD, writing the README, deploying to Render, and crafting a LinkedIn post. That overhead is a tax on shipping.
DevFlow eliminates that tax entirely. It's a local autonomous pipeline that picks the next best project for your portfolio, builds it end-to-end using Claude Code, validates the output, deploys to GitHub and Render, records a live demo, and generates a LinkedIn post — presenting it for your one-click approval before posting. The only human decision is whether to hit "Approve."
Demo
How It Works — 7 Stages
┌─────────────────────────────────────────────────────────────────┐
│ DevFlow Pipeline │
└─────────────────────────────────────────────────────────────────┘
[1] THINK — Idea Engine
↳ Fetches your GitHub repos
↳ Identifies portfolio gaps
↳ GPT-4o picks the highest-impact next project
↳ Generates a complete Claude Code prompt
↓
[2] BUILD — Claude Code Runner
↳ Creates project directory
↳ Streams Claude Code CLI output live to dashboard
↳ Full project: backend + frontend + tests + Docker + CI/CD
↓
[3] VALIDATE — Quality Gate
↳ pytest — all tests must pass
↳ ruff — zero lint errors
↳ render.yaml — correct schema, healthCheckPath, service name
↳ GitHub Actions — ci.yml + docker-publish.yml + pages.yml
↳ Dockerfile — FROM python, EXPOSE, CMD/ENTRYPOINT
↳ README — minimum length + badges
↳ .env.example — non-empty
↓
[4] FIX — Auto-Fixer (max 3x)
↳ If validation fails, GPT-4o generates targeted fix prompt
↳ Sends errors back to Claude Code with exact failures
↳ Retries validation after each fix
↳ Marks as needs_manual_review after 3 failed attempts
↓
[5] DEPLOY — Ship It
↳ git init + initial commit
↳ gh repo create --public + push
↳ Set repository topics + secrets
↳ Enable GitHub Pages (GitHub Actions source)
↳ Render API v1: create web service + poll until live
↓
[6] CAPTURE — Record the Demo
↳ Playwright Chromium (headless)
↳ Navigate to GitHub Pages URL
↳ Full-page screenshot at 1920×1080
↳ 30s scrolling video recording (.webm)
↓
[7] POST — LinkedIn
↳ GPT-4o generates post in Faiz's voice
↳ Post appears in approval UI with screenshot preview
↳ You edit, approve, or discard — you're in control
↳ On approval: posts via linkedin-api or Selenium fallback
Features
- Fully autonomous — zero manual steps between idea and live project
- Intelligent project selection — analyses your GitHub repos, identifies what's missing, picks what maximises interview impact
- Self-healing builds — validation failures are fed back to Claude Code with precise error context, auto-fixed up to 3×
- SSE live streaming — watch every stage and every log line in real time from the dashboard
- One-click LinkedIn approval — you stay in control of what goes public
- Retry from failure — any failed run can be retried from the dashboard, preserving the project spec
- Complete audit trail — every run, every stage log, every post saved to SQLite
- Windows native —
pathlib.Path throughout, no hardcoded Unix paths
Prerequisites
API Keys needed:
- OpenAI API key (GPT-4o)
- GitHub Personal Access Token (scopes:
repo, workflow)
- Render API key
- LinkedIn email + password
Quick Start
# 1. Clone
git clone https://github.com/plasmacat420/devflow
cd devflow
# 2. Run the setup wizard (checks deps, creates .env, sets up directories)
python scripts/setup.py
# 3. Install Python dependencies
pip install -e ".[dev]"
# 4. Install Playwright browser
playwright install chromium
# 5. Start the backend
uvicorn backend.main:app --reload
# 6. Start the frontend (separate terminal)
cd frontend
npm install
npm run dev
# 7. Open http://localhost:5173
# 8. Click "Run Pipeline"
Architecture
Backend — FastAPI + asyncio
The FastAPI backend exposes a REST + SSE API. Pipeline runs execute as asyncio background tasks. Server-Sent Events stream every stage transition and log line to the frontend in real time, with no polling.
POST /api/pipeline/run → start pipeline (returns run_id)
GET /api/pipeline/status/{id} → SSE stream of all events
GET /api/pipeline/runs → list recent runs
POST /api/pipeline/runs/{id}/retry → retry failed run
GET /api/linkedin/posts → list pending + recent posts
PUT /api/linkedin/posts/{id} → edit post before approving
POST /api/linkedin/posts/{id}/approve → approve + post to LinkedIn
Orchestrator — 7-stage pipeline
Each stage is an independent async function in orchestrator/stages/. The pipeline coordinator in orchestrator/pipeline.py runs them sequentially, broadcasts SSE events, handles the validate→fix retry loop, and marks non-fatal stage failures (capture, post) without aborting the run.
State — SQLite via aiosqlite
Three tables: pipeline_runs, stage_logs, linkedin_posts. No external services required for state — everything runs locally.
Frontend — React 18 + Vite + TailwindCSS
Command-center aesthetic (slate-950 background, violet accent). Key engineering decision: the useRunStream hook wraps the SSE connection lifecycle, giving components a clean { stageStatuses, logs, status, liveUrls, complete } interface with automatic cleanup on unmount.
Project Structure
devflow/
├── orchestrator/ Python pipeline engine
│ ├── pipeline.py Main coordinator — 7 stages, fix loop, SSE broadcast
│ ├── stages/ One file per stage
│ ├── prompts/ GPT-4o prompt builders
│ ├── knowledge/ portfolio.py — Faiz's skills, projects, post style
│ └── utils/ GitHub CLI, Render API, LinkedIn, Windows helpers
├── backend/ FastAPI app
│ ├── main.py App + lifespan + static file serving
│ ├── database.py aiosqlite — runs, logs, posts
│ ├── config.py pydantic-settings from .env
│ └── routers/ pipeline.py + linkedin.py
├── frontend/ React 18 + Vite + TailwindCSS
│ └── src/
│ ├── pages/ Dashboard, RunDetail, Approve
│ ├── components/ StageTracker, LiveLogs, PostPreview, RunCard
│ ├── hooks/ usePipeline, useRunStream (SSE)
│ └── api/ client.js — all API calls
├── tests/ pytest — idea engine, validator, deployer, poster
├── scripts/setup.py First-time setup wizard
└── .github/workflows/ ci.yml (tests + lint + frontend build)
Running Tests
pytest -v --cov=orchestrator --cov=backend
Tests are written with pytest-asyncio and mock all external services (OpenAI, GitHub API, Render API, LinkedIn). No credentials or network access required to run the test suite.
Security Notes
- LinkedIn credentials are stored locally in
.env — never committed (.gitignore covers it)
- GitHub token is stored in
.env and set as a repo secret via gh secret set
- The pipeline runs exclusively on your local machine — no data leaves except to the APIs you configure
- All API keys are loaded via
pydantic-settings — never hardcoded
License
MIT — see LICENSE
Built by Faiz Shaikh using DevFlow itself.