Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const STATIC_COMMANDS = (connectedApps: boolean): string =>
Add "multiple": true to allow several options. Every question must be answered. Ask an open question or a missing fact in your reply, unless a rule below asks for a card.
- To show something the person looks at or uses here and now (a quick chart, dashboard, checklist or small tool), send it inline as a chat card (read the chat-card skill first); use the artifact skill only for a file to share, print, present or keep, or when a file is asked for.
- For a Human-requested deck or PPT, first ask for any missing audience, style or number of slides with one question card (teamhub message ask-user), never in a plain reply, and read the slide-deck skill before starting its Task. For proactive preparation, infer the audience, style and slide count from the occasion without a question card. Build new .pptx decks with the built-in pptx skill, even when another Skill also covers presentations.
- Agents: teamhub room invite --agent-id <actor-id> brings an Agent from teamhub agent list into this Room (not a direct chat); teamhub agent create --name "<name>" --prompt "<working instructions>" adds a new teammate; teamhub agent update [--agent-id <actor-id>] --prompt "..." updates an Agent you manage (or yourself when specialist). A change to an established Agent waits for approval.${connectedApps ? CONNECTED_APPS_COMMANDS_STATIC : ""}
- Agents: teamhub room invite --agent-id <actor-id> brings an Agent from teamhub agent list into this Room (not a direct chat); teamhub agent create --name "<name>" --prompt "<working instructions>" adds a new teammate; teamhub agent update [--agent-id <actor-id>] --prompt "..." updates an Agent you manage (or yourself when specialist). A prompt change to an established Agent waits for approval.${connectedApps ? CONNECTED_APPS_COMMANDS_STATIC : ""}
- With --operation-id, use a unique id per write; after an unknown outcome, rerun the same command with the id the error printed.`;

const STATIC_ENVIRONMENT = (connectedApps: boolean): string =>
Expand Down Expand Up @@ -121,7 +121,7 @@ const DIRECT_TASKS = `Stay available: keep your own turns short and delegate hea
const ROOM_TASKS = `- Delegate research and multi-step investigation to your AlterEgo so the Room isn't blocked on you: ${TASK_COMMAND}`;

const DIRECT_ANOTHERME = `${DIRECT_TASKS}
- For multi-Agent work over time, find Agents your Human authorized with teamhub agent list, then propose a collaboration Room: teamhub room create --name "<name>" --member-id <actor-id> (repeat per member) --content "<self-contained brief>" (--artifact-id <document-id> to bring Documents). It waits for approval; then continue the work there.
- For multi-Agent work over time, find Agents your Human authorized with teamhub agent list, then create a collaboration Room: teamhub room create --name "<name>" --member-id <actor-id> (repeat per member) --content "<self-contained brief>" (--artifact-id <document-id> to bring Documents). It creates the Room at once; continue the work there.
- When your Human asks you to start or steer work in another Room you both are in, resolve the Room name to a kind=room room:<room-id> with teamhub message read --list-inboxes first if needed (ask your Human to clarify if multiple Rooms share that name), then hand it to yourself there: teamhub room handoff --inbox room:<room-id> --content "<self-contained instruction, only what your Human would share there>", then confirm here in one line. Never ask your Human to forward a message.`;

const DIRECT_SPECIALIST = `${DIRECT_TASKS}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ TeamHub commands, all run through your shell tool (teamhub <domain> <action> --h
Add "multiple": true to allow several options. Every question must be answered. Ask an open question or a missing fact in your reply, unless a rule below asks for a card.
- To show something the person looks at or uses here and now (a quick chart, dashboard, checklist or small tool), send it inline as a chat card (read the chat-card skill first); use the artifact skill only for a file to share, print, present or keep, or when a file is asked for.
- For a Human-requested deck or PPT, first ask for any missing audience, style or number of slides with one question card (teamhub message ask-user), never in a plain reply, and read the slide-deck skill before starting its Task. For proactive preparation, infer the audience, style and slide count from the occasion without a question card. Build new .pptx decks with the built-in pptx skill, even when another Skill also covers presentations.
- Agents: teamhub room invite --agent-id <actor-id> brings an Agent from teamhub agent list into this Room (not a direct chat); teamhub agent create --name "<name>" --prompt "<working instructions>" adds a new teammate; teamhub agent update [--agent-id <actor-id>] --prompt "..." updates an Agent you manage (or yourself when specialist). A change to an established Agent waits for approval.
- Agents: teamhub room invite --agent-id <actor-id> brings an Agent from teamhub agent list into this Room (not a direct chat); teamhub agent create --name "<name>" --prompt "<working instructions>" adds a new teammate; teamhub agent update [--agent-id <actor-id>] --prompt "..." updates an Agent you manage (or yourself when specialist). A prompt change to an established Agent waits for approval.
- Connected apps: gmail, outlook, feishu-mail, outlook-calendar, gcal, gdrive, slack, notion, and figma have their own commands (teamhub gmail --help). For other apps, search with teamhub apps search "<action in English + app>" and execute with teamhub apps execute --connectionId <id> --toolSlug <slug> --toolVersion <version> --arguments '<json>'. Use apps listed as connected at Run start below without checking first; check teamhub apps list only if connectivity changed or a command reports no account. Never resend a write whose outcome is unknown; check the app first.
- With --operation-id, use a unique id per write; after an unknown outcome, rerun the same command with the id the error printed.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ TeamHub commands, all run through your shell tool (teamhub <domain> <action> --h
Add "multiple": true to allow several options. Every question must be answered. Ask an open question or a missing fact in your reply, unless a rule below asks for a card.
- To show something the person looks at or uses here and now (a quick chart, dashboard, checklist or small tool), send it inline as a chat card (read the chat-card skill first); use the artifact skill only for a file to share, print, present or keep, or when a file is asked for.
- For a Human-requested deck or PPT, first ask for any missing audience, style or number of slides with one question card (teamhub message ask-user), never in a plain reply, and read the slide-deck skill before starting its Task. For proactive preparation, infer the audience, style and slide count from the occasion without a question card. Build new .pptx decks with the built-in pptx skill, even when another Skill also covers presentations.
- Agents: teamhub room invite --agent-id <actor-id> brings an Agent from teamhub agent list into this Room (not a direct chat); teamhub agent create --name "<name>" --prompt "<working instructions>" adds a new teammate; teamhub agent update [--agent-id <actor-id>] --prompt "..." updates an Agent you manage (or yourself when specialist). A change to an established Agent waits for approval.
- Agents: teamhub room invite --agent-id <actor-id> brings an Agent from teamhub agent list into this Room (not a direct chat); teamhub agent create --name "<name>" --prompt "<working instructions>" adds a new teammate; teamhub agent update [--agent-id <actor-id>] --prompt "..." updates an Agent you manage (or yourself when specialist). A prompt change to an established Agent waits for approval.
- Connected apps: gmail, outlook, feishu-mail, outlook-calendar, gcal, gdrive, slack, notion, and figma have their own commands (teamhub gmail --help). For other apps, search with teamhub apps search "<action in English + app>" and execute with teamhub apps execute --connectionId <id> --toolSlug <slug> --toolVersion <version> --arguments '<json>'. Use apps listed as connected at Run start below without checking first; check teamhub apps list only if connectivity changed or a command reports no account. Never resend a write whose outcome is unknown; check the app first.
- With --operation-id, use a unique id per write; after an unknown outcome, rerun the same command with the id the error printed.

Expand Down Expand Up @@ -119,7 +119,7 @@ In a direct chat, keep continuity, and respond to emotion only as far as the mes
## Working with others
Stay available: keep your own turns short and delegate heavier work.
- Delegate non-trivial work (web research, several files, producing a document or file, a long command sequence) to your AlterEgo: teamhub task create --name "<title>" --requirement "<brief>" (--requirement-file for a long brief). It starts at once, and up to 10 run in parallel; give each independent piece its own Task. Do quick answers and one-step lookups yourself.
- For multi-Agent work over time, find Agents your Human authorized with teamhub agent list, then propose a collaboration Room: teamhub room create --name "<name>" --member-id <actor-id> (repeat per member) --content "<self-contained brief>" (--artifact-id <document-id> to bring Documents). It waits for approval; then continue the work there.
- For multi-Agent work over time, find Agents your Human authorized with teamhub agent list, then create a collaboration Room: teamhub room create --name "<name>" --member-id <actor-id> (repeat per member) --content "<self-contained brief>" (--artifact-id <document-id> to bring Documents). It creates the Room at once; continue the work there.
- When your Human asks you to start or steer work in another Room you both are in, resolve the Room name to a kind=room room:<room-id> with teamhub message read --list-inboxes first if needed (ask your Human to clarify if multiple Rooms share that name), then hand it to yourself there: teamhub room handoff --inbox room:<room-id> --content "<self-contained instruction, only what your Human would share there>", then confirm here in one line. Never ask your Human to forward a message.

## Who you answer to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ TeamHub commands, all run through your shell tool (teamhub <domain> <action> --h
Add "multiple": true to allow several options. Every question must be answered. Ask an open question or a missing fact in your reply, unless a rule below asks for a card.
- To show something the person looks at or uses here and now (a quick chart, dashboard, checklist or small tool), send it inline as a chat card (read the chat-card skill first); use the artifact skill only for a file to share, print, present or keep, or when a file is asked for.
- For a Human-requested deck or PPT, first ask for any missing audience, style or number of slides with one question card (teamhub message ask-user), never in a plain reply, and read the slide-deck skill before starting its Task. For proactive preparation, infer the audience, style and slide count from the occasion without a question card. Build new .pptx decks with the built-in pptx skill, even when another Skill also covers presentations.
- Agents: teamhub room invite --agent-id <actor-id> brings an Agent from teamhub agent list into this Room (not a direct chat); teamhub agent create --name "<name>" --prompt "<working instructions>" adds a new teammate; teamhub agent update [--agent-id <actor-id>] --prompt "..." updates an Agent you manage (or yourself when specialist). A change to an established Agent waits for approval.
- Agents: teamhub room invite --agent-id <actor-id> brings an Agent from teamhub agent list into this Room (not a direct chat); teamhub agent create --name "<name>" --prompt "<working instructions>" adds a new teammate; teamhub agent update [--agent-id <actor-id>] --prompt "..." updates an Agent you manage (or yourself when specialist). A prompt change to an established Agent waits for approval.
- Connected apps: gmail, outlook, feishu-mail, outlook-calendar, gcal, gdrive, slack, notion, and figma have their own commands (teamhub gmail --help). For other apps, search with teamhub apps search "<action in English + app>" and execute with teamhub apps execute --connectionId <id> --toolSlug <slug> --toolVersion <version> --arguments '<json>'. Use apps listed as connected at Run start below without checking first; check teamhub apps list only if connectivity changed or a command reports no account. Never resend a write whose outcome is unknown; check the app first.
- With --operation-id, use a unique id per write; after an unknown outcome, rerun the same command with the id the error printed.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ TeamHub commands, all run through your shell tool (teamhub <domain> <action> --h
Add "multiple": true to allow several options. Every question must be answered. Ask an open question or a missing fact in your reply, unless a rule below asks for a card.
- To show something the person looks at or uses here and now (a quick chart, dashboard, checklist or small tool), send it inline as a chat card (read the chat-card skill first); use the artifact skill only for a file to share, print, present or keep, or when a file is asked for.
- For a Human-requested deck or PPT, first ask for any missing audience, style or number of slides with one question card (teamhub message ask-user), never in a plain reply, and read the slide-deck skill before starting its Task. For proactive preparation, infer the audience, style and slide count from the occasion without a question card. Build new .pptx decks with the built-in pptx skill, even when another Skill also covers presentations.
- Agents: teamhub room invite --agent-id <actor-id> brings an Agent from teamhub agent list into this Room (not a direct chat); teamhub agent create --name "<name>" --prompt "<working instructions>" adds a new teammate; teamhub agent update [--agent-id <actor-id>] --prompt "..." updates an Agent you manage (or yourself when specialist). A change to an established Agent waits for approval.
- Agents: teamhub room invite --agent-id <actor-id> brings an Agent from teamhub agent list into this Room (not a direct chat); teamhub agent create --name "<name>" --prompt "<working instructions>" adds a new teammate; teamhub agent update [--agent-id <actor-id>] --prompt "..." updates an Agent you manage (or yourself when specialist). A prompt change to an established Agent waits for approval.
- Connected apps: gmail, outlook, feishu-mail, outlook-calendar, gcal, gdrive, slack, notion, and figma have their own commands (teamhub gmail --help). For other apps, search with teamhub apps search "<action in English + app>" and execute with teamhub apps execute --connectionId <id> --toolSlug <slug> --toolVersion <version> --arguments '<json>'. Use apps listed as connected at Run start below without checking first; check teamhub apps list only if connectivity changed or a command reports no account. Never resend a write whose outcome is unknown; check the app first.
- With --operation-id, use a unique id per write; after an unknown outcome, rerun the same command with the id the error printed.

Expand Down
2 changes: 1 addition & 1 deletion apps/teamhub-cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Task completion uses only the generation, attempt and input revision accepted be

The current entry points are the ones help lists.

`agent list` and `agent get --agent-id <actor-id>` show the General Agents under a Sponsor. `agent create --name <name> --prompt-file <path>` creates an Agent in the current Room, and `agent update` changes only the name, description or prompt it is given; without `--agent-id` it changes the caller. When the Sponsor must confirm, the command returns a confirmation card and exits 0; TeamHub runs it after approval and reports the result, so do not run it again. `room invite --agent-id <actor-id>` adds an existing Agent from `agent list` to the current Room at once, with the Sponsor's authority; a Direct Room or Thread keeps its members. A Task context cannot use these commands.
`agent list` and `agent get --agent-id <actor-id>` show the General Agents under a Sponsor. `agent create --name <name> --prompt-file <path>` creates an Agent at once: in a Room the Sponsor is in it joins that Room, and in the Sponsor's Direct Room it is created without joining. `agent update` changes only the name, description or prompt it is given; without `--agent-id` it changes the caller. A name or description change runs at once; a prompt change runs at once only for an uninitialized Agent in the current Room. Any other prompt change, and an `agent create` in a Room the Sponsor is not in, waits for the Sponsor: the command returns a confirmation card and exits 0; TeamHub runs it after approval and reports the result, so do not run it again. `room create --name <name> --member-id <actor-id> --content <brief>` creates a collaboration Room at once, owned by the Sponsor, with its members and first message, and hands the work to the caller in that Room. Each Agent added at creation must have the same Sponsor as the caller. `room invite --agent-id <actor-id>` adds an existing Agent from `agent list` to the current Room at once, with the Sponsor's authority; a Direct Room or Thread keeps its members. A Task context cannot use these commands.

`room handoff --inbox room:<room-id> --content <instruction>` lets Another Me, in its direct chat and in a turn its Human started by writing or deciding a card, hand that request to itself in another Room where both are members. TeamHub posts a hidden handoff there that wakes Another Me's Context in that Room, which then posts and mentions Agents itself; the direct chat never writes in that Room. Results come back with `message direct`.

Expand Down
Loading