Skip to content

Permission Levels ​

Every person, group and location has a level, and the level decides how much the agent may do for them. Somebody at deny never reaches the agent. Everyone else gets the agent at their level, capped by the level of where they asked.

LevelThe agent
denyIgnores you.
readReads things, answers questions, and makes files for people in its scratch directory. Changes nothing else.
writeChanges the repositories and systems it works on, and can create schedules.
adminEverything write can, plus changing the agent itself. Admins give other people their levels.

Anyone with no level of their own, and none from a group, gets permissions.default, which is deny unless you set it. So a fresh deployment answers nobody until somebody has a level.

Your first admin ​

Bishop won't start with no admin anywhere while the default is deny. bishop slack setup and bishop teams setup ask for your own entry and write it to permissions.admins in .bishop/config.json, or you can write it yourself:

json
{ "permissions": { "admins": ["slack:you@example.com"] } }

An admin in permissions.admins stays an admin whatever anyone sets in a conversation, so you can't be locked out. A group there, like slack:*@example.com, makes the group an admin rather than each member, so a member's own level still wins over it: ! permissions set can lower one person in an admin group. Bishop resolves each entry at startup: one matching more than one person stops startup, and one matching nobody logs a warning.

To open the agent to everyone who can reach it, raise the default instead:

json
{ "permissions": { "default": "read" } }

Giving someone a level ​

An admin sets levels from any Slack or Teams conversation with the agent, including a DM:

! permissions set @dana write
! permissions set #eng read
! permissions set *@example.com read
! permissions set @dana default      remove Dana's own level
! permissions info                   this conversation's level, yours, and the channel's
! permissions info @dana             Dana's level

In a command the interface prefix is optional and defaults to the one you're writing from. See Commands.

From the shell, with Bishop running or stopped:

sh
bishop permissions list
bishop permissions set gmail:dana@example.com write
bishop permissions set slack:<U0B4VE40BCH> admin

The CLI can't look up a name or a Slack channel, since that needs a running interface, so it takes Gmail and Teams addresses, domains and platform IDs. A running Bishop picks a change up on the next message. Every level records who set it and when, and stays when the person who set it loses theirs.

Entries ​

An entry names a person, a group or a channel: the interface, a colon, and who. Names, emails and domains are case-insensitive. The only wildcard is *@domain, for everyone at a domain.

InterfaceExamples
Slackslack:hayes, slack:@sales-managers (a person or user group by handle), slack:hayes@example.com, slack:*@example.com, slack:#eng, slack:<U0B4VE40BCH>
Emailgmail:dana@example.com, gmail:*@example.com
Teamsteams:dana@example.com (user principal name), teams:<3f2c1d4e-…> (Entra object ID), teams:*@example.com, teams:#ops (a channel in the team you're asking from), teams:#<19:…@thread.tacv2>

When a handle is both a person and a group, write slack:user:hayes or slack:group:hayes to say which. A level on one interface says nothing about another: slack:dana@example.com and gmail:dana@example.com are set separately.

Slack user groups refresh every five minutes, so a membership change lands without a restart. Somebody from another workspace connected to a Slack channel can be named once they've spoken where the agent is. Another app in Slack needs a level like a person does, and is still held to the limits on a bot-only exchange.

A person's own level wins, then the lowest of their groups. Give everyone at the domain read and @eng write, and eng members are at read, because they get the lowest of their groups. Give a person a level of their own to lift them.

A conversation's level ​

Only a channel takes a level of its own. A DM, a personal chat and a group chat run at their people's levels, so set theirs instead.

A conversation's level is set by its first message: the lower of the sender's level and the channel's, so an admin starting a thread in a channel set to read gets a read thread. A channel with no level doesn't cap, and a channel at deny means the agent doesn't work there. After that the level never changes, except in Teams chats, which are one conversation for good:

  • A Teams personal chat follows the person on every message. When their level changes, any work the agent left running at the old level stops, and the chat is told.
  • A Teams group chat runs at the lowest level among its members, whoever spoke first, and only ever goes down. With anyone in it at deny the agent doesn't answer there, and says why, until an admin gives them a level or they leave.

In a conversation, only people at or above its level can direct the agent. Someone below it is told why and what to do instead: start a new thread, or ask an admin. Each person is told once per conversation: on Slack in a message only they can see, on Teams in the conversation. A restart of Bishop may tell them once more. In the same channel the agent can read the earlier thread by link, so "fix what we discussed in " works from a new thread at a higher level.

When you add the agent to a conversation, it reads what was already said. The agent gets every earlier message in the thread as context, whoever wrote it, with each message marked with its writer's permission level. After the agent's first message in the thread, Bishop leaves out messages from people below the conversation's level and tells the agent how many it left out.

Email takes everyone on the thread into account. The reply goes to all of them, so an email thread runs at the lowest level among the sender and everyone else on it, and anyone at deny on the thread means no reply. Email refusals are silent: see Email.

A change of level applies on the next message. A new conversation in a channel starts at the channel's new level. An older one keeps its level, and when the channel is lowered below it, nobody can continue it there until the channel is raised again: the agent answers only when the lower of your level and the channel's is at least the conversation's. ! commands still work there, so you can stop the agent or fix a level.

What each level runs with ​

A conversation's level decides the environment the agent starts with, the instructions telling it what it may do, and, with the sandbox on, what it can write on disk. At read, Claude can edit files only in the conversation's scratch directory, and neither harness gets a worktree. Without the sandbox, only the instructions keep a Codex conversation at read out of the agent's files. Only write and admin can create or change schedules and change the model with ! model.

agent.env decides which of Bishop's environment the agent gets, and agent.permissionLevels changes things per level. Variables starting BISHOP_ in Bishop's environment, which hold Bishop's own credentials, are never passed to the agent at any level. Bishop sets its own BISHOP_ variables in the agent's environment, like the conversation's permission level and scratch directory. One name can carry a different token per level, so a write conversation can push to your work repositories while only an admin one can push to the agent's own:

json
{
  "agent": {
    "env": { "deny": ["GH_TOKEN"] },
    "permissionLevels": {
      "read": { "model": "claude-sonnet-5-5" },
      "write": { "env": { "set": { "GH_TOKEN": "$GH_TOKEN_WORK" } } },
      "admin": { "env": { "set": { "GH_TOKEN": "$GH_TOKEN_ADMIN" } } }
    }
  }
}

$NAME copies the value of NAME from Bishop's own environment, which includes .env. A level can also change the model, effort, harness options and the sandbox profile. See Configuration.

What makes levels hold ​

The sandbox. Without it, levels are a filtered environment plus instructions the agent is asked to follow: the agent can still read and write .env, bishop.db (where levels are kept) and Bishop's config, and Bishop says so once at startup. With agent.sandbox on, a read conversation can write only the temp directory, its scratch directory and the harness's own state, and a write conversation in worktree mode writes only its own worktree, besides those. Without worktree mode, or when the agent directory isn't a git repository, a write conversation can't change the agent's files at all and writes only what a read conversation does, which Bishop warns about at startup. Only admin changes the agent's own files outside a worktree.

The network stays open at every level. Levels guard the credentials that reach your systems, not the internet. A read conversation can still do anything that needs no credential, and can send what it reads elsewhere.

Levels are a large step up from a single list of who may use the agent, not an airtight boundary. The agent has a shell at every level, so give levels the way you'd give shell access.