Skip to content

feat: add scaffold router and project template selection#213

Merged
leonvanzyl merged 1 commit intomasterfrom
feat/scaffold-template-selection
Feb 26, 2026
Merged

feat: add scaffold router and project template selection#213
leonvanzyl merged 1 commit intomasterfrom
feat/scaffold-template-selection

Conversation

@leonvanzyl
Copy link
Collaborator

Summary

  • Add new server/routers/scaffold.py with SSE streaming endpoint for running hardcoded scaffold commands (e.g., npx create-agentic-app)
  • Insert a template selection step in the new project modal (blank vs agentic starter) between folder selection and spec method choice
  • Stream real-time scaffold output to the UI with auto-scroll, success/error states, and retry support

Test plan

  • Create a new project and verify the template selection step appears after folder selection
  • Select "Blank Project" and confirm it skips straight to spec method
  • Select "Agentic Starter" and verify scaffold output streams in real-time
  • Test back navigation from template step returns to folder selection
  • Test error/retry flow if scaffold fails
  • Run ruff check . — passes
  • Run python test_security.py — 169/169 pass
  • Run npm run lint in ui/ — 0 errors
  • Run npm run build in ui/ — clean build

🤖 Generated with Claude Code

Add a new scaffold system that lets users choose a project template
(blank or agentic starter) during project creation. This inserts a
template selection step between folder selection and spec method choice.

Backend:
- New server/routers/scaffold.py with SSE streaming endpoint for
  running hardcoded scaffold commands (npx create-agentic-app)
- Path validation, security checks, and cross-platform npx resolution
- Registered scaffold_router in server/main.py and routers/__init__.py

Frontend (NewProjectModal.tsx):
- New "template" step with Blank Project and Agentic Starter cards
- Real-time scaffold output streaming with auto-scroll log viewer
- Success, error, and retry states with proper back-navigation
- Updated step flow: name → folder → template → method → chat/complete

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@leonvanzyl leonvanzyl merged commit df23a97 into master Feb 26, 2026
2 checks passed
@leonvanzyl leonvanzyl deleted the feat/scaffold-template-selection branch February 26, 2026 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant