Source: https://docs.theseus.dev/ # Understand the change. Theseus turns a pull request into a guide to what it changes, so you can review the behavior instead of reading every file. Theseus is not a review bot. It doesn't leave review comments, approve pull requests or score code. It reads a pull request and writes a **guide**: the PR broken into the behavior changes inside it, most important first, each saying what was true before, what is true now, and which lines of the diff it rests on. Every edit in the diff lands in exactly one place, under a change or in **Ancillary edits** with the renames and formatting, so you can review a 49-file PR like a stack of small ones without anyone restructuring the commits. Only the code can establish a change. The PR description and linked issues explain why it was made, and what the code can't confirm is labelled as unverified rather than guessed. By default, each push produces a new guide that keeps unchanged changes word for word, along with your viewed marks and comments, so you re-review only what moved. You still make the call. Your comments and review decisions publish to GitHub as you, and GitHub still decides whether a PR can merge. [How Theseus works](/how-it-works/) explains the model in full. - [Quickstart](/quickstart/): Connect GitHub, generate a guide for a pull request and read it. - [How Theseus works](/how-it-works/): What a guide contains, where its evidence comes from and how it follows a PR. - [Session notes](/guides/session-notes/): Let your agent record decisions, attempts, learnings and reversals as they happen. - [Automate](/automate/github-actions/): Trigger GitHub Actions, webhooks or your own agents when a guide is ready. Someone sent you a guide link? Open it and sign in; [Read a guide](/guides/claims/) explains what you're looking at. Want to look first? The [public demo](https://demo.theseus.dev/) has guides for real open-source PRs and needs no account. ## Find your way | You want to… | Start here | | --- | --- | | Connect your team's repositories | [Connect GitHub](/guides/github/) | | Review a pull request with its guide | [Review a pull request](/guides/reviewing/) | | Generate guides from your terminal | [Install the CLI](/cli/installation/) | | Give your agents access to guides | [Connect agents with MCP](/automate/mcp/) | | Call Theseus from a script | [API quickstart](/reference/api-quickstart/) | | Look up a CLI command | [CLI reference](/reference/cli/) | | Fix something that isn't working | [Troubleshooting](/troubleshooting/) | --- Source: https://docs.theseus.dev/how-it-works/ # How Theseus works What a guide contains, where its evidence comes from, and how it changes as a pull request does. Theseus reads a pull request and writes a **guide** to it: the behavior changes inside the PR, most important first, each tied to the lines of the diff it rests on. It doesn't review the code for you. It doesn't leave review comments, approve the PR, or score it. It tells you what changed and where to look, and you decide whether the change is right. ## What's in a guide Here is the guide for an [Actual Budget PR that moves server passwords from bcrypt to argon2id](https://demo.theseus.dev/actualbudget/actual/pr/7829), from the public demo: | Part | What it holds | In the example | | --- | --- | --- | | **Summary** | A short description of what the PR does, a **system map** of how the affected part of the system works when the change has behavior, **Motivation** for why it exists, **Notes** paraphrased from the author's agent sessions, selected **Major risks** when warranted, and any **Background** a newcomer needs | "Risk: Rolling back after a password has been rewritten refuses that password until reset-password is run." | | Changes | The behavior changes, numbered, most important first | "1. The server password is now stored as an argon2id hash" | | **Rollout plan** | Work someone has to do outside the merge, in order | "Back up `account.sqlite` before upgrading, or be ready to run `reset-password` if you roll back." | | **Ancillary edits** | Edits no change needs, such as unrelated renames, formatting and drive-by cleanup | Empty: every hunk in this PR belongs to a change | Guides are numbered within their PR: **Guide 1**, **Guide 2**, and so on. [Read a guide](/guides/claims/) shows where each part sits on screen. ## Changes, not files A **change** is one thing a reviewer could accept or reject on its own. Its title says what is true now; the line under it, **Before this change:**, says what was true before. Below that come its **facts**: the few points that decide whether to approve it, its risks in a **Risks identified** frame, and conditions, unchanged behavior and test coverage folded under a heading that counts them, such as **4 more details**. Each fact carries source badges naming what it rests on: changed lines, unchanged code the change reaches, or a quoted sentence from the PR or an issue. A fact Theseus couldn't confirm is labelled **Not verified**. A few rules decide what counts as a change: - A test is evidence for a change, never a change of its own. - A refactor is a change only when it alters the system's design or the repository's structure. - A PR that is only mechanical work, such as a rename across 200 files, gets exactly one change saying what moved and that behavior didn't. - A change's effects and risks belong inside it, not in a separate change. ## Every edit appears once Every hunk in the diff has exactly one home: the change it belongs to, or **Ancillary edits**. Nothing is dropped to make the guide shorter. Once you've read every change and skimmed Ancillary edits, you've seen the whole diff. Within a change, its **primary edits** (the files where the behavior is decided) come first, and its **secondary edits** (wiring, migrations, tests, docs) stay collapsed until you open them. A hunk that two changes both rest on shows in each, marked as shared in all but its home. Each edit also has a type, such as behavior, refactor, test, config or formatting. The edit-type filter hides the types you don't want to read right now. Files Theseus couldn't read, such as binary files, symlinks or files over 8 MiB, are listed under **Unreviewed files** with the reason, rather than silently left out. ## Where the evidence comes from Only the code can establish a change. Everything else explains why the PR was made. | Source | How Theseus uses it | | --- | --- | | The repository at both commits | Establishes every change. Theseus also reads unchanged code to check what a change reaches. | | The PR title and description | Motivation. | | Linked issues: GitHub, plus Linear and Jira once an admin connects them | Motivation and explicit manual instructions. An issue never establishes what the code changed. | | Instruction files in the repository, such as `AGENTS.md` | Rollout steps they require, such as running a migration by hand. | | Agent-reported session notes | Notes: paraphrased reasons labelled with the agent, such as **Claude Code**. Only their sender and Theseus staff read the notes as written, and they never establish a change. | A session note records the agent’s stated reasoning; it never establishes a change. An issue counts only when the PR names it: in its title, description, branch name or commits, or as a Linear issue the PR is attached to. Theseus never links issues by similarity. Private Linear teams and Jira issues with a security level stay out. Context is frozen with each guide: it shows the description and issues as they read when it was written, not today's ticket. ## A new guide for each push By default, a connected repository gets a guide when a PR opens and a new one after every push. [Connect GitHub](/guides/github/) lists the other run modes. A new guide starts from the previous one. A change whose code the push didn't touch keeps its exact wording, your viewed mark and its comments, so you only re-read what moved. Changes the push added are marked **New**, changes whose code it edited are marked **Updated** and start unviewed, and dropped ones are listed under **Removed since Guide N**. When a push rewrites most of the PR, Theseus writes the guide from scratch and marks nothing. [After a push](/guides/updates/) covers the details. Each guide uses one from your workspace's allowance. Asking again for a PR that hasn't changed shows the existing guide without using another, and a run that fails gives its guide back. See [Plans and usage](/guides/plans/). ## What stays with you and GitHub You do the review. You mark changes viewed, comment on a change, a fact or a line of code, and submit a decision. Comments publish to the PR on GitHub as you, and an **Approve** or **Needs changes** decision becomes your GitHub review. Unprompted, Theseus writes only a status comment on the PR that links to the guide. GitHub still decides whether a PR can merge. Theseus reads only the repositories your workspace's GitHub App can see, and each reader sees only those their own GitHub account can access. To ask questions about a guide or compare it with an earlier one, open **Ask Theseus** from the guide. [Review a pull request](/guides/reviewing/) covers commenting, deciding and asking. ## Limits - A guide says what the code does, not that it works. It doesn't replace your tests or CI. - Theseus can't collect a PR that touches too many files or directories. Split it into smaller PRs; [Troubleshooting](/troubleshooting/) lists the limits. - Only private and internal GitHub repositories are supported. --- Source: https://docs.theseus.dev/quickstart/ # Quickstart Connect GitHub, generate a guide for a pull request, and read it. Go from a pull request to your first guide in the browser; you don't need the CLI. To see finished guides first, open the [public demo](https://demo.theseus.dev/), which needs no account. There you can comment, react and review; it all stays in your tab, and reloading or **Reset demo** starts over. Ask Theseus, merging and **Feedback** aren't available there. ## Before you start - A pull request in a **private or internal** GitHub repository. Public repositories aren't supported. - Your own GitHub access to that repository. Theseus shows you only what your GitHub account can see. - To start a workspace, the right to install the Theseus GitHub App on a GitHub account: your own, or an organization you belong to. To join your team's workspace instead, GitHub access to one of the repositories it connects. To preview guides on one of your repositories first, nothing more. ## 1\. Sign in Open [Theseus](https://app.theseus.dev) and sign in with GitHub. During the private beta you can use Theseus once you can read a repository in a Theseus workspace on GitHub, or once you're approved from the waitlist; until then, signing in shows **You're on the waitlist**. The first time, GitHub asks you to authorize Theseus; after that it sends you straight back without asking. To use another GitHub account, sign out of Theseus and choose **Use a different GitHub account**. On a shared computer, also sign out of GitHub, or the next sign-in goes straight back to your account. Theseus then opens your workspace: the one you last chose, or one whose connected repositories GitHub lets you read. If there's none, GitHub asks you to let Theseus read your repositories, then you see **Get started with Theseus**. ## 2\. Connect GitHub On **Get started with Theseus**, choose **Install the GitHub App** to create a workspace, or preview first: pick one of your private or internal repositories under **Or preview on one of your repositories first**. Theseus writes guides for a few of its recent pull requests in a preview that lasts 14 days. Coworkers who can read that repository and choose it join the same preview. To keep it, choose **Install GitHub App** in the preview's top bar and install the App on the repository's owner with that repository included: the preview becomes the account's workspace, keeps its guides and opens on that repository's pull requests. If the installation leaves the repository out, a new workspace is created instead, and the preview stays until that workspace holds the repository. Connecting a GitHub account creates its workspace. On **Create a Theseus workspace**, choose your own account (shown as your login's repositories) or one of your organizations, then pick the repositories Theseus may read on GitHub. **Add an organization from GitHub** opens GitHub's install page, where you can pick any account. If you don't own the organization, GitHub sends your request to one of its owners, and the workspace appears once they approve it; they don't need a Theseus account. Every workspace you create starts on the [Free trial](/guides/plans/#free-trial): 20 free guides, then a paid plan. The workspace is named after the account and opens when you're back. An account that already has a workspace reconnects it instead of creating another. [Connect GitHub](/guides/github/) covers the details. If your team already uses Theseus, don't create another workspace: ask an admin to give you access to one of its repositories on GitHub. The setup page opens your team's workspace by itself a few seconds after Theseus sees the access. If the GitHub App is later uninstalled, opening the workspace asks you to reinstall it on its account, and the workspace returns with its guides and settings. If it's suspended instead, pages say **Reinstall GitHub**: owners and admins choose **Reinstall GitHub App**; members get **Copy setup request** to send to one of them. Once you're back, Theseus asks **How should Theseus write guides?**: **When I ask** (preselected), **When a pull request is ready for review**, or **Every pull request**. Nothing is generated on its own until you answer, and you can change it per repository in settings ([Connect GitHub](/guides/github/#choose-when-guides-are-generated)). Each guide uses one from your workspace's allowance ([Plans and usage](/guides/plans/)). Connecting doesn't generate guides for pull requests that are already open. ## 3\. Generate a guide **Pull requests** opens next. For an open pull request without a guide, choose **Generate a guide** on its card, or on its page. Theseus opens the guide and shows its progress. A preview's page also offers **Install the GitHub App** under its guides, for a guide on a different pull request. You can read a guide as soon as it's ready. If Theseus finds answers to review questions, they appear under **FAQs** in the guide's Summary without a reload. Prefer the terminal? [Install the CLI](/cli/installation/), then run: ```sh theseus generate example/project#42 --wait ``` It prints the guide's URL. Ctrl-C stops the wait, not the run: the guide keeps generating on the server. The [CLI reference](/reference/cli/) lists every command. ## 4\. Read the guide Check first that the guide describes the pull request and commit you meant, then work down the left sidebar: | Open | To learn | | --- | --- | | **Summary** | What the PR does as a whole, why, and its risks | | **Rollout plan** | Anything someone has to do outside the merge, when the guide has one | | Each numbered change | One behavior change, before and after, with the diff it rests on | | **Ancillary edits** | The edits no change needed, such as renames and formatting | Press **V** to mark what you've read as viewed. [How Theseus works](/how-it-works/) explains what each part means and where its evidence comes from. ## Next - [Read a guide](/guides/claims/): source badges, the diff and the edit-type filter. - [Review a pull request](/guides/reviewing/): comment, decide and publish to GitHub. - [Session notes](/guides/session-notes/): record the agent’s decisions as it works. If the guide fails or never finishes, see [Troubleshooting](/troubleshooting/). --- Source: https://docs.theseus.dev/guides/github/ # Connect GitHub Install the Theseus GitHub App, choose repositories, and decide when pull requests get guides. Theseus reads pull requests through its GitHub App. Connecting it to a GitHub account, your own or an organization, creates that account's workspace. A workspace connects one GitHub account, and an account connects one workspace. A workspace owner or admin installs the App once and chooses the repositories; after that, pull requests in those repositories get guides automatically. Theseus supports private and internal repositories only. Public repositories aren't supported, even when the installation includes them. On GitHub, the App is called **ardent-theseus**. Look for that name in your organization's **Settings → GitHub Apps** and in your own [Authorized GitHub Apps](https://github.com/settings/apps/authorizations). The App gives Theseus access to the code, not people access to Theseus: every reader still needs their own GitHub access to a repository to see its guides. ## Install the App Installing the App creates the workspace for the account you install it on. 1. Sign in with no workspace yet, or choose **Create new workspace** in the workspace menu. With no workspace, GitHub first asks you to let Theseus read your repositories; then, on **Get started with Theseus**, choose **Install the GitHub App**. That page also lets you [preview](/quickstart/) one of your repositories first and install the App from the preview, which keeps its guides. 2. If Theseus asks, choose **Connect your GitHub account** first. This links your own GitHub identity; it doesn't install anything. 3. On **Create a Theseus workspace**, choose your own account (shown as your login's repositories) or one of your organizations. **Add an organization from GitHub** covers any other account. GitHub opens in the same tab, so a pop-up blocker doesn't get in the way. 4. On GitHub, pick the repositories Theseus may read. If you don't own the organization, GitHub sends the request to an owner; once they approve it, you join the organization's workspace. They don't need a Theseus account. 5. Back in Theseus, the new workspace opens. If the App is already installed on the account you choose, Theseus connects it at once and opens its workspace. An account that already has a workspace reconnects it, with its guides and settings, instead of creating a second one. An organization owner approving the request you started from Theseus creates the workspace too, as long as you can still use Theseus. Installing the App from GitHub's own page creates it when the person who installed it can use Theseus; otherwise the installation waits until someone who can use Theseus chooses its account on the setup page. To add or remove repositories later, choose **Manage repositories** on **Pull requests**, in the repository menu or in **Settings → GitHub**; it opens the installation on GitHub. For an organization, GitHub opens the installation's settings only to its owners; anyone else sees **Only a GitHub organization owner can change this** and should ask an owner to change the repositories. Theseus supports private and internal repositories only: a public repository the App can reach shows in **Settings → GitHub** marked **Not supported**, with no page of its own. ### Preparing large repositories When Theseus discovers a connected repository that looks large, it prepares a private snapshot of its default branch in the background. A snapshot is a cached copy of the code used for repository reads. Connecting and opening reviews stay available while this runs; preparation creates no guide and uses none of your guide allowance. For the first seven days, default-branch pushes can refresh a confirmed large repository's snapshot even before its first guide. After that, refreshes require recent guide activity. Repositories added to the App later get the same preparation. Preparation is best effort. Theseus uses GitHub's repository-size estimate to choose what to inspect, so some large repositories are discovered only when a guide first needs them. A prepared default branch also may not match a PR's exact commits. For example, a PR based on an older commit can still need a separate snapshot; you can generate its guide while preparation is running. ### Reinstall after the App is removed If the App is uninstalled on GitHub, opening the workspace shows **Reinstall Theseus on** followed by the account's name. Choose **Reinstall on** that account and install the App again; the workspace opens with its guides and settings once GitHub confirms the installation. If you don't own the account, ask an owner to reinstall it, or choose **Reinstall on** it to send them a request. **Choose another account** lists your other accounts instead. If the App is suspended instead, pages say **Reinstall GitHub** and new pull requests get no guides. An owner or admin chooses **Reinstall GitHub App**, which opens the installation on GitHub to unsuspend it. ### If you're not an owner or admin Members can't change the App. When it's suspended, choose **Copy setup request** and send it to an owner or admin; **See owners and admins** lists who they are. ### Who joins a new workspace The workspace is named after the account. Everyone GitHub lets read one of its repositories becomes a member. On your own account, collaborators on your repositories join and see only the repositories they can read; you're its only admin. Workspaces created as personal workspaces before keep working as they are, with the same address, guides and settings. If you choose another account on GitHub's install page, Theseus connects that account's own workspace instead. To connect an organization's installation, you need active membership of the organization on GitHub and your own access to at least one private or internal repository the App covers. Connecting an existing workspace also needs its owner or admin role. ## Choose when guides are generated Right after an installation creates a workspace, its owners and admins, usually just whoever installed the App, are asked **How should Theseus write guides?** once. Until one of them answers, the workspace generates no guide on its own. The answer applies to every repository the installation covers, and to repositories added later: | Answer | Same as | | --- | --- | | **When I ask** (preselected) | **Manual only** | | **When a pull request is ready for review** | **Once ready for review**, with **Update on new commits** off | | **Every pull request** | **All pull requests**, with **Update on new commits** off | None of the answers generates guides for pull requests that are already open. Afterwards, **Pull requests** opens, where each open pull request without a guide has **Generate a guide**. Change a repository's choice any time in its settings. Each repository's page, opened from its row in **Settings → GitHub**, sets when its guides are generated. Owners and admins change it; members see it read-only. **Guides** chooses which pull requests get one: | Choice | Generates a guide | | --- | --- | | **All pull requests** | When a PR opens or reopens, drafts included. The default for workspaces created before this question | | **Once ready for review** | When a PR opens or reopens ready for review, or a draft is marked ready | | **Manual only** | Only when someone asks | **Update on new commits**, below it, also generates a guide on every push and when the PR's base changes. It's on by default and doesn't apply to **Manual only**. Every automatic guide uses one from the workspace's allowance ([Plans and usage](/guides/plans/)), so **Once ready for review** suits teams that push many commits to drafts. Closed and merged PRs don't get automatic guides, and connecting doesn't generate guides for PRs that are already open. Turning on **Update on new commits**, for PRs the **Guides** choice covers, catches up a repository's open PRs: any without a guide for its latest commits gets one within about a minute, without a new push. With it off, PRs still wait for the next open, reopen or ready-for-review event. Theseus keeps one status comment on each PR showing where its guide stands (generating, ready, paused or failed) with a link to it. The comment also names the workspace: only its members, the people who can read the repository on GitHub, can open the guide. Whatever the mode, anyone in the workspace can ask for a guide on an open, closed or merged PR: with **Generate a guide** in the app, the CLI, or a comment on GitHub. ```sh theseus generate example/project#42 --wait ``` ## Ask for a guide from GitHub Comment `@theseusbot generate` on a pull request to generate a guide now, whatever the repository's mode. The command must start the comment. Theseus reacts with 👀 and updates its status comment as the guide progresses. If nothing changed since the last guide, it shows that one again without using another from the allowance. Only people with a role on the GitHub repository whose GitHub account belongs to the connected workspace can ask. Anyone else gets a 😕 reaction and a reply explaining why. Comment `@theseusbot help` to list the commands. For GitHub to autocomplete the name, invite the [theseusbot account](https://github.com/theseusbot) to the repository with the Read role; the command works without it. ## If it doesn't work | What you see | What to do | | --- | --- | | **Your request was sent to the organization’s owners** | Wait for an owner to approve it on GitHub; you then join the organization's workspace. | | **GitHub didn’t let your account connect that installation** | Sign in to GitHub with the account you use for Theseus, and check that you're an active member of the organization and the App isn't suspended there. If the organization uses single sign-on, sign in to it on GitHub, choose **Sign in again**, then connect again. | | **No repositories visible to your account** | Ask a GitHub organization owner to make sure you and the App can both reach the same private or internal repository, then connect again. | | **GitHub setup didn’t finish** | Nothing was connected. Choose the account again on the setup page. | | **Reinstall GitHub** | The App was suspended, and new PRs get no guides. An owner or admin chooses **Reinstall GitHub App** to unsuspend it on GitHub; members can copy a setup request for them. | | **Check your GitHub access** | GitHub no longer shows your account the organization's repositories. Check your membership, then choose **Sign in again**. | The **Reinstall GitHub** and **Check your GitHub access** notices appear on **Pull requests**, **Inbox**, **Changelog** and **GitHub**. For a repository that's missing for one person, see [Troubleshooting](/troubleshooting/). --- Source: https://docs.theseus.dev/cli/installation/ # Install the CLI Install Theseus, sign in, choose a workspace, and keep it up to date. The `theseus` CLI generates guides from your terminal, such as `theseus generate example/project#42 --wait`. The browser doesn't need it, and agents can reach Theseus without it through [MCP](/automate/mcp/). The [CLI reference](/reference/cli/) lists every command. Install it on the machine where you or your agent will run its commands. A laptop installation does not install or sign in the CLI in a cloud workspace; see [Cloud agents](/guides/cloud/). ## Requirements macOS or Linux, Node.js 22.23.1 or later, and Git 2.41 or later. Windows isn't supported. ## Install Open [Install Theseus](https://app.theseus.dev/cli), choose **Get installation command**, and run the command it shows. If the page says the command has expired, choose **Get a new command** first. The page names the version you'll get. The installer verifies the download, puts the `theseus` launcher in `~/.local/bin`, and starts guided setup. If `~/.local/bin` isn't on your `PATH`, the installer prints the line to add, such as `export PATH="$HOME/.local/bin:$PATH"`, and stops. Add it to your shell profile, open a new terminal, and run `theseus setup`. Check the installation: ```sh theseus --version ``` ## Sign in Guided setup signs you in. To run it again, or finish it after an interruption: ```sh theseus setup ``` To sign in only: ```sh theseus login ``` Either command opens a browser and prints a verification code. Approve the sign-in once the browser shows the same code. If no browser opens, see [Troubleshooting](/troubleshooting/). Run setup in your repository to install the Theseus skill and add the [session-notes rule](/guides/session-notes/) to `AGENTS.md`. Setup also makes Claude Code read that file through `CLAUDE.md`. Review and commit the instruction files it changes. Setup does not install capture hooks or ask which conversations to upload. ## Set up each repository After installing, open a terminal in the repository where your agent works: ```sh theseus setup --skill claude,codex theseus status ``` Choose **Apply** in setup. Check that status shows your own account and the intended workspace. Setup installs the skills for the named agents and writes the shared notes rule to `AGENTS.md`, with a `CLAUDE.md` import for Claude Code. Review and commit the repository instruction changes, then start a new agent session so it reads them. Each contributor signs in as themselves; committing instructions does not share your login. For a terminal without interactive setup, use `theseus login` to sign in, then `theseus setup --no-prompt --skill claude,codex` inside the repository. The second command installs instructions and skills but does not sign in or verify credentials. Finish with the [note delivery check](/guides/session-notes/#check-delivery) from inside the agent's execution environment. A successful status check in your terminal does not establish that the agent's sandbox can send notes. ## Choose a workspace ```sh theseus workspace theseus status ``` Pick the workspace you work in, then check your account and workspace. To switch later, name the workspace: ```sh theseus workspace example-team ``` If you don't belong to a workspace yet, signing in, `theseus workspace` and commands that need a workspace say "You're not in a workspace yet. Create one or ask your team:" followed by the setup page's address, `https://app.theseus.dev/setup`. Open it to create a workspace by installing the Theseus GitHub App on your account or organization, or to preview guides on one of your repositories first. If your team already uses Theseus, ask for access to one of its repositories on GitHub instead; you join its workspace automatically. Then run `theseus workspace` again. ## Update ```sh theseus update ``` This installs the newest release available to your account and keeps your login. If your CLI is too old to have the command, install again from the [installation page](https://app.theseus.dev/cli). Updating does not remove previously installed capture hooks or schedules. Remove those integrations manually before using the updated CLI; retired callback commands are no longer supported. Other commands show a one-line reminder when an update is available. Update reminders show the available version and update command without release-note excerpts. They appear at most once a day for the same release. Some accounts get preview releases. To follow the public release instead, run `theseus update --channel stable`. If a release is withdrawn and the channel goes back to an earlier version, your installed CLI stays as it is until you update. ## Sign out ```sh theseus logout ``` Signing out ends this machine's saved login. If the login comes from `THESEUS_TOKEN`, remove that variable from the parent environment, or use `theseus logout --revoke` to end the shared login for every instance. --- Source: https://docs.theseus.dev/guides/claims/ # Read a guide Work through a guide's summary, changes, diffs and rollout plan, and check each claim against the code. A guide turns a pull request into a short list of changes you can assess one at a time, each tied to the diff it rests on. This page covers how to read one. For what a guide contains and where its evidence comes from, see [How Theseus works](/how-it-works/). New guides name their changes `change-1`, `change-2`, and so on in links. Saved guides keep their original identifiers, including `card-1`; existing change and comment links still open those guides. ## Find your way around Open a pull request in Theseus. The left sidebar lists, in order: | Entry | What it holds | | --- | --- | | **Summary** | What the pull request does, why it exists, and its major risks | | **Rollout plan** | Work someone has to do outside merging, when there is any | | Numbered changes | One behavior, refactor or piece of mechanical work each, most important first | | **Miscellaneous** | **Ancillary edits**, analyzed edits no change claims, then **Skipped files**, the edits and files Theseus didn't review | Start with the Summary, then work down the changes. Press **N** to jump to the next part you haven't marked viewed; the other keys are on [Keyboard shortcuts](/guides/shortcuts/). When a newer push has made the guide out of date, a banner says so; see [After a push](/guides/updates/). A pull request with no guide offers **Generate a guide**; one whose last run failed offers **Generate again** and keeps any earlier guide readable. Either uses one guide from the workspace's [allowance](/guides/plans/). From the CLI: ```sh theseus generate example/project#42 --wait ``` ### Arrange the panels The page is a row of panels: the table of contents on the left, the Summary and **Meta** (or a change's **Guide** and **Code**) in the middle, and **Reviews** on the right. To make room, select a panel's name in its heading to collapse it into a narrow strip where it sits; select the strip to open it again, or its **×** to hide it. The bar at the bottom of the page lists every panel: select one to hide it, or to bring a hidden panel back. If you put away every panel in the middle, choose **Reset layout** to open them again. Theseus remembers your arrangement in this browser, separately for the Summary, for changes and for other pages. ## Read the summary Below the pull request title, the Summary opens with a short description of what the PR does, with the main point first. Its length fits the change: a simple change may need only a sentence. Then: - **Background**: a concise explanation of how the affected part of the system already works, including for familiar terms and small changes. For a new area, it explains the existing starting point the change builds on. Sources point to repository lines before the PR; behavior that the PR replaces is explicitly described as the prior state. Only lines the diff shows get a numbered badge. Background can still appear when the guide has no separate headline; its original summary stays visible. A short background is open; a longer one is folded, so select **Background** to read it. - **Motivation**: why the change was made. Each reason ends with a badge naming its source, such as **PR #42** for the description or **ENG-123** for a Linear issue. Hover over the badge to read the quoted words and open the source. Reasons from the author's agent-reported reasoning, paraphrased from their agent's [session notes](/guides/session-notes/), sit in their own **Notes** section under Motivation. - **Notes**: reasons from the author's agent sessions. Each badge names the agent that wrote its notes, as **Claude Code** or **Codex**, or **Agent** when the agent isn't known. Hover over the badge to read the notes it rests on, each marked by its kind (a gavel for a decision, a lightbulb for a learning, a flask for an attempt, an undo arrow for a reversal), with the agent's avatar over the sender's and how long ago it arrived. A reason from an older guide shows the badge alone. - **Diagrams**: when the change affects how the system behaves, a **system map**: a diagram of how this part of the system works, from what starts it to the outcome, titled with the question it answers. Each box is a step in plain words, such as "Run is queued", sometimes with a few more words beneath, and each arrow says what leads to the next step. Steps are there to explain the flow, whether or not the change touched them. At most one or two steps where the change makes the system behave differently are highlighted; when nothing stands out, none are. The Summary shows the whole map as a small thumbnail, with its question and a sentence on what to take from it beside it. Select anywhere on its card to expand it, with its question and that sentence beside it, then use **Fit to screen**, **Fit to width** or a zoom percentage to read the full drawing. In the expanded view, select a box to open the code it rests on in the diff. Press Escape to return to the Summary. A change with no behavior, such as a copy or styling change, has no map. Screen readers get the same relationships as a list, which also shows when you tab past the map. - **FAQs**: when Theseus can answer questions a reviewer might ask, it lists them with answers drawn from the repository. Select a source badge to open the code behind an answer in the diff. - **Caveats**: every risk the guide's changes identify, then every discrepancy they flag, when there are any. Each risk is marked by a warning icon and shown as its change states it. Each says what could go wrong and when. When a risk needs more than one sentence, it opens with a short bold sentence naming the outcome, followed by the details. Numbered badges open the changes that state the risk or flag the discrepancy. - **Not done**: what an issue the pull request closes asked for that no change does, quoting the issue and the reason it gives, if any. Theseus lists only substantial code the pull request doesn't say it leaves for later, never a review or sign-off. When the panel is wide enough, a list of the Summary's sections stands beside it and stays in view as you scroll; the section you're reading is highlighted, and selecting one scrolls to it. Setup the change requires appears in the rollout plan, not here. Beside the Summary, the **Meta** panel shows what the version touched and drew on: - **files edited**: how many files the guide edits and its added and removed lines, over a grid of 100 squares that shares the changed lines out by edit type, and a table of each edit type's share and line counts. Point at a square or a row to pick out that edit type in both. - **Context** and **Preview URLs**, below. ### Context The **Context** section lists the Linear projects, Linear and Jira issues and GitHub issues the pull request links to directly, each once. **Closes** means the pull request used a closing keyword such as `Fixes #12`; it does not guarantee that merging closes the issue. **Mentions** is any other direct reference. A bare `#12` counts only when it closes the issue or sits under a **Related issues** heading in the description; Theseus ignores others, since they more often name pull requests. Context is frozen with the guide, so a later edit to an issue doesn't change it. ### Previews and media See [Open previews and visuals](/guides/previews/) for preview links, screenshots and recordings. Theseus collects preview links, screenshots and recordings from the pull request's description and comments. **Preview URLs**, in the **Meta** panel, lists each deployment, newest first. **Media**, on the Summary, shows the images and recordings as thumbnails; select one to view them one at a time, full screen, pairing ones labelled **Before** and **After**, at the zoom you choose. Preview links reflect what the pull request links now, even on an older guide; Theseus doesn't check that a preview serves the guide's commit. Media shows what the pull request had for that guide, and the newest guide follows later changes. To add something it missed, link it in the description or a comment. Images committed to the pull request's own repository show when linked as GitHub file pages, such as `https://github.com/example/project/blob//docs/after.png?raw=true`, and only to people who can read the repository. They need the Theseus GitHub App's repository contents permission; if they don't show, ask a workspace admin to grant it. Images in other private repositories don't load. Other images show from any public HTTPS link; recordings show only when hosted on GitHub, and other recordings open at their source. Links with credentials, or a query string other than `?raw=true`, are left out. In **Preview URLs**, **Latest** marks the branch's moving address. ## Read a change A change opens with what was true before and what is true now. Below that: - Its risks, in a **Risks identified** frame, when it has any. Longer risks can start with a sentence naming what could go wrong, followed by the conditions and details in a lighter colour. The sidebar marks such a change with a warning icon and its count of risks. - Its facts: what changes for whom, conditions, unchanged behavior, test coverage. The ones that decide whether to approve come first; the rest are folded under a heading that counts them, such as **4 more details**. - Pictures, such as a before-and-after table or a flow diagram, when the guide drew any. A **sequence** diagram shows the messages several parts exchange, numbered in order; a **state** diagram shows the states one thing moves through and the transitions between them, with any condition a transition waits for in brackets. Each is titled with the question it answers and has a sentence underneath on what to take from it. The messages and transitions the change adds or changes are highlighted. A change shows its diagrams in a **Diagrams** section, each as a thumbnail beside its question and what to take from it; select anywhere on its card to expand it and adjust its zoom. In the expanded view, select a message, transition, part or state to open the code it rests on in the diff. Press Escape to return. Screen readers get the same steps as a list, which also shows when you tab past the diagram. A stored flow, lifecycle or data-location diagram may also include a takeaway beside its thumbnail and in its expanded view. Older diagrams can have no caption; the reader does not invent one. Independent changes can cite the same edits without being merged into one Change. Each edit keeps one primary change for navigation; other changes can share its evidence. Badges under each fact name what it rests on: lines the diff shows, changed or around a change, or quoted words from the description or an issue. Code outside the diff gets no badge. Hover over a badge to preview the code or words; select it, or **Show edit** in the preview, to open those lines highlighted in the diff. Three questions cover most changes: | Question | Where to look | | --- | --- | | What changes for a user or caller? | The before-and-after and the first facts | | Does the code support that? | The fact's badges and the diff | | What could still go wrong? | The risks frame and code outside the changed lines | Only the code establishes a change; the description, issues and agent sessions explain why. When the code contradicts a statement in the PR or linked context, a flagged discrepancy leads with what the code does and its evidence. The quoted statement appears underneath for comparison. A newly generated guide flags at most one discrepancy. It can point to a claim the code contradicts, such as "no behavior change", or to behavior the description leaves out or misstates. Small caveats, test counts and differences the description already explains aren't flagged. A discrepancy from the PR can carry across edits and pushes while the quoted words remain and the change it flags stays the same. If several discrepancies still qualify, the updated guide keeps at most one. Once the quoted words are gone, it no longer shows, unless someone has commented on it. Older guide versions can show more than one discrepancy. A review rule that counts discrepancies counts the ones the guide shows. ## Check the diff Below the description, the change's files are split into primary edits, where the behavior is decided, and secondary edits, the supporting files, which start folded. Files themselves start closed; open the ones you want to read. Links to a file, line or comment open it for you. A file you've opened stays readable offline while this browser keeps its copy, so open the files you plan to review before you lose your connection. - **Unified** shows removed lines above added ones and **Split** shows old and new side by side. **Auto**, the default, splits diffs when the code column has room and unifies them when it's narrow. Set the default under **Diff layout** in **Settings → Appearance**, or switch one review from the code column's header or with **Change layout…** in the command menu (**Cmd+K**). - Select an **unmodified lines** bar to expand the file around an edit. Edits that belong to other changes appear dimmed, with a link to their change. - Open a Markdown file (`.md`, `.mdx`, or `.markdown`) and select **Rendered** to compare the formatted versions side by side. Use **Previous change** and **Next change** to step through changed blocks, or turn on **Highlight words** to see what was added or removed within them. To protect your privacy, the comparison shows image descriptions without loading the images. - **Filter**, in the code column's header, hides edit types you don't want to read right now, such as formatting while you check behavior. Press **F** to open it. Once you filter, the button shows the types still visible instead of its name. A change with no matching edits stays in the sidebar, dimmed. Your selection carries across changes. Each edit has one type. Hover over a type badge in a file card for its description. | Type | Covers | | --- | --- | | **Behavior** | What the product does, allows or shows, including user-facing text, prompts and migrations | | **Cleanup** | Removal of dead or unused code | | **Refactor** | Reorganized code or renamed internal identifiers | | **Move** | Code moved, or a file renamed, without edits | | **Config** | Build, CI, lint, test and editor settings | | **Schema** | A schema snapshot generated from migrations | | **Dependencies** | Packages and lockfiles | | **Tests** | Tests, fixtures, mocks and snapshots | | **Docs** | Written documentation | | **Code comments** | Explanatory comments in code | | **Formatting** | Whitespace, line breaks and other layout | | **Generated** | Checked-in files produced by tools | | **Binary** | Non-text file types, by extension; most binary files are listed under **Skipped files** instead | ## Check the ancillary edits Reviewed edits appear under the change they belong to, or under **Ancillary edits**. Ancillary edits are the renames, formatting, drive-by cleanup and tests of nothing a change states. Skim them for anything that looks like behavior; if you find some, it's worth a comment or [feedback](/guides/reviewing/). On a very large pull request, Theseus first sets aside files that rarely hold a decision: documentation, new tests and fixtures, lockfiles, vendored code and generated output. Set-aside edits still appear exactly once. A new test sits under the change for the file it tests; the rest are listed under **Ancillary edits** with their type. Edited tests, fixtures and vendored code are read like code. After those files are set aside, a new guide includes every relevant code hunk when less than about 2 MB and fewer than 1,500 changed hunks remain, and their rendered text fits the 900,000-character author limit. If the remaining code reaches either size threshold or does not fit that limit, the guide gives the high-level picture instead: one change per product area or independent decision. Older guides can still list edits that were not read in depth under **Skipped files**. Review those edits yourself. ## Check what was not reviewed **Skipped files**, below the ancillary edits, lists what Theseus didn't review: edits it didn't read in depth, which open to their diffs, and files it couldn't analyze, which show the reason instead: a symlink, a submodule, a binary file, text that isn't UTF-8, a file over 8 MiB, or a file past the pull request's 6 MiB limit. Review these yourself. Its count adds the unread files, by distinct path, to the unavailable file records, so a file with both readable edits and an unavailable part counts twice. When a large change reaches the collection limit, implementation and configuration take priority over generated evaluation records. Files left out of analysis remain listed with their reasons under **Skipped files**. ## Check the rollout plan The **Rollout plan** lists work beyond merging that nothing in the change does for you: applying a migration, setting a secret, running a manual step, deploying by hand, or watching something that finishes after deploy. Steps are grouped by when they happen: **Before merging**, **During deploy** and **After deploy**. Each step says what to do and why, and cites the code or the quoted instruction it rests on, such as a line of `AGENTS.md`; hover over a source to read it. A step carries an alert when the change as it stands breaks the rule it names, such as a migration missing its declaration, or when it rests on something no file shows, such as a secret's access. A description of new behavior does not by itself establish a manual task. Theseus checks that the cited instructions or inspected release code require the action, including its timing and any rollback condition. Make sure someone owns each step. A step without an alert only means the change doesn't contradict it; Theseus can't tell whether anyone has done it. --- Source: https://docs.theseus.dev/guides/reviewing/ # Review a pull request Mark what you've read, comment on exactly what you mean, submit a decision, and see what reaches GitHub. Reviewing in Theseus works like reviewing on GitHub, with finer targets: you can comment on one fact of a change, one consequence or one rollout step, not just a line of code. Your comments and decision publish to GitHub as you. GitHub still decides whether the pull request can merge. To learn the parts of a guide first, see [Read a guide](/guides/claims/). ## Track what you've read Choose **Viewed** at the right of the heading over a change, the Summary or the Rollout plan, or press **V**. The sidebar marks it with a green bar, and **N** takes you to the next part you haven't viewed. Choosing **Not viewed**, or pressing **V** again, undoes it. To narrow the table of contents, choose the filter at the right of its heading. **Modified since previous guide** lists only changes that are new or updated since the last guide (it shows when the guide was built on a previous one), **Has comments** lists changes with comments, and **Has risks** lists changes with risks. Choose more than one to list only the changes that match all of them, or **All changes** to list every change again. Changes keep their numbers while filtered, and the number keys, **↑** and **↓** and **N** skip the changes the filter hides. Viewed marks are your own progress. They aren't an approval and never reach GitHub. When a push leaves a change word for word, the next guide keeps your mark; see [After a push](/guides/updates/). ## Comment Choose **Comment** at the right of the heading, or press **C**, to comment on the current change. On the Summary, the same button comments on the pull request as a whole, and its comments collect in the **Discussion** section at the bottom of the Summary. For anything narrower, hover over it (or tab to it) and select **Add comment** in the buttons that appear in its bottom-right corner: | Target | Where to find it | On GitHub | | --- | --- | --- | | A change | **Comment** in the heading | Pull request conversation | | One fact of a change | **Add comment** in the fact's corner | Pull request conversation, quoting the fact and naming up to three code locations it cites | | Code lines | **Add comment** in the buttons at the right of the line you're pointing at; drag or Shift-click line numbers first for a range | Inline review comment | | The whole pull request | **Comment** in the heading, on the Summary | Pull request conversation | | A consequence or motivation reason | **Add comment** in its corner | Pull request conversation | | A rollout step | **Add comment** in the step's corner | Pull request conversation | | A Background statement | **Add comment** in its corner | Pull request conversation | | A question in **FAQs** | **Add comment** in its corner | Pull request conversation | | A diagram, or the Summary's system map | **Comment** in the heading of its expanded view (select its card to open it), or press **C** there | Pull request conversation | | A screenshot or recording in **Media** | **Comment** in the heading of its full-screen view, or press **C** there; for a **Before** and **After** pair, the comment is on **After** | Pull request conversation | Comments posted to the conversation quote what you commented on and link back to it in Theseus. Commenting doesn't mark anything viewed. In the comment box, **Cmd+Enter** (Ctrl+Enter elsewhere) posts and **Escape** cancels. A comment appears at once and saves in the background, so you can keep reviewing. If the save fails, your text comes back as a draft. If the toast says the outcome is unknown, use its **Check comment save** instead of posting again, so the comment isn't posted twice. Each comment's **…** menu offers **Copy link**, **Reply**, **React** and, on your own comments, **Edit** and **Delete**. **Edit** opens the comment's text where it is: change it and choose **Save**, or press Escape to leave it as it was. An edited comment says **edited** beside its time. Editing a comment that reached GitHub changes its text there too, replacing any edit made on GitHub meanwhile. Deleting a comment that reached GitHub deletes it there too, which needs the GitHub account that wrote it. Replies stay; delete them separately. ### Emoji in comments To add an emoji to a comment or to your review's rationale, type `:` and at least two letters of its name. A menu of matching emoji opens at the caret; scroll it to browse when you don't remember a name. Pick one with the arrow keys and **Enter** or **Tab**, or click it. **Escape** closes the menu without cancelling the comment. You can also type a shortcode such as `:tada:` in full; it shows as 🎉 once the comment is posted. Shortcodes follow GitHub's names, so a comment that reaches GitHub shows the same emoji there. Your workspace's [custom emoji](/guides/workspaces/#custom-emoji) show as images in the comment box and in Theseus, but appear on GitHub as their `:name:` text. Shortcodes inside inline code and code blocks stay as written. In **Settings → Personal → Appearance**, set **Animated emoji** to **On** (the default), **While hovering**, or **Off**. While hovering shows a still frame until the pointer is over the emoji. Off always shows the still frame. The choice is saved in this browser and applies to comments, reactions, the emoji picker and the comment editor. Your system's reduced motion setting always shows still frames; the choice takes effect when reduced motion is turned off. ### Mention a teammate To ask a teammate in a comment, an Inbox reply or your review's rationale, type `@`. A menu of people who can read the repository opens at the caret, with the people already on the pull request first; keep typing to narrow it by name or GitHub username. Pick someone with the arrow keys and **Enter** or **Tab**, or click them. **Escape** closes the menu. The person shows as a chip with their picture, and the comment reaches GitHub as their `@username`, so GitHub notifies them too. You can also type a full `@username` yourself. Mentions inside inline code, code blocks and links stay as written. On a pull request, a teammate you mention in a comment gets it in their [Inbox](/guides/inbox/), including when you edit a comment to add them. Removing a mention later doesn't take it back. Mentions on branches and local changes don't reach anyone's Inbox. ## React Choose **React** at the right of the heading, or press **E**, to react to the current change, or, on the Summary, to the pull request as a whole; its reactions show under the change's title or the Summary's headline. In a diagram's expanded view or a screenshot's full-screen view, **React** in its heading (or **E**) reacts to what it shows. On a comment, fact, step or code line, select **Add reaction** in the buttons that appear when you point at it. Reactions are quick signals for teammates. They don't count as reviewing. A diagram's card and a screenshot's thumbnail show how many comments it has and its reactions; open it to read the comments or change a reaction. On a comment that is on GitHub, the eight reactions GitHub supports (👍 👎 😄 😕 ❤️ 🎉 🚀 👀, under **GitHub compatible** in the picker) reach GitHub as you, and reactions added on GitHub show up here. Every other reaction stays in Theseus, as do all reactions on changes, facts, steps and the summary. ## Submit a review Choose your review button at the right of the header, or press **Shift+R**. It reads **Add your review** before you start, **Finish your review** once you've started one without deciding, and **Update your review** after you decide. Pick **Approve** or **Needs changes**, add your rationale if you like, and choose **Submit review** or press **Cmd+Enter**. The decision applies to the guide you're reading. If the toast says the outcome is unknown, use its **Check review save** instead of submitting again. Theseus publishes the decision to GitHub as an approving or changes-requested review from your account, with your rationale and a link back to the guide. A **Needs changes** without a rationale reads "_your name_ requests changes before merging" on GitHub, since GitHub needs text there; your comments already say what to change. A decision on a pull request you opened stays in Theseus, since GitHub doesn't let authors review their own pull requests; so does one sent while you have an unsubmitted review of your own on GitHub. You can't retract a decision from Theseus. Once someone has approved or asked for changes, the Summary shows a **Reviews** section under its opening description: each such review, newest first, with the reviewer, what they decided and when, and their timeline (their current rationale, their earlier decisions as one line each, and the replies to the review, in the order they happened). The **Reviews** sidebar on the right shows each review as a row you can open: the reviewer, their comment count and their status (**Approved**, **Needs changes**, **In progress** before they decide, or **Withdrawn** once a decision is taken back). The newest review starts open. An open review shows the reviewer's current rationale, which you can select to go to the review in the Summary, then their comments, grouped by what they're on. Choose the reviews button at the right of the header, or press **R**, to show or hide the sidebar. The button shows the pictures of the people reviewing, then where their reviews stand: **No reviews** before anyone starts one, **Reviewing** while someone has commented without deciding, **Approved** with a check once every review approves, or **Changes requested** with a cross once anyone asks for changes. The sidebar stays as you left it as you move between the Summary and changes. ## Reply to a review Once a reviewer has approved or asked for changes, anyone who can see the review can reply to it, the reviewer included. Find the review in the Summary's **Reviews** section, or select its rationale in the **Reviews** sidebar to go there, and choose **Add comment** in the toolbar that appears when you hover over it; the reply opens at the end of its timeline. **Add reaction** in the same toolbar reacts to the reviewer's current decision. The reply appears at once and saves in the background, like a comment. You can still reply after the reviewer decides again or withdraws; each reply records the decision it answered, and stays with this guide rather than moving to newer ones. The reviewer hears of each reply in their Inbox, and so does everyone who already replied to that review. Following the Inbox item opens the guide at the review in the Summary, with the review open in the sidebar too. On GitHub, a reply is a pull request conversation comment that starts "Reply to _reviewer_'s review", links to their review there when GitHub has it, and quotes the rationale you replied to. ## What reaches GitHub Theseus saves everything first, then publishes as you through your linked GitHub account. Without a linked account, your activity stays in Theseus. | In Theseus | On GitHub | | --- | --- | | Comment on code lines | Inline review comment, only while the pull request is open at the commit you reviewed and the lines are still in its diff | | Any other comment | Conversation comment, even after the pull request closes, merges or gets new pushes | | A reply | A reply in the same GitHub thread, with the same timing | | A reply to a review | Conversation comment naming the review and quoting its rationale | | **Approve** or **Needs changes** | A review on the commit you reviewed, only while the pull request is still open at that commit | | GitHub's eight reactions, on a comment | The same reaction | | Viewed marks, other reactions | Nothing | Replies written on GitHub to comments Theseus published appear in Theseus. If someone edits one of those comments on GitHub, **Current GitHub text** shows the new wording; if they delete it, **Deleted on GitHub · original retained** marks the copy Theseus keeps. Theseus doesn't import unrelated GitHub comments. To react to decisions in your own tooling, see [Events and replay](/automate/events/). ## Ask Theseus Choose **Ask Theseus** at the right of the bar along the bottom of the page, or press **?**, to ask about the current change; Theseus attaches it as context. Ask opens in a panel over the bottom right of the page, and **Cmd+J** shows or hides it. Answers cite the edits they rest on, so you can open them. Ask can read every guide of the pull request and the code at the pull request's base. Some questions it handles well: - "What changed between Guide 1 and Guide 2?" compares the two guides' commits file by file, marking files that changed only because the base branch moved. - "How did this work before?" reads the base, not just the new code. Each message uses the workspace's chat allowance; see [Plans and usage](/guides/plans/). ## Send feedback to the Theseus team When a guide gets something wrong or misses something, choose **Feedback** in the status bar at the bottom of the page or in the workspace menu, press **!**, or choose **Send feedback** from the command menu (**Cmd+K**). The panel opens at the bottom left of the page with one box: write what went wrong and choose **Send**, or press **Cmd+Enter**. On a guide, your note is about the part on screen, such as the change you're reading; anywhere else, it's about the page. Closing the panel discards what you wrote. Feedback goes only to the Theseus team. Your teammates and the pull request's author can't see it, and you can't delete it once sent. The Theseus team may view the guide and its code to look into your feedback, and use it as a test case. --- Source: https://docs.theseus.dev/guides/previews/ # Open previews and visuals Open a pull request's preview deployments, screenshots and recordings from its guide. A guide collects the preview links, screenshots and recordings posted in the pull request's description and comments, so you can check a change without leaving Theseus: preview links beside the Summary, and screenshots and recordings under **Media** on the Summary. There's nothing to set up. Preview links show the pull request's current description and comments, even on an older guide. Each guide keeps the screenshots and recordings it was reviewed with; the newest guide picks up ones added to the pull request later. Bot comments contribute preview links only. Screenshots and recordings come from the pull request's description and comments written by people. Media appearing on at least five distinct pull requests in the same workspace repository is muted automatically, which keeps repeated badges and buttons out of the grid. ## Open a preview **Preview URLs**, in the **Meta** panel beside the Summary, lists every preview Theseus found: **Latest** for the branch's moving address, then a deployment per commit, newest first. Links to GitHub pull requests, issues, source files and workflow runs, and to Linear pages, are context, even when their labels mention “preview” or “demo”. They do not appear under **Preview URLs**. Hosted previews, including GitHub Pages sites, can appear there. Theseus doesn't check that a preview serves the commit in the guide, and a successful deployment means the build deployed, not that the feature works. ## Page through media When the pull request has any, the Summary shows them under **Media** as a grid of numbered thumbnails, after **Background**. Select one to open it in a viewer that fills the screen, showing one screenshot, recording or before/after pair at a time over a strip of the same thumbnails. Select a thumbnail, pick one from the menu above the strip, or move between them with its arrows or **Left**/**Right**. When the thumbnails don't fit, scroll the strip, drag it, or turn the mouse wheel over it. Press **Escape** or **Back** to close the viewer. Images and recordings labeled **Before** and **After** in a table, heading, caption or list share one page, side by side. A visual shows what the author posted; it doesn't establish that it covers a particular change. The address changes as you move through the viewer, ending in `/media/` and the item's number, so you can copy it to link someone straight to that item. **Zoom**, at the top of the viewer, sets the size: **Fit to screen**, the default, shrinks an image that is wider or taller than the screen until all of it shows, and never enlarges a smaller one. **50%** to **200%** show it at that share of its own size, and a larger image scrolls in the viewer. ## Choose which media is muted **Muted media**, on a repository's page (open it from **Settings → GitHub**), lists that repository's media that appears on at least five of its pull requests, with the number of pull requests it appears on. A bot that rotates the images it adds, such as a different button each time, is listed once under its folder's address: a folder is muted when its images appear on at least five pull requests, one of them is already muted on its own, and nearly all of the folder's appearances (four in five) are of images reused across pull requests, so a new image from the same folder is muted from its first appearance. A folder where each pull request uploads its own screenshots, such as GitHub's attachments, is not muted this way, and **Show** on a folder shows all of it. Workspace owners and admins turn on **Show** to bring an item back to the galleries anyway; turning it off mutes it again. The choice applies to everyone in the workspace and to that repository only. Members see the list but can't change it. Muting doesn't delete a screenshot or recording: it stays in the pull request, and turning on **Show** brings it back to the gallery. The same URL counts once per pull request, even when it appears in several comments. Preview links are unaffected. ## Make your screenshots show up Theseus shows these inline: - Images and GIFs from public HTTPS URLs. - Images committed to the pull request's own repository, even a private one, linked as GitHub file pages such as `https://github.com/example/project/blob//docs/after.png?raw=true`. Only people who can read that repository in Theseus see them. - Recordings hosted on supported GitHub URLs. Other recordings open at their source. If committed screenshots don't show, ask a workspace admin to grant the Theseus GitHub App the repository contents permission. Links with credentials or query parameters other than `?raw=true` are left out. To add something Theseus missed, put the link or visual in the pull request's description or a comment. Theseus doesn't host uploads. --- Source: https://docs.theseus.dev/guides/updates/ # After a push What a new guide keeps from the last one, and what you need to look at again. A guide generated after a push (Guide 2, Guide 3, …) starts from the last ready one. A change whose code the push didn't touch keeps its exact wording, your viewed mark and its comments, so re-review covers only what moved. For what a guide contains, see [How Theseus works](/how-it-works/). ## Check that a guide is current A guide describes one commit. As soon as Theseus sees a push, before any new guide exists, a banner says the guide is outdated: | Banner | Meaning | | --- | --- | | **This guide describes the outdated commit 1a2b3c4. The PR is now at 5d6e7f8.** | The pull request has moved on. **A new guide is being generated.** is added once one has started | | **This guide describes an outdated comparison for commit 1a2b3c4. The PR is now at 5d6e7f8 against a different base.** | The base branch changed | | **This guide is still being generated.** | **Go to Guide N** opens the latest ready guide | **Go to Guide N** appears on any of these once a newer guide is ready. The Theseus comment on the pull request keeps linking to the newest finished guide; while a new one generates, it marks that guide **outdated** and names the commit it's updating to. A guide that finishes late never replaces a newer one. A branch changeset has no pull request to watch, so a push there shows no banner until a guide for it starts; check with the CLI below. From the CLI: ```sh theseus changeset status example/project#42 ``` The **Guide** line reads `Not ready yet`, `Ready, current with the pull request head`, `Ready, behind the pull request head`, or `Ready; currentness unknown`. Treat unknown as not current. With `--json`, read `behind_head` (`true`, `false` or `null`). Whether a push generates a guide on its own depends on the repository's run mode (see [Connect GitHub](/guides/github/)). A push with no guide in progress starts one at once. While one is generating, Theseus waits until 15 seconds pass with no new push, then starts a guide for the latest commit. At most two run on a pull request at once; `@theseusbot generate` skips the wait but not that limit. A guide already generating finishes even after another push makes it outdated, and uses one guide from the allowance like any other. The exception is when both guides generating are for older commits: then the newer of them stops so the latest commit can start, and that guide goes back to the allowance. To generate one yourself, or wait for one in progress: ```sh theseus generate example/project#42 --wait theseus wait example/project#42 --for ready ``` ## See what the push changed The change list marks each change against the previous guide, the same for everyone: | Mark | Meaning | | --- | --- | | **New** (a star before the title) | Added in this guide | | **Updated** (a circular arrow before the title) | Its code changed, or the push added code that finishes, tests or fixes what its title says. Wording is edited only where the new code required it; added code shows as new facts | | none | Reads exactly as in the previous guide | | **Removed since Guide N** | Struck through at the end of the list; hover a title to see why it went | To compare a change with how it read before, open it and press **\[** to open the same change in the guide it came from, and **\]** to come back. A new change has no earlier version. To list only the changes the push touched, choose **Modified since previous guide** in the changes sidebar's filter. Marks compare each guide with the newest guide that was ready when it started, usually the one before it. If you push while a guide is still generating, the next guide compares with the last ready one instead, so viewed marks on the guide in progress don't carry into it. The Summary and the rollout plan are written fresh every time. **New** and **Updated** changes get pictures drawn from their current wording, as in a first guide. An unmarked change keeps the pictures it had, unless the push moved the code they show, when they are drawn again. A change's **Was** line describes behavior at the pull request's comparison base, not at the previous push. Updating a change keeps that history unless a check against the source finds it incorrect; a final wording check cannot remove or rewrite it. Some updates are handled differently from a plain push: | Update | What happens | | --- | --- | | Rebase or retarget | Untouched changes carry over; changes in files the base also edited are checked again. Code the base brought in never counts as the pull request's | | Title, description or linked issues edited | Changes keep their wording; the motivation is re-checked. If a rollout step quoted the edited text, the guide starts from scratch | | A push that rewrites most of the pull request | The guide starts from scratch: nothing is marked or listed as removed | | A push that would have more than 100 of the guide's changes checked or rewritten | The guide starts from scratch, as when the push rewrites most of the pull request | | An update that runs out of tokens or hits the memory limit while carrying over earlier changes | If a retry and enough time remain, the same run starts from scratch without using another guide from the allowance | To see how the code moved between two guides, open **Ask Theseus** and ask "What changed between Guide 1 and Guide 2?" (see [Review a pull request](/guides/reviewing/)). ## What carries over **Viewed marks.** A change carried word for word stays viewed. **New** and **Updated** changes, the Summary and the rollout plan start unviewed. **Mark as not viewed** on a carried change affects only the guide you're on. **Comments** move only when what they were written on survives exactly: | Written on | Moves when | | --- | --- | | The pull request as a whole | Always, to the new Summary, still quoting the old one | | A change | The change carried word for word | | A fact | The continuing change, even reworded, has the same fact word for word | | Code lines | The file's contents are unchanged | | A consequence or motivation item | The new guide has one with the same words | | A rollout step | The new guide has a step with the same title and action | | A review, as a reply | Never: a newer guide has its own reviews | A carried comment shows a **Carried forward** badge; hover it to see where it came from. A comment that doesn't carry stays on its original guide; pick that guide in the guide picker in the changeset header to read it or reply. **Links.** A link to a change opens it in the latest guide if that guide kept or updated it, or the latest guide's Summary if the change was removed. A link pinned to an older guide stays on that guide. ## If generating fails The previous guide, if any, stays on screen under a notice naming the commit that failed. **Generate again** retries for the newest commit and uses one guide from the workspace's allowance (see [Plans and usage](/guides/plans/)); on a branch it first asks which base to compare with. For a guide generated from a local checkout, run `theseus generate` there again. For anything else, see [Troubleshooting](/troubleshooting/). --- Source: https://docs.theseus.dev/guides/pull-requests/ # Pull requests and merging Find, follow and merge pull requests from Theseus. **Pull requests** shows a repository's pull requests as a board, one column per stage, with who is reviewing, whether checks pass and what stands in the way of each merge. From a pull request's page you can ask for reviews, merge, close or convert to draft. Theseus makes each change on GitHub as you, so your GitHub permissions and the repository's rules still decide what goes through. GitHub changes sync in the background. You can keep reviewing while Theseus updates pull request details, checks and Inbox items. A refresh also corrects a pull request that still appears open after it closes on GitHub. When GitHub is still calculating whether an open pull request can merge, Theseus retries that check in the background. These follow-up checks take priority over routine refreshes of older pull requests, so a large repository's polling backlog does not put them behind historical work. ## Find a pull request Pick a repository to see its board. Every open pull request sits in the first column that fits it: | Column | Holds | | --- | --- | | **Draft** | Draft pull requests | | **Blocked** | Changes requested, merge conflicts, a branch behind its base or failing checks; the card names which | | **Review** | Someone approved, reviewed or was asked to review; an approved card is edged in green | | **Open** | Every other open pull request | | **Merged**, **Closed** | The newest 20, with older ones loading as you scroll to the end of the column | Draft and Closed start folded into narrow strips at the board's edges. Select a strip, or a column's name in the bar at the bottom of the board, to open or hide it. When the columns are wider than the window, a scrollbar along the bottom of the board scrolls them sideways. Type in **Filter pull requests** to narrow every column at once. Words match titles, numbers and authors; qualifiers such as `author:@me`, `review-requested:@me`, `label:bug` or `is:following` narrow by field, and the menu under the filter suggests them as you type. Put `-` before a qualifier to exclude it, as in `-author:@me`. Every pull request opens in Theseus. One without a guide offers **Generate a guide**, which uses one guide from the workspace's allowance (see [Plans and usage](/guides/plans/)). The board's keys are on [Keyboard shortcuts](/guides/shortcuts/). ## Save a filter The buttons beside the repository name apply your saved filters. **All** shows every pull request, and new people start with **By me** and **By others**. The button for the filter the board shows is pressed. - **Save filter** names the board's current filter and adds it to the row. - Right-click a filter, or press Shift+F10 on it, to **Rename** it in place, **Replace with current filter**, or **Delete** it, with **Undo**. While renaming, Enter saves and Escape puts the old name back. - Drag a filter to reorder the row. With the keyboard, press Space on a filter, move it with the arrow keys and press Space again. - **1** to **9** apply the filters in order, and **0** applies **All**. Filters that don't fit sit under the **…** button at the end of the row. You can save up to 20 filters. They're yours alone and follow you to any browser. For large repositories, Theseus prepares reusable copies of the pinned commits in the background. A small change can reuse its base copy when the archive rules allow it; otherwise Theseus builds a complete copy. Theseus checks repository export rules even when the archive hides those rules; if it cannot verify them completely, it builds the full copy. A stalled repository search retries a bounded number of times, then tells the guide generator that search was unavailable. You do not need to restart generation for a single failed search. For a guide that stays pending or fails, see [Troubleshooting](/troubleshooting/#a-guide-is-pending-or-failed). A large pull request can have more code or file metadata than one guide can explain. Theseus selects files within its limits and lists every omitted path under **Unreviewed files**, with its reason. Read that list before relying on the guide's coverage; see [Large changes](/troubleshooting/#a-large-change-has-unreviewed-files). Each card shows, live: | Part | What it tells you | | --- | --- | | People | The author, everyone who reviewed and everyone asked to review, as a stack of pictures; hover for names and decisions | | Checks | How many checks finished, such as **24/30**, or **2 failed** once any fail; **Checks unknown** until the latest commit's result is known | | Guide | A spinner while a guide is being generated; a warning icon when the last attempt failed | | Deploy status | On a merged pull request, whether it's deployed | | Reason | On a Blocked card, what blocks it, in a red strip under the card | ## Follow a pull request Select the star on a card, or beside the title on the pull request's page. Filter by `is:following` to see what you follow, in every column, until you clear the star. Only you see what you follow, and it never puts anything in your [Inbox](/guides/inbox/). ## Ask for reviews Choose **Add reviewer** at the top of the **Reviews** sidebar, on the right of the changeset page. Its menu lists your workspace's members first, then everyone else GitHub lists with access to the repository, leaving out the pull request's author; type in **Filter people** to narrow it. Tick someone to request a review, untick to withdraw it. Someone who has already reviewed shows unticked; tick them to ask for another review. The list stays in sync with GitHub both ways. A member you ask gets the request in their Inbox once GitHub confirms it, and a re-request brings it back even if they deleted it. If GitHub refuses a request, the tick comes back off and the menu says why. A review request isn't an approval and doesn't grant permission to merge. ## Merge Open **Merge** beside the guide picker in the changeset header, choose one of the methods the repository allows, and confirm. The dialog closes at once and the header shows **Merging…** until GitHub answers. Once merged, **View in changelog** (**L**) takes the place of **Merge**. Branch changesets have no **Merge**. Hover the checks after it for counts and **View checks on GitHub**. When something stands in the way, the button and menu say so: - **Checks not passed.** The menu says how many are pending or failed, and the confirm button reads **Merge anyway**. Theseus warns rather than blocks because it can't tell which checks your repository requires; GitHub decides. A result Theseus doesn't know yet counts as not passed. - **Merge conflicts.** The menu offers **View conflicts on GitHub** instead of merge methods. - **Merge blocked.** The menu gives GitHub's reason, such as **Pull request branch must be updated**. For **Repository requirements are not met**, check the pull request on GitHub. If the pull request gets a new commit while you're confirming, cancel and choose a method again; GitHub would reject the old one anyway. If Theseus can't tell whether the merge happened, the page says **We couldn’t confirm whether this PR merged.** and links to GitHub. Theseus keeps checking the result. If a later GitHub refresh confirms the pull request is still open at the commit you tried to merge, the page says **GitHub didn’t merge this PR. Try again.** and lets you choose **Merge** again. It never sends the merge a second time on its own. ## See whether a merged PR is deployed When a repository tracks deploy status, a merged pull request shows a badge in its page header, its changelog row and its card on the repository's board: **Not deployed**, **Deploying**, **Deployed**, **Failed**, **Rolled back** or **No longer on main**. Select it to see what the state means for the environment and the commit it names, with a link to the environment's deployments on GitHub. Theseus reads the deployments your CI or hosting reports to GitHub; it doesn't check your running application. An owner or admin turns tracking on per repository, on its page in **Settings → GitHub**: switch **Deploy status** on, then choose the **Environment** to follow, such as `production`, and the **Deployment source** whose reports count. Choices appear once GitHub has seen a deployment for the repository. Members see the setting read-only. ## Close, reopen or convert to draft Below the merge methods, the **Merge** menu offers **Convert to draft** and **Close pull request**. On a draft, **Mark ready for review** takes the place of **Merge**, and the checks still show after it. On a closed pull request, **Reopen** takes its place. Each applies at once, without a confirmation, because it can be undone; closing also shows **Undo**. If GitHub refuses, the header changes back and an error says why. ## Internal evaluation Unless your contract excludes it, Theseus keeps a private copy of the inputs behind each guide so staff can re-run them when testing changes to how guides are written. A re-run does not add a guide version, appear in your run history, change review activity, use your run allowance or credits, or post GitHub comments and notifications. Its result is never published as your guide, and your code stays in Theseus's own storage: it is not committed to a repository or shared outside Ardent. A new customer guide still requires a separate normal generation. --- Source: https://docs.theseus.dev/guides/inbox/ # Inbox Review requests and discussions that need you. **Inbox** is the first thing you see in Theseus: everything that needs you across the workspace's repositories, in one list. Reading an item doesn't clear it. It stays until the thing it asks for is done (you review, you reply, the checks recover) or you delete it. ## What lands in Inbox | Item | Arrives when | Leaves when | | --- | --- | --- | | Review request | Someone asks you to review, in Theseus or on GitHub | You submit a review in Theseus of the current guide, or any review on GitHub; the request is withdrawn; or the pull request merges or closes. On a draft the request stays, marked as a draft | | Discussion | Someone comments on your pull request, replies to your comment or your review, replies to a review after you did, or [@mentions you](/guides/reviewing/#mention-a-teammate) in a comment, including by editing one to add you | You reply. Newer comments that arrived after you read stay | | Review feedback | Someone approves, requests changes or leaves a comment review on your pull request | You delete it, or the pull request closes or merges. Replying and pushing don't clear it | | Failing checks | A check fails on the latest commit of your pull request | The checks recover, a newer commit arrives, or the pull request closes or merges | | Merge conflicts | Your open pull request conflicts with its base branch | GitHub reports no conflicts, or the pull request closes or merges | Each item's first action takes you to the work: **Review** opens a ready guide (without one, **Go to pull request** lets you generate it), **Go to comment** and **Go to review(s)** open the guide, and **Open checks** and **Open pull request** go to GitHub. A re-request is a new item, even if you deleted the last one. In Theseus, a review of an older guide doesn't clear a request for the current code. Failing checks include GitHub check runs and commit statuses. Theseus adds one only after GitHub reports a check or status for that commit, so a failure from before it started watching shows up once the checks run again. Checks on current open pull requests refresh alongside pull request updates while older repository history catches up. ## Read, delete and restore Click a row, or press its number, to highlight it. That marks it read but leaves it in Inbox. To keep it flagged, choose **Mark as unread** from its **…** menu. **Delete notification** (or **Backspace**) moves an item to **Trash**, with **Undo** in the notice that follows. **Trash** also holds completed items, and later activity can bring either kind back. To restore something you deleted, highlight it in **Trash** and choose **Move to Inbox**. A deleted review request is the exception: only **Undo** or a re-request brings it back. Deleting a review request doesn't submit a review. ## Reply from Inbox One person's comments on a pull request share a row, newest first, with arrows to step through them. Each comment shows what it was written on, such as a fact or a few lines of code, linked to that place in the guide. Hover a comment to **Reply** or react without leaving Inbox. A reply completes only the thread you answered. Comments written on GitHub appear too. A thread that exists only on GitHub offers **Open discussion** to reply there, and a comment from the pull request's GitHub conversation can't take a reply or reaction in Theseus. ## Narrow the list Use the repository menu, the **Inbox** / **Trash** toggle, and the type filter: **All**, **Reviews**, **Discussions**, **Feedback** or **Blocked** (failing checks and merge conflicts). Press **Escape** to clear the filters. To glance at Inbox from any page, press the backtick key to open the Inbox hotsheet, a compact sheet of the same items. Other Inbox keys are on [Keyboard shortcuts](/guides/shortcuts/). ## Mute an author Muting a GitHub account stops its comments and review feedback, @mentions included, from reaching your Inbox in every workspace. Review requests from it still arrive. Mute `linear-code[bot]`, for example, and its link-back comments stop reaching you; a teammate's reply in the same thread still does. On a discussion or review feedback row, open **…** and choose **Mute** with the author's name. The row and every other loaded item that only that author wrote move to **Trash**, with **Undo**. Items someone else also wrote on stay. **Settings → Inbox** lists the accounts you've muted, with **Unmute** beside each. To mute an account that isn't in your Inbox yet, type its GitHub username, such as `vercel[bot]`, and choose **Mute**. Unmuting doesn't bring back what arrived while the account was muted. --- Source: https://docs.theseus.dev/guides/changelog/ # Changelog See what merged in a repository, day by day. **Changelog** shows a repository's merged pull requests, newest first, grouped by the day they merged in your time zone. Each one shows its guide's summary and changes, so you can catch up on what shipped without opening diffs. ## Read the changelog Open **Changelog** and choose a repository. A day with at least three merged pull requests that have a guide starts with a digest: a headline and up to four bullets, written from those guides, each linking the pull requests it draws on. Everyone viewing the repository in the same time zone sees the same digest. Under the digest, each pull request shows two lines of its guide's summary, its first three changes and its line counts. **N more changes** opens the rest on the pull request's page, and the title opens that page even before a guide exists. Pull requests without a guide are listed too, with their status: | Status | What you can do | | --- | --- | | **No guide** | **Generate a guide**, which uses one guide from the workspace's allowance (see [Plans and usage](/guides/plans/)) | | **Generating a guide** | Wait; any earlier guide stays shown | | **Couldn’t generate a guide** | **Generate again** | | **Guide predates merged commits** | Read with care: the guide describes an earlier state of the pull request | The charts above the feed count merged pull requests and net lines per day, or per week for a range longer than 60 days. Line counts include only pull requests with a guide. If a notice says GitHub history is still importing or needs a refresh, the list may be incomplete; choose **Refresh history**. ## Filter the changelog | Filter | How | | --- | --- | | Dates | Choose the date button and pick a preset, such as **Last 30 days**, or click a start day and an end day, then choose **Apply**. Up to 366 days, ending no later than today. **Reset to last 7 days** restores the default | | Text | Type in **Find pull requests...**. Every word must appear in the title, number, author's GitHub username, description, guide summary, or a change's title or summary | | Author | **By anyone**, **By me** or **By others**, relative to your connected GitHub account | In the public demo, the default range covers every captured merge, and **Today** means the day of the last one. Because the text filter reads change summaries, `alex token` finds a pull request by `alex` whose changes mention tokens even when its title doesn't. **Escape** clears the text and author filters and keeps your dates. Digests summarize everyone's work, so they hide while a text or author filter is on and return when you clear it. Your filters live in the URL, so a link reproduces the same view and the browser's Back button restores the previous one. To move around a long range, use **Jump to day**, the arrows to step between days, and **Expand all** or **Collapse all**. --- Source: https://docs.theseus.dev/guides/shortcuts/ # Keyboard shortcuts Every keyboard shortcut in Theseus, by screen. Press **Cmd+/** (Ctrl+/ elsewhere) on any page to see the keys that work there. Single-letter keys pause while you type, or while a menu or dialog is open. On Windows and Linux, read **Cmd** as **Ctrl**. ## Everywhere | Key | Action | | --- | --- | | **Cmd+K** | Open the command menu | | **Cmd+/** | Show this page's shortcuts | | **!** | Send feedback to the Theseus team | | **G** then **I** | Go to Inbox | | **G** then **P** | Go to Pull requests | | **G** then **C** | Go to Changelog | | **G** then **S** | Go to Settings | | **\`** (backtick) | Open or close the [Inbox hotsheet](/guides/inbox/) | | **Cmd+Enter** | Send feedback while its note input is focused | ## Guide | Key | Action | | --- | --- | | **1**–**9** | Open that numbered change | | **↑** / **↓** | Previous or next entry in the sidebar | | **S** | Summary | | **P** | Rollout plan | | **.** | Ancillary edits and unreviewed files | | **\[** / **\]** | The same change in the last or next guide | | **N** | Next part you haven't marked viewed | | **V** | Mark the current part viewed, or not viewed | | **R** | Show or hide the Reviews sidebar (on a Mac, **Cmd+Option+B** also works) | | **Shift+R** | Add, finish or update your review | | **C** | Comment on the current change, or on the Summary; in a diagram's or screenshot's expanded view, comment on what it shows | | **E** | React to the current change, or to the Summary; in a diagram's or screenshot's expanded view, react to what it shows | | **F** | Open the edit-type filter | | **L** | View a merged pull request in the changelog | | **?** | Ask Theseus about what you're reading | | **Cmd+B** | Show or hide the table of contents | | **Cmd+J** | Show or hide Ask Theseus | | **Cmd+Enter** | Post a comment or reply, or submit a review | | **Escape** | Cancel a comment | In the media viewer, opened from a thumbnail under **Media** on the Summary, **←** and **→** move between images. ## Pull requests | Key | Action | | --- | --- | | **↑** / **↓** | Move between pull requests in a column | | **←** / **→** | Move to the next or previous column | | **Enter** | Open the selected pull request | | **1**–**9** | Apply one of your first nine saved filters | | **0** | Show all pull requests | | **/** | Focus the filter | | **Escape** | Clear the filter, while it has focus | ## Inbox | Key | Action | | --- | --- | | **↑** / **↓** | Move between items | | **1**–**9** | Highlight one of the first nine | | **Enter** | Follow the highlighted item's link | | **←** / **→** | Step through a stack of comments or reviews | | **R** | Reply to the highlighted discussion | | **Backspace** or **Delete** | Delete the notification | | **Cmd+Z** | Undo the latest delete or mute, while its notice shows | | **F** | Focus the type filter | | **Escape** | Clear the type and repository filters | In the hotsheet, **↑** and **↓** move between cards, **Enter** or **1**–**9** opens one in Inbox, and **Backspace** or **Delete** deletes it. ## Changelog **/** focuses the filter and **Escape** clears it. ## Settings **/** focuses **Search settings** and **Escape** clears it. **Enter** opens the highlighted match. ## Command menu Type to find pages, commands, repositories, the current guide's changes and recent pull requests. In workspaces with search, results also include summaries, changes, comments and review decisions. | Key or prefix | Action | | --- | --- | | **Enter** | Open the selected result | | **Cmd+Enter** | Open it in a new tab | | **Cmd+Shift+C** | Copy its link | | **Escape** | Leave a submenu, then close the menu | | `#123`, `PR #123` or a pull request URL | Jump to that pull request | | `/` at the start | Commands only | | `repo:name` | Search one repository | | `kind:pr`, `kind:summary`, `kind:change`, `kind:comment`, `kind:decision` | Search one kind of result | | `path:src/auth.ts` | Search content linked to a file | --- Source: https://docs.theseus.dev/guides/session-notes/ # Session notes Let your coding agent record decisions, attempts, learnings and reversals as they happen. A session note is one line of your agent's stated reasoning, with its reason. Notes record the journey of a change: choosing between options, trying something that fails, learning something that changes the plan, or reversing an earlier decision. A note a guide's reason rests on is shown to everyone who can read that guide (see [Privacy and guides](#privacy-and-guides)). Theseus takes them as stated; notes are not evidence that the code behaves as claimed. ## Set up the rule Run `theseus setup` inside your repository and choose **Apply**. Setup writes a marked `theseus:notes` block in the repository root's `AGENTS.md`, creating the file if needed. It also creates `CLAUDE.md` with an `@AGENTS.md` import, or adds the import to an existing file. Claude Code reads the rule through that import; agents that read `AGENTS.md` use it directly. If both instruction paths already share the same file, setup keeps that link without adding a self-import. Setup prints each file it changes and commits nothing. Review the diff and commit the instructions for other contributors. Outside a git repository, setup installs no repository rule. Setup preserves a versioned block and its formatting until Theseus ships a newer version of the instructions. Setup then updates the block and leaves your other instructions intact. It leaves existing unversioned blocks in place. If setup asks you to fix the markers, keep one opening marker and its matching `` on separate lines. Move unrelated text outside the block before rerunning setup. ## Report at the moment When the agent chooses between meaningful alternatives, abandons an implementation, or finds a fact that determines the fix, it records the event before the dependent edit. It waits for the note command to finish before editing: ```sh theseus note --kind decision "Kept the retry in the client because the server cannot distinguish timeout from cancellation" ``` | Kind | What to report | | --- | --- | | `decision` | What you chose between options, and why | | `attempt` | What you tried that did not work, and why | | `learning` | A bug's cause, contract or constraint, and how it determines the fix | | `reversal` | Which earlier decision you reversed, and why | A documented cause counts as a learning even when the fix is straightforward. An expected failing check before implementation is not a failed attempt. Routine progress, successful checks that change no choice, and values the user directly requested need no note. A chat explanation does not replace a saved note. Each note is one line, at most 500 characters. If the agent changes its mind, it adds a `reversal`; it does not correct the earlier note. Contributors without Theseus installed, or who are signed out, can carry on without notes: after the first failed note, the agent stops trying for the rest of the session. ## Privacy and guides A note is written to be shared, like a commit message. The signed-in person who sent it and Theseus staff can read every note; staff read notes to support you and to check the quality of guides, and Theseus logs every staff read. A note that a guide's reason rests on is also shown, as the agent wrote it, to everyone who can read that guide. Theseus masks anything that looks like a secret before storing a note in a guide, but do not put secrets in notes. Notes are kept for the life of the workspace. Notes that never reach a pull request's guide are seen by nobody else. When a pull request's guide is written, Theseus reads the notes sent from its branch or its commits before the push it explains, and adds the reasons they give to the Summary's **Notes**, each labelled with the agent that wrote its notes, as **Claude Code** or **Codex**, or **Agent** when the agent isn't known. A pull request from a fork reads no notes. A reason is a paraphrase in Theseus's own words, never a quote. It leaves out notes unrelated to the change, reasons the pull request description already gives, links, issue and pull request numbers, and anything that looks like a secret. Hover over a reason's badge to read the notes it rests on, up to three, as the agent wrote them: each is marked by its kind's icon and shows the agent's avatar over the sender's, and how long ago Theseus received it. The guide doesn't show a note's branch, session or commit. A guide shows at most four such reasons, so a note does not always appear. When the agent sends more notes and you push again, the updated guide reads the whole log again; a reversal replaces the reason it reverses. Claims continue to rest on code: a session reason explains why, never what the code does. ## Check delivery From the same repository and branch, using the same Theseus credential as the agent, run: ```sh theseus note --kind learning "Setup check: this agent can send notes from its current checkout" theseus note list ``` Run the send command through the agent itself to exercise its permissions. This creates a real note; use a test branch if you want to keep setup checks separate from your work. The list shows your own received notes for the current repository and branch, not an entire agent session or all branches. Switching from `main` to a feature branch changes the list; that does not mean earlier notes were deleted. Return to the original branch in a suitable checkout to read its notes. The list confirms receipt, not inclusion in a particular PR guide. A successful send prints nothing. A delivery problem prints one line but exits successfully so the agent can continue; exit code zero alone does not prove a note arrived. A network failure keeps the note in a local queue and retries it before the next note. A signed-out call is not saved; sign in with `theseus login`, then send a new note. A repository Theseus refuses is not queued. Ask your agent to send a short note, then check the list from a terminal with network access. If it is missing, read the command's stderr. The agent needs write access to `~/.theseus` (or `THESEUS_HOME`) for the note lock and queue, as well as network access. An `EPERM` or permission denied error creating `locks/notes.lock` means the note was not saved; allow that state directory in the sandbox, then resend. Moving `THESEUS_HOME` to an empty directory requires signing in there. `theseus note list` reads received notes; it does not flush the local queue. Allow the command to reach your configured Theseus API, then send another note to retry the queue. See the network guidance for [Claude Code](/guides/claude-code/), [Codex](/guides/codex/) or [OpenCode](/guides/opencode/). If the agent uses a personal token through `THESEUS_TOKEN`, give it **Send session notes** to report notes and **Read** to run `theseus note list`. A token without either scope is refused; replace an expired or revoked token in the agent's secret environment. `theseus status` needs a full CLI login and is not a delivery check for a personal token. If Theseus reports an ambiguous repository, set `THESEUS_NOTE_WORKSPACE` to the intended workspace ID or slug and send another note. The queued note goes first. ## Updating from hook capture Updating does not migrate or remove installed capture hooks or schedules. Remove them manually; the retired callback commands are no longer supported. --- Source: https://docs.theseus.dev/guides/claude-code/ # Claude Code Use session notes with Claude Code. [Install the CLI](/cli/installation/) on the machine where your agent runs, then sign in with `theseus login`. For session notes, setup adds the shared repository rule and a Claude Code import; see [Session notes](/guides/session-notes/). If you enable Claude Code's Bash sandbox, approve the network prompt for your configured Theseus API host, or add that host to `sandbox.network.allowedDomains` in your Claude settings. Command permission and network access are separate: allow the `note` command when Claude asks to run it. See [Claude's sandbox documentation](https://code.claude.com/docs/en/sandboxing). Ask Claude to run a note and check `theseus note list` from a connected terminal; a queued note has not arrived yet. Run `theseus setup` in your repository and review the instruction files it changes. Theseus uses agent-reported [session notes](/guides/session-notes/) instead of capturing conversations through hooks. The agent also needs write access to the CLI state directory (`~/.theseus`, or `THESEUS_HOME`) for its note lock and retry queue. A working login in an ordinary terminal does not establish those sandbox permissions. If the command reports a local write error, correct that permission and resend; see [Check delivery](/guides/session-notes/#check-delivery). --- Source: https://docs.theseus.dev/guides/codex/ # Codex Use session notes with Codex. [Install the CLI](/cli/installation/) on the machine where your agent runs, then sign in with `theseus login`. For session notes, setup adds the repository's `AGENTS.md` rule; see [Session notes](/guides/session-notes/). Codex's workspace-write sandbox normally blocks shell network access. Approve a network-enabled execution of the `note` command when your approval policy allows it, or enable network access for the workspace-write sandbox in your Codex configuration (`sandbox_workspace_write.network_access = true`). Managed policies can restrict this. See [Codex security](https://developers.openai.com/codex/security/). Ask Codex to run a note, then check `theseus note list` from a connected terminal. Merely allowing the command's prefix does not grant network access; a queued note has not arrived yet. Run `theseus setup` in your repository and review the instruction files it changes. Theseus uses agent-reported [session notes](/guides/session-notes/) instead of capturing conversations through hooks. The agent also needs write access to the CLI state directory (`~/.theseus`, or `THESEUS_HOME`) for its note lock and retry queue. A working login in an ordinary terminal does not establish those sandbox permissions. If the command reports a local write error, correct that permission and resend; see [Check delivery](/guides/session-notes/#check-delivery). --- Source: https://docs.theseus.dev/guides/opencode/ # OpenCode Use session notes with OpenCode. [Install the CLI](/cli/installation/) on the machine where your agent runs, then sign in with `theseus login`. For session notes, setup adds the repository's `AGENTS.md` rule; see [Session notes](/guides/session-notes/). Allow the `note` command when OpenCode asks for permission. If you use a command allowlist, add an allow rule for **theseus note** commands using your installed OpenCode version's [permission settings](https://opencode.ai/docs/permissions/). OpenCode command approval cannot bypass a container or host network restriction: that environment must also allow HTTPS to your configured Theseus API. Ask OpenCode to send a note, then check `theseus note list` from a connected terminal; a queued note has not arrived yet. Run `theseus setup` in your repository and review the instruction files it changes. Theseus uses agent-reported [session notes](/guides/session-notes/) instead of capturing conversations through hooks. --- Source: https://docs.theseus.dev/guides/conductor/ # Conductor Use session notes with Conductor. [Install the CLI](/cli/installation/) on the machine where your agent runs, then sign in with `theseus login`. For agent-reported decisions, see [Session notes](/guides/session-notes/). Run setup inside each repository where you want the shared rule, then review and commit the files it prints. The agent's process needs the Theseus login and network access: follow the [Claude Code](/guides/claude-code/) or [Codex](/guides/codex/) permission guidance. Ask that agent to send a note and check `theseus note list` on the same branch with the same login. Run `theseus setup` in your repository and review the instruction files it changes. Theseus uses agent-reported [session notes](/guides/session-notes/) instead of capturing conversations through hooks. --- Source: https://docs.theseus.dev/guides/cloud/ # Cloud agents Install Theseus, sign in personally, and verify notes in a cloud workspace. ## Install where the agent runs [Install the CLI](/cli/installation/) inside the cloud workspace. Put `~/.local/bin` on the agent process's `PATH`, then run `theseus --version` there. Installing the CLI on your laptop does not install it in the workspace. An unattended installation may install only the CLI; check authentication separately. ## Authenticate as yourself Run this in the cloud workspace's terminal, replacing `example-team` with your workspace name: ```sh theseus login --workspace example-team theseus status ``` If the cloud terminal cannot open a browser, open the sign-in address it prints on your own computer. Compare the verification code before approving it. Keep the terminal command running until it confirms sign-in, then check that status shows your account and workspace. Notes need your own Theseus credential. A full personal CLI login works. A CLI download token (`THESEUS_INSTALL_TOKEN`) or an old capture-only cloud credential does not. You can also create a personal token in **Settings → Personal → Security** and give it **Send session notes** and **Read** access for this workspace and its repositories. Supply that token as `THESEUS_TOKEN` in your personal secret environment. It can send and list notes; other CLI commands still need a full CLI login. A CLI installation token (`THESEUS_INSTALL_TOKEN`) cannot send notes. When the token spans two workspaces that both contain this repository, set `THESEUS_NOTE_WORKSPACE` to the workspace ID or slug where notes belong. For disposable workspaces, keep installation and repository instructions in the shared template, and authentication in your provider's personal secret or private persistent storage. Do not put one person's Theseus login in a team-wide environment or machine image. See [authentication configuration](/cli/configuration/#local-configuration) for `THESEUS_TOKEN` and `THESEUS_HOME`. Secret inheritance and persistence depend on your workspace provider; verify from a newly created workspace rather than assuming they carried over. ## Prepare the repository Inside the checkout, run: ```sh theseus setup --no-prompt --skill claude,codex ``` This installs skills and the session-notes instructions without prompting or signing in. Review and commit the `AGENTS.md` and `CLAUDE.md` changes. Start a new agent session after setup. A new workspace with those committed instructions still needs the CLI, your own credential, and permission to run the command, write its local state, and reach the API. ## Verify from the agent Ask the agent to run the [delivery check](/guides/session-notes/#check-delivery). Run the list command using the same login, repository and branch. Allow the configured Theseus API host (default `app.theseus.dev`) in the environment's network policy and allow writes to the CLI's state directory (default `~/.theseus`), including its locks and queue. Follow the [Claude Code](/guides/claude-code/) or [Codex](/guides/codex/) guidance for agent permissions. Instructions make note-taking available; they do not start a background recorder or guarantee that a model will report every useful decision. Verify delivery separately from how well the agent follows the rule during actual work. ## Updating from hooks Remove old Theseus capture hooks and upload schedules from the workspace template and agent configuration; updating the binary does not remove them. Keep unrelated hooks. Theseus now uses agent-reported [session notes](/guides/session-notes/) instead of capturing conversations. --- Source: https://docs.theseus.dev/automate/mcp/ # Connect with MCP Let an agent read complete Theseus guides and generate new ones. Connect a coding agent to Theseus over the Model Context Protocol (MCP) so it can read a pull request's guide, its changes and the review comments on it, and generate a new guide for pushed code. For the agent’s decisions as it works, see [Session notes](/guides/session-notes/). ## Connect your client You need a workspace whose plan includes MCP. **Agent setup**, in the workspace menu, shows whether yours does and copies the server URL. 1. In your MCP client, add a remote HTTP server at: ``` https://app.theseus.dev/mcp ``` 2. Choose **OAuth** and follow the client's sign-in flow. 3. On the Theseus consent page, check the client and where it redirects, choose the workspace and repositories it may read, and approve. The server speaks Streamable HTTP only; clients that need the older SSE transport can't connect. | To | Scope | You also need | | --- | --- | --- | | Read guides, changes and review activity | `read` | Access to the workspace and repository | | Generate a guide | `runs:write` | Write permission on the repository in GitHub | Every call rechecks your membership, repository access, scopes and plan, so removing someone's access takes effect at once. Signing out ends the OAuth grants tied to that browser session. For a client that takes a bearer token instead, create a [personal token](/reference/authentication/) with the scopes above, limited to the workspace, and keep it in an environment variable rather than a config file. A CLI sign-in or browser cookie won't work as an MCP token. ## Ask about a guide Once connected, ask in plain language: > Read the latest ready guide for example/project PR 42, check whether it matches the current PR head, and list the changes that need more evidence. | Tool | What it does | | --- | --- | | `get_changeset` | Resolves a PR, branch, URL or changeset ID; shows its latest ready guide, newest run and head | | `get_guide` | Reads a guide's summary, Background with sources, selected major risks, rollout steps and change headers | | `get_claim` | Reads one change in full: body, cited files and hunks. The API calls a change a claim | | `list_review_threads` | Reads comments, replies and review decisions on a guide | | `generate_guide` | Generates a guide for a PR or hosted branch at its current GitHub head | Your client's tool list carries each tool's current arguments. Review decisions in Theseus are not GitHub approvals; see [Review a pull request](/guides/reviewing/). `generate_guide` uses one guide from your plan's allowance. Push the base and head commits first. If the request fails, retry it with the same `idempotency_key`, which won't start or charge a second run; use a new key only when you want another guide. For a local branch, push it and run `theseus generate --wait` in its checkout instead. Building your own client? [MCP responses](/reference/mcp/) covers pagination, patches and fragments. ## Read the docs through MCP The same connection exposes this documentation, so an agent can look up how to do something (say, verify a webhook signature) without leaving the session. | Tool | What it does | | --- | --- | | `search_docs` | Finds pages by keyword and returns titles, URLs and excerpts | | `get_docs_page` | Reads a page found by search | These need the `read` scope and MCP in your plan, like the product tools. Agents without MCP can read the same pages as Markdown: [`/llms.txt`](/llms.txt) lists every page and [`/llms-full.txt`](/llms-full.txt) holds them all. `theseus help --json` describes every command and option of your installed CLI. ## If it doesn't work - **No tools after a server update:** refresh the tool list in your client. - **Authorization fails:** check the workspace's plan, the scopes the client asked for, and your repository access. The `runs:write` scope doesn't grant write permission on the repository; GitHub does. - **The consent page couldn't load:** choose **Try again** to reopen the same request. You still choose the workspace and approve access yourself. If the page says the request has ended or cannot be opened, start a new sign-in from your MCP client. - **Your client can't complete OAuth:** use a personal token, do the task with the [CLI](/reference/cli/) or [API](/reference/api-quickstart/), or [read the guide link as Markdown](/reference/authentication/#read-a-guide-as-markdown). --- Source: https://docs.theseus.dev/automate/github-actions/ # GitHub Actions and CI Start a CI workflow when Theseus finishes generating a guide for a pull request. Run a GitHub Actions workflow when Theseus finishes a guide: notify your team, run extra CI checks, or have a coding agent act on the guide. A **beacon** sends a `repository_dispatch` event to the repositories you pick. Beacons can also send to [your own HTTPS endpoint](/automate/webhooks/); the CLI and API call them _integrations_, with IDs that start `int_`. ## Before you start - Be an owner or admin of a workspace whose plan includes **MCP**, which covers beacons ([Plans and usage](/guides/plans/)). If **Settings → Beacons** has no **Add beacon** button, the plan doesn't include them. - Grant the Theseus GitHub App access to the repository that should run the workflow. - Be able to push a workflow to that repository's default branch. ## 1\. Create a beacon In **Settings → Beacons**, click **Add beacon**: 1. Enter a **Beacon name**, such as "PR follow-up". 2. Under **Send to**, choose **GitHub Actions**. 3. Under **Events**, choose **Guide ready**, and **Guide failed** if you want it. 4. Choose the **Repositories**, then click **Create beacon**. Or from the CLI; without `--url`, the beacon sends to GitHub Actions: ```sh theseus webhooks create --name "PR follow-up" \ --events guide.ready,guide.failed \ --repository example/project ``` A new beacon receives only events recorded after you create it. ## 2\. Add a workflow GitHub reads `repository_dispatch` workflows only from the default branch. Save this as `.github/workflows/theseus.yml` there: ```yaml name: Guide ready on: repository_dispatch: types: [theseus.guide.ready] permissions: {} jobs: receive: runs-on: ubuntu-latest steps: - name: Show the guide env: GUIDE_URL: ${{ github.event.client_payload.url }} EVENT_ID: ${{ github.event.client_payload.event_id }} run: | printf 'Event: %s\nGuide: %s\n' "$EVENT_ID" "$GUIDE_URL" ``` It prints the guide's link and changes nothing. ### Let an agent make follow-up changes To have an agent read the guide and push fixes to the PR, start from a complete template, [Codex](/templates/theseus-codex.yml) or [Claude Code](/templates/theseus-claude-code.yml), rather than extending the workflow above. Save it under `.github/workflows/` on the default branch and add these repository secrets: | Secret | What it is | | --- | --- | | `OPENAI_API_KEY` or `ANTHROPIC_API_KEY` | Your model provider's key: OpenAI for Codex, Anthropic for Claude Code | | `THESEUS_TOKEN` | A Theseus [personal token](/reference/authentication/) with `read` access to this workspace and repository | | `THESEUS_PUSH_TOKEN` | A GitHub [fine-grained token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens) with **Contents: Read and write** on the repository | `THESEUS_TOKEN` and `THESEUS_PUSH_TOKEN` are optional. Without `THESEUS_TOKEN`, the agent can't read the guide through the Theseus API. Without the push token, the template pushes with the built-in `GITHUB_TOKEN`, and GitHub doesn't run CI on commits pushed that way. The push token's owner must be allowed to push to the PR branch, and your organization may need to approve the token. The templates skip forks and events for a commit the PR has moved past, run one job per PR at a time, ignore repeated deliveries and stop after three fix commits. They refuse any fix that touches `.github/` and never merge. Read the file before you enable it. ## 3\. Check it end to end Generate a guide for a pushed PR, then find the beacon's ID: ```sh theseus generate example/project#42 --wait theseus webhooks list ``` List its recent deliveries: ```sh theseus webhooks deliveries int_YOUR_ID --limit 10 ``` The delivery should show as succeeded, which means GitHub accepted the event, and the **Actions** tab should show a "Guide ready" run. ## What the workflow receives The event type is `theseus.`, such as `theseus.guide.ready`. The fields are under `github.event.client_payload`: | Field | Use | | --- | --- | | `event_id` | Deduplicate retries and resends | | `type`, `occurred_at`, `api_version` | Which event, when, and the payload version | | `repository` | Theseus ID, GitHub ID and full name | | `changeset` | The PR's path, kind and number | | `guide` | Guide ID and the `head_sha` it describes (`null` on `guide.failed` when generation failed early) | | `actor` | Who triggered it, or `null` | | `url` | Link to the guide | Review and comment events add a `review` or `comment` reference; [Events and replay](/automate/events/) covers the types and how to fetch full content. ## If it doesn't work Theseus tries a dispatch up to five times over about 30 minutes. A permission error stops at once: re-approve the GitHub App with the permission it asks for (`contents: write`). Once you've fixed the cause, click **Resend** on the delivery in the beacon's **Delivery Log**, or run: ```sh theseus webhooks resend dlv_YOUR_ID ``` | Symptom | Check | | --- | --- | | Delivery succeeded but nothing ran | The workflow is on the default branch; `types` matches exactly | | The template's run skipped its work | The PR moved to a newer commit, is closed or from a fork, already has three fix commits, or the event was already handled | | Deliveries failed for longer than that | Catch up from [event history](/automate/events/) | --- Source: https://docs.theseus.dev/automate/webhooks/ # HTTPS webhooks Receive signed Theseus events in your own service. Send guide and review events to your own service over HTTPS. Each request is signed per [Standard Webhooks](https://www.standardwebhooks.com/), so your receiver can verify it, store it and answer quickly, then do the work in the background. Webhooks are one kind of **beacon**, the workspace setting that sends events out of Theseus; the other is [GitHub Actions](/automate/github-actions/). The CLI and API call a beacon an _integration_, with an ID that starts `int_`. ## Before you start - Be an owner or admin of a workspace whose plan includes **MCP**, which covers beacons ([Plans and usage](/guides/plans/)). If **Settings → Beacons** has no **Add beacon** button, the plan doesn't include them. - Have an endpoint on public HTTPS, port 443. Theseus doesn't follow redirects, and won't deliver to private networks, IP addresses or URLs with credentials in them. ## 1\. Create an endpoint In **Settings → Beacons**, click **Add beacon**. Enter a **Beacon name**, choose **HTTPS endpoint (webhook)** under **Send to**, enter the **Endpoint URL**, choose the **Events** and **Repositories**, and click **Create beacon**. Or from the CLI: ```sh theseus webhooks create --name "Review notifications" \ --events guide.ready,guide.failed \ --repository example/project \ --url https://hooks.example.com/theseus --json ``` Theseus shows the signing secret once. Put it in your server's secret store, and keep the command's output out of logs, since it contains the secret. ## 2\. Verify and accept requests Pass the **raw request body**, before any JSON parsing, and these headers to a [Standard Webhooks library](https://github.com/standard-webhooks/standard-webhooks/tree/main/libraries) with your secret: | Header | Purpose | | --- | --- | | `webhook-id` | The event ID; the same on every retry | | `webhook-timestamp` | When this delivery was sent; checked when verifying | | `webhook-signature` | Proves the body was signed with your secret | Once the signature checks out, save the event durably, keyed by its ID, and return `2xx`. Do the work afterwards: Theseus gives up on a request after 15 seconds. Saving only the ID and doing the work in memory loses the event if your process crashes. A `guide.ready` body looks like this: ```json { "id": "evt_01K6Z3M4Q8R2T5V7W9X1Y3Z5A8", "type": "guide.ready", "timestamp": "2026-10-06T18:00:00.000Z", "api_version": "v1", "schema_version": 1, "workspace_id": "wsp_01K6Z3M4Q8R2T5V7W9X1Y3Z5A9", "data": { "repository": { "id": "rep_01K6Z3M4Q8R2T5V7W9X1Y3Z5AD", "github_id": 1296269, "full_name": "example/project" }, "changeset": { "path": "example/project/pr/42", "kind": "pr", "number": 42 }, "requested_by": { "id": "usr_01K6Z3M4Q8R2T5V7W9X1Y3Z5A7", "login": null }, "guide": { "id": "ver_01K6Z3M4Q8R2T5V7W9X1Y3Z5AA", "head_sha": "0123456789abcdef0123456789abcdef01234567" } } } ``` `timestamp` is when the event happened and never changes; retries and resends get a new `webhook-timestamp` and signature. `data.guide.id` is the exact [guide](/api/operations/getguide/), and `head_sha` the commit it describes, or `null` on `guide.failed` when generation failed early. There's no link to the guide in the body: [resolve the PR](/api/operations/resolvechangeset/) from `data.repository.id` and `data.changeset.number` to get one. Deliveries can arrive out of order, including when an older event is retried after a newer one. Deduplicate by event ID, and check the current PR head before acting on a guide event. Do not let the last arrival alone decide which guide is current. ## A JavaScript receiver This Fetch-style handler uses `standardwebhooks` (`npm install standardwebhooks`). Your server must hand it the raw body and cap the body size. `enqueue` is yours: it must save the whole job before resolving, and treat an event ID it has already saved as success. ```js import { Webhook } from 'standardwebhooks'; export function createReceiver(secret, enqueue) { const verifier = new Webhook(secret); return async function receive(request) { if (request.method !== 'POST') return new Response(null, { status: 405 }); const body = await request.text(); let event; try { event = verifier.verify(body, Object.fromEntries(request.headers)); } catch { return new Response('Invalid signature', { status: 401 }); } if (event.type === 'theseus.ping') return new Response(null, { status: 204 }); try { await enqueue({ id: event.id, event }); } catch { return new Response('Try again', { status: 503 }); } return new Response(null, { status: 202 }); }; } ``` A `503` when the queue is unavailable makes Theseus retry. After you've accepted an event, retrying the work is your worker's job. ## 3\. Send a test event Click **Manage** on the beacon, then **Send test event**, or run: ```sh theseus webhooks test int_YOUR_ID ``` Your endpoint should verify and accept a `theseus.ping`. It appears in the beacon's **Delivery Log** marked **Test**. A test is sent once, even to a disabled endpoint, and isn't recorded in event history. Then generate a guide and check that `guide.ready` (or `guide.failed`) arrives. ## Retries | Response | What Theseus does | | --- | --- | | `2xx` | Done | | `410 Gone` | Disables the endpoint at once | | `413` | Fails that delivery; it won't fit next time either | | `429` | Retries, waiting for `Retry-After` within limits | | Anything else, or no answer | Retries, up to ten attempts over about 75 hours | After 5 days without a success, Theseus disables the endpoint. Once you've fixed the endpoint, click **Resend** on a delivery in the **Delivery Log**, or: ```sh theseus webhooks deliveries int_YOUR_ID --limit 10 theseus webhooks resend dlv_YOUR_ID ``` ### Re-enable a disabled endpoint Turning an endpoint back on doesn't replay what it missed, unless you ask. In **Manage**, turn on **Enabled**, select **Resend failed deliveries when enabling**, and click **Save changes**. The option appears only when Theseus disabled the endpoint, and resends what failed, expired or was skipped since it started failing, up to 30 days back. Events recorded while an admin had turned it off are never delivered. From the CLI, give the start of the outage in UTC, within the last 30 days: ```sh since='2026-10-08T12:00:00Z' # replace with when your outage started theseus webhooks enable int_YOUR_ID --resend-failed-since "$since" ``` A separate consumer that needs to catch up can read [event history](/automate/events/) instead. ## Rotate the signing secret Click **Manage** on the beacon, then **Rotate secret**, or run: ```sh theseus webhooks rotate-secret int_YOUR_ID ``` For 24 hours, deliveries are signed with both the old and new secrets, so you can deploy the new one to your verifier without dropping events. Remove the old one after that. Rotating again during those 24 hours ends the earlier overlap: only the newest secret and the one it just replaced keep signing. To move your receiver without replacing the beacon or its secret: ```sh theseus webhooks update int_YOUR_ID --url https://hooks.example.com/new-receiver --json ``` You must be able to see every repository granted to the beacon. The new URL passes the same public HTTPS and DNS checks as creation. A move keeps the beacon's ID, signing secret, grants and delivery history. --- Source: https://docs.theseus.dev/automate/events/ # Events and replay Subscribe to changes and recover missed events without repeating work. Theseus records an event when a guide finishes or a reviewer acts. A beacon, the workspace setting the CLI and API call an _integration_, delivers events to [GitHub Actions](/automate/github-actions/) or an [HTTPS webhook](/automate/webhooks/), and Theseus keeps 30 days of history so a consumer can catch up after downtime. ## Event types | Event | Recorded when | | --- | --- | | `guide.ready` | A guide is ready to read | | `guide.failed` | Generating a guide failed | | `review.approved` | A reviewer approves a guide | | `review.changes_requested` | A reviewer requests changes | | `review.withdrawn` | A reviewer withdraws their decision | | `comment.created` | Someone posts a comment or reply | | `comment.edited` | The author edits a comment or reply | The beacon form in Settings offers only the two guide events. Subscribe to the others from the CLI or API, by exact type, by family such as `review.*`, or `*` for everything. Quote wildcards in your shell: ```sh theseus webhooks create --name "Review activity" \ --events 'review.*,comment.created' \ --repository example/project ``` A review event records one reviewer's action on one guide. It doesn't mean the PR is approved overall, that the latest push was reviewed, or that GitHub has the review yet. A comment event carries references, not text: `comment: { id, review_id, target, reply_to_comment_id }`, and `comment.edited` adds `edited_at`. Read the comment through the API for its current text. `target.kind` says what the comment is on, for example `fact` with a `change_id`. A reply to a reviewer's decision has `target: { kind: "review", review_id }`, naming the review it answers. ## Delivery guarantees - **No delivery ordering.** Concurrent delivery and retries can send older events after newer ones. Use current PR state rather than arrival order to decide which guide to act on. - **At least once.** Deduplicate on the event ID, and check `guide.head_sha` against the PR before changing code. - **Accepted, not finished.** A successful delivery means your endpoint or GitHub accepted the event, not that the work it started succeeded. - **Forward only.** A new beacon gets events recorded after it was created. Events recorded while the plan didn't include beacons are never delivered, even after you restore it; read them from event history, which doesn't send anything. An endpoint Theseus disabled can resend its failed deliveries when you turn it back on (see [HTTPS webhooks](/automate/webhooks/)). To deliver one old event again, resend it. ## Catch up after downtime List events since your consumer last processed one successfully, oldest first, as an ISO 8601 UTC time within the last 30 days: ```sh since='2026-10-08T12:00:00Z' # replace with your last successful processing time theseus events list --type 'guide.*' \ --repository example/project \ --since "$since" --json ``` The result has `data`, `next_cursor`, `has_more` and `truncated`. 1. Process `data`, skipping event IDs you've already handled. 2. Save `next_cursor` only after processing succeeds. 3. While `has_more` is true, fetch the next page with `--cursor` and the **same filters**, including `--since` and `--until`: ```sh theseus events list --type 'guide.*' \ --repository example/project \ --since "$since" \ --cursor "$cursor" --json ``` 4. Keep the last cursor, even from an empty page, and poll with it for new events. `--until` excludes events at or after that time. Each read rechecks your repository access and skips what you can't see; if you gain access later, start a new listing to read that history. `truncated: true` means the 30-day retention has deleted events somewhere in the workspace, not necessarily in your repository. Check the PRs you care about in Theseus. ## Fetch the full review Events carry IDs, not comment or review text. Fetch the content from the API with a token that has `read`: | From the event | Call | | --- | --- | | `changeset.id` (review and comment events) | `/api/v1/changesets/{id}` and `/api/v1/changesets/{id}/review-state` | | `review.decision_action_id` | `/api/v1/review-actions/{id}` | | `guide.id` | `/api/v1/guides/{id}/comments` and `/api/v1/guides/{id}/decisions` (read every page) | Guide events have no `changeset.id`; [resolve the PR](/api/operations/resolvechangeset/) from the repository and PR number instead. The decisions list holds each reviewer's current decision on that guide; `none` means they withdrew it. Review state says whether each decision still applies to the PR's current head (or that this is unknown), and whether the same reviewer has since replaced it. If its `complete` is `false`, there's more history than one read returns. From a terminal, `theseus changeset threads example/project#42 --json` reads all of these for you, following every page. ## Event history fields Event history and GitHub Actions payloads name the event's time `occurred_at`; HTTPS webhook bodies call the same value `timestamp`. History also has an `origin`: events marked `backfill` describe older work Theseus imported, and beacons never receive them. --- Source: https://docs.theseus.dev/guides/workspaces/ # Workspaces and access How workspaces are created and joined, who can see what, and where each setting lives. A workspace holds guides, comments, reviews and settings. Each workspace connects one GitHub account, an organization or your own, and GitHub decides both who belongs to it and which repositories each of them can read. ## Create or join a workspace Signing in doesn't create a workspace. Theseus opens the one you last chose, or one whose connected repositories GitHub lets you read. With none, GitHub asks you to let Theseus read your repositories, then you see **Get started with Theseus**: - **To join your team's workspace**, ask one of its admins to give you access to one of its repositories on GitHub. You join on your own: the page opens the workspace a few seconds after Theseus sees the access. - **To preview first**, pick one of your private or internal repositories. Theseus writes guides for a few of its recent pull requests in a preview that lasts 14 days, which coworkers who can read the repository join by choosing it too. **Install GitHub App** in its top bar turns it into the repository owner's workspace, with its guides, when the installation includes that repository ([Quickstart](/quickstart/)). - **To create one**, choose **Install the GitHub App**, then your own account (shown as your login's repositories) or one of your organizations, or **Add an organization from GitHub** for any other account, and install the GitHub App there. Connecting the account creates its workspace, named after it; [Connect GitHub](/guides/github/#install-the-app) has the details. An account that already has a workspace reconnects it instead. To create another workspace later, choose **Create new workspace** in the workspace menu. Workspaces created as personal workspaces before keep working as they are, with the same address, guides and settings. Switch workspaces from the workspace menu in the top-right corner. An owner deletes a workspace in **Settings → General** by typing its name. Deleting can't be undone in Theseus: nobody, including you, can open it or its guides afterwards. Queued guides are cancelled, and its GitHub App installation, Linear, Jira and Slack connections are released. ## Who can see a repository You need both of these to read a repository's guides: 1. You're a member of the workspace. 2. Your own GitHub account can read the repository, and the workspace's GitHub App installation includes it. No workspace role grants GitHub access, so being a member doesn't show you repositories you can't already read on GitHub. If a teammate sees a repository you can't, check your GitHub permission, or ask an admin to add it to the App's selection; don't borrow their login. Theseus supports private and internal repositories only; see [Connect GitHub](/guides/github/). ## How people get access There are no invitations. You're a member of a workspace while GitHub lists you as able to read at least one of the repositories it connects, including as an outside collaborator. Sign in with that GitHub account and the workspace is there. When GitHub access to its last repository ends, so does membership, and queued guides you asked for are cancelled. Theseus picks up changes on GitHub without you doing anything. After you install the GitHub App, the repositories GitHub lets you read open as soon as you're back in Theseus. Teammates get in once Theseus has read each repository's people from GitHub, shortly after it's connected; until then a link they open says **Checking your GitHub access…** and opens on its own. For admins, **Settings → People** lists everyone with access, with their role on GitHub and their workspace role, including people who haven't signed in to Theseus yet. Other members see only where people are managed; the people who can read a repository show where you ask for a review on it. Nobody adds, removes or changes people in Theseus: choose **Manage on GitHub** to do that on GitHub. When a repository is connected again, for example after the App's installation is unsuspended or the repository is added back to its selection, Theseus reads its people from GitHub again before letting anyone in through it. Meanwhile a link into the workspace or the repository says **Checking your GitHub access…** and opens on its own once your access is confirmed. Sharing a link to a page in Theseus doesn't give anyone access: they need to be a member with their own GitHub access to the repository. Someone who opens it without access is told so; once they have GitHub access, opening the link again works. ## Roles | Role | Who has it | What they can do | | --- | --- | --- | | Member | Everyone else with access | Read and review repositories they can access, generate guides, see the plan, usage and connection status | | Admin | Owners of the connected GitHub organization, or the person whose own account it is | Everything a member can, plus manage GitHub, run modes, connections, custom emoji, hidden media, beacons and billing, and delete the workspace | On your own account's workspace you're the only admin; collaborators on your repositories are members. Someone who created a workspace before connecting GitHub, as was once possible, stays its admin until GitHub is connected. ### Approve reading organization members Theseus learns who owns an organization through the App's permission to read organization members. An installation from before Theseus asked for it needs an organization owner to approve the updated permissions on GitHub. Until then, **People** says some teammates may be missing, and the person who installed the App is the workspace's admin. To approve, an owner of the organization chooses **Review on GitHub** in **People**, or opens the organization's **Settings → GitHub Apps → Theseus** on GitHub, and accepts the updated permissions. Theseus updates its people and admins once GitHub reports the approval. ## Choose where the CLI works ```sh theseus workspace theseus workspace example-team ``` The first lists your workspaces and lets you pick one; the second switches straight to `example-team`. The selected workspace receives the guides you generate from the CLI and the session notes you send. Guides already saved stay in their workspace. To generate a guide, select the workspace connected to that repository; otherwise generating fails with **Repository does not belong to the selected workspace**. ## Settings Open the workspace menu and choose **Settings**. **Personal** settings are yours; **Workspace** settings apply to everyone in the selected workspace, and only admins change them. **GitHub** lists each connected repository; choose one to open its page. To find a setting quickly, type in **Search settings** above the sections, such as a setting's name or a repository's, and choose a match. | Setting | Section | | --- | --- | | Avatar, [custom emoji](#custom-emoji), deletion | **General** | | GitHub App and the repositories it can read | **GitHub** | | A repository's run mode, [deploy status](/guides/pull-requests/#see-whether-a-merged-pr-is-deployed) and [muted media](/guides/previews/#choose-which-media-is-muted) | The repository's page, from **Settings → GitHub** | | People and their roles, read-only | **People** | | [Linear, Jira and Slack](/guides/connections/) | **Connections** | | [GitHub Actions](/automate/github-actions/) and [HTTPS webhooks](/automate/webhooks/) | **Beacons** | | [Plan, usage and credits](/guides/plans/) | **Billing** | | Your sign-ins and personal tokens | **Security** | ## Custom emoji **Custom emoji**, in **Settings → General**, lists the workspace's custom emoji with their aliases. Search matches a name or an alias. Everyone in the workspace can use them in comments and reactions; only owners and admins add or delete them, and members see the list without those controls. To add one, choose **Add emoji**, pick a JPG, PNG, GIF or WebP image and check the name, which starts as the file name in lowercase. A name uses 1 to 100 lowercase letters, numbers, hyphens or underscores, and can't be one GitHub already uses for an emoji, such as `tada`. Theseus shrinks a still image to fit 128 × 128 pixels in your browser. An animated GIF or WebP isn't resized: it must already be at most 128 × 128 pixels and 128 KB, and a GIF can have at most 50 frames. People who turn on reduced motion see its first frame. A workspace holds at most 20,000 custom emoji, aliases included. To give an emoji a second name, choose the plus button on its row (**Add alias to :name:**) and type the alias; both names then show the same image. To remove an emoji, choose the bin button on its row (**Delete :name:**) and confirm. Its aliases and every reaction made with it go too, comments that used it show its `:name:` as text, and the name is free to use again. ### Import from Slack When the workspace is [connected to Slack](/guides/connections/#connect-slack), an owner or admin can bring in that Slack workspace's custom emoji and aliases: choose **Import from Slack**. Theseus runs the import on its servers, so you can leave the page or close the tab; come back to **Settings → General** to see its progress. It adds each image as **Add emoji** would, shrinking a still image to fit and keeping an animation as it is, with its first frame as a still, then adds the aliases. Only one import runs at a time in a workspace. The import never replaces an emoji. It skips a name the workspace already uses, a name Theseus doesn't allow (such as one GitHub uses, like `parrot`), an image that breaks the limits above or is over 1 MB in Slack, an animated WebP, and anything past the 20,000 limit. An alias comes in when the emoji it points to is in the workspace, whether this import or an earlier one brought it in or someone added it by hand. When the import ends, the page says how many emoji came in and how many were skipped; open it to see each skipped emoji and why, including any whose image Slack didn't send. A long list shows the first 500 by name and counts the rest. Close the report to hide it in this browser until the next import. Running it again adds only what's still missing by name. If Slack stops answering partway, the page says the import stopped; what it added stays, and importing again brings in the rest. If the button reads **Reconnect Slack to import emoji**, the Slack connection was made before Theseus could read custom emoji. Choose it and approve the app again; Slack returns you to this page. Link previews keep working either way. ## Your data ### In your browser Theseus keeps the pages you open in this browser so they reopen quickly, then checks for anything newer. It deletes that data when you sign out, your session ends or you sign in as someone else, and deletes a repository's data when you lose access to it. On a shared computer, sign out when you finish. ### What Theseus records - **Product activity:** successful sign-ins, which guides were shown and the review actions you commit. They hold identifiers and timestamps, not transcripts, code, chat questions or comment text. - **Guide views:** for each guide and UTC week, whether it appeared in a visible, signed-in browser tab. There's no viewer identity or view count, and CLI and API reads aren't counted. The record is deleted with the guide. - **Staff access:** to support onboarding and diagnose problems, Theseus staff can see your account and workspace, setup progress, recent runs, the records above, feedback you send, and your account and invitation email addresses. Staff look at a private guide or its code only with your consent, which the feedback panel asks for (see [Review a pull request](/guides/reviewing/)). --- Source: https://docs.theseus.dev/guides/connections/ # Linear, Jira and Slack Connect an issue tracker so guides can say why a change was made, and Slack so shared links show previews. Connect Linear or Jira so a guide can read the issues a pull request names and explain why the change exists. Connect Slack so Theseus links you share there show previews. Linear, Jira and the Slack workspace connection live in **Settings → Connections**, where owners and admins connect them and members see their status. Each person connects their own Slack account in **Settings → Personal → Connections**. ## What a guide reads from a tracker Theseus looks for issue keys such as `APP-123` that the pull request writes itself: in its title, description, branch name or commit messages. It also reads Linear issues the pull request is attached to in Linear. It reads each issue it can confirm in a connected tracker. Issues in the same GitHub repository that the title or description names, such as `Closes #12`, are read through the GitHub App and need no connection; issues in other repositories are skipped. Issues explain why; they never establish what the code does (see [How Theseus works](/how-it-works/)). Theseus reads an issue when it generates the guide, so later edits don't change guides already written. Anyone who can read a guide sees the issue text it quotes, whether or not they have access to the tracker. Connect only what everyone in the workspace may read. ## Connect Linear 1. In **Settings → Connections**, choose **Connect** beside Linear. 2. Approve read access in Linear. Theseus reads Linear as the person who approved it, and only issues in public teams. Private teams aren't supported. ## Connect Jira Cloud 1. Choose **Connect** beside Jira and approve read access in Atlassian. 2. If your Atlassian account reaches several Jira sites, choose the one Theseus reads. 3. Select the projects Theseus may read and save. It reads no Jira issues until you do. To change them later, choose **Choose projects**. Theseus never reads an issue with a security level, or a comment restricted to a role or group. When someone closes their Atlassian account, Theseus replaces their name with "Former user" and their comments with "\[removed\]" in the context it stored. Guides already written keep their text. When both trackers are connected, a key such as `APP-123` links to whichever one has that issue. ## Fix a tracker connection **Connection broken** means Linear or Atlassian no longer accepts the connection because its access was revoked or expired. An owner or admin chooses **Disconnect**, then **Connect** again. **Connection unreachable** means the tracker didn't answer; refresh the page later to check again. ## Connect Slack Slack takes two connections: one for the workspace, and one for each person who shares links. 1. An owner or admin chooses **Connect Slack**, picks the Slack workspace and approves the app. Your Slack workspace may need a Slack admin to approve it. 2. Each person opens **Settings → Personal → Connections**, chooses **Connect your account** under **Your Slack account**, verifies their Slack account and approves previews once. The workspace connection also lets owners and admins [import the Slack workspace's custom emoji](/guides/workspaces/#import-from-slack). Each Theseus workspace needs its own connection, even when several use the same Slack workspace. Connecting your team's workspace doesn't turn on previews from your personal one. If you share a link before connecting, Theseus may show you a private prompt in Slack to connect; if it has expired, connect your account in **Settings → Personal → Connections**, then share the link again. ## What a preview shows **Everyone in the Slack conversation sees the preview**, including guests and external people in Slack Connect channels, without needing Theseus access. Opening the link still needs it. Each time you share, Theseus checks that you can still see the content; you don't approve each channel or repository. | Link | Preview | | --- | --- | | Guide | PR title, repository and number, PR state, guide status and a short summary | | Change | The change's title and a short description, with PR context | | Comment | Author, an excerpt, and the title or passage being discussed | | Comment on code | Author, an excerpt, the file name and line range | Previews never include source code, session transcripts, attachments or the rest of a comment thread. A guide that's still generating shows its status instead of a summary. A preview is a snapshot: it doesn't update when a guide finishes or the PR merges, and disconnecting or losing access doesn't remove it from Slack. ## Stop previews - **Disconnect** on **Your Slack account** (in **Settings → Personal → Connections**) stops new previews of links you share in that Slack workspace, from every Theseus workspace. - **Disconnect** on **Slack** (in **Settings → Workspace → Connections**, owners and admins) stops new previews of this Theseus workspace's content. Other Theseus workspaces connected to the same Slack workspace keep theirs. ## If a preview doesn't appear - Check that this Theseus workspace and your own account are both connected to that Slack workspace. - If the Slack row says to reconnect, the Slack installation was revoked or removed; an owner or admin chooses **Reconnect Slack**. - Check that you can open the content in Theseus. Installing the Slack app grants no repository access. - Use a full guide, change or comment URL. Other Theseus pages don't get content previews. - Check Slack's link preview settings and app permissions; Slack decides when to send Theseus a link. --- Source: https://docs.theseus.dev/guides/plans/ # Plans and usage What uses your guide allowance, what happens when it runs out, and who can change the plan. A workspace's plan sets how many guides and Ask Theseus messages it includes each billing period. Everyone in the workspace shares it; there are no seats. See [pricing](https://theseus.dev/pricing) for plans, and **Settings → Billing** for your usage and reset date. ## What uses the allowance Each guide Theseus generates uses one, whether a repository's [run mode](/guides/github/) started it or someone asked for it. Pushes while a guide is generating lead to one follow-up guide, not one each. Each question to Ask Theseus uses one chat message. Nothing is used when: - you generate again and nothing has changed: Theseus shows the previous guide again; - a guide fails, or a chat message fails before its answer starts: it's given back; - Theseus writes changelog digests. Unused allowance doesn't carry over. ## When it runs out On Pro, Plus and Max, Theseus first spends credits at list price for guides and chat messages past the allowance. When there's no allowance or credits left, automatic guides pause, and the Theseus comment on the pull request links to Billing. Once there's allowance again, the next push generates a guide. Generating and Ask are refused; billing managers see **Choose a plan** for a guide and **Open Billing** for a chat message. Billing managers buy credits with **Add credits**; each purchase expires after 12 months and can't be refunded. A failed guide gives its credits back. Under **Auto top-up**, choose **Edit** and turn on **Enable auto top-up** to buy more with your saved card when the balance drops below an amount you set, optionally up to a monthly cap. Free can't spend credits, but keeps a balance for after an upgrade. ## Free trial A workspace created by installing the GitHub App, including a preview that becomes a workspace, starts on the **Free trial**: 20 free guides, once. They don't reset each month, and guides from the preview before the install don't count. Ask Theseus includes 10 chat messages each calendar month. **Settings → Billing**, the pull request list and each pull request page show how many of the 20 you've used, such as **4 of 20 free guides used**. At 15, Theseus suggests choosing a plan in a notice you can dismiss. Once all 20 are used, new guides stop until a billing manager chooses a plan: **Generate a guide**, `theseus generate` and `@theseusbot generate` are refused, with **Choose a plan** for billing managers, and automatic guides pause. A pull request that already has a Theseus comment says the free guides are used; a new pull request gets no comment. Guides you already have stay readable. Choosing a plan starts its full allowance at once. ## Private beta On **Free private beta**, the plan workspaces created before the Free trial started on, nothing is refused; Billing shows usage past the allowance as waived. Those workspaces keep it. ## Change the plan Billing managers (a workspace's owners and admins) change the plan; everyone sees it. | Change | In **Billing** | Takes effect | | --- | --- | --- | | Upgrade | **Upgrade to** or **Change plan** | Once Stripe confirms payment | | Downgrade | **Change plan**, **Switch to** | End of the billing period | | Cancel | **Change plan**, **Cancel plan** | End of the period; moves to Free, nothing is deleted | | Cards, invoices | **Manage billing ↗** | In Stripe | Guides already used this period count against an upgraded plan's allowance. While a downgrade or cancellation is booked, you can't choose another plan until you undo it in **Manage billing ↗**. If Stripe can't collect a renewal payment, the plan stays active for up to 7 days while Stripe retries the card, then the workspace moves to Free. For SSO or custom allowances, choose **Contact us** beside Enterprise. ## Features **Billing** lists the features your plan includes. **MCP** covers [MCP](/automate/mcp/) and beacons (which the CLI and API call integrations); Pro, Plus and Max include it. **SSO** covers single sign-on and needs Enterprise; the Theseus team sets it up with you. Free includes neither. On a plan without MCP, MCP access stops and existing beacons pause; events from that time are never sent, even after an upgrade. --- Source: https://docs.theseus.dev/troubleshooting/ # Troubleshooting Recover from sign-in, access, guide and session-note problems, and report what's left. Find the symptom below. If nothing here fits, [report it](#report-a-problem). ## Sign-in and the CLI ### Setup cannot open a browser Run `theseus login --no-browser` and open the printed link on a device you control. Check that the code matches before you approve it. Guided setup needs an interactive terminal, so run `theseus setup` from one. ### Sign-in reports too many attempts Wait and try again. Sign-in, in the browser and the CLI, allows a limited number of attempts per network address in a ten-minute window, and devices on the same network share it. A `429` response's `Retry-After` header gives the seconds to wait. ### You cancelled signing in with GitHub Choosing **Cancel** on GitHub's authorization page signs nothing in. Choose **Sign in to Theseus** to start again, and authorize Theseus on GitHub. If GitHub signed you in with the wrong account, sign out of Theseus and choose **Use a different GitHub account**, which lets you pick the account on GitHub. ### Sign-in says you're on the waitlist During the private beta, Theseus lets you in when your GitHub account can read a repository in a Theseus workspace, when you already have a workspace, or once your request is approved. Otherwise you stay signed in and see **You're on the waitlist**. Your first sign-in records your request, so there's nothing to resubmit: keep the page open, or sign in again later, and it opens Theseus once you're approved or GitHub gives you access to a workspace's repository. Until then, `theseus login` can't finish and the API answers `admission_required`. A link someone shared, such as a pull request's **View guide**, doesn't grant access: ask for GitHub access to its repository. If another GitHub account of yours has that access, sign out and choose **Use a different GitHub account**. If you joined the waitlist before Theseus used GitHub sign-in, on the website or through an invitation email, your request is kept: sign in at [app.theseus.dev](https://app.theseus.dev) with GitHub rather than through an old invitation link. When your GitHub account's verified email is the one you joined with, that request is yours at once. Otherwise you wait on it until Theseus staff match it to your account; you don't need to ask again. ### Your sign-in attempt expired A sign-in has 30 minutes to finish, in the browser and tab that started it. Choose **Sign in to Theseus** to start again; Theseus returns you to the page you were opening. ### Problem connecting your GitHub account Your sign-in worked, but GitHub didn't return the authorization Theseus needs. Choose **Sign in to Theseus** to start a fresh sign-in with GitHub; Theseus keeps your page. If it happens again, [report it](#report-a-problem) with the time you tried. ### Your login expired In the CLI, run `theseus login`, then `theseus status` to check the account and workspace. A browser sign-in lasts 90 days, or 30 days without use. In the browser, an expired session takes you to sign in; if you went **Back** instead, the page shows **You're signed out** with **Sign in with GitHub**. Never copy someone else's token to get around sign-in. ### Theseus doesn't accept this CLI release Old CLI releases stop being accepted, and commands then ask you to upgrade. `theseus status` reports **Theseus does not accept this CLI release**. ```sh theseus update ``` If the CLI can't update itself, install it again from the app; see [Install the CLI](/cli/installation/). A CLI built from source is never accepted by the hosted service. ## Repositories and access ### A repository is missing or inaccessible Reading a repository needs workspace membership, your own GitHub access and the workspace's GitHub App installation; see [Workspaces and access](/guides/workspaces/). Theseus supports private and internal repositories only. | What you see | What to do | | --- | --- | | **No connected repositories** | Nobody has connected the GitHub App to this workspace yet. An owner approving the install on GitHub isn't enough: an owner or admin then connects it in **Repositories** | | **No repositories visible to your account** | Choose **Review repository access**. Check that the GitHub App is installed on the account that owns the repository and that its selection includes it. On the setup page, ask a GitHub organization owner to give you access to a private or internal repository the App can read, then connect again | | **Could not load repositories** | GitHub didn't answer. Theseus retries every minute | | **Reinstall GitHub** | The App was suspended. An owner or admin chooses **Reinstall GitHub App** to unsuspend it on GitHub | | **Check your GitHub access** | GitHub refused your account. Check your organization membership, then choose **Sign in again** | | **This repository isn’t available in this workspace** | Check your GitHub access, or ask an owner or admin to check that the App's selection includes it, then choose **Check again**. Saved guides are kept | You can give the App only some repositories. Removing one pauses its imports but keeps its saved guides; adding it back resumes them within the hour. Unavailable repositories leave the repository menu and command menu, and old links to them explain why they won't open. In the CLI, `theseus workspace` shows which workspace you're using. ### Starting a preview doesn't work | What you see | What to do | | --- | --- | | **Your GitHub repositories aren’t connected** | You cancelled GitHub's request to let Theseus read your repositories. Choose **Connect repositories** to try again, or **Install the GitHub App** instead | | **No repositories to preview** | Previews need a private or internal repository your GitHub account can read. Choose **Install the GitHub App**, or ask for access to such a repository on GitHub | | **No recent pull requests to explain** beside a repository | It has no recent pull request to write a guide for. Choose another repository | | An old preview link opens a workspace with **You’re now in the** followed by its name | The preview became that workspace, or that workspace now holds its repository. Its guides are there | | An old preview link says the content may have been removed | Previews last 14 days. Start a new one from **Get started with Theseus**, or install the GitHub App to keep guides | ### A shared link says you don't have access **Checking your GitHub access…** means Theseus is still reading who GitHub lets in, as it does after a repository is connected or connected again; the page opens on its own once your access is confirmed. **You don’t have access to this workspace** means your account isn't a member. If you can see a repository on GitHub, you can see it in Theseus, so ask an owner of the GitHub organization, or an admin of the repository, for access to it on GitHub, then open the link again. A shared Theseus link doesn't grant access by itself. If another GitHub account of yours has that access, choose **Sign in with another account**. See [Workspaces and access](/guides/workspaces/#how-people-get-access). ### A page stops loading or updating Choose **Retry** on a loading error, or reload the page. When Theseus is unreachable for a while, the Inbox, Pull requests and Changelog show **Can’t reach Theseus** and keep trying; choose **Reconnect** to try at once. **A new version of Theseus is available** means your tab needs the currently deployed app; choose **Refresh**. This can also appear when a deployment changes the message format on an already-open repository connection. The refreshed page checks the connection again even if you have other Theseus tabs open. If a repository server is still updating, the page reconnects automatically without asking you to refresh again. ## Guides ### Code edits could not be loaded Theseus briefly retries temporary storage failures while loading code edits. If **Code edits could not be loaded** remains, choose **Retry** or reload the page. The saved guide is kept; you don't need to generate it again. ### A guide is pending or failed ```sh theseus changeset status example/project#42 ``` A pending guide may still finish: a timeout or Ctrl-C stops your local wait, not the run, so check its status before generating another. Theseus automatically retries temporary infrastructure failures and reuses saved generation work. If generation itself fails, Theseus starts the guide over up to twice more, at no extra cost to your allowance, before it shows as failed, so a guide can stay pending longer than usual. It doesn't start over after the guide runs out of time or tokens. For a failure, fix any access or setup problem the error names, then choose **Generate again** on the pull request's page. A failed guide doesn't count against your [allowance](/guides/plans/). If it keeps failing, [report it](#report-a-problem) with the run ID and error. If the generation engine becomes unavailable, the guide stays pending while Theseus restarts it from saved work. Recovery is bounded; if the guide ends as failed, use **Generate again** after checking the reported error. Theseus also retries temporary storage failures while saving a new run's input and starting checkpoint. If storage remains unavailable, the run fails and its allowance is restored; choose **Generate again** to start a new attempt. If an update changes guide generation, an unfinished guide may start generation over automatically. It keeps its original time budget, so check its status before generating another. An already-failed guide still needs **Generate again**. ### A large change has unreviewed files Theseus limits how much code one guide explains. When a change has many files, it selects a subset that fits and keeps the remaining paths under **Unreviewed files**, with a reason for each omission. Lockfiles, newly added vendored code and test fixtures, and generated output are left out before hand-written files. Those files were changed by the pull request but were not explained by the guide. A long list loads in pages; every omitted path remains available. Review the omitted files on GitHub, or split the pull request into smaller changes to get guides covering more of its code. If collection still refuses the changed-file inventory, retrying the same comparison will not reduce it. Split the change and generate a guide for each part. ### GitHub change not collected Theseus couldn't read the change from GitHub, so no guide started. The text after the colon says why: | Reason | What to do | | --- | --- | | **Repository does not belong to the selected workspace** or **Repository is not connected to the selected workspace** | Run `theseus workspace` and switch to the workspace connected to that repository | | **Public repositories are not supported** | Use a private or internal repository | | Too many changed files, more than 4,096 directory paths, more than 64 MiB of directory listings, or, when GitHub can't list the whole repository, more than 1,024 directories | Split the change into smaller pull requests; retrying gets the same answer | ### A guide can't be generated for a local branch Push the base and head commits to GitHub, check the repository's remote and main-branch setting, then retry. Naming the hosted branch avoids ambiguity: ```sh theseus generate example/project@feature --wait ``` ### Generating is refused or automatic guides paused The workspace has used its guide allowance for the period, and any credits its plan can spend. See [Plans and usage](/guides/plans/) for what a billing manager can do. ### MCP or beacons are unavailable MCP, **Add beacon** and event deliveries need a plan that includes MCP. Check **Settings → Billing**; see [Plans and usage](/guides/plans/). ### A Slack preview doesn't appear See [Linear, Jira and Slack](/guides/connections/#if-a-preview-doesnt-appear). ## Session notes ### A note could not be sent Check the account and workspace with `theseus status`. If signed out, run `theseus login`; if the repository belongs to another workspace, switch with `theseus workspace`. A network failure queues the note locally, and the next note submission retries it. There is no background upload process. Run `theseus note list` in the repository to see your stored notes for the current branch. See [Session notes](/guides/session-notes/). ### Old capture hooks remain after updating The CLI no longer supports capture callbacks or changes installed integrations. Remove the Theseus capture entries from your agent settings, any Theseus OpenCode plugin or Git hook, and any Theseus upload schedule manually. Preserve your own hooks and settings. ## Report a problem In [Theseus](https://app.theseus.dev), open the workspace menu and choose **Feedback**, press **!**, or choose **Send feedback** from the command menu. Include this report, without credentials or transcript contents: ``` CLI version: (theseus --version) Command: (replace private repository names if needed) Run ID: (newest_run.id from changeset status --json) Error: Affected URL: Expected result: ``` --- Source: https://docs.theseus.dev/reference/cli/ # CLI commands Command help generated from the Theseus CLI build. Commands and options for Theseus CLI **0.3.14**. Start with the [installation guide](/cli/installation/) or [quickstart](/quickstart/). Run `theseus help ` to see the help for your installed version.
Verify your CLI version This reference comes from the executable with content ID `93db56ec2a42b48ccbf7d42ed15250e1e47cad653d912b1258bc5c2a3da58451`. Run `theseus help --json` to compare your installed CLI. `theseus help --validate generate owner/repo#42 --wait` checks arguments without running the command. It does not verify sign-in, network access, or the guide's result.
## Commands | Command | What it does | | --- | --- | | [`theseus change`](/reference/cli/change/) | Collect a snapshot of a change from your checkout or GitHub, or read one back. | | [`theseus changeset`](/reference/cli/changeset/) | Show where a changeset stands, its latest ready guide, or its review threads. | | [`theseus events`](/reference/cli/events/) | List the workspace's events from the last 30 days, to catch up after downtime. | | [`theseus generate`](/reference/cli/generate/) | Generate a guide for the current branch, a pull request, or a GitHub branch. | | [`theseus help`](/reference/cli/help/) | Show command help, export it as JSON, or check arguments without running a command. | | [`theseus login`](/reference/cli/login/) | Sign in and save the login. | | [`theseus logout`](/reference/cli/logout/) | Sign out on this machine, or end a shared environment login with --revoke. | | [`theseus note`](/reference/cli/note/) | Record a session note about a decision, attempt, learning or reversal, or list yours. | | [`theseus setup`](/reference/cli/setup/) | Sign in, choose your workspace and set up session notes. | | [`theseus status`](/reference/cli/status/) | Check your account and connection. | | [`theseus token`](/reference/cli/token/) | Create, list and revoke personal tokens for the Theseus API. | | [`theseus update`](/reference/cli/update/) | Install a verified release of the CLI. | | [`theseus version`](/reference/cli/version/) | Show the CLI's release version and content ID. | | [`theseus wait`](/reference/cli/wait/) | Wait until a changeset's newest run ends and its guide is ready. | | [`theseus webhooks`](/reference/cli/webhooks/) | Send Theseus events from the workspace's repositories to your own endpoint. | | [`theseus workspace`](/reference/cli/workspace/) | Show your workspaces, or switch the one this machine works in. | --- Source: https://docs.theseus.dev/cli/configuration/ # Configuration Setup options, local settings and scripting conventions for the Theseus CLI. This page covers the CLI settings you can change and how to call the CLI from scripts. Each command has its own page in the [CLI reference](/reference/cli/), such as [`theseus generate`](/reference/cli/generate/); `theseus help ` shows the help for your installed version. ## Advanced setup Run `theseus setup --help` for the options your installed version supports. `theseus setup` signs you in, chooses your workspace, installs the Theseus skill, and adds the [session-notes rule](/guides/session-notes/) to your repository. It installs no capture hooks. | Option | Use it to | | --- | --- | | `--workspace ` | Choose your workspace during sign-in | | `--api ` | Use an HTTPS or loopback API instead of the configured one | | `--json` | Print a structured result; interactive prompts still use the terminal | | `--skill ` | Install the skill for `claude`, `codex`, or both; `none` removes the copies setup installed | | `--no-prompt` | Install the named skill without signing in; requires `--skill` and cannot select a workspace | For example, to install the Theseus skill for both agents without any prompts: ```sh theseus setup --skill claude,codex --no-prompt ``` Inside a git repository, Apply also installs the [session-notes rule](/guides/session-notes/) in `AGENTS.md` and makes `CLAUDE.md` import it. Review and commit the files setup reports; setup never commits them. Unattended setup installs the rule too. Signing in does not change local repository instructions. ## Local configuration By default, the CLI stores its login and local state in `~/.theseus`. `THESEUS_HOME` moves that state to another directory; keep it private and writable by the agent. Choosing an empty directory also means there is no saved login there: sign in using the same `THESEUS_HOME`. Switch workspaces with `theseus workspace` rather than editing the state files. `THESEUS_TOKEN`, when set, takes precedence over the saved login. `THESEUS_API` selects the API for that environment credential (default `https://app.theseus.dev`). A full CLI login works for agent notes and other CLI commands. Never commit login files or token values. For an agent that only needs notes, create a personal token with **Send session notes** and **Read** access, then provide it as `THESEUS_TOKEN` through that agent's secret environment. **Send session notes** lets the note command report a note; **Read** lets `theseus note list` verify delivery. A personal token does not sign the rest of the CLI in or select a workspace. Give it access to the workspace and repositories where the agent works. If it can reach the same repository in more than one workspace, set `THESEUS_NOTE_WORKSPACE` to the intended workspace ID or slug. An ambiguous note stays queued until you set that variable and send another note. With an environment login, `theseus login` asks you to unset `THESEUS_TOKEN` and `THESEUS_API` before signing in, and workspace switching is unavailable. To repair a wrong account or workspace, update the personal credential at its source, or remove those variables and run `theseus login` followed by `theseus workspace`. Check `theseus status` for a full CLI login, or `theseus note list` for a personal token, in the agent's environment. `theseus logout --revoke` revokes an environment login for every instance using that credential; ordinary `theseus logout` does not remove it from the parent environment. Set `THESEUS_NO_UPDATE_NOTICES=1` to hide update reminders. `theseus generate` with no target compares the current branch against the remote's default branch. If your main branch is a different one, set it: ```sh git config theseus.mainBranch refs/heads/main ``` Push the base and head commits first: `theseus generate` reads the code from GitHub, not from your checkout. While you're signed in, the CLI reports command and update failures to us privately, so we can fix them without asking you for a report. A report holds the failure category, CLI and runtime versions, operating system, agent type, allowlisted error types and numeric code locations, and opaque report, account and workspace IDs. It never holds prompts, transcripts, source code, raw error messages, file paths or credentials, and sending it never slows your coding chat. To turn reports off, set `THESEUS_DIAGNOSTICS=off` in the environment that starts your terminal or coding app. Local troubleshooting logs stay available. The CLI records [session notes](/guides/session-notes/) when the agent submits a note. It no longer captures conversations or schedules transcript uploads. The capture-only `sync`, `schedule`, and `cloud` commands are removed. ## Scripts Commands that take `--json` print structured results on stdout and progress on stderr. Check the exit code as well as the JSON: | Exit code | Meaning | | --- | --- | | `0` | Success | | `1` | Failure; with `--json`, an `{"event":"error","code":…}` line says why | | `2` | Invalid arguments | | `8` | A `--timeout` passed first; the run keeps going on the server | | `130` | Stopped with Ctrl-C (`143` for SIGTERM); a run you were waiting on keeps going | Note delivery is an exception: sending a note can report a delivery problem on stderr and still exit zero. Verify receipt with `theseus note list`; see [Check delivery](/guides/session-notes/#check-delivery). To wait for a guide from a script: ```sh theseus wait example/project#42 --for ready --timeout 60 --json ``` It prints one line whose `outcome` is `ready`, `failed` or `pending`, with the changeset. To check whether the latest guide covers the PR's head, read `behind_head` from `theseus changeset status example/project#42 --json`. `theseus changeset threads example/project#42 --json` reads the review on the latest ready guide: each reviewer's current decision and rationale, every comment and reply with the code or change it points to, and `review_state`, which says whether each decision applies to the PR's current head. Add `--guide` to read an older guide, as in `theseus changeset threads example/project#42 --guide ver_01K6Z3M4N5P6Q7R8S9T0V1W2X3 --json`. Decisions are Theseus reviews, not GitHub approvals. If your CLI says reviews aren't available or rejects `--guide`, run `theseus update`. While waiting for a guide, the CLI keeps polling through temporary throttling (HTTP 429) and gateway failures (502, 503 and 504). They honor the server's `Retry-After` delay without extending the wait deadline. An expired wait still returns the last known state; the server run continues. `theseus help --json` includes JSON output schemas and structured action forms for scripts. A form marked `implicit: true` describes the default action without a subcommand: for example, `theseus note --kind learning "A contract changed"` uses the `add` form without writing `note add`. Error objects use hyphenated codes consistently, such as `insufficient-scope`; the HTTP API retains its own snake\_case codes. --- Source: https://docs.theseus.dev/reference/cli/change/ # theseus change Collect a snapshot of a change from your checkout or GitHub, or read one back. ``` Usage: theseus change collect [--base ] [--head ] theseus change collect-github-pr --repo --pr [--base ] theseus change collect-github-branch --repo --head [--base ] theseus change get ``` | Option | Value | When omitted | | --- | --- | --- | | `--base` | ref | Configured main branch | | `--head` | ref | Current branch for collect | | `--repo` | owner/name | Not set | | `--pr` | number | Not set | | Action | Argument | Options | | --- | --- | --- | | `get` | snapshot-id | None | | `collect` | None | `--base`, `--head` | | `collect-github-pr` | None | `--repo` (required), `--pr` (required), `--base` | | `collect-github-branch` | None | `--repo` (required), `--head` (required), `--base` | **Exit codes:** `0` Success; `1` Failure; `2` Invalid arguments.
Full command help and examples ``` Usage: theseus change collect [--base ] [--head ] theseus change collect-github-pr --repo --pr [--base ] theseus change collect-github-branch --repo --head [--base ] theseus change get ```
--- Source: https://docs.theseus.dev/reference/cli/changeset/ # theseus changeset Show where a changeset stands, its latest ready guide, or its review threads. ``` Usage: theseus changeset status [--json] theseus changeset show [--json] theseus changeset threads [--guide ] [--json] ``` | Option | Value | When omitted | | --- | --- | --- | | `--guide` | ver\_id | Latest ready guide | | `--json` | Switch | false | | Action | Argument | Options | | --- | --- | --- | | `status` | changeset | `--json` | | `show` | changeset | `--json` | | `threads` | changeset | `--guide`, `--json` | **JSON output:** status: API Changeset object; show: API Guide object; threads: object with changeset (API Changeset), guide (API Guide), review\_state (API review state), and every decision and comment of that guide. Errors: event="error", code, error; ambiguous errors include candidates. **Exit codes:** `0` Success; `1` Failure; `2` Invalid arguments.
Full command help and examples ``` Usage: theseus changeset status [--json] theseus changeset show [--json] theseus changeset threads [--guide ] [--json] Every form exits 0 on success. status where the changeset stands: its newest run and any error, its latest ready guide, the pull request's head and whether that guide covers it, and its URL. --json prints the API's Changeset object. show the latest ready guide: summary, unknowns, rollout steps and claim titles. --json prints the API's Guide object. With no ready guide yet, it fails with code not-ready. threads the human review feedback on the latest ready guide, or on --guide: each reviewer's current decision with its rationale, every comment and reply with where it points, the commit each decision was made on and whether it applies to the pull request's current head, and decisions on other guides. Decisions are advisory, not GitHub approvals. --json prints {changeset, guide, review_state, decisions, comments} with the API's objects, after reading every page. With no ready guide yet, it fails with code not-ready. Changesets: set_... its ID https://... its Theseus URL, or a GitHub pull request or branch URL owner/repo#42 a pull request owner/repo@feature a branch; when you also have a local branch of that name, the command lists both and you name one by its ID Errors exit 1 (2 for usage) and, with --json, print {"event":"error","code":...,"error":...}. Codes include not-found when no changeset you can read matches, ambiguous (with candidates [{id,path,kind,title,url}]) when several do, usage, login-required and unavailable. ```
--- Source: https://docs.theseus.dev/reference/cli/events/ # theseus events List the workspace's events from the last 30 days, to catch up after downtime. ``` Usage: theseus events list [--type ] [--repository ] [--since