Delegations
Delegate work to Droid from Slack, Linear, Jira, and Microsoft Teams with shared instructions, plugins, identity, and compute.
Delegations lets your team send work to Droid from Slack, Linear, Jira, and Microsoft Teams. Mention Factory in a conversation or delegate an issue, and Droid works on a remote computer using one of your organization's Agent Profiles.
For shared delegations, an administrator configures the instructions, plugins, identity, and compute once in an Agent Profile. Team members can then delegate work from a connected app without choosing a computer for every request. Direct messages in Slack, Microsoft Teams, and Google Chat use the sender's personal identity and connectors instead of that shared identity.
Delegation apps receive requests from your team. Connectors give Droid tools to use while carrying out those requests. Connecting a personal connector does not install the corresponding delegation app for your organization.
Prerequisites
To configure Delegations, you need:
- A Factory organization on any paid plan, including individual plans and organization plans.
- The Manager or Owner role in Factory.
- Permission to install or authorize the delegation app in your Slack workspace, Linear workspace, Jira site, or Microsoft Teams organization.
- The Org Default Agent Profile set up for shared execution.
- Repository access and any connectors needed by the identity that will run the work.
Team members who delegate work must have a Factory account in the connected organization. Use the same account email in Factory and the connected app so Factory can match the person making the request.
Set up the Org Default Agent Profile
Shared delegations run as one of your organization's Agent Profiles. The profile decides the model, instructions, plugins, compute, Git credentials, and connectors Droid uses. The Org Default Agent Profile serves every delegation request from Slack, Linear, Jira, Microsoft Teams, and Google Chat, unless a Jira requester names a custom Agent Profile. Direct messages use the personal identity of the sender instead.
Before you connect a delegation app, a Manager or Owner sets up Org Default in Settings → Identity → Agent Profiles. Follow configure an Agent Profile, and give the profile repository access for the work it runs. Until Org Default is saved for the first time, connecting an app opens a dialog that sends you to the Org Default editor instead. See set up Org Default.
Connect a delegation app
Open Settings → Delegations in Factory. Under Delegation Apps, select Set Up for Org for the app you want to connect. Follow its setup page to authorize the integration. For a connected app, select Configure to return to its setup and management options.
If Org Default has not been saved yet, Factory asks you to set it up before the app connects.
| App | How to delegate work | Setup notes |
|---|---|---|
| Slack | Mention @Factory in a channel or send a direct message. | Invite Factory to channels where it should receive requests. |
| Linear | Assign an issue to Factory or mention @Factory in an issue comment. | Authorize Factory for the workspace and the teams that will delegate work. Follow the Linear setup guide. |
| Jira | Select Agents → Factory on an issue or mention @Factory in an issue comment. | Install Factory for Jira and link the Jira site to your Factory organization. Follow the Jira setup guide. |
| Microsoft Teams | Mention @Factory in a channel. | Link your Microsoft tenant and install the app in Teams. Follow the Teams setup guide. |
| Google Chat | Mention @Factory in a space or send a direct message. | A Workspace administrator connects your Google Workspace. Follow the Google Chat setup guide. |
A disabled Set Up for Org action means that app is not available for your organization yet.
Personal and shared identity
Slack, Microsoft Teams, and Google Chat distinguish personal conversations from shared channel and space work:
- Direct messages to Factory run as the person sending the message, with their personal Git credentials and connectors.
- Channel and space requests run as the Agent Profile that serves the sender, with that profile's Git credentials and connectors, not the sender's personal connections.
DMs use the instructions and model defaults of the Agent Profile that serves the sender on that app. By default, a DM runs on a computer provisioned for the sender from that Agent Profile's Environment, not the profile's Persistent pool. To run your DMs on one of your own computers or a different Environment, set a DM delegation machine in your personal delegation defaults. Without that setting, DMs require the Agent Profile to have an Environment. See personal DMs and shared channels.
Repository access for the Agent Profile
Shared delegations clone, fetch, and push repositories as the Agent Profile. They do not use your personal Git connections or the organization's source-control OAuth connection. Give the Agent Profile its own access to every repository the work needs, including every repository in its Environment.
If the Environment includes a repository that the Agent Profile cannot access, shared delegations fail before Droid starts, even when the request does not mention that repository.
| Source control | How the Agent Profile gets access |
|---|---|
| GitHub | Install your organization's Factory GitHub App on the repositories. The Agent Profile uses the installation automatically, so no token is needed. |
| GitHub Enterprise Server | Install the GitHub App configured for your Factory organization on the repositories. See repository access on GitHub Enterprise Server. |
| GitLab | Add a GitLab group access token in the Agent Profile's Git Credentials. |
| GitLab Self-Hosted | Connect your GitLab Self-Hosted instance first. Then add a GitLab Self-Hosted group access token for that instance in the Agent Profile's Git Credentials. |
Open the Git Credentials section of the Agent Profile editor in Settings → Identity → Agent Profiles. Factory validates each token when you save it.
For a GitLab or GitLab Self-Hosted token:
- Token type: Use a group access token for the groups that hold your repositories. If your GitLab plan does not offer group access tokens, use a personal access token from a dedicated GitLab user instead of a teammate's account.
- Scope: Grant the
apiscope so Droid can clone, push branches, and open merge requests. - Role: Grant at least the Developer role on the groups or projects Droid works in.
- Expiration: Choose an expiration date your team will track, and replace the token in Git Credentials before it expires.
If Factory rejects a token, check that it has the api scope, has not expired or been revoked, and belongs to the correct GitLab instance.
Set personal delegation defaults
Team members can open Settings → Session Defaults → Delegations to set personal defaults for the work they delegate:
- DM delegation machine: where your DMs to Factory run. Pick one of your active computers or a Ready Environment, or choose Org default to use the Environment of the Agent Profile that serves you. Computers blocked by organization policy are not offered. This setting applies only to DMs; channel requests and issues use the Agent Profile's compute.
- Default delegation model and Default delegation reasoning level: a personal model selection overrides the Agent Profile's model when organization policy allows it. Its reasoning preference applies to that selected model. Choose Org default to use the Agent Profile's model and reasoning settings instead.
- Your custom delegation instructions: instructions added to every delegation you start, including follow-up messages in those sessions. They are added after the Agent Profile's instructions and do not replace or override them. You can save instructions while leaving the model on Org default.
The model, reasoning, and instruction defaults follow the person who starts the delegation, so they apply to Slack DMs, Slack channel requests, Microsoft Teams channel requests, and Linear and Jira issues you delegate. None of these defaults change identity or connector access: DMs run with the sender's personal identity and connectors, while shared channel and issue delegations use the Agent Profile's. Personal defaults do not make a shared session run as the requester.
Delegate your first task
Start with a small, reviewable request in a connected app. Include the repository, the desired outcome, and how Droid should verify the result.
For example, mention Factory in Slack or Teams:
@Factory Investigate the failing checkout test in the storefront repository. Fix the cause, run the relevant tests, and open a pull request with a summary of the change.
In Teams, include the relevant context in the mentioning message. Droid does not yet receive earlier channel or thread messages. See Delegate a task from a channel.
For Linear or Jira, put those details in the issue description, then assign the issue to Factory or mention Factory in a comment. In Jira, use the Agents picker or an issue comment.
Review Droid's response and any linked session or pull request. Send follow-up instructions through the originating conversation or issue where supported. Check the test results and proposed changes before merging.
Require independent GitHub review
For shared delegations that use the Factory Droid GitHub App, Factory is the pull request author, not the teammate who requested the work. GitHub prevents authors from approving their own pull requests, but the requester can still approve a Factory-authored pull request. With only one approval required, the requester can satisfy the review requirement and, if otherwise permitted, merge without another person's review.
To require another reviewer, configure a branch protection rule or ruleset for each target branch in GitHub:
- Apply the requirement to all pull requests: Set the required approval count to two. This also affects pull requests opened by teammates.
- Apply the requirement only to Factory-authored pull requests: Add a required status check that enforces two human approvals for pull requests opened by
factory-droid[bot](the Factory Droid GitHub App).
See GitHub's documentation on protected branches and status checks.