Skip to content

feat: reset first-run experience for v0.2.1#600

Merged
kokevidaurre merged 6 commits intodevelopfrom
feat/first-run-v0.2.1
Mar 13, 2026
Merged

feat: reset first-run experience for v0.2.1#600
kokevidaurre merged 6 commits intodevelopfrom
feat/first-run-v0.2.1

Conversation

@kokevidaurre
Copy link
Contributor

Summary

  • Default squads init creates 4 core squads (intelligence, research, product, company) with 14 agents — matches README
  • Context cascade: SYSTEM.md (Layer 0), directives.md (Layer 3), BUSINESS_BRIEF.md wired into init
  • PLACEHOLDER sentinel in BUSINESS_BRIEF.md — agents detect unedited file and tell user to fill it in
  • All 14 agent templates upgraded with structured output formats, quality rules, and real CLI commands
  • Product squad added (lead, scanner, worker) with depends_on: [intelligence, research]
  • Repo cleanup: removed changeset, husky, changelog, scripts, telemetry docs
  • README documents 4-step customization: Brief → Directives → Goals → Priorities
  • CLAUDE.md template teaches Claude to help users update business goals

Test plan

  • npm run build passes
  • npm test — 1731/1731 tests pass
  • Fresh squads init --yes creates all 4 squads, SYSTEM.md, directives.md, BUSINESS_BRIEF.md with sentinel
  • squads status works on fresh init (4 squads, 14 agents)
  • No broken command references in agent templates

🤖 Generated with Claude Code

… placeholder sentinel

- Default init creates 4 core squads (intelligence, research, product, company) with 14 agents
- Add SYSTEM.md (Layer 0) and directives.md (Layer 3) to context cascade
- BUSINESS_BRIEF.md has PLACEHOLDER sentinel — agents stop and ask user to edit instead of producing garbage
- Upgrade all agent templates with structured output formats and quality rules
- Add product squad (lead, scanner, worker) with depends_on intelligence/research
- Rename create → add, remove list (use status), add --pack option to init
- Clean repo root: remove changeset, husky, changelog, scripts, telemetry docs
- Add AGENTS.md (vendor-neutral) and rewrite CLAUDE.md with cascade documentation
- Update README with 4-step customization guide (Brief → Directives → Goals → Priorities)
- Fix broken command references in company agents (squads feedback add → real commands)

Co-Authored-By: Claude <noreply@anthropic.com>
@gemini-code-assist
Copy link

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly refines the initial user experience and underlying agent framework for squads-cli. The primary goal is to provide a more robust and opinionated starting point for new users, ensuring that a fresh squads init immediately yields a functional and well-structured AI workforce. This involves introducing a new Product squad, refining the context cascade for agents, and standardizing agent output formats. Concurrently, the PR streamlines the repository by removing several legacy tools and documentation, focusing on a cleaner, more integrated system.

Highlights

  • First-Run Experience Overhaul: The default squads init now creates 4 core squads (intelligence, research, product, company) with 14 agents, aligning with the updated README and providing a more robust starting point.
  • Enhanced Context Cascade: The agent context cascade has been significantly improved, with SYSTEM.md (Layer 0), directives.md (Layer 3), and BUSINESS_BRIEF.md now explicitly wired into the initialization process for better agent guidance.
  • Structured Agent Templates: All 14 agent templates have been upgraded to include structured output formats, clear quality rules, and references to real CLI commands, enhancing agent reliability and output consistency.
  • New Product Squad: A new Product squad, comprising a lead, scanner, and worker agent, has been introduced, with explicit dependencies on the intelligence and research squads to streamline product development workflows.
  • Repository Cleanup: Several legacy and unused components, including changeset, husky, changelog, various scripts, and telemetry documentation, have been removed to simplify the repository and reduce overhead.
  • Updated Documentation: The README has been revised to detail a new 4-step customization process (Brief → Directives → Goals → Priorities), and a CLAUDE.md template now guides users on updating business goals.
Changelog
  • .changeset/config.json
    • Removed configuration for the changeset package.
  • .changeset/github-app-bot.md
    • Removed markdown file related to GitHub App bot identity.
  • .gitignore
    • Updated ignored files to include scripts/, docker/, .changeset/, and .husky/ directories.
  • .husky/pre-commit
    • Removed the pre-commit hook script.
  • AGENTS.md
    • Added a new markdown file providing general instructions and guidelines for AI coding agents.
  • CHANGELOG.md
    • Removed the project's changelog file.
  • CLAUDE.md
    • Updated the Claude-specific documentation, including architecture, key patterns, and rules for agents.
  • README.md
    • Significantly revised the project's main README, introducing new sections on "Why Squads", "Context Cascade", "Starter Squads", and updating command references.
  • docs/TELEMETRY.md
    • Removed the telemetry architecture documentation.
  • scripts/e2e-smoke.sh
    • Removed the end-to-end smoke test script.
  • scripts/release.sh
    • Removed the release automation script.
  • scripts/update-docs-changelog.cjs
    • Removed the script for updating documentation changelogs.
  • src/cli.ts
    • Renamed the create command to add for squad creation.
    • Removed the list command, directing users to squads status instead.
    • Added a --pack option to the init command for installing additional squad packs.
    • Added an --execute option to the run command.
    • Removed env list and env activate commands.
  • src/commands/create.ts
    • Updated internal comments and console output to reflect the create to add command rename and list to status command change.
  • src/commands/init.ts
    • Refactored the init command's use case selection, removing the interactive prompt and defaulting to a core set of 4 squads.
    • Implemented logic to support the new --pack option for adding engineering, marketing, or operations squads.
    • Adjusted the coreAgentCount from 12 to 14 and coreSquadCount from 3 to 4 to include the new Product squad.
    • Integrated the creation of SYSTEM.md, directives.md, and AGENTS.md during initialization.
    • Updated the suggested first-run command.
  • src/commands/run.ts
    • Modified error messages to suggest squads status instead of squads list for finding available squads.
    • Enhanced run command to dynamically select and execute with different LLM providers based on configuration.
  • src/commands/status.ts
    • Updated error messages to suggest squads status instead of squads list.
  • templates/core/AGENTS.md.template
    • Updated the template for agent instructions, streamlining sections and removing model aliases.
  • templates/core/CLAUDE.md.template
    • Simplified the setup instructions within the Claude-specific documentation.
  • templates/seed/BUSINESS_BRIEF.md.template
    • Added a PLACEHOLDER sentinel comment to guide users on editing the business brief.
  • templates/seed/CLAUDE.md.template
    • Updated the Claude-specific template to reflect the new .agents/ directory structure, context cascade, and goal updating process, including the new Product squad.
  • templates/seed/README.md.template
    • Updated the initial README template to list the new core squads and revised key commands.
  • templates/seed/config/SYSTEM.md
    • Added a new template file defining the immutable system protocol for all agents.
  • templates/seed/memory/company/directives.md
    • Added a new template file for strategic directives, read by all squad leads and agents.
  • templates/seed/memory/product/lead/state.md
    • Added a new template file for the Product Lead agent's state.
  • templates/seed/memory/research/lead/state.md
    • Added a new template file for the Research Lead agent's state.
  • templates/seed/memory/research/researcher/state.md
    • Removed the template file for the Researcher agent's state.
  • templates/seed/skills/squads-cli/SKILL.md
    • Removed several commands (squads health, squads results, squads goal progress, squads kpi record) from the CLI skill documentation.
  • templates/seed/squads/company/SQUAD.md
    • Renamed the squad from "Company Operations" to "Company", added a depends_on: ["*"] field, and updated its goals.
  • templates/seed/squads/company/company-critic.md
    • Updated the Company Critic agent's instructions, added tools, and defined a required output format and rules.
  • templates/seed/squads/company/company-eval.md
    • Updated the Company Evaluator agent's instructions, added tools, and defined a required output format and rules.
  • templates/seed/squads/company/event-dispatcher.md
    • Updated the Event Dispatcher agent's instructions, added tools, and defined a required output format and rules.
  • templates/seed/squads/company/goal-tracker.md
    • Updated the Goal Tracker agent's instructions, added tools, and defined a required output format and rules.
  • templates/seed/squads/company/manager.md
    • Updated the Manager agent's job description, daily operations commands, and coordination rules, and removed the squads learn command.
  • templates/seed/squads/intelligence/SQUAD.md
    • Clarified the goals for the Intelligence Squad.
  • templates/seed/squads/operations/goal-tracker.md
    • Updated the command example within the Operations Goal Tracker agent.
  • templates/seed/squads/product/SQUAD.md
    • Added a new template file defining the Product squad, its goals, agents, and pipeline.
  • templates/seed/squads/product/lead.md
    • Added a new template file for the Product Lead agent, including instructions and a required output format.
  • templates/seed/squads/product/scanner.md
    • Added a new template file for the Product Scanner agent, including instructions, tools, and a required output format.
  • templates/seed/squads/product/worker.md
    • Added a new template file for the Product Worker agent, including instructions and a required output format.
  • templates/seed/squads/research/SQUAD.md
    • Updated the Research squad's lead agent, goals, and agent definitions, replacing researcher with lead and adding synthesizer.
  • templates/seed/squads/research/analyst.md
    • Updated the Research Analyst agent's instructions, added WebSearch and WebFetch tools, and defined a required output format and rules.
  • templates/seed/squads/research/lead.md
    • Added a new template file for the Research Lead agent, including instructions, tools, and a required output format.
  • templates/seed/squads/research/research-critic.md
    • Removed the template file for the Research Critic agent.
  • templates/seed/squads/research/research-eval.md
    • Removed the template file for the Research Evaluator agent.
  • templates/seed/squads/research/researcher.md
    • Removed the template file for the Researcher agent.
  • templates/seed/squads/research/synthesizer.md
    • Added a new template file for the Research Synthesizer agent, including instructions and a required output format.
  • templates/skills/squads-workflow/instruction.md
    • Updated command references from squads list to squads status.
  • test/commands/run.test.ts
    • Updated a test case to reflect the change from squads list to squads status in suggested commands.
  • test/e2e/first-run.e2e.test.ts
    • Updated an end-to-end test case to use squads status instead of squads list.
Activity
  • No human activity has been recorded for this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

…de files, sentinel

Verifies init creates exactly the promised scaffolding:
- 4 core squads (company, intelligence, product, research)
- 14 agent definition files
- SYSTEM.md, BUSINESS_BRIEF.md, directives.md cascade files
- PLACEHOLDER sentinel in BUSINESS_BRIEF.md
- CLAUDE.md and AGENTS.md at repo root

Co-Authored-By: Claude <noreply@anthropic.com>
Copy link

@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 significantly improves the first-run experience and overall structure of the project. The cleanup of legacy files, simplification of the CLI, and introduction of more structured agent templates are excellent changes. The documentation in the README and other markdown files has been substantially improved, providing much clearer guidance for users and contributors. The addition of the product squad and the restructuring of the research squad are thoughtful improvements to the default agent workforce. The multi-provider support in the run command is also a great step forward.

```bash
npm install -g squads-cli
squads init
squads run research/analyst

Choose a reason for hiding this comment

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

medium

The suggested command squads run research/analyst appears to be incorrect for the new squad structure. The research squad's lead agent is now named lead, while analyst is a worker agent. For a 'Get Started' example, running the lead agent is more appropriate as it orchestrates the squad's activities. This is also inconsistent with other parts of the codebase (like init.ts and README.md.template) which correctly suggest squads run research/lead. To ensure a smooth first-run experience for new users, I recommend updating this command.

Suggested change
squads run research/analyst
squads run research/lead

Jorge Vidaurre and others added 2 commits March 13, 2026 13:33
… sentinel

- --yes default: "A startup using AI agents to automate business operations"
- Research focus: "AI agent and automation market" — produces interesting output on first run
- PLACEHOLDER sentinel only appears when user skips description in interactive mode
- Test updated: --yes brief has real content, no sentinel

Co-Authored-By: Claude <noreply@anthropic.com>
…f, squads run

- gh CLI: change from hard error to warning (not required for init/run)
- gh CLI: fix install hint from `brew install gh` to https://cli.github.com
- Remove duplicate Claude CLI check in runAuthChecks
- Auto-commit scaffolding on init (agents need HEAD for worktrees)
- Default business brief: "autonomous execution" + track big AI players
- Getting Started step 3: `squads run` autopilot (replaces `squads dash`)
- Add Docker first-run test environment
- Version bump to 0.2.1

Co-Authored-By: Claude <noreply@anthropic.com>
@kokevidaurre kokevidaurre enabled auto-merge (squash) March 13, 2026 19:02
Jorge Vidaurre and others added 2 commits March 13, 2026 16:04
Co-Authored-By: Claude <noreply@anthropic.com>
- Inline smoke test: check 4 core squads (not engineering/marketing/ops)
- Inline smoke test: verify SYSTEM.md, directives.md, AGENTS.md
- Inline smoke test: fix state file paths (research/lead not researcher)
- Restore e2e-smoke.sh (was accidentally deleted)
- Replace `squads list` with `squads status` in smoke script

Co-Authored-By: Claude <noreply@anthropic.com>
@kokevidaurre kokevidaurre merged commit 569ec9f into develop Mar 13, 2026
10 of 11 checks passed
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