feat(init): demo agent scaffold, what's next guidance [v0.3.0 — 5/7]#735
feat(init): demo agent scaffold, what's next guidance [v0.3.0 — 5/7]#735kokevidaurre merged 2 commits intodevelopfrom
Conversation
There was a problem hiding this comment.
Code Review
This pull request expands the squads CLI with new goals, credentials, log, and review commands and refactors the run command to implement wave-based parallel execution, quota detection, and resume support. The workflow now follows a Plan-Execute-Review-Verify model, and several internal protocols have been moved to external markdown files. Key feedback includes replacing require with dynamic import() for ESM compatibility in src/lib/cognition.ts, correcting a hardcoded convergence flag in src/lib/workflow.ts, and adding error handling for JSON.parse in src/commands/credentials.ts. Further improvements were suggested regarding hardcoded organization links, ANSI-aware string padding in logs, and more robust task parsing and agent fallback logic.
Init UX improvements from v0.3.0 cycle: - "What's next" guidance after init with actionable next steps - Opt-in email capture for product updates - Demo squad scaffold with hello-world starter agent - IDP catalog seeding for agent frontmatter schemas - Competitor collection during init - Hints for empty business description - cli.run.complete telemetry event Co-Authored-By: Claude <noreply@anthropic.com>
4052f34 to
72a43d6
Compare
Tests added: - catalog.test.ts: catalog command tests - dashboard.test.ts: dashboard engine, renderers, loader tests - services.test.ts: services command tests - first-run.e2e.test.ts: updated for demo squad scaffold (requires PR #735) - guardrail.test.ts: guardrail hook tests - init.test.ts: expanded init command tests - telemetry.test.ts: telemetry event tests Docs: - docs/tier2.md: Tier 2 architecture documentation Version: - package.json: bump to 0.3.0 Note: E2E test expects demo squad from init-ux PR #735. Merge #735 and #736 before this PR. Co-Authored-By: Claude <noreply@anthropic.com>
Init now creates a demo squad with hello-world agent. Co-Authored-By: Claude <noreply@anthropic.com>
Summary — PR 5 of 7 for v0.3.0 release
Init UX improvements for first-run experience. Critical for new user onboarding.
Changes (4 files)
cli.run.completeevent with exit_code, duration, agent_countMerge order
Depends on #731-#734. Merge fifth:
Test plan
npm run buildpassessquads initin clean directorysquads run demoReorganized from 219-commit develop branch for proper review.