Go to the content
DE Download
Pages of the documentation

Teams

A team is a group of agents that discuss one task or one goal. Each member has its own persona, agent, and model. The members discuss in a room, and the lead decides. You follow the discussion, answer the questions of the members, and read the reason for each decision.

Use a team for a question that has more than one good answer, for example "Which payment form does the checkout use?". For a fixed sequence of steps, use a workflow.

The parts of a team

Part Meaning
Member An agent with a persona, an agent CLI, a model, and an effort. The vault keeps the list of members. Each team can use a member.
Lead The member that writes the brief and makes the decision
Scout Optional. The member that collects the facts for the other members.
Voice Each other member. A voice writes a position and a critique.
Room One run of a team. The room holds the messages, the questions, and the whiteboard of the run.
Whiteboard A Markdown file of the room with the ideas, the diagrams, the open questions, and the decisions of the team

Create a team

  1. Open the Teams area in the sidebar.
  2. In the tab Members, select New member. Write the Id, select the Persona, and select the agent, the model, and the effort. The id has small letters, digits, and dashes.
  3. Add a member for each role that the discussion needs.
  4. In the tab Teams, select New team.
  5. Write the Name, select the Members, the Lead, and optionally the Scout.
  6. Under Scope, select All projects or one project.
  7. Set the budget:
    • Rounds: the largest count of critique rounds.
    • Token budget: the run stops at this count of tokens. 0 sets no limit.
    • Consult calls: the count of questions between the members in one run.
  8. Select Save team.

A team for all projects is a file in the teams folder of the settings, by default .opfold/teams. A project team is a file in the folder teams of its project. The members are in .opfold/members.json. A change of a member changes each team that uses the member.

name: Checkout Team
lead: architect
scout: scout
budget:
  maxRounds: 2
  maxTokens: 400000
  maxConsults: 6
members:
  - architect
  - frontend
  - payments
  - ux
  - scout

Give work to a team

  1. In the tab Teams, select the play button of a team. The dialog Give work to opens.
  2. Under Work on, select A task or A goal.
  3. For a task, select the Task and the Kind of work:
    • Decide a question: the team selects one solution for the task.
    • Plan the task: the team writes the plan as ordered steps into concept.md and instructions.md of the task.
  4. Write the Question or the Goal. Without a question, the team uses the default question of the kind of work.
  5. Select Start the team. The room opens.

You can also start a room in two other ways:

  • From the search: the action New room asks for the team, the task, the kind of work, and the question or the goal.
  • On a schedule: a schedule of the kind Team room starts a team at its time. See Schedules.

How a team run works

  1. Brief: the lead writes the question and the frame of the work.
  2. Evidence: the scout collects the facts. A team without a scout skips this turn.
  3. Positions: each voice writes a position. No voice sees the other positions first.
  4. Critique: each voice reads the positions and writes an objection, a veto, or no objection.
  5. Decision: the lead decides. The lead accepts or overrules each veto, and names the reason.

When the lead accepts a veto, the members get one more critique round, up to the count of Rounds. The decision of a task room goes into the file decisions.md of the task. A goal room keeps its decision on the whiteboard.

During the run, a member can ask another member a question, up to the count of Consult calls. A member can also ask you. Then the room shows the question, and the inbox shows it under Team members ask you. The member waits for your answer.

The room

The room shows the members at the top. Each member has an avatar with its initials and its own color. The chat below shows the turns of the members. A badge names the kind of each turn, for example Position, Objection, Veto, or Decision.

  • Message: write into the field below the chat. A message without an address goes to the lead. Type @ to address one member. The member reads the message at the start of its next turn.
  • Files: each member starts read only. Select the toggle of a member to let it change files. The run reads the toggle again before each turn.
  • Whiteboard: the room opens the whiteboard in the file panel. The members write the ideas, the open questions, and the decisions there. A diagram is a Mermaid flowchart.
  • Save to: stores a copy of the whiteboard in the folder outputs/whiteboards of the project.
  • Stop the run: stops the members. The room keeps its state "stopped".

The tab Rooms lists each room with its team, its time, and its tokens. The sidebar tab Team rooms shows the rooms too.

End of a run

State Meaning
done The lead made the decision.
stopped You stopped the run, or the run reached the token budget.
failed An agent failed. The room shows the error.

Settings

The tab Teams of the settings has two parts:

  • Folder: the folder of the teams for all projects. When git ignores the folder, the settings show a hint, because its teams are not in the history of the vault. Select another folder to share the teams through git.
  • Guide: the rules for the whiteboard. The team uses a new guide from its next run.