Skip to content

feat(workspace): a Build page with one guide agent per person - #4255

Draft
romainability wants to merge 5 commits into
Abilityai:devfrom
romainability:feature/workspace-build
Draft

romainability wants to merge 5 commits into
Abilityai:devfrom
romainability:feature/workspace-build

Conversation

@romainability

@romainability romainability commented Nov 4, 2026 •

Copy link
Copy Markdown

Description

A Build page in the Workspace for someone who can make agents. They answer a few setup questions, then talk with their own guide agent (Atlas). It finds where agents would help, plans the first one with them and builds it on this instance, while their company and agents are drawn live beside the chat.

What's in it:

  • Setup in the "Set up Trinity" panel: a short intro, about you (role, software and AI agent experience), Connect Claude, the company (starts background research from public sources), the AI audit, and the first agent. The route adapts to their experience. Answers are kept on the account (workspace_intake preference).
  • One guide per person (config/agent-templates/build-guide, deployed by config/manifests/workspace-build.yaml), owned by them. Its playbooks: company research, the audit, planning an agent, building it with the create-agent wizard (run headlessly, in the same chat), and fleet settings.
  • Settings from the chat as Confirm cards: the person clicks, the change runs with their own session, and the agent never grants itself anything. Show me walks light each click from the Dashboard (an agent's keys, sharing it, letting one agent call another, schedules and Autonomy).
  • Eight levels on the Company page, read from the person's own agents on the instance. A person's first agent is built one step at a time along them. The levels are shown with a spotlight when the first build starts, each level reached lights the card with its tick (and, for Level 1, the new agent in the sidebar first), and the guide is told once that moment closes. The page's line to the guide shows in the chat as a short note rather than as the person's message.
  • The last level and the end. Level 8 is reached when one agent hands parts of a job to two of the person's other agents and asks for their OK before a step that matters. After it, a finish box says they are done and names any level still waiting on real keys.
  • Proof of a handoff. The first time one of a person's agents does a job another of their agents asked for, the page says so once, with a Show me walk to that agent's Tasks (walk_from names who asked). Read from the jobs themselves, never from the guide's word.
  • The guide's judgment (in its CLAUDE.md, pinned by buildGuideTemplate.spec.js): the person's own idea is the one it sets up; it only says one agent can call another when the saved state shows it; it proposes new agents from what it knows of the company; it judges whether a job is a new playbook on an existing agent or a new agent; it tells each agent its keys are environment variables (see Agent reports its own keys as missing: it asks the credential vault instead of reading its environment #4474).
  • A look at the data before a playbook relies on it. Once an agent's keys pass the connection test, the guide has it take one read-only look at how its data is laid out and save data-map.md. Playbooks that read data start from that map.
  • A company profile kept once per instance (GET/PUT /api/workspace-build/company), so a colleague's guide starts from it.

Requirements: docs/memory/requirements/core-agent.md (Workspace Build, AC-1 to AC-18). Flow: docs/memory/feature-flows/workspace-build.md.

Questions for review

  1. The research job and the guide's permission. The company research reads public websites, and it runs on the same guide that holds agents.manage (needed to create agents). Today the only guard is the guide's instruction that website text is never instructions. Restricting tools on the research task would not contain it, because the agent server runs Claude with --dangerously-skip-permissions, where --allowedTools only pre-approves. Real containment needs a research agent without the grant, or per-task disallowed tools (a backend change). Is the current guard acceptable for now, or should research move off the guide?

  2. The intro videos (src/frontend/public/intro/, their own commit). They were made with Remotion, whose free licence covers companies of up to 3 people, so a company licence is needed before they ship. The music is from Mixkit under its free licence (web use allowed). The commit can be dropped if you'd rather not carry them yet.

  3. Guard entries. The Workspace route census (test_837) and the creator-route census now list the Build page's calls and the company routes, each with its reason (the third commit). Please check those reasons hold.

  4. The help address [email protected] is used by the guide and the help panel. Please confirm it.

  5. The guide's Info tab no longer lists its slash commands: template.yaml lists its playbooks under playbooks:, because the command guard (ent#239) requires a .claude/commands file for each declared command and these are skills. Trinity's Info tab reads only commands. Is that fine for a hidden guide, or would you rather the Info tab read skills too?

  6. PortalSidebar.vue gained a few lines for the guide's line in the sidebar. It is Workspace's own file, so please check the addition sits well with it.

Known gaps

  • The guide rules added on 10 and 11 Nov are pinned by tests on the template's text. Most have not yet been seen followed by a real guide in a real run.
  • The handoff note counts only jobs that ended in success, and the Tasks rows it walks to are tagged only "agent", without naming which agent asked.
  • The finish box has component tests only, no browser test.
  • Tested as an admin account. Not yet tested as a plain user or operator.

Related Issue

None yet: opened as a draft to look at the approach first. #4474 (an agent looks in the credential vault for its own keys) was found while testing this and is worked around in the guide's instructions.

Journey Impact

Journey Impact: extends: J03

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Testing

  • I have tested this locally: real runs on a test instance, from a cleared instance (setup, research, audit, a first agent built step by step)
  • New tests added: Vitest unit and mount tests, browser tests with a mocked backend (e2e/workspace-build.spec.js, e2e/show-me-walk.spec.js), backend tests (test_workspace_company.py, test_build_crew_names.py, test_workspace_build_orchestration_capability.py)
  • All existing tests pass: frontend unit suite 7,668 passed (505 files, 11 Nov); the two Build browser specs 97 passed against a local Vite page; in CI, agent-detail-request-dedupe failed once on /compatibility fetched twice and passed on retry (this branch only adds marker attributes to that page's panels); backend unit suite passes except 39 tests in test_ent926_turn_tier_hook.py, which fail the same way on dev on the machine used
  • Every new test executes the changed path

Mutation: n/a, not a fix

Checklist

  • My code follows the project's style guidelines (design-system tokens only, both themes)
  • I have updated the documentation (if applicable)
  • I have not committed any sensitive data (API keys, credentials, etc.)
  • I have added appropriate logging for new functionality

Screenshots (if applicable)

To follow.

🤖 Generated with Claude Code

rvdc and others added 3 commits November 4, 2026 22:42
A new person lands in Workspace, answers a few setup questions, and builds
their first agent in a conversation with a guide agent (Atlas), with their
company and agents shown live beside the chat.

- Setup in the "Set up Trinity" panel: intro, about you (role, software and
  agent experience), Connect Claude, company (starts background research),
  AI audit, first agent. Answers are kept on the account
  (preference workspace_intake). The route adapts to the person's experience.
- One guide agent per person, created from config/agent-templates/build-guide,
  owned by that person, with playbooks for the audit, company research,
  planning and building an agent (the create-agent wizard, run headlessly),
  and fleet settings.
- Fleet settings from the chat as Confirm cards (the person clicks, the
  change runs with their own session; the agent never grants itself
  anything) and Show me walks that light each click from the Dashboard
  (credentials, sharing, calling another agent, schedules plus Autonomy).
- Seven levels on the Company page, read from the person's own agents.
- A person's first agent is built one step at a time along those levels.

Requirements: docs/memory/requirements/core-agent.md (AC-1 to AC-18).
Flow: docs/memory/feature-flows/workspace-build.md.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Two short motion graphics shown in setup, with poster frames.

Licence note: made with Remotion, whose free licence covers companies of up
to 3 people, so a company licence is needed before these ship. The music is
from Mixkit under its free licence (web use allowed, no TV or radio).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…uards

The guards added on dev since this branch began flag the Build page:

- The Build page is shown only to a platform session that is not
  Workspace-only (buildAvailableFor, core-agent AC-1), so its operator-side
  calls and stores are listed as known in test_837 with that reason, and
  buildIntake (only the person's own preference) is an allowed store.
- The Workspace no longer reads the setup state for someone who can't build,
  an operator read a Workspace-only member is refused on.
- The guide's template lists its playbooks as `playbooks:` rather than
  `commands:`: they are skills, each started as /<name>, with no
  .claude/commands files.
- GET/PUT /api/workspace-build/company are classified as creator routes open
  in a restricted turn: both take require_person, which refuses an agent key,
  and neither creates or acts on an agent.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…n walk steps

- The levels, shown at the start of a first build: the right side shows Your
  company and a spotlight (the Workspace tour's) lights the Levels card once.
- A level reached: the new agent's sidebar row lit first for Level 1, then the
  Levels card with the tick and the next level. The guide is told once the
  moment closes (it then moves on to the next level); a level waits on the
  saved answers until told, so a reload during the moment shows it again. With
  the card already whole on screen there is no dimming. Moments wait for the
  guide's reply, the tour and the setup window, one at a time.
- The page's level line shows in the chat as a short note, not as the person's
  message, and on the Working card.
- Show me steps that only open something (an agent, a tab, More, a section)
  have Next, which clicks the lit part for them.
- The guide opens a person's first build by saying it will go step by step,
  where the levels are, and that Level 1 is asking it to create the agent.
- CI: an address check that assumed a port, and a test helper's comment
  stripping repeated until none is left.

Requirements: core-agent AC-17, AC-17b.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…roof of a handoff

The page
- Level 8 says what it asks for: one agent hands parts of a job to two others
  and asks for an OK before the step that matters.
- A note the first time one of a person's agents does a job for another, with
  a Show me walk to that agent's Tasks (walk_from names who asked).
- A finish box after the last level, and the last level's moment says so too.
- Account welcome, Build welcome, the walk door and the sidebar guide line.

The guide (build-guide template)
- The person's own idea is the one it sets up; its own suggestion comes second.
- It only says one agent can call another when the saved state shows it.
- It proposes new agents from what it knows, and judges itself whether a job
  is a new playbook or a new agent.
- It tells each agent its keys are environment variables, not vault entries.
- Once keys pass the test, the agent takes one read-only look at its data and
  saves data-map.md; playbooks that read data start from that map.

Tests: 505 unit files (7,668 tests) and 97 browser tests pass.

Co-Authored-By: Claude Fable 5.2 <[email protected]>

This branch has not been deployed

No deployments
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.

2 participants