Skip to content

feat(init): demo agent scaffold, what's next guidance [v0.3.0 — 5/7]#735

Merged
kokevidaurre merged 2 commits intodevelopfrom
v030/init-ux
Apr 14, 2026
Merged

feat(init): demo agent scaffold, what's next guidance [v0.3.0 — 5/7]#735
kokevidaurre merged 2 commits intodevelopfrom
v030/init-ux

Conversation

@kokevidaurre
Copy link
Copy Markdown
Contributor

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)

  • init.ts: "What's next" guidance. Opt-in email capture. Demo squad scaffold. IDP catalog seeding. Competitor collection. Hints for empty fields.
  • telemetry.ts: cli.run.complete event with exit_code, duration, agent_count
  • templates/seed/demo/SQUAD.md: demo squad definition
  • templates/seed/demo/hello-world.md: starter agent template

Merge order

Depends on #731-#734. Merge fifth:

  1. ✅ core-refactor (refactor(core): run engine decomposition + context helpers [v0.3.0 — 1/7] #731)
  2. ✅ run-engine (feat(run): workflow rewrite — smart skip, org cycle, wave execution [v0.3.0 — 2/7] #732)
  3. ✅ conversation (feat(conversation): agents talk + use tools [v0.3.0 — 3/7] #733)
  4. ✅ new-commands (feat(commands): review, credentials, goals, log + minor fixes [v0.3.0 — 4/7] #734)
  5. → init-ux (this PR)
  6. security-guardrails
  7. tests-docs

Test plan

  • npm run build passes
  • Test squads init in clean directory
  • Verify demo agent runs with squads run demo

Reorganized from 219-commit develop branch for proper review.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread src/lib/cognition.ts Outdated
Comment thread src/lib/cognition.ts Outdated
Comment thread src/lib/workflow.ts Outdated
Comment thread src/commands/credentials.ts
Comment thread src/commands/credentials.ts
Comment thread src/commands/review.ts Outdated
Comment thread src/commands/log.ts
Comment thread src/lib/workflow.ts
Comment thread src/lib/workflow.ts Outdated
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>
kokevidaurre pushed a commit that referenced this pull request Apr 14, 2026
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant