Skip to content

team

Team: agents people make, beside those the app declares in code.

On this page 6
TypeScript
import { team } from "@copilotz/team";

What it keeps

It keeps 1 collection, on the record: every change to it is an event.

CollectionKept asFields
agentdocumentsname, description, instructions, model, effort, tools, icon, in, off, like, by, at

The access rules cover agent: each document is in a space, and only those who reach the space reach it.

Its named queries read for callers, as the rules let them:

QueryWho outside runs it
agent.knownpeople, agents for a person, keys and routines
agent.optionspeople, agents for a person, keys and routines
agent.teampeople, agents for a person, keys and routines

What it lets callers do

Of its 8 Actions, people may call 7; agents may call 2; contacts and someone signed out may call none.

ActionPersonAgentContactAnyoneKeyRoutineWhat it does
agent.createyesnononononoMakes an agent, where you say; it's called by a name made from what it's shown as.
agent.deleteyesnononononoRemoves an agent people made, from everywhere it works.
agent.draftyesyesnonoyesyesWrites instructions for an agent from its name and what it should do.
agent.resetyesnononononoDrops the org's changes to one of the app's agents: back to the app's, on the team.
agent.restoreyesnononononoPuts one of the app's agents the org took off its team back on it.
agent.sketchyesyesnonoyesyesDrafts a whole agent from what it should do.
agent.updateyesnononononoChanges an agent people made: what it's shown as, does, is told, uses.

An agent works for a person, and calls what both may. A key calls only what its scope names. A routine is work done for a person, which they set going.

Only the app's own code calls agent.define: its plugins, its schedules and the system.

Agents act through its tool, as whoever they work for:

ToolWhat it doesCalls
propose_agentPropose a new agent for a job that keeps coming back, for the person you work for to approve (they see it and answer Allow or No; the turn waits).agent.create

It also adds rules every read and write keeps to (guard).

Where it shows

It shows to the model through its tools.

  • Agents' tools: propose_agent.
  • Front ends: team-web.
  • What it adds to resources: agentSources (team).

What it needs

You set it in resources.team.

SettingTypeRequiredWhat it is
team.instructionsLimitnumbernoHow long an agent's instructions may be, in characters (100,000).

It also reads agents, model, roster and tools, resource kinds the app and other plugins fill.

What it requires

The runtime doesn't start without chat: add it too.

It ships in a package of its own, @copilotz/team@1.0.0-rc.66, for copilotz 1.0.0-rc.66: install it beside copilotz.

Listing

It keeps every listing rule.