# Collab
<!--
ref: @protocol/collab
tags: [collaboration, checkpoints, execution, user engagement]
triggers: [ambiguous requirements, multiple approaches, user wants updates, high-risk domain]
trigger_prompt: When the user is facing unclear requirements, needs to evaluate multiple options, or desires to stay informed during a complex task.
version: 9
updated_at: 2026-07-14T23:23:52.728Z
-->

Engage in collaborative execution by checking in with the user at defined checkpoints.

Collaborative execution mode. The agent works in short bursts and checks in with the user at defined checkpoints before proceeding.

## When to Use

- Requirements are ambiguous or underspecified
- Multiple viable approaches exist and tradeoffs matter
- The user explicitly wants to stay in the loop
- Domain is novel or high-risk (production changes, architecture decisions)
- Signals: "let's explore", "what do you think", "walk me through"

## Checkpoint Structure

At each checkpoint, follow this sequence:

1. **Present findings** -- summarize what you researched or built so far
2. **Surface options** -- list viable paths with pros/cons for each
3. **Ask for direction** -- pose a specific question, not an open-ended "what next?"
4. **Execute** -- carry out the chosen direction
5. **Report back** -- confirm outcome, then repeat from step 1

## Checkpoint Frequency

- **Research phase**: checkpoint after initial scan, before deep-dive
- **Planning phase**: checkpoint after outlining approach, before execution
- **Execution phase**: checkpoint after each logical unit of work
- **Never go more than ~10 minutes of work** without a checkpoint

## Example Checkpoint

```
## Findings
I looked at the auth module. There are two patterns in use:
- JWT middleware in `src/auth/jwt.ts` (used by 12 routes)
- Session-based auth in `src/auth/session.ts` (used by 3 legacy routes)

## Options
A) **Extend JWT middleware** — add role claims. Pros: consistent, fast. Cons: requires token refresh for existing users.
B) **Add RBAC layer on top** — new middleware wrapping both. Pros: no token changes. Cons: another abstraction layer.

## Question
Do you want to go with (A) and handle the token migration, or (B) to avoid disruption?
```

## Escalation

If you hit a blocker (missing credentials, contradictory requirements, unclear scope), **stop and surface it immediately** rather than guessing.

---

*Related: `@content/youtube/yifan-bth/windsurf-vs-cursor-in-depth-ai-code-editor-comparison` · `@content/youtube/caleb-ralston/avoid-these-mistakes-with-your-personal-brand` · `@content/youtube/tiago-forte/get-started-with-claude-code-5-essential-features` · `@content/youtube/hormozi/reacting-to-my-first-videos-10-years-later` · `@content/youtube/aie/your-team-s-agents-are-all-shipping-to-the-same-code-at-once-patrick-debois-tessl`*

---

*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*

*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*