This is the full developer documentation for Promptless # Doc Detective integration > Test documentation workflows against your actual product with Promptless and Doc Detective ## Overview [Section titled “Overview”](#overview) Docs describe how your product works. Every setup guide, UI walkthrough, CLI example, and API tutorial contains product assertions: this button exists, this command succeeds, this page appears, this link works. Promptless uses [Doc Detective](https://docs.doc-detective.com/) to make each of those assertions executable. Doc Detective is an open-source implementation of the [Docs as Tests](https://www.docsastests.com/docs-as-tests/concept/2024/01/09/intro-docs-as-tests.html) framework. That framework tests documentation against the real product experience, beyond proofreading it for style and checking it for broken links. Use Doc Detective in your docs repository when you want Promptless to keep tests current along with the prose. When a new feature changes the product, Promptless can document the change and add the tests that prove the documented workflow still works. When your repository uses Doc Detective, Promptless: * Creates Doc Detective tests when new documented workflows, UI paths, commands, or setup procedures are added * Updates existing Doc Detective tests when product changes make the old workflow stale * Reuses your existing Doc Detective config and test layout * Responds to CI failures on its documentation PRs, and updates the suggestion branch when the docs change caused the failure Executable tests are one of the tools behind [Audit and keep your docs healthy](/docs/for-docs/audit/keep-docs-healthy). They keep remediated procedures accurate as the product changes, so a workflow you just fixed doesn’t quietly go stale again. Note Doc Detective is an open-source documentation testing framework. You can view the core project at [doc-detective/doc-detective](https://github.com/doc-detective/doc-detective). The agent tooling Promptless uses is at [doc-detective/agent-tools](https://github.com/doc-detective/agent-tools). ## Set up Doc Detective [Section titled “Set up Doc Detective”](#set-up-doc-detective) If your repository already uses Doc Detective, Promptless writes and updates tests without any configuration. Any of these counts: a config file at the repository root, test specs, inline test statements, or a CI job that runs Doc Detective. If your repository doesn’t use Doc Detective yet, add a Doc Detective config file, such as `.doc-detective.json`, `.doc-detective.yaml`, or `.doc-detective.yml`, at the repository root. Set **Doc Detective config path (optional)** if your config file isn’t at the repository root or uses another name. Otherwise, leave it blank and Promptless looks for it. You need an admin role in your Promptless organization to edit the [Configuration page](https://app.gopromptless.ai/configuration). 1. On the **Doc collections** tab of the [Configuration page](https://app.gopromptless.ai/configuration), expand the doc collection. 2. Select **More filters (optional)**. 3. In **Doc Detective config path (optional)**, enter the repo-relative path to your Doc Detective config file, such as `config/doc-detective.json`. 4. Select **Save changes**. In YAML mode, the same setting is `doc_detective.config_path` on the doc collection. See the [Configuration reference](/docs/for-docs/reference/configuration-reference#doc-collections) for the full doc collection schema. ## Default behavior [Section titled “Default behavior”](#default-behavior) When your repository uses Doc Detective, Promptless handles tests this way by default: * **Test coverage:** Promptless writes or updates tests for the workflows a docs change touches and commits them in the same suggestion. * **Validation:** Promptless runs your configured syntax check, when you have one, before it opens the suggestion. A syntax check confirms that the test files are valid, not that the documented workflow works. * **Test runs:** Your tests run wherever you run Doc Detective, such as in CI on the docs PR. See [CI failure handling](#ci-failure-handling). * **Results:** Promptless records the checks it ran and their results in the suggestion description. Citations on the docs PR link changed passages to the source evidence behind them. Promptless writes tests against the test accounts and data your tests already use. It doesn’t invent credentials, URLs, or test data to make a test pass. To change these defaults, add an instruction to `PROMPTLESS.md` in your [Agent Knowledge Base](/docs/for-docs/get-the-most-out/agent-knowledge-base). For example, tell Promptless which kind of tests you prefer. Choose detected test statements, inline test statements (best for most people), a mix of the two, or standalone test files. Standalone files are ideal when editors clobber inline test statements. Promptless loads `PROMPTLESS.md` into every session. ## CI failure handling [Section titled “CI failure handling”](#ci-failure-handling) Doc Detective is most useful when it runs in CI with the rest of your documentation checks. When a GitHub check suite fails on an open Promptless docs PR, Promptless: 1. Resolves the failing PR back to the Promptless suggestion that created it. 2. Fetches the failing check runs and a preview of the logs. 3. Starts a follow-on investigation with the PR, failing check names, conclusions, and log preview. 4. Determines whether the suggestion caused the failure. If the suggestion caused the failure, Promptless updates the suggestion branch with the fix. If the failure is pre-existing or unrelated, Promptless keeps the suggestion scoped to its original work. If it finds a separate docs issue outside the suggestion’s scope, it can create separate work for that issue without expanding the original PR. ## See also [Section titled “See also”](#see-also) * [GitHub repos (docs as code)](/docs/for-docs/connect/doc-locations/github-repos#configuration), for every doc collection setting * [Configuration reference](/docs/for-docs/reference/configuration-reference#doc-collections), for the `doc_collections` schema * [Vale integration](/docs/for-docs/audit/standards-enforcement), to enforce prose style in the same suggestions * [Doc Detective documentation](https://docs.doc-detective.com/), for writing tests and running them in CI # Audit and keep your docs healthy > Find stale and inconsistent pages, restandardize legacy content, and restructure your information architecture using the Promptless capabilities you already have Keeping docs current covers the pages that already drifted as well as the pages that might drift soon. A large corpus accumulates stale steps, off-style prose, duplicate pages, and a structure that no longer matches how the product works. Promptless treats that backlog as documentation work like any other. The capabilities on these audit pages work together to find what’s wrong, fix it at scale, and keep it fixed. Most of these jobs lean on [Deep Analysis](/docs/for-docs/get-the-most-out/pay-down-docs-debt), which is heavier and slower than a routine trigger. A run can take several hours and produce many suggestions, so use it when the cleanup calls for that scope. ## Use cases [Section titled “Use cases”](#use-cases) Each recurring health job maps to the capabilities that handle it: | Problem | Capabilities that handle it | | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ | | You don’t know which pages in a large docs set are stale or inconsistent. | [Deep Analysis](#audit-existing-content-for-staleness), with its **Audit for consistency** template | | Legacy pages are accurate but follow an old pattern. | [Deep Analysis, Vale, and Doc Detective](#remediate-and-restandardize-legacy-pages) to rewrite the pages and keep them current | | The structure no longer matches what readers need. | [Deep Analysis and your redirects](#restructure-your-information-architecture) to move content without breaking links | ## Audit existing content for staleness [Section titled “Audit existing content for staleness”](#audit-existing-content-for-staleness) Before you can fix a large docs set, you need to know which pages are wrong. [Deep Analysis](/docs/for-docs/get-the-most-out/pay-down-docs-debt) handles this scope. It reviews your configured source repos and audits your existing docs for consistency, accuracy, and style compliance, then returns a coordinated set of suggestions. Its **Audit for consistency** template reviews a collection for consistent terminology, formatting, and structure. The audit produces reviewable diffs, so its findings arrive as fixes you can accept or edit. ## Remediate and restandardize legacy pages [Section titled “Remediate and restandardize legacy pages”](#remediate-and-restandardize-legacy-pages) Remediation is where most brownfield debt lives. Examples include pages that are accurate but written against an old pattern, or a section that needs rewriting to match stronger examples elsewhere. * Use Deep Analysis to **refactor or rewrite a whole section**. Its **Refactor a bad section of docs** template improves an existing section using another set of docs as the model. Divergent legacy pages then converge on one pattern. * Use [Vale integration](/docs/for-docs/audit/standards-enforcement) to hold that pattern going forward. When Vale is configured for a collection, Promptless lints prose before creating suggestions and fixes findings according to your config’s alert level. Restandardized pages then stay on-style through later edits. * Use [Doc Detective](/docs/for-docs/audit/doc-detective) to keep the procedures on those pages accurate. When your repository uses Doc Detective, the procedures that remediation adds or rewrites become executable tests. Promptless updates those tests as the product changes. A stale workflow then fails a test wherever coverage exists. Note By default, each suggestion waits in the Promptless dashboard for you to review and refine it. To review in pull requests or merge requests instead, turn on **Auto-create PRs**. Set it when you [submit the request](/docs/for-docs/get-the-most-out/pay-down-docs-debt#submit-a-request). You can also set it in your [publishing policies](/docs/for-docs/reference/configuration-reference#policies). Check the setting before a bulk run across legacy pages. ## Restructure your information architecture [Section titled “Restructure your information architecture”](#restructure-your-information-architecture) Sometimes the pages are fine but the shape is wrong: sections have grown organically, and the structure no longer matches what readers need. Restructuring is a coordinated move in two parts: * Use Deep Analysis to **plan and execute the content moves**. Restructuring a section to match a new pattern is one of its core use cases. It plans the work across pages before any edits land. * [Preserve URLs and redirects](/docs/for-docs/migrate/preserve-urls-and-redirects) so the restructure keeps inbound links working. When a suggestion moves or renames pages, it adds a permanent redirect for each changed URL. It also points the collection’s links at the new pages. Crawl for broken links before and after the move. ## Where to start [Section titled “Where to start”](#where-to-start) [Pay down docs debt with Deep Analysis](/docs/for-docs/get-the-most-out/pay-down-docs-debt)Submit a large audit, refactor, or restructure request that produces a coordinated set of suggestions [Vale integration](/docs/for-docs/audit/standards-enforcement)Enforce prose style standards so restandardized pages stay on-style [Doc Detective](/docs/for-docs/audit/doc-detective)Turn the procedures remediation adds or rewrites into executable checks and keep them current as the product changes [Preserve URLs and redirects](/docs/for-docs/migrate/preserve-urls-and-redirects)Keep inbound links working when a restructure changes your page URLs Planning a large audit, remediation, or restructure and want help scoping it? Contact . # Vale integration > Enforce prose style standards in documentation suggestions with Vale ## Overview [Section titled “Overview”](#overview) [Vale](https://vale.sh/) is an open-source prose linter that enforces style rules across documentation. When Vale is configured for a doc collection, Promptless lints the prose it writes and fixes style violations before they reach your review queue. Suggestions then match your style guide from the start, with less back-and-forth during review. Promptless can also [propose Vale rules from your style guidance](#propose-vale-rules-from-your-style-guidance). This guide covers creating a Vale config, connecting it to a doc collection, and choosing how strictly Promptless fixes findings. Note Vale is one of the tools behind [Audit and keep your docs healthy](/docs/for-docs/audit/keep-docs-healthy). It holds restandardized pages on-style so legacy content doesn’t drift again after you fix it. ## Before you start [Section titled “Before you start”](#before-you-start) * An admin role in your Promptless organization, to set the Vale config path on the [Configuration page](https://app.gopromptless.ai/configuration). ## Create a Vale config [Section titled “Create a Vale config”](#create-a-vale-config) If you don’t have a Vale configuration yet, create a `.vale.ini` file in your docs repository root: ```ini StylesPath = .vale/styles MinAlertLevel = warning [*.md] BasedOnStyles = Vale ``` This minimal config enables Vale’s built-in rules. For more comprehensive style enforcement, add external packages: ```ini StylesPath = .vale/styles MinAlertLevel = warning Packages = Microsoft, write-good [*.md] BasedOnStyles = Vale, Microsoft, write-good ``` See the [Vale documentation](https://vale.sh/docs/) for detailed configuration options and available style packages. ## Connect Vale to a doc collection [Section titled “Connect Vale to a doc collection”](#connect-vale-to-a-doc-collection) Promptless turns on Vale linting automatically when it detects a Vale configuration file in your docs repository. To use a different config file, set the path yourself. ### Automatic detection [Section titled “Automatic detection”](#automatic-detection) During doc collection setup, Promptless scans the collection for a Vale configuration file matching any of the five names Vale recognizes: `.vale`, `_vale`, `vale.ini`, `.vale.ini`, or `_vale.ini`. When Promptless finds one, Vale linting activates with that config. When the scan finds more than one candidate, Promptless uses the config in the shallowest directory within the collection’s scope. It breaks ties by the filename order above. ### Set the config path manually [Section titled “Set the config path manually”](#set-the-config-path-manually) 1. On the **Doc collections** tab of the [Configuration page](https://app.gopromptless.ai/configuration), expand the doc collection. 2. Select **More filters (optional)**. 3. In **Vale config path**, enter the repo-relative path to your Vale configuration file, such as `.vale.ini` or `docs/.vale.ini`. 4. Select **Save changes**. In YAML mode, set the same path as the collection’s `vale_config_path`. ## How Promptless runs Vale [Section titled “How Promptless runs Vale”](#how-promptless-runs-vale) After drafting prose content, Promptless: 1. **Syncs packages.** Downloads the external style packages your config references, such as Microsoft, Google, or write-good, when they aren’t already vendored in your repository. Promptless downloads them the first time it lints during a session. 2. **Lints prose.** Runs Vale on every prose file it creates or substantially edits. 3. **Applies your alert level.** Reads your config’s `MinAlertLevel` and uses it to decide which findings to fix. See [Severity handling](#severity-handling). 4. **Matches your CI.** Reads the Vale job in your repository’s GitHub Actions workflows and reproduces that invocation on the changed files. The run confirms the files pass before Promptless creates the suggestion. Vale runs only on prose content. Code blocks, commands, configuration, frontmatter, schemas, and tables are excluded from linting. Vale errors can still slip through or arise from later edits. When Vale fails in a GitHub Actions workflow on a Promptless PR, Promptless analyzes the failure and pushes fixes to the branch. The same handling covers other CI checks, such as broken-link detection and [Doc Detective](/docs/for-docs/audit/doc-detective) tests. ## Severity handling [Section titled “Severity handling”](#severity-handling) Vale classifies violations into three severity levels: | Severity | Behavior | | -------------- | -------------------------------------------------------------------------------------- | | **error** | Blocking. Promptless fixes these before creating the suggestion. | | **warning** | Advisory. Promptless evaluates against your existing style and fixes when appropriate. | | **suggestion** | Advisory. Promptless considers these but may preserve intentional style choices. | How Promptless treats findings depends on whether your config sets `MinAlertLevel`. ### When MinAlertLevel is set [Section titled “When MinAlertLevel is set”](#when-minalertlevel-is-set) Setting `MinAlertLevel` sets the severity bar your docs hold to. Promptless fixes every finding Vale reports at or above that level, including warnings and suggestions. That mirrors what your Vale CI reports, so Promptless resolves findings you’d otherwise see as review comments before the suggestion reaches you. For example, with `MinAlertLevel = suggestion`, Promptless fixes every error, warning, and suggestion Vale reports. To have Promptless fix fewer findings, raise the level, for example to `warning` or `error`. ### When MinAlertLevel is unset [Section titled “When MinAlertLevel is unset”](#when-minalertlevel-is-unset) When your config doesn’t set `MinAlertLevel`, Promptless treats error-severity rules as hard constraints. It treats warning and suggestion rules as guidance and balances them against the established voice and conventions in your docs. ## Propose Vale rules from your style guidance [Section titled “Propose Vale rules from your style guidance”](#propose-vale-rules-from-your-style-guidance) During doc collection analysis, Promptless reads your collection’s style guidance and proposes Vale rules that capture it. This runs on its own, without a request from you. Promptless analyzes your collection when you connect a docs repository and each time it re-analyzes the collection. The rules go two places: * Promptless records them under a `style/vale/` area in your Agent Knowledge Base. * When Promptless can place the rules in your documentation repository, it proposes them as a suggestion. The suggestion carries a branch and a pull or merge request, and you review it before anything merges. Enforcement lints your prose against the Vale rules you already have. This capability writes the rules themselves from your style guidance. ### Supplement or bootstrap your Vale setup [Section titled “Supplement or bootstrap your Vale setup”](#supplement-or-bootstrap-your-vale-setup) When your collection already has a Vale configuration, Promptless supplements it with the proposed rules. When your collection has no Vale configuration, Promptless can bootstrap one so the rules have a place to run. A bootstrapped config arrives inside the same suggestion, so nothing lands in your repository without your review. Promptless checks each proposed rule against the Vale version your CI pins. When a rule needs a newer version, the suggestion raises your pin in the same branch or rewrites the rule for the pinned version. ### How guidance maps to severity [Section titled “How guidance maps to severity”](#how-guidance-maps-to-severity) Promptless sets each proposed rule’s severity from how firmly your collection states the guidance: * Guidance your style guide states becomes an enforced rule at error or warning severity. * A strong convention observed across your docs becomes an advisory rule at suggestion severity. For how Promptless acts on each severity once the rules run, see [Severity handling](#severity-handling). ### You decide what gets enforced [Section titled “You decide what gets enforced”](#you-decide-what-gets-enforced) You review the proposed rules in the suggestion and decide whether to promote an advisory suggestion rule to an enforced error or warning rule. Promptless doesn’t promote a rule on its own. ## See also [Section titled “See also”](#see-also) * [Audit and keep your docs healthy](/docs/for-docs/audit/keep-docs-healthy), for how Vale fits with Deep Analysis and Doc Detective * [Agent Knowledge Base](/docs/for-docs/get-the-most-out/agent-knowledge-base), where Promptless records proposed Vale rules * [GitHub repos (docs as code)](/docs/for-docs/connect/doc-locations/github-repos#configuration), for every doc collection setting * [Doc Detective integration](/docs/for-docs/audit/doc-detective), to test the procedures your docs describe # Connection health & troubleshooting > Check the health of your Promptless integrations, recognize when a connection has gone stale, and reconnect or refresh it so triggers, context, and publishing keep working. Every integration you connect depends on an authorization that Promptless holds on your behalf. When that authorization lapses or lacks a permission, the work that depends on it stops. If your organization has an [escalation channel configured](/docs/for-docs/reference/integrations#proactive-notifications), Promptless reports the problem there. Otherwise, the first sign is usually work that isn’t happening. This page lists those signs, what causes each one, and how to restore the connection. Whenever an integration seems to have stopped working, start on the [integrations page](https://app.gopromptless.ai/integrations) in the Promptless dashboard. Each integration’s card shows a health label: | Label | What it means | What to do | | ------------------- | ---------------------------------------------------------------------------------------------------- | -------------------------------------------------------- | | **Connected** | The latest check succeeded. | No action needed. | | **Problem** | Promptless couldn’t verify the integration, or the service was unreachable, during the latest check. | No action needed. Promptless checks again automatically. | | **Needs reconnect** | The authorization expired or was disconnected. | Reconnect the integration from its card. | Note The integrations page and its reconnect, refresh, and disconnect controls are available to organization administrators. If you’re not an admin, flag the integration to your Promptless administrator so they can check and reconnect it. ## Symptom: An expected suggestion never appeared [Section titled “Symptom: An expected suggestion never appeared”](#symptom-an-expected-suggestion-never-appeared) ### Cause: The trigger integration lost access [Section titled “Cause: The trigger integration lost access”](#cause-the-trigger-integration-lost-access) Triggers are how events reach Promptless. When a trigger integration loses access, Promptless stops receiving its events, so no new suggestions come from that source. The rest of your setup can look healthy while this happens. ### Solution: Reconnect the trigger integration [Section titled “Solution: Reconnect the trigger integration”](#solution-reconnect-the-trigger-integration) 1. On the [integrations page](https://app.gopromptless.ai/integrations), find the card for the integration that sends the trigger. 2. If the card shows **Needs reconnect**, select its reconnect action and approve access with the provider. Tip During a pilot, a healthy stream of suggestions is a signal that Promptless is plugged into the right parts of your workflow. If that stream dries up, confirm your trigger integrations are still connected before looking elsewhere. See [Run a pilot](/docs/for-docs/start-here/run-a-pilot) for more on reading suggestion volume. ## Symptom: A trigger type is disabled, or a saved trigger appears inactive [Section titled “Symptom: A trigger type is disabled, or a saved trigger appears inactive”](#symptom-a-trigger-type-is-disabled-or-a-saved-trigger-appears-inactive) ### Cause: The trigger’s provider isn’t connected [Section titled “Cause: The trigger’s provider isn’t connected”](#cause-the-triggers-provider-isnt-connected) In the configuration editor, a provider’s trigger type is available only while that provider is connected. Its saved triggers show as inactive until then. See [Provider connection and trigger availability](/docs/for-docs/reference/configuration-reference#provider-connection-and-trigger-availability). ### Solution: Connect the provider [Section titled “Solution: Connect the provider”](#solution-connect-the-provider) * On the [integrations page](https://app.gopromptless.ai/integrations), connect the trigger’s provider. The trigger type becomes available and its saved triggers become active again. See [Connect a provider before you add its triggers](/docs/for-docs/connect/triggers#connect-a-provider-before-you-add-its-triggers). ## Symptom: No repositories appear when you add a doc collection [Section titled “Symptom: No repositories appear when you add a doc collection”](#symptom-no-repositories-appear-when-you-add-a-doc-collection) When you add a doc collection, the repository picker shows “No connected repository matches that.” The picker lists only repositories that your GitHub or GitLab connection can reach. Promptless needs the same access to open documentation pull requests. ### Cause: GitHub or GitLab isn’t connected [Section titled “Cause: GitHub or GitLab isn’t connected”](#cause-github-or-gitlab-isnt-connected) The picker lists none of your repositories. ### Solution: Connect your Git provider [Section titled “Solution: Connect your Git provider”](#solution-connect-your-git-provider) 1. On the [integrations page](https://app.gopromptless.ai/integrations), connect GitHub or GitLab. 2. Return to the doc collection and select the repository. For the full flow, see [GitHub repos (docs as code)](/docs/for-docs/connect/doc-locations/github-repos#frequently-asked-questions) or [GitLab projects](/docs/for-docs/connect/doc-locations/gitlab-projects). ### Cause: The connection can’t reach that repository [Section titled “Cause: The connection can’t reach that repository”](#cause-the-connection-cant-reach-that-repository) Other repositories appear in the picker, but not the one you want. ### Solution: Grant access to the repository [Section titled “Solution: Grant access to the repository”](#solution-grant-access-to-the-repository) * For GitHub, add the repository to the Promptless GitHub App’s access in your GitHub organization settings. See [Manage repository access](/docs/for-docs/reference/integrations/github#manage-repository-access). * For GitLab, connect a group access token from a group that contains the project. See [Token scope considerations](/docs/for-docs/reference/integrations/gitlab#token-scope-considerations). ## Symptom: Slack link previews, MCP result DMs, or private channel listing stopped working [Section titled “Symptom: Slack link previews, MCP result DMs, or private channel listing stopped working”](#symptom-slack-link-previews-mcp-result-dms-or-private-channel-listing-stopped-working) ### Cause: The Slack connection is missing a newer permission [Section titled “Cause: The Slack connection is missing a newer permission”](#cause-the-slack-connection-is-missing-a-newer-permission) Some Slack features need permissions that Promptless added after your workspace connected. When your workspace is missing one, the Slack card shows a **Grant additional Slack permissions** callout that names the permissions to add. See [Slack troubleshooting](/docs/for-docs/reference/integrations/slack#troubleshooting) for the permissions behind link previews, MCP result DMs, and private channel listing. ### Solution: Grant the added permissions [Section titled “Solution: Grant the added permissions”](#solution-grant-the-added-permissions) 1. On the Slack card, in the **Grant additional Slack permissions** callout, select **Update connection**. 2. In Slack, approve the added permissions. ## Symptom: A Jira reply or comment from Promptless didn’t post [Section titled “Symptom: A Jira reply or comment from Promptless didn’t post”](#symptom-a-jira-reply-or-comment-from-promptless-didnt-post) ### Cause: Atlassian refuses the service account’s credential [Section titled “Cause: Atlassian refuses the service account’s credential”](#cause-atlassian-refuses-the-service-accounts-credential) When the Atlassian card’s service-account health badge reads **Not working**, Atlassian is refusing the service account’s credential. Promptless then can’t post as its bot identity. The service-account credential is separate from the Atlassian OAuth connection, so reconnecting Atlassian leaves the credential unchanged. ### Solution: Re-attach the service account [Section titled “Solution: Re-attach the service account”](#solution-re-attach-the-service-account) * On the [integrations page](https://app.gopromptless.ai/integrations), on the Atlassian card, re-enter the service account’s Client ID and secret. See [Atlassian service account](/docs/for-docs/reference/integrations/atlassian#atlassian-service-account) for the full setup. ### Cause: No service account is attached and Promptless lacks permission to comment [Section titled “Cause: No service account is attached and Promptless lacks permission to comment”](#cause-no-service-account-is-attached-and-promptless-lacks-permission-to-comment) With no service account attached, Promptless comments as the person who connected Atlassian only when your Knowledge Base or the request explicitly permits it. Otherwise it skips the comment and sends the result to your other notification channels. A session started by a `promptless` label or a configured trigger also posts no comment when there’s no documentation change. ### Solution: Attach a service account or permit comments [Section titled “Solution: Attach a service account or permit comments”](#solution-attach-a-service-account-or-permit-comments) * Attach an [Atlassian service account](/docs/for-docs/reference/integrations/atlassian#atlassian-service-account), or explicitly permit comments in your Knowledge Base or the request. See [Reply on the ticket](/docs/for-docs/connect/triggers/jira#reply-on-the-ticket). ## Symptom: Suggestions draw on less context than usual [Section titled “Symptom: Suggestions draw on less context than usual”](#symptom-suggestions-draw-on-less-context-than-usual) ### Cause: A context source lost access [Section titled “Cause: A context source lost access”](#cause-a-context-source-lost-access) [Context sources](/docs/for-docs/connect/context-sources) are read-only and optional. When one loses access, Promptless still creates suggestions, but without the background that source provided. ### Solution: Reconnect the context source [Section titled “Solution: Reconnect the context source”](#solution-reconnect-the-context-source) 1. On the [integrations page](https://app.gopromptless.ai/integrations), find the context source’s card. 2. If the card shows **Needs reconnect**, select its reconnect action and approve access with the provider. ## For more information [Section titled “For more information”](#for-more-information) * Contact the Promptless team at if a card doesn’t show a reconnect option or reconnecting doesn’t resolve the problem. Also reach out if you’re unsure which integration is at fault. See [Get support](/docs/for-docs/reference/getting-help) for every way to get in touch. * To retire a connection, disconnect the integration from its card on the [integrations page](https://app.gopromptless.ai/integrations). Disconnecting immediately revokes Promptless’s access to that service. For how Promptless accesses and retains data from connected services, see [Data handling and classification](/docs/for-docs/security/data-handling-and-classification). # Context sources > Connect read-only context sources so Promptless draws on the tools where your team already keeps product knowledge when it drafts documentation suggestions. Context sources are integrations that give Promptless read-only access to the tools where your team keeps product knowledge. These include issue trackers, wikis, and shared documents. A code change shows what changed. The issue, spec, or design doc behind it often explains why, and sets the names and limits the docs should use. Promptless reads that material while it drafts a documentation suggestion. Context sources are optional. Without them, Promptless still creates suggestions from the triggering change and your existing docs. Note Context sources are one-way. Promptless reads from these services and never writes to them through a context source. Your Jira issues, Linear issues, Confluence pages, and other content stay unchanged. ## Use cases [Section titled “Use cases”](#use-cases) Each context source answers a question the code change alone can’t: | When the answer lives in… | Connect | Promptless then | | ------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | | An issue that records the requirements, such as a 10,000-row import cap or a plan restriction | [Jira](/docs/for-docs/connect/context-sources/jira) or [Linear](/docs/for-docs/connect/context-sources/linear) | Reads the issue the pull request references, finds related issues, and carries the requirements into the suggestion. | | A wiki page of team conventions, such as the pagination parameter names every API endpoint uses | [Confluence](/docs/for-docs/connect/context-sources/confluence) | Finds the page and documents the new feature with the same conventions. | | A spec or PRD that settles a feature’s official name, limits, and rationale, such as a “Rate Limiting v2” doc | [Notion](/docs/for-docs/connect/context-sources/notion), [Google Drive](/docs/for-docs/connect/context-sources/google-drive), or [Slite](/docs/for-docs/connect/context-sources/slite) | Reads the spec the pull request links to, or finds it by search, and reuses its exact names, numbers, and reasoning. | Each context source page walks through a full example. ## How context sources work [Section titled “How context sources work”](#how-context-sources-work) When a trigger starts documentation work, Promptless reads the triggering change and any issue, page, or file it links to in a connected source. It also searches your connected sources for related material, then drafts the suggestion with what it finds. ![Diagram of triggers and optional context sources feeding Promptless, which proposes updates to your doc collections](/mermaid/how-it-works.svg) ## Available context sources [Section titled “Available context sources”](#available-context-sources) Each context source has its own page for connecting and scoping it: [Linear](/docs/for-docs/connect/context-sources/linear)Read Linear issues and projects for the intent behind a code change [Jira](/docs/for-docs/connect/context-sources/jira)Read referenced Jira issues and search related issues with JQL [Confluence](/docs/for-docs/connect/context-sources/confluence)Search Confluence spaces for documentation standards, terminology, and architectural decisions [Notion](/docs/for-docs/connect/context-sources/notion)Search Notion pages and databases for product specs, internal documentation, and team knowledge [Google Drive](/docs/for-docs/connect/context-sources/google-drive)Search Google Drive and read Docs, Sheets, and Slides for product specs, internal notes, and reference material [Slite](/docs/for-docs/connect/context-sources/slite)Search Slite notes for internal documentation, product specs, and team knowledge To request another context source, contact . ## Configure context sources [Section titled “Configure context sources”](#configure-context-sources) Connect each source on the [Integrations page](https://app.gopromptless.ai/integrations). Promptless can read a source as soon as it’s connected, up to everything the connected account can reach. To narrow a source to specific projects, spaces, teams, databases, drives, or folders, scope it on the **Context sources** tab of the [Configuration page](https://app.gopromptless.ai/configuration). The tab edits the `context_sources` section of your `promptless.yaml` file. A source with no scope, or no entry at all, stays fully readable. Each context source page shows how to scope that source, and the [Configuration Reference](/docs/for-docs/reference/configuration-reference#context-sources) lists every field. ## Data privacy and security [Section titled “Data privacy and security”](#data-privacy-and-security) Context sources follow the same data handling as Promptless’s other integrations. See [Data handling and classification](/docs/for-docs/security/data-handling-and-classification). Real-time queries only Promptless doesn’t store your organization’s data from context sources. It queries each source’s API when a documentation task needs it, and reads only the information that task requires. Some sources cache results briefly during a documentation session, then discard them. Secure authentication Context sources connect through OAuth 2.0, except Slite, which connects with an API key. Every connection: * Reads with the permissions of the account that authorized it * Encrypts data in transit with TLS 1.2 or higher * Uses token-based access that you can revoke at any time # Confluence > Connect Confluence as a read-only context source so Promptless reuses your team's existing conventions, terminology, and architectural decisions in documentation suggestions. Tip You can connect and scope this context source by hand as this page describes. You can also ask Promptless in Slack or Microsoft Teams to do it for you. For example, “@Promptless scope the Confluence context source to my Engineering space.” See [Ask Promptless to update your configuration](/docs/for-docs/get-the-most-out/ask-promptless-to-update-config). ## Overview [Section titled “Overview”](#overview) Connect Confluence as a context source so Promptless writes new documentation with the conventions, terminology, and decisions your team already recorded there. While Promptless drafts a suggestion, it searches your Confluence spaces and reads the pages that match, such as: * Documentation standards for style, terminology, and page structure * Technical specifications, design decisions, and architecture notes * Internal processes and guidelines Confluence access is read-only. Promptless queries Confluence in real time when a documentation task needs it, and doesn’t store your Confluence content. It never creates, updates, or deletes pages. ### Example [Section titled “Example”](#example) A developer merges a GitHub PR that adds a `/v2/exports` endpoint to your public API. Your team keeps its API conventions on an “API Guidelines” page in Confluence. That page mandates cursor-based pagination, the `limit` and `starting_after` parameter names, and a standard error-envelope format. When Promptless picks up the merged PR, it searches your Confluence spaces and reads the API Guidelines page. Its suggestion documents the endpoint’s pagination and errors the way every other endpoint in your API reference does. It uses the same parameter names, envelope shape, and structure. ## Before you start [Section titled “Before you start”](#before-you-start) * An admin role in your Promptless organization, to connect Atlassian and edit the [Configuration page](https://app.gopromptless.ai/configuration). ## Connect Confluence [Section titled “Connect Confluence”](#connect-confluence) Promptless connects to Confluence through Atlassian. Skip this section if Atlassian is already connected on the [Integrations page](https://app.gopromptless.ai/integrations). One Atlassian Cloud connection covers Jira, Confluence, or both. You need an admin role in your Promptless organization to connect it. Promptless reads Jira and Confluence with the permissions of the Atlassian account that approves the connection. If you attach an [Atlassian service account](/docs/for-docs/reference/integrations/atlassian#atlassian-service-account), Promptless uses it for Jira instead. To connect a [dedicated Atlassian account](/docs/for-docs/reference/integrations/atlassian#provision-an-atlassian-account-for-promptless), log in to Atlassian as that account first. 1. On the Promptless [Integrations](https://app.gopromptless.ai/integrations) page, select **Connect Atlassian**. 2. Select **Jira**, **Confluence**, or both, and select **Continue to Atlassian**. Promptless requests only the permissions for the products you select. 3. If Atlassian shows its login screen, log in with the account you want Promptless to use. ![Atlassian Login Screen](https://promptless-customer-doc-assets.s3.amazonaws.com/docs-images/org_2lvkgU9erOFxYhtEVVC0ymPrPdF/aab15aef-2759-42e6-93ec-d4c090526273-jira-atlassian-login.png) 4. On the OAuth consent screen, review the permissions Promptless requests. For what each scope is for, see [Permissions required](/docs/for-docs/reference/integrations/atlassian#permissions-required). ![Jira OAuth Consent Screen](https://promptless-customer-doc-assets.s3.amazonaws.com/docs-images/org_2lvkgU9erOFxYhtEVVC0ymPrPdF/aab15aef-2759-42e6-93ec-d4c090526273-jira-oauth-consent.png) 5. Select **Accept**. If the consent screen shows no **Accept** option, your Atlassian account might not have the required permissions. Ask your Jira administrator to connect, or [invite them to Promptless](/docs/for-docs/reference/account-management). 6. On the Promptless [Integrations](https://app.gopromptless.ai/integrations) page, confirm the connection on the Atlassian card. To manage Promptless’s access later, open Atlassian and go to your avatar > **Account settings** > **Connected apps**. ![Atlassian Connected Apps Management](https://promptless-customer-doc-assets.s3.amazonaws.com/docs-images/org_2lvkgU9erOFxYhtEVVC0ymPrPdF/aab15aef-2759-42e6-93ec-d4c090526273-jira-connected-apps.png) If Confluence searches later fail with a `401 Unauthorized` scope error, the connection is missing the Confluence search scopes. Reconnect Atlassian to grant them. See [Permissions required](/docs/for-docs/reference/integrations/atlassian#permissions-required). ## Limit Promptless to specific spaces [Section titled “Limit Promptless to specific spaces”](#limit-promptless-to-specific-spaces) Promptless can search every space the connected Atlassian account can see. To keep it to the spaces that hold relevant material, scope the Confluence context source: 1. On the **Context sources** tab of the [Configuration page](https://app.gopromptless.ai/configuration), expand the Confluence source. If it isn’t listed, select **Add a context source**, and then select **Confluence**. 2. In **Which Confluence spaces should Promptless read?**, add the key of each space. 3. Select **Save changes**. For a new source, select **Add context source**. In YAML, the scope is the `space_keys` list on a `confluence` entry: ```yaml context_sources: confluence: source_type: confluence space_keys: - ENGINEERING - PRODUCT ``` An entry with no space keys, or no entry, gives Promptless every space the account can see. For every context source field, see the [Configuration Reference](/docs/for-docs/reference/configuration-reference#context-sources). ## See also [Section titled “See also”](#see-also) * [Atlassian integration](/docs/for-docs/reference/integrations/atlassian), for the OAuth scopes Promptless requests and how to connect a dedicated Atlassian account * [Jira](/docs/for-docs/connect/context-sources/jira), to read the issues behind a change through the same Atlassian connection * [Context sources](/docs/for-docs/connect/context-sources), to compare every context source Promptless supports # Google Drive > Connect Google Drive as a read-only context source so Promptless reads Docs, Sheets, and Slides for the specs and rationale behind a change. Tip You can connect and scope this context source by hand as this page describes. You can also ask Promptless in Slack or Microsoft Teams to do it for you. For example, “@Promptless scope the Google Drive context source to my Product shared drive.” See [Ask Promptless to update your configuration](/docs/for-docs/get-the-most-out/ask-promptless-to-update-config). ## Overview [Section titled “Overview”](#overview) Connect Google Drive as a context source so Promptless reuses the specs, numbers, and rationale your team keeps in Google Docs, Sheets, and Slides. While Promptless drafts a suggestion, it can: * Search files by name and full text across My Drive and shared drives. * Read a file’s content: Google Docs as Markdown, Sheets as CSV, and Slides as plain text. * Resolve Google Drive and Google Docs URLs that a trigger references. When a linked file isn’t accessible to the connected account but is publicly shared, Promptless reads it as a public web page. Promptless reads only the files the connected Google account can read, and you can narrow that further. See [Connect Google Drive](#connect-google-drive) and [Limit Promptless to specific shared drives or folders](#limit-promptless-to-specific-shared-drives-or-folders). Google Drive access is read-only. Promptless connects with read-only Drive scopes and never creates, updates, or deletes files. It queries Drive in real time when a documentation task needs it, and doesn’t store your Drive content. It caches results briefly during a documentation session, then discards them. ### Example [Section titled “Example”](#example) A developer merges a GitHub PR that lowers the default API rate limit from 1,000 to 600 requests per minute. A code comment in the PR links to the “Rate Limiting v2” design doc in Google Docs. Promptless resolves the linked doc and reads the rollout thresholds and the reasoning behind the new limit. Its update to the rate-limit reference page reuses those exact numbers and that rationale. ## Before you start [Section titled “Before you start”](#before-you-start) * An admin role in your Promptless organization, to connect Google Drive and edit the [Configuration page](https://app.gopromptless.ai/configuration). ## Connect Google Drive [Section titled “Connect Google Drive”](#connect-google-drive) The Google account that authorizes the connection decides what Promptless can read. For least-privilege access, connect through a dedicated Google account that acts as a service account for Promptless. Promptless then reads only what you share with that account. 1. Optional. Create a dedicated Google account for Promptless. 2. Optional. Share with the dedicated account only the shared drives and folders you want Promptless to read. 3. On the [Integrations page](https://app.gopromptless.ai/integrations), select **Connect Google Drive**. 4. In Google, authorize read-only access with the account you want Promptless to use. 5. On the Google Drive card, check that the header names the account you intended, with its email address under its name. If the header shows no account, select **Check access** on the card, or reconnect the integration. 6. Check that the card lists only the shared drives and folders you expect Promptless to read. ## Limit Promptless to specific shared drives or folders [Section titled “Limit Promptless to specific shared drives or folders”](#limit-promptless-to-specific-shared-drives-or-folders) Promptless can read everything the connected account can access. To point Promptless at specific shared drives or folders, scope the Google Drive context source. For example, scope it to your product team’s shared drive or a folder of current-quarter specs: 1. On the **Context sources** tab of the [Configuration page](https://app.gopromptless.ai/configuration), expand the Google Drive source. If it isn’t listed, select **Add a context source**, and then select **Google Drive**. 2. In **Which Google Drive shared drives should Promptless read?**, add each shared drive. 3. Optional. In **Specific folders (optional)**, add individual folders. 4. Select **Save changes**. For a new source, select **Add context source**. In YAML, the scope is the `drive_ids` and `folder_ids` lists on an entry with `source_type: google_drive`. An entry’s key uses hyphens, such as `google-drive`: ```yaml context_sources: google-drive: source_type: google_drive drive_ids: - 0AExampleDriveIdUk9PVA folder_ids: - 1BExampleFolderIdXyZ ``` An entry with no drive or folder IDs, or no entry, gives Promptless everything the connected account can read. For every context source field, see the [Configuration Reference](/docs/for-docs/reference/configuration-reference#context-sources). ## See also [Section titled “See also”](#see-also) * [Notion](/docs/for-docs/connect/context-sources/notion), to read specs your team keeps in Notion pages and databases * [Connection health](/docs/for-docs/connect/connection-health), to check and restore a context source that lost access * [Context sources](/docs/for-docs/connect/context-sources), to compare every context source Promptless supports # Jira > Connect Jira as a read-only context source so Promptless reads the issues behind a change for requirements and business context. Tip You can connect and scope this context source by hand as this page describes. You can also ask Promptless in Slack or Microsoft Teams to do it for you. For example, “@Promptless add Jira as a context source limited to my DOCS and ENG projects.” See [Ask Promptless to update your configuration](/docs/for-docs/get-the-most-out/ask-promptless-to-update-config). ## Overview [Section titled “Overview”](#overview) Connect Jira as a context source so Promptless documents what a feature is meant to do. Your team records those requirements and acceptance criteria on its Jira issues. Promptless reads Jira in three ways: * When a GitHub PR or another trigger references a Jira issue, such as `PROJ-123`, Promptless reads that issue. This starts as soon as Jira is connected. * Promptless runs JQL (Jira Query Language) searches for related issues, epics, and dependencies. * When a task names a Jira version by its numeric ID, Promptless reads that version before it searches the version’s issues. For example, a release-notes request can name a fix version. Promptless gets the version’s name, project, release state, dates, and counts of the issues fixed in or affected by it. From each issue, Promptless reads: * Summary and description * Status, type, priority, and resolution * Labels, components, and affected and fix versions * Parent, subtasks, and linked issues * Comments * Organization-defined custom fields, such as a `Documentation` field Promptless reads only what the connected Jira account can see. It queries Jira in real time when a documentation task needs it, and doesn’t store your Jira data. Reading context never creates, updates, or deletes an issue. Note Jira is also a trigger source. Through the [Jira trigger](/docs/for-docs/connect/triggers/jira), Promptless starts work from an issue and replies on it. On request, Promptless also creates Jira issues. See [Create a Jira issue on request](/docs/for-docs/reference/integrations/atlassian#create-a-jira-issue-on-request). Both are write capabilities, separate from the read-only context source. ### Example [Section titled “Example”](#example) A developer merges a GitHub PR whose description references `PROJ-412`, the Jira issue for a new bulk-import feature. The issue records the business requirements: the supported file formats and a 10,000-row import cap. It also records that imports run asynchronously and send an email notification on completion. When Promptless picks up the merged PR, it reads `PROJ-412` and runs a JQL search for related issues in the same epic. Its suggestion carries the acceptance criteria into the docs: the supported formats, the row limit, and the asynchronous import with its email notification. The docs then describe what the feature is meant to do, beyond what the diff shows. ## Before you start [Section titled “Before you start”](#before-you-start) * An admin role in your Promptless organization, to connect Atlassian and edit the [Configuration page](https://app.gopromptless.ai/configuration). ## Connect Jira [Section titled “Connect Jira”](#connect-jira) Promptless connects to Jira through Atlassian. Skip this section if Atlassian is already connected on the [Integrations page](https://app.gopromptless.ai/integrations). One Atlassian Cloud connection covers Jira, Confluence, or both. You need an admin role in your Promptless organization to connect it. Promptless reads Jira and Confluence with the permissions of the Atlassian account that approves the connection. If you attach an [Atlassian service account](/docs/for-docs/reference/integrations/atlassian#atlassian-service-account), Promptless uses it for Jira instead. To connect a [dedicated Atlassian account](/docs/for-docs/reference/integrations/atlassian#provision-an-atlassian-account-for-promptless), log in to Atlassian as that account first. 1. On the Promptless [Integrations](https://app.gopromptless.ai/integrations) page, select **Connect Atlassian**. 2. Select **Jira**, **Confluence**, or both, and select **Continue to Atlassian**. Promptless requests only the permissions for the products you select. 3. If Atlassian shows its login screen, log in with the account you want Promptless to use. ![Atlassian Login Screen](https://promptless-customer-doc-assets.s3.amazonaws.com/docs-images/org_2lvkgU9erOFxYhtEVVC0ymPrPdF/aab15aef-2759-42e6-93ec-d4c090526273-jira-atlassian-login.png) 4. On the OAuth consent screen, review the permissions Promptless requests. For what each scope is for, see [Permissions required](/docs/for-docs/reference/integrations/atlassian#permissions-required). ![Jira OAuth Consent Screen](https://promptless-customer-doc-assets.s3.amazonaws.com/docs-images/org_2lvkgU9erOFxYhtEVVC0ymPrPdF/aab15aef-2759-42e6-93ec-d4c090526273-jira-oauth-consent.png) 5. Select **Accept**. If the consent screen shows no **Accept** option, your Atlassian account might not have the required permissions. Ask your Jira administrator to connect, or [invite them to Promptless](/docs/for-docs/reference/account-management). 6. On the Promptless [Integrations](https://app.gopromptless.ai/integrations) page, confirm the connection on the Atlassian card. To manage Promptless’s access later, open Atlassian and go to your avatar > **Account settings** > **Connected apps**. ![Atlassian Connected Apps Management](https://promptless-customer-doc-assets.s3.amazonaws.com/docs-images/org_2lvkgU9erOFxYhtEVVC0ymPrPdF/aab15aef-2759-42e6-93ec-d4c090526273-jira-connected-apps.png) ## Limit Promptless to specific projects [Section titled “Limit Promptless to specific projects”](#limit-promptless-to-specific-projects) Promptless can read every project the connected Jira account can see. To keep it to the projects that hold relevant work, scope the Jira context source: 1. On the **Context sources** tab of the [Configuration page](https://app.gopromptless.ai/configuration), expand the Jira source. If it isn’t listed, select **Add a context source**, and then select **Jira**. 2. In **Which Jira projects should Promptless read?**, add the key of each project. 3. Select **Save changes**. For a new source, select **Add context source**. In YAML, the scope is the `project_keys` list on a `jira` entry: ```yaml context_sources: jira: source_type: jira project_keys: - DOCS - PLATFORM - ENG ``` An entry with no project keys, or no entry, gives Promptless every project the account can see. For every context source field, see the [Configuration Reference](/docs/for-docs/reference/configuration-reference#context-sources). ## See also [Section titled “See also”](#see-also) * [Jira trigger](/docs/for-docs/connect/triggers/jira), to start documentation work from Jira issues * [Atlassian integration](/docs/for-docs/reference/integrations/atlassian), for the OAuth scopes Promptless requests and how to connect a dedicated Atlassian account * [Confluence](/docs/for-docs/connect/context-sources/confluence), to search your team’s Confluence spaces through the same Atlassian connection # Linear > Connect Linear as a read-only context source so Promptless reads the issues behind your code changes for the intent a diff alone does not show. Tip You can connect and scope this context source by hand as this page describes. You can also ask Promptless in Slack or Microsoft Teams to do it for you. For example, “@Promptless add Linear as a context source scoped to my engineering and product teams.” See [Ask Promptless to update your configuration](/docs/for-docs/get-the-most-out/ask-promptless-to-update-config). ## Overview [Section titled “Overview”](#overview) Connect Linear as a context source so Promptless documents the intent behind a code change, which usually lives on the Linear issue for that work. Promptless reads Linear in two ways: * When a GitHub PR mentions a Linear issue, Promptless reads that issue. * Promptless searches Linear for related issues and projects to understand a feature’s requirements. Linear access is read-only. Promptless queries Linear in real time when a documentation task needs it, and doesn’t store your Linear data. It never creates, updates, or deletes issues. ### Example [Section titled “Example”](#example) A developer merges a GitHub PR that links to `ENG-238`, the Linear issue for a new scheduled-reports feature. The issue records what the diff doesn’t show. Reports run daily or weekly and post to a Slack channel. Only workspaces on the Business plan can use them. When Promptless picks up the merged PR, it reads `ENG-238` and searches Linear for related issues in the same project. Its suggestion covers the scheduling options, the Slack delivery, and the plan requirement, so the docs explain what users can do and who has access. ## Before you start [Section titled “Before you start”](#before-you-start) * An admin role in your Promptless organization, to connect Linear and edit the [Configuration page](https://app.gopromptless.ai/configuration). ## Connect Linear [Section titled “Connect Linear”](#connect-linear) Skip this section if Linear is already connected on the [Integrations page](https://app.gopromptless.ai/integrations). You need an admin role in your Promptless organization to connect Linear. Promptless reads Linear with the permissions of the Linear account that signs in during the connection. 1. On the Promptless [Integrations](https://app.gopromptless.ai/integrations) page, select **Connect Linear**. 2. If Linear asks you to log in, log in to the Linear workspace you want to connect. ![Log in to Linear screen with Google, email, SAML SSO, and passkey options](/assets/linear-signin.png) 3. After Linear redirects you to Promptless, confirm that Linear shows as connected on the Integrations page. ## Limit Promptless to specific teams [Section titled “Limit Promptless to specific teams”](#limit-promptless-to-specific-teams) Promptless can read every team in the connected Linear workspace. To keep it to the teams that hold relevant work, scope the Linear context source: 1. On the **Context sources** tab of the [Configuration page](https://app.gopromptless.ai/configuration), expand the Linear source. If it isn’t listed, select **Add a context source**, and then select **Linear**. 2. In **Which Linear teams should Promptless read?**, add the key of each team. 3. Select **Save changes**. For a new source, select **Add context source**. In YAML, the scope is the `team_keys` list on a `linear` entry: ```yaml context_sources: linear: source_type: linear team_keys: - engineering - product ``` An entry with no team keys, or no entry, gives Promptless the whole workspace. For every context source field, see the [Configuration Reference](/docs/for-docs/reference/configuration-reference#context-sources). ## See also [Section titled “See also”](#see-also) * [Linear integration](/docs/for-docs/reference/integrations/linear), for the authentication model and how to reconnect Linear * [Jira](/docs/for-docs/connect/context-sources/jira), to read issues when your team tracks work in Jira * [Context sources](/docs/for-docs/connect/context-sources), to compare every context source Promptless supports # Notion > Connect Notion as a read-only context source so Promptless searches your pages and databases for product specs and team knowledge. Tip You can connect and scope this context source by hand as this page describes. You can also ask Promptless in Slack or Microsoft Teams to do it for you. For example, “@Promptless limit the Notion context source to my Product Specs database.” See [Ask Promptless to update your configuration](/docs/for-docs/get-the-most-out/ask-promptless-to-update-config). ## Overview [Section titled “Overview”](#overview) Connect Notion as a context source so Promptless uses the names and rules your team settled in its Notion specs, PRDs, and databases. Through the connection, Promptless reads only the pages and databases you share with it. Within them, Promptless can: * Search pages and databases by keyword. * Read a page as Markdown. * Query a database’s rows, such as entries in a product roadmap or feature-spec database. * Resolve Notion URLs that a trigger references. When a linked page isn’t shared with the connection but is public, Promptless reads it as a public web page. Notion access is read-only. Promptless queries Notion in real time when a documentation task needs it, and doesn’t store your Notion content. It never creates, updates, or deletes pages or databases. ### Example [Section titled “Example”](#example) A developer merges a GitHub PR that adds role-based permissions to your workspace settings. The feature was specced in an entry in your “Product Specs” database in Notion. The entry defines the official role names (“Owner,” “Editor,” and “Viewer”), the permissions each role grants, and who can change another member’s role. When Promptless picks up the merged PR, it resolves the Notion page URL in the PR description. It then queries the Product Specs database for the matching entry. Its suggestion uses the spec’s role names, permission matrix, and constraints, so the docs match what your product team defined. ## Before you start [Section titled “Before you start”](#before-you-start) * An admin role in your Promptless organization, to connect Notion and edit the [Configuration page](https://app.gopromptless.ai/configuration). ## Connect Notion [Section titled “Connect Notion”](#connect-notion) Skip this section if Notion is already connected on the [Integrations page](https://app.gopromptless.ai/integrations). 1. On the [Integrations page](https://app.gopromptless.ai/integrations), select **Connect Notion**. 2. In Notion, authorize Promptless to access your workspace. 3. Select the pages and data sources Promptless can read. 4. On the Integrations page, confirm that the Notion card lists your workspace. To change which pages Promptless can read later, select **Add or remove pages on Notion** in the workspace picker. The link opens Notion, where you update your sharing selections. ## Limit Promptless to specific databases or pages [Section titled “Limit Promptless to specific databases or pages”](#limit-promptless-to-specific-databases-or-pages) Promptless can read every page and database shared with the Notion connection. To keep it to specific databases or pages, scope the Notion context source: 1. On the **Context sources** tab of the [Configuration page](https://app.gopromptless.ai/configuration), expand the Notion source. If it isn’t listed, select **Add a context source**, and then select **Notion**. 2. In **Which Notion databases should Promptless read?**, add each database. 3. Optional. In **Specific Notion pages (optional)**, add individual pages. 4. Select **Save changes**. For a new source, select **Add context source**. In YAML, the scope is the `database_ids` and `page_ids` lists on a `notion` entry: ```yaml context_sources: notion: source_type: notion database_ids: - abc123def456 page_ids: - xyz789ghi012 ``` An entry with no database or page IDs, or no entry, gives Promptless everything shared with the connection. For every context source field, see the [Configuration Reference](/docs/for-docs/reference/configuration-reference#context-sources). ## See also [Section titled “See also”](#see-also) * [Google Drive](/docs/for-docs/connect/context-sources/google-drive), to read specs your team keeps in Google Docs, Sheets, and Slides * [Slite](/docs/for-docs/connect/context-sources/slite), to read notes and PRDs your team keeps in Slite * [Context sources](/docs/for-docs/connect/context-sources), to compare every context source Promptless supports # Slite > Connect Slite as a read-only context source so Promptless reuses the feature names, limits, and rationale your team settled in its notes and PRDs. ## Overview [Section titled “Overview”](#overview) Connect Slite as a context source so Promptless reuses the feature names, limits, and rationale your team settled in its Slite notes and PRDs. While Promptless drafts a suggestion, it can: * Search your Slite workspace for related notes. * Read a note as Markdown. * Resolve Slite note URLs that a trigger references. Slite connects with an API key, which grants read access to every note the account that created the key can see. Slite has no scope settings in Promptless, so Promptless reads that whole set of notes while Slite is connected. To limit what Promptless can read, create the key from a dedicated service account that can see only the notes Promptless needs. Slite access is read-only. Promptless queries Slite in real time when a documentation task needs it, and doesn’t store your Slite content. It caches results briefly during a documentation session, then discards them. It never creates, updates, or deletes notes. ### Example [Section titled “Example”](#example) A developer merges a GitHub PR that adds a configurable retry limit to your webhook delivery system. The feature was scoped in a PRD in your Slite workspace. The PRD names the feature (“Delivery Retry Policy”) and sets the default and maximum retry counts, with the reasoning behind the cap. When Promptless picks up the merged PR, it resolves any Slite URLs in the PR description and searches your workspace for related notes. Its suggestion uses the PRD’s feature name, retry limits, and rationale, so the docs match the spec your product and engineering teams wrote. ## Before you start [Section titled “Before you start”](#before-you-start) * An admin role in your Promptless organization, to connect Slite. * A Slite account that can create an API key. Recommended: a dedicated service account, so you can revoke its key independently. ## Connect Slite [Section titled “Connect Slite”](#connect-slite) 1. In Slite, under **Settings > API**, create a new API key. 2. On the [Integrations page](https://app.gopromptless.ai/integrations), select **Connect Slite**. 3. In **API Key**, paste the key. 4. Select **Connect**. The Slite card then shows the account that created the key and the first characters of the key. ## See also [Section titled “See also”](#see-also) * [Notion](/docs/for-docs/connect/context-sources/notion), to read specs your team keeps in Notion pages and databases * [Connection health](/docs/for-docs/connect/connection-health), to check and restore a context source that lost access * [Context sources](/docs/for-docs/connect/context-sources), to compare every context source Promptless supports # GitHub repos > Store your documentation in a GitHub repository and have Promptless open pull requests there, using the docs-as-code platform you already publish with. Tip You can set up a doc collection by hand as this page describes. You can also ask Promptless in Slack or Microsoft Teams to do it for you. For example, “@Promptless add my acme/docs repo as a doc collection.” See [Ask Promptless to update your configuration](/docs/for-docs/get-the-most-out/ask-promptless-to-update-config). ## Overview [Section titled “Overview”](#overview) A GitHub doc collection is the GitHub repository where your documentation lives and where Promptless opens documentation pull requests. Your docs platform publishes from that repository, so your documentation stays under version control alongside your code. The Promptless GitHub App has write access to your docs repository. When your documentation needs an update, Promptless opens a pull request there. Your documentation platform then syncs the changes from GitHub. Each repository is its own doc collection. Promptless can publish to several doc collections from the same triggers and context sources. To give one collection its own publishing or notification settings, scope a [policy rule](/docs/for-docs/reference/configuration-reference#rule-matching) to it with `doc_collection`. Note Before you create a GitHub doc collection, [connect GitHub](#connect-github). The repository picker lists only the repositories that your GitHub connection can reach. ## Connect GitHub [Section titled “Connect GitHub”](#connect-github) Skip this section if the organization that holds your docs repository already has a card on the [Integrations page](https://app.gopromptless.ai/integrations). To publish to a public repository without granting write access, [connect the read-only app](#connect-the-read-only-app). You need an admin role in your Promptless organization to start a GitHub connection. GitHub then asks you to authorize the Promptless GitHub App with your GitHub account. The connection completes only if that account administers the organization or account you connect. For a GitHub organization, that’s an organization owner. For a personal account, it’s the account owner. On GitHub Enterprise Server, or on GitHub Enterprise Cloud when a policy blocks third-party apps, connect through a custom GitHub App. See [GitHub Enterprise integration](/docs/for-docs/reference/integrations/github-enterprise). 1. In the Promptless dashboard, open the [Integrations](https://app.gopromptless.ai/integrations) page. 2. Select **Connect GitHub**. 3. In GitHub, select the organization to install Promptless into. ![GitHub Organization Selection](/assets/github-select-org.png) 4. Select the repositories Promptless can access. These are typically your source code repositories and, if your docs live in GitHub, your documentation repository. ![Repository Selection](/assets/github-select-repos.png) 5. On the Integrations page, confirm that the organization appears on its own card. The connection link stays valid for one hour. If it expires before you finish, start the connection again from the Integrations page. Some GitHub organizations require an owner’s approval to install a third-party app. If yours does and you aren’t an owner, GitHub asks you to request approval. To connect in that case: 1. Complete GitHub’s approval request flow. The GitHub card on the Integrations page shows **Waiting on an organization owner** while the request is open. 2. Ask a GitHub organization owner to approve the Promptless GitHub App in the organization’s **Third-party Access** settings. 3. After the owner approves, confirm that the organization appears on its own card. Promptless connects the approved installation automatically. To check right away, select **Check for approval** on the card. If GitHub can’t reuse the approved installation, uninstall the Promptless GitHub App in GitHub, and connect again. Tip To find who can approve, open **Third-party Access** > **Pending requests** in your GitHub organization settings. It shows who has owner permissions. If your GitHub organization enforces an IP allow list, GitHub blocks requests from Promptless until an owner allows them. See [Organization IP allow lists](/docs/for-docs/reference/integrations/github#organization-ip-allow-lists). ## Connect the read-only app [Section titled “Connect the read-only app”](#connect-the-read-only-app) Skip this section if the read-only app is already connected. Connect the GitHub (read-only) app to publish to a public repository without granting write access. The app gives Promptless read access and webhooks only, and Promptless publishes through its own fork. See [Read-only integrations](#read-only-integrations-public-repositories). You need an admin role in your Promptless organization to connect an integration. 1. In the Promptless dashboard, open the [Integrations](https://app.gopromptless.ai/integrations) page. 2. Select **Connect GitHub (read-only)**. 3. In GitHub, grant the app access to the repositories you want Promptless to work with. For open-source publishing, include the public repository whose docs you want to keep current. The integration appears on the Integrations page as its own **GitHub (read-only)** card. To change which repositories Promptless can access, select **Configure in GitHub** on that card. It opens the app’s installation page in GitHub. ## Supported platforms [Section titled “Supported platforms”](#supported-platforms) Promptless publishes to any docs platform or framework whose content lives in a repository. The **Docs framework** setting recognizes these platforms: | Platform | `docs_framework` value | | ------------------- | ---------------------- | | Docusaurus | `docusaurus` | | Fern | `fern` | | GitBook | `gitbook` | | Hugo | `hugo` | | mdBook | `mdbook` | | Mintlify | `mintlify` | | MkDocs | `mkdocs` | | ReadMe (Refactored) | `readme` | | Shoalrun | `shoalrun` | | Sphinx | `sphinx` | | Starlight (Astro) | `starlight` | Promptless also publishes to Ghost, Nextra, Vocs, and custom platforms, as long as the content is in a repository. To publish through a Git host other than GitHub or GitLab, contact . The Promptless team can also help you choose a new docs platform and set it up. See [Choose a docs platform](/docs/for-docs/migrate/choose-a-platform). ## Configuration [Section titled “Configuration”](#configuration) Doc collections live in the `doc_collections` section of your `promptless.yaml` file, keyed by repository name. Edit them on the [Configuration page](https://app.gopromptless.ai/configuration) in the dashboard, or in YAML: ```yaml doc_collections: acme/documentation: docs_framework: docusaurus docs_root_url: https://docs.acme.com filter: - docs/ ``` Triggers that start documentation updates live in the separate `triggers` section. See the [configuration reference](/docs/for-docs/reference/configuration-reference) for the complete schema. Each doc collection takes these settings: | Dashboard field | YAML field | What it sets | | ------------------------------------ | ------------------------------- | --------------------------------------------------------------------------------------------------------------- | | Repository | The key under `doc_collections` | The repository Promptless publishes to, as `owner/repo`. | | GitHub Enterprise host | `host` | Your GitHub Enterprise hostname, such as `github.acme.com`. Applies only to GitHub Enterprise. | | Docs framework | `docs_framework` | The framework your site builds with. See [Supported platforms](#supported-platforms). | | *Framework* config file | `config_file_path` | The path to your framework’s config file, such as `docusaurus.config.js`, when it isn’t at the repository root. | | Where are these docs published? | `docs_root_url` | Your public documentation site URL. | | Only watch these folders | `filter` | The directories and files Promptless can modify. See [Path scope](#path-scope-documentation-directories). | | Default branch | `default_branch` | The branch documentation PRs target. Without it, Promptless targets the repository’s default branch. | | Vale config path | `vale_config_path` | Turns on Vale linting with the config at this path. | | Doc Detective config path (optional) | `doc_detective.config_path` | Path to your [Doc Detective](/docs/for-docs/audit/doc-detective) config when it isn’t at the repo root. | Promptless sets the platform from the integration that reaches the repository. In YAML, `platform` defaults to `github`. See the [configuration reference](/docs/for-docs/reference/configuration-reference#doc-collections) for the other platform values. ### Edit doc collection settings [Section titled “Edit doc collection settings”](#edit-doc-collection-settings) You can change every setting in the table from the dashboard: 1. On the **Doc collections** tab of the [Configuration page](https://app.gopromptless.ai/configuration), expand the doc collection. 2. Change the settings. 3. Select **Save changes**. Note Creating, editing, and deleting doc collections requires the organization Admin role, whether you use the dashboard or the API. An API key can perform these actions only when the user it was issued to is an admin. All members can still view the doc collection list. ## Path scope (documentation directories) [Section titled “Path scope (documentation directories)”](#path-scope-documentation-directories) Path scope sets which files Promptless can create and modify in your documentation repository. Set it with **Only watch these folders** in the dashboard or `filter` in YAML. With no entries, Promptless can change any file in the repository. With entries, a file must match an entry exactly or sit inside an entry’s directory. Each entry is a directory or a single file: | Scope entry | Promptless can modify | Promptless can’t modify | | -------------- | ---------------------------------------------------------------------------- | ------------------------------------------- | | None | Any file in the repository | Nothing | | `docs/guides` | `docs/guides/getting-started.md` and `docs/guides/advanced/configuration.md` | `README.md` and `src/components/Button.tsx` | | `CHANGELOG.md` | `CHANGELOG.md` | Every other file | Promptless rejects a suggestion that changes files outside the scope, with an error that lists those files. Path scope keeps changes inside your documentation area, which matters in a monorepo where docs live alongside source code. ## Pull request publishing [Section titled “Pull request publishing”](#pull-request-publishing) These behaviors apply to the documentation pull requests Promptless opens. Set them in your [publishing policies](/docs/for-docs/reference/configuration-reference#policies): | Behavior | What Promptless does | How to change it | | ------------------------ | -------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------ | | Automatic PR creation | Opens a pull request in your documentation repository for each suggestion. | Set `publishing.auto_create_pr: true`. | | Code PR comment | For GitHub PR triggers, links the documentation PR in a comment on the original code PR. | Set `publishing.suppress_source_pr_comments: true` to stop the comments. | | Auto-merge | Merges the documentation PRs Promptless opens automatically. | Set `publishing.auto_merge: true` along with `auto_create_pr`. | | PR description extras | Adds an “Open in Promptless” link, the [trigger events](#trigger-events-in-pull-request-descriptions), and a tip to the PR body. | Set `publishing.suppress_pr_description_extras: true` to omit them. | | CI check and build fixes | Watches the PR for failed checks and build problems, and pushes fixes to the PR branch. | Always on. See [CI check and build fixes](#ci-check-and-build-fixes). | With auto-merge on, a documentation PR from a [commit trigger](/docs/for-docs/connect/triggers/github-commits) merges as soon as Promptless creates it. A documentation PR for an open code PR merges after the code PR merges. Auto-merge skips a documentation PR whose base branch is protected, or whose repository uses the read-only GitHub app. Merge those PRs yourself. ### CI check and build fixes [Section titled “CI check and build fixes”](#ci-check-and-build-fixes) Promptless watches each documentation PR it opens for quality problems. These include failed CI checks, linting errors, Vale rule warnings, and broken links or build problems that your documentation host reports. When one occurs, Promptless analyzes it and pushes a fix to the PR branch. The Promptless GitHub App needs no extra setup for this. A custom [GitHub Enterprise](/docs/for-docs/reference/integrations/github-enterprise) app needs the **Checks** read permission and a subscription to the **Check suite** webhook event. Promptless learns about CI failures only through check suite events. ### Read-only integrations (public repositories) [Section titled “Read-only integrations (public repositories)”](#read-only-integrations-public-repositories) To publish to a public repository without granting write access, back its doc collection with the [GitHub (read-only)](#connect-the-read-only-app) integration. Promptless then creates its own fork and opens a pull request from the fork into your upstream base branch. Private repositories need the [standard GitHub App](#connect-github). See [How publishing works](/docs/for-docs/reference/integrations/github-read-only#how-publishing-works) for the fork flow. ## Trigger events in pull request descriptions [Section titled “Trigger events in pull request descriptions”](#trigger-events-in-pull-request-descriptions) Each documentation PR description lists the trigger events that led to its changes, so reviewers can trace an update back to where it started. Each entry links to the original source, such as a Slack thread, GitHub PR, or support ticket, and briefly describes what prompted the update. For Slack triggers, the link label names where the message came from, followed by a snippet of the message: | Message source | Example link label | | -------------- | ----------------------------------------------------------------- | | Public channel | ”Message in Slack channel #docs: please update the API guide” | | Direct message | ”Private Slack DM with Jane Doe: can we add an example here” | | Group message | ”Private Slack group message: the onboarding flow needs updating” | Slack shows an error page to a reviewer who opens a link to a private conversation they’re not in. The “Private Slack DM” and “Private Slack group message” labels tell reviewers the link is restricted. For these messages, Promptless adds a second link to the suggestion’s Triggers & Analysis tab in the dashboard. Anyone with dashboard access can read the full message there, whatever their Slack permissions. Tip You can omit this generated content from the PR body: the “Open in Promptless” link, the trigger events section, and the tip. Set `publishing.suppress_pr_description_extras: true` in your [publishing policies](/docs/for-docs/reference/configuration-reference#policies), and the body contains only the suggestion’s own description. ## Frequently asked questions [Section titled “Frequently asked questions”](#frequently-asked-questions) When the repository picker can’t find a repository, it shows “No connected repository matches that.” These are the usual causes: | Problem | Cause | Fix | | -------------------------------------------------- | ---------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | | The picker lists none of your GitHub repositories. | GitHub isn’t connected. | [Connect GitHub](#connect-github). Then return to the doc collection. | | One repository is missing from the picker. | The Promptless GitHub App doesn’t have access to it. | Add the repository to the app’s access in GitHub. See [Manage repository access](/docs/for-docs/reference/integrations/github#manage-repository-access). | ## See also [Section titled “See also”](#see-also) * [GitLab projects](/docs/for-docs/connect/doc-locations/gitlab-projects), to publish documentation to a GitLab project * [GitHub PRs](/docs/for-docs/connect/triggers/github-prs), to start documentation work from pull requests in your code repositories * [Configuration Reference](/docs/for-docs/reference/configuration-reference#doc-collections), for every doc collection field # GitLab projects > Set up a GitLab project, on gitlab.com or self-hosted, as a doc collection so Promptless opens merge requests there with documentation updates. Tip You can set up a doc collection by hand as this page describes. You can also ask Promptless in Slack or Microsoft Teams to do it for you. For example, “@Promptless add my acme/docs GitLab project as a doc collection.” See [Ask Promptless to update your configuration](/docs/for-docs/get-the-most-out/ask-promptless-to-update-config). ## Overview [Section titled “Overview”](#overview) A GitLab doc collection is the GitLab project where your documentation lives and where Promptless opens merge requests with documentation updates. Your docs platform publishes from that project, so your documentation stays under version control alongside the rest of your work. GitLab doc collections work on both gitlab.com and self-hosted GitLab. Promptless reaches the project using your connected GitLab group access token, which needs the `api` scope. When your documentation needs an update, Promptless pushes a branch directly to your docs project and opens a merge request. Your documentation platform then syncs the changes from GitLab. ## Before you start [Section titled “Before you start”](#before-you-start) * An admin role in your Promptless organization, to connect GitLab and create doc collections. * A connected GitLab group whose access token reaches your docs project. The connected group access token must have the write-capable `api` scope so Promptless can push a branch and open a merge request. To connect a group, see [Connect GitLab](#connect-gitlab). ## Connect GitLab [Section titled “Connect GitLab”](#connect-gitlab) Skip this section if the group that holds your docs project already has a card on the [Integrations page](https://app.gopromptless.ai/integrations). You need the **Owner** role on the GitLab group to create its access token, and an admin role in your Promptless organization to connect it. If you aren’t a group Owner, ask one to create the token. 1. In GitLab, go to your group’s **Settings > Access Tokens** and select **Add new token**. 2. Name the token, for example “Promptless”, and set an expiration date. The maximum is one year. 3. Select the **`api`** scope and the **Maintainer** role. 4. Select **Create group access token**, and copy the token. GitLab shows it only once. The token starts with `glpat-`. For more details, see [GitLab’s group access token documentation](https://docs.gitlab.com/user/group/settings/group_access_tokens/). 5. In the Promptless dashboard, open the [Integrations](https://app.gopromptless.ai/integrations) page. 6. Start the connection. For a gitlab.com group, select **Connect GitLab** on the **GitLab** tile. For a self-hosted instance, select **Connect Self-hosted GitLab** on the **Self-hosted GitLab** tile, and enter your **Instance hostname**. Enter only the host, with no `https://` and no path. 7. In the **Group path** field, enter the group’s full path, for example `acme/platform`. 8. Paste the token into the **Access token** field, and select **Connect**. ![Connect GitLab modal with Group path and Access token fields and a Connect button](https://promptless-customer-doc-assets.s3.us-east-2.amazonaws.com/docs-images/org_3DaVKUzHgjyjaODgCPaDmjXezqp/gitlab-connect-modal-aeb67dd0.png) The token must be a group access token with the **`api`** scope and the **Maintainer** role. Promptless uses it to create the merge-request webhooks, and a read-only `read_api` token or a Developer-role token can’t create them. For why, see [Token scope considerations](/docs/for-docs/reference/integrations/gitlab#token-scope-considerations). The group gets its own card on the [Integrations](https://app.gopromptless.ai/integrations) page. To connect another group, select **Connect GitLab** or **Connect Self-hosted GitLab** again and repeat these steps with that group’s token. ## Add a GitLab doc collection [Section titled “Add a GitLab doc collection”](#add-a-gitlab-doc-collection) 1. On the **Doc collections** tab of the [Configuration page](https://app.gopromptless.ai/configuration), select **Add doc collection**. 2. Under **Which repository should Promptless document?**, select your GitLab project. To list only your GitLab projects, search for `gitlab`. 3. Set the docs framework, published URL, and the directories Promptless can modify. These settings work the same as for a [GitHub doc collection](/docs/for-docs/connect/doc-locations/github-repos#configuration). 4. Select **Add collection**. The picker lists every connected GitLab project, on gitlab.com and self-hosted GitLab alike, by its full path including every namespace segment, such as `acme/platform/developer-docs`. Promptless sets the platform and the **GitLab host** from the connection that reaches the project. **GitLab host** is blank for gitlab.com, and holds the bare hostname, such as `gitlab.acme.com`, for self-hosted GitLab. If the picker lists none of your GitLab projects, GitLab isn’t connected yet. If it lists other projects but not yours, the connected group token’s project inventory doesn’t include that project. To connect a group, see [Connect GitLab](#connect-gitlab). To scope the token to the right group, see [Token scope considerations](/docs/for-docs/reference/integrations/gitlab#token-scope-considerations). ### Configure a GitLab doc collection in YAML [Section titled “Configure a GitLab doc collection in YAML”](#configure-a-gitlab-doc-collection-in-yaml) In YAML, a GitLab collection sets `platform: gitlab` and is keyed by the project’s full path, including every namespace segment. A self-hosted project also sets `host`: ```yaml doc_collections: acme/docs: # gitlab.com project platform: gitlab docs_framework: docusaurus acme/platform/developer-docs: # self-hosted, nested namespace platform: gitlab host: gitlab.acme.com docs_framework: mkdocs ``` See the [configuration reference](/docs/for-docs/reference/configuration-reference#doc-collections) for every field a doc collection accepts. ## Automatic merge request creation [Section titled “Automatic merge request creation”](#automatic-merge-request-creation) When automatic PR creation (`auto_create_pr`) is on in your [publishing policies](/docs/for-docs/reference/configuration-reference#policies), Promptless opens a merge request in your documentation project with the suggested changes. Promptless tracks merge request status the same way it tracks GitHub pull request status. GitLab has no draft flag at creation time, so Promptless marks a draft merge request with a `Draft:` title prefix. When Promptless opens or updates a merge request, it posts the suggestion’s citations as diff-positioned discussion threads. Reviewers see each source at the line it supports. A citation that can’t be anchored to the diff posts as an unanchored merge request thread that names the file and line. Shortly after it opens the merge request, Promptless resolves each citation discussion. The evidence stays on the diff, and projects that require all discussions resolved can still merge. Promptless leaves a discussion alone after you reply to it or reopen it. This behavior applies to every organization, with no setting to configure. To have Promptless merge its documentation changes automatically, turn on automatic merging (`auto_merge`) in your publishing policies. On GitLab, Promptless attempts an immediate squash merge as soon as it opens the merge request. See [Policies](/docs/for-docs/reference/configuration-reference#policies) for how publishing rules resolve. GitLab auto-merge does not wait for pipelines On GitLab, Promptless attempts the merge once, right when it opens the merge request. It doesn’t use GitLab’s “merge when pipeline succeeds”, doesn’t wait for a pipeline, and doesn’t retry later. If the merge request can’t merge at that moment, GitLab reports a failure. Promptless then leaves the merge request open for you to merge manually. For example, a required pipeline hasn’t passed, approvals are pending, or the branch has conflicts. Merge request bodies carry the same generated extras as GitHub pull requests. These are the “Open in Promptless” link, the trigger events that prompted the update, and a tip. To omit them, set `publishing.suppress_pr_description_extras: true` in your [publishing policies](/docs/for-docs/reference/configuration-reference#policies). The body then contains only the suggestion’s own description. See [Trigger events in pull request descriptions](/docs/for-docs/connect/doc-locations/github-repos#trigger-events-in-pull-request-descriptions) for what this content covers. ## Path scope (documentation directories) [Section titled “Path scope (documentation directories)”](#path-scope-documentation-directories) Path scope sets which files Promptless can modify in your documentation project, the same way it does for GitHub repositories. Set it with the directories you specify during doc collection setup: * With no directories, Promptless can create and modify files anywhere in the project. * With directories, Promptless can modify only files that match one of those paths exactly or sit inside one of those directories. A scope entry can be a directory or a single file. An entry such as `CHANGELOG.md` allows only that file, and `docs/` allows any file under that directory. Promptless rejects a suggestion that changes files outside the configured scope, with an error that lists those files. For examples, see [Path scope](/docs/for-docs/connect/doc-locations/github-repos#path-scope-documentation-directories). ## See also [Section titled “See also”](#see-also) * [GitLab integration](/docs/for-docs/reference/integrations/gitlab), for token requirements, webhooks, and connecting more groups * [GitLab merge requests](/docs/for-docs/connect/triggers/gitlab-merge-requests), to start documentation work from merge requests in your code projects * [Source control and access scope](/docs/for-docs/connect/source-control), to compare what GitHub and GitLab connections can access # How Promptless learns your docs > See how Promptless indexes your existing docs, builds a product ontology, and learns your writing style with Voice Match before drafting the first suggestion. Before Promptless creates its first suggestion, it analyzes your existing docs to learn your product, your writing style, and how your docs are organized. It keeps learning from your edits and feedback. For rules your existing pages don’t show, add an `AGENTS.md` file to your docs repository. Promptless also uses the Agent Skills you keep there. ## Use cases [Section titled “Use cases”](#use-cases) * Your first suggestions need to match the terms, tone, and formatting of your existing pages. Promptless learns them from those pages with [Voice Match](#voice-and-style-learning). * A change to one feature affects several pages, such as a “Workspaces” change that touches the “Permissions” and “Invitations” pages. The [product ontology](#product-ontology) tells Promptless which pages to update together. * Your team follows a rule your pages don’t make obvious, such as “write workspace, not project.” State it in [`AGENTS.md`](#custom-agent-instructions-with-agentsmd), and Promptless follows it in every suggestion. * Your team already keeps a skill for a task, such as writing changelog entries. Promptless [runs your existing skills](#use-your-existing-skills) when a documentation task matches one. ## Initial ingestion [Section titled “Initial ingestion”](#initial-ingestion) Promptless builds a searchable index of your docs and maps the relationships between pages, sections, and topics. When it analyzes a trigger, it uses the index to find the relevant content. ### Product ontology [Section titled “Product ontology”](#product-ontology) Promptless builds a model of your product’s structure: the features you have, how they relate to each other, and the terminology your team uses. This product ontology helps Promptless: * Know which pages are relevant when a specific feature changes * Understand your product’s concepts and terminology * Find connected features that need coordinated documentation updates For example, suppose your product has a “Workspaces” feature with sub-features such as “Permissions” and “Invitations.” When workspace behavior changes, Promptless can update every page that covers those relationships. ## Voice and style learning [Section titled “Voice and style learning”](#voice-and-style-learning) Promptless analyzes how your documentation is written: its tone, sentence structure, formatting patterns, and terminology choices. This analysis powers Voice Match, so suggestions read like the rest of your docs. Promptless learns patterns such as: * Whether you write formally or conversationally * The words and phrases you use for concepts * How you organize content, use headings, and format examples * Your preferences for capitalization, punctuation, and code formatting When it drafts content, Promptless also refers to similar existing pages to match their style. ## Continuous learning [Section titled “Continuous learning”](#continuous-learning) Promptless keeps learning as you use it. When you edit suggestions or give feedback, it applies your preferences to future suggestions. When you publish documentation updates, Promptless re-indexes your docs, so it keeps up as your docs and style change. ## Custom agent instructions with AGENTS.md [Section titled “Custom agent instructions with AGENTS.md”](#custom-agent-instructions-with-agentsmd) Create an `AGENTS.md` file in the root of your docs repository to give Promptless persistent guidance. Use it for project-specific conventions, terminology, and documentation standards that Promptless follows when it creates suggestions. ### How Promptless reads AGENTS.md [Section titled “How Promptless reads AGENTS.md”](#how-promptless-reads-agentsmd) When Promptless starts work on your documentation, it checks the root of your docs repository for an `AGENTS.md` file. When it finds one, it adds the file’s content to its instructions and applies your guidance to every suggestion. ### What to include [Section titled “What to include”](#what-to-include) Use your `AGENTS.md` file for: * Terminology preferences, such as the words your team uses for concepts * Formatting conventions, such as how to structure code examples, callouts, or headings * Content guidelines, such as information to always include or leave out * Style rules, such as the voice, tone, or writing patterns specific to your documentation ### Example AGENTS.md [Section titled “Example AGENTS.md”](#example-agentsmd) ```markdown # Documentation Guidelines ## Terminology - Use "workspace" not "project" when referring to user containers - Always capitalize "API" but lowercase "endpoint" - Prefer "authentication" over "auth" in prose ## Formatting - Use admonitions for warnings and important notes - Include a "Before you begin" section in procedural docs - Code examples should include comments explaining each step ## Style - Write in second person ("you") rather than third person - Keep sentences under 25 words when possible - Use active voice ``` ### Relationship with CLAUDE.md [Section titled “Relationship with CLAUDE.md”](#relationship-with-claudemd) If your repository already has a `CLAUDE.md` file for Claude Code, Promptless uses that file. Promptless loads `AGENTS.md` only when the repository has no `CLAUDE.md`, so an existing Claude Code setup keeps working. ## Use your existing skills [Section titled “Use your existing skills”](#use-your-existing-skills) If you keep [Agent Skills](https://docs.claude.com/en/docs/agents-and-tools/agent-skills/overview) in your documentation repository, Promptless uses them with no extra configuration. It picks up skills under `.claude/skills/`, `.agents/skills/`, and `.cursor/skills/`. When a documentation task matches a skill’s description, Promptless runs that skill. The skills you wrote for other AI coding agents apply to your documentation work too. Keep them where they already live. ### How Promptless discovers skills [Section titled “How Promptless discovers skills”](#how-promptless-discovers-skills) Promptless scans for skills before each documentation task. A skill is a directory that contains a `SKILL.md` file. Promptless checks the source directories in a fixed order: `.claude/skills/`, then `.agents/skills/`, then `.cursor/skills/`. When the same skill name appears in more than one of these directories, the first match wins. For example, a skill under `.claude/skills/` takes precedence over a same-named skill under `.cursor/skills/`. Skill names are case-sensitive. ### Guide how Promptless uses your skills [Section titled “Guide how Promptless uses your skills”](#guide-how-promptless-uses-your-skills) To shape when and how Promptless uses your skills, add guidance to the `PROMPTLESS.md` file in your [Knowledge Base](https://app.gopromptless.ai/settings/knowledge). For example, tell Promptless to prefer a particular skill for changelog entries, or to run a formatting skill before it publishes API reference pages. Promptless reads this guidance alongside your skills when it decides which skill fits a task. # Source control and access scope > Understand how Promptless connects to GitHub, GitHub Enterprise, and GitLab, what access each connection grants, and how to keep that access least-privilege. Source control is where Promptless watches for changes and publishes documentation. One Git provider connection can do up to three jobs: activate triggers, supply code context, and open documentation pull requests. Each job needs a different level of access. This page explains what each provider connection does, the access it grants, and how to keep that access to the minimum Promptless needs. ## Use cases [Section titled “Use cases”](#use-cases) * Your security team asks what Promptless can read and write before you connect a repository. [How each connection authenticates](#how-each-connection-authenticates) lists the access each provider grants. * You maintain a public open-source repository and can’t grant write access. The [GitHub (read-only) app](/docs/for-docs/reference/integrations/github-read-only) publishes documentation pull requests from a fork. * Your docs live in a monorepo next to your source code. [Path scope](#scope-publishing-access-to-your-docs) keeps Promptless’s changes inside your documentation directories. * Your GitLab group holds more than documentation projects. Scope the group access token to a group or subgroup that contains only your documentation projects. See [GitLab](#gitlab). ## What each provider connects [Section titled “What each provider connects”](#what-each-provider-connects) Each source-control connection does these jobs: | Provider | Used for | | ---------------------------------------------------------------------------- | --------------------------------------------------- | | [GitHub](/docs/for-docs/reference/integrations/github) | Triggers, context, and publishing | | [GitHub Enterprise](/docs/for-docs/reference/integrations/github-enterprise) | Triggers, context, and publishing (Server or Cloud) | | [GitLab](/docs/for-docs/reference/integrations/gitlab) | Triggers, context, and publishing | Promptless publishes to both GitHub-based and GitLab-based doc collections. It opens pull requests on GitHub repositories and merge requests on GitLab projects. One GitLab connection can do all three jobs. For how publishing to a GitLab project works, see [GitLab projects (docs as code)](/docs/for-docs/connect/doc-locations/gitlab-projects). Promptless also has a [read-only GitHub app](/docs/for-docs/reference/integrations/github-read-only). It grants read access and webhooks only, and publishes to public repositories through a fork. ## How each connection authenticates [Section titled “How each connection authenticates”](#how-each-connection-authenticates) Each provider uses its own authentication model, and each one limits Promptless to the repositories and actions you authorize. ### GitHub [Section titled “GitHub”](#github) Promptless connects through its official GitHub App and authenticates with JWTs generated by the app installation. The app grants read and write access to the repositories you select, and either you or Promptless can revoke that access at any time. During installation, you choose which repositories to grant. These are typically your source code and, if your docs live in GitHub, your documentation repository. To change that selection later, open the app’s installation settings. There you can switch between **All repositories** and **Only select repositories**, and add or remove individual repositories. See [Manage repository access](/docs/for-docs/reference/integrations/github#manage-repository-access). When the doc collection repository picker can’t find a repository, it shows a **Manage repository access** link. The link opens the [Integrations page](https://app.gopromptless.ai/integrations), where you start that change. Teams that can’t grant write access can install the [GitHub (read-only) app](/docs/for-docs/reference/integrations/github-read-only) instead. ### GitHub Enterprise [Section titled “GitHub Enterprise”](#github-enterprise) GitHub Enterprise Server and Cloud users configure a custom GitHub App with an explicit permission set. Promptless requires these repository permissions: | Permission | Access | What Promptless uses it for | | --------------- | -------------- | ----------------------------------------------------------------------------------------- | | Pull requests | Read and write | Reads pull request content, opens documentation pull requests, and comments for feedback. | | Contents | Read and write | Reads repository files, and creates and updates documentation files. | | Commit statuses | Read-only | Reads the state of pull requests and commits. | | Checks | Read-only | Detects and fixes failed CI checks on documentation pull requests. | | Issues | Read-only | Reads repositories and pull requests during research, and receives pull request comments. | | Webhooks | Read and write | Manages webhook configuration and receives repository events. | Note If your GitHub Enterprise instance sits behind a firewall or uses IP restrictions, allow Promptless’s IP addresses. Webhook delivery and API calls can’t reach the instance otherwise. The full list and the primary egress IP are in the [GitHub Enterprise setup guide](/docs/for-docs/reference/integrations/github-enterprise). Standard GitHub.com organizations can enforce IP allow lists too. If your organization blocks Promptless, see [Organization IP allow lists](/docs/for-docs/reference/integrations/github#organization-ip-allow-lists). ### GitLab [Section titled “GitLab”](#gitlab) GitLab connects with a group access token that carries the `api` scope, which is read-write and grants access across the whole group. Publishing uses that same token. There’s no separate publishing credential. Connecting a GitLab group always writes with the token, because it creates the merge-request webhooks and sets the bot avatar. There’s no read-only option. A trigger or context source needs the `api` scope with the **Maintainer** role (webhook management is Maintainer-gated). A docs destination needs the `api` scope with at least the **Developer** role to push a branch and open a merge request. Promptless restricts those writes to the projects you configure as doc collections. This is an application-level restriction Promptless enforces, not a limit imposed by the token itself. For a hard technical limit, scope the group access token to a group or subgroup that contains only your documentation projects. ## Scope publishing access to your docs [Section titled “Scope publishing access to your docs”](#scope-publishing-access-to-your-docs) Publishing needs write access to the repository where your docs live. The Promptless GitHub App has write access to a GitHub documentation repository so it can open pull requests. The connected group access token lets Promptless push a branch and open a merge request on a GitLab documentation project. Path scope limits where those writes land. Path scope controls which files Promptless can modify in a documentation repository. You set it with the directories you specify during doc collection setup: * With no directories, Promptless can modify files anywhere in the repository. * With directories, Promptless can modify only files that match one of those paths or sit inside them. * An entry can be a directory or a single file. `docs/` allows any file under that directory, and `CHANGELOG.md` allows only that file. If Promptless drafts a change outside the configured scope, it rejects the suggestion with an error that lists the out-of-scope files. Path scope matters most in a monorepo, where docs live alongside source code. For the full doc collection setup, including path scope and platform support, see [GitHub repos (docs as code)](/docs/for-docs/connect/doc-locations/github-repos) and [GitLab projects (docs as code)](/docs/for-docs/connect/doc-locations/gitlab-projects). ## Keep access least-privilege [Section titled “Keep access least-privilege”](#keep-access-least-privilege) Grant each connection only the access its jobs need: * Select only the repositories Promptless needs. On GitHub, choose **Only select repositories**, and manage the list from your GitHub organization settings. * Use read-only access where it’s enough. For a public open-source repository, the [GitHub (read-only) app](/docs/for-docs/reference/integrations/github-read-only) opens documentation pull requests from a fork. It never takes write access to your repository. For GitLab, narrow the group access token to a group or subgroup that contains only your documentation projects, as [GitLab](#gitlab) describes. * Revoke access when you no longer need it. You or Promptless can revoke the GitHub App connection at any time. You can also rotate or remove the GitLab group access token in GitLab. For how source-control access fits Promptless’s broader security posture, see [Network architecture](/docs/for-docs/security/network-architecture) and [Data handling and classification](/docs/for-docs/security/data-handling-and-classification). # Triggers > Choose the events that start a Promptless documentation update, from GitHub and GitLab changes to chat messages, support tickets, and API calls. Tip You can set up triggers by hand as this page describes, or ask Promptless in Slack or Microsoft Teams to do it for you. For example, “@Promptless add a GitHub PR trigger for my acme/api repo.” See [Ask Promptless to update your configuration](/docs/for-docs/get-the-most-out/ask-promptless-to-update-config). A trigger is an event that starts Promptless documentation work. Examples include a pull request opening, a message in a Slack thread, or an API call. When a trigger event arrives, Promptless reads it, decides whether your documentation needs an update, and creates a suggestion when it does. ## Use cases [Section titled “Use cases”](#use-cases) Choose triggers by where the changes and requests your docs must keep up with first appear: | To start documentation work | Use | | ----------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | While code changes are still in review | [GitHub PRs](/docs/for-docs/connect/triggers/github-prs) or [GitLab merge requests](/docs/for-docs/connect/triggers/gitlab-merge-requests) | | From commits that reach a branch without a pull request, such as hotfixes | [GitHub commits](/docs/for-docs/connect/triggers/github-commits) | | From requests teammates or community members make in GitHub, Slack, or Jira | [GitHub issues](/docs/for-docs/connect/triggers/github-issues), [Slack](/docs/for-docs/connect/triggers/slack-messages), or [Jira](/docs/for-docs/connect/triggers/jira) | | On a Jira condition of your own, such as a ticket assigned to a docs owner | [Jira Automation](/docs/for-docs/connect/triggers/jira-automation) | | When a feature flag changes (beta) | [LaunchDarkly](/docs/for-docs/connect/triggers/launchdarkly) | | From a CI/CD pipeline, a Zapier automation, or another system that can send HTTP requests | [API](/docs/for-docs/connect/triggers/api) | | From your editor or chat app, with no API key | [MCP](/docs/for-docs/connect/triggers/mcp) | | On a recurring schedule, such as a weekly check of release notes against the changelog | [Schedule](/docs/for-docs/connect/triggers/schedule) | ## How triggers work [Section titled “How triggers work”](#how-triggers-work) When a trigger event arrives: 1. Promptless receives the event, such as a pull request opening or a message posted in a watched channel. 2. Promptless reads the event’s content, such as code changes or a conversation, along with your connected context sources. 3. Promptless decides whether the event needs a documentation update. 4. If it does, Promptless creates documentation suggestions. ## Configure triggers [Section titled “Configure triggers”](#configure-triggers) Add and edit triggers on the **Triggers** tab of the [Configuration page](https://app.gopromptless.ai/configuration), or in the `triggers` section of your `promptless.yaml` file. For each trigger, you set: * The repositories, channels, projects, or flags it watches. * Trigger-specific filters, such as directories or target branches. * How its suggestions publish, through a policy rule that names the trigger. See the [Configuration Reference](/docs/for-docs/reference/configuration-reference#triggers) for the complete YAML schema. Note To request a trigger type Promptless doesn’t support yet, email . ## Connect a provider before you add its triggers [Section titled “Connect a provider before you add its triggers”](#connect-a-provider-before-you-add-its-triggers) To add, rename, or modify a provider-backed trigger, first connect its provider on the [Integrations page](https://app.gopromptless.ai/integrations). Only organization administrators can connect integrations, so if you’re not an admin, ask one. If you disconnect a provider, its triggers stay in your `promptless.yaml` and show as inactive until you reconnect it. You can remove an inactive trigger at any time. To edit or rename one, reconnect its provider first. Connections are organization-wide, so disconnecting a provider affects every team’s triggers for it. For how these states appear in the editor, see [Provider connection and trigger availability](/docs/for-docs/reference/configuration-reference#provider-connection-and-trigger-availability). To check a connection, see [Connection health](/docs/for-docs/connect/connection-health). ## Automatic PR creation [Section titled “Automatic PR creation”](#automatic-pr-creation) When your [publishing policies](/docs/for-docs/reference/configuration-reference#policies) turn on automatic PR creation, Promptless opens a pull request in your documentation repository for each suggestion. For [commit triggers](/docs/for-docs/connect/triggers/github-commits), you can also turn on auto-merge, which merges those documentation PRs as soon as Promptless creates them. Automatic PR creation works with every Git-hosted documentation platform. ## Trigger events in documentation PRs [Section titled “Trigger events in documentation PRs”](#trigger-events-in-documentation-prs) When Promptless opens a documentation pull request, the PR description lists the trigger events that led to its changes. Reviewers can trace each update back to the pull request, message, or other event that prompted it. ## Follow what a trigger did [Section titled “Follow what a trigger did”](#follow-what-a-trigger-did) The [Triggers page](https://app.gopromptless.ai/triggers) in the dashboard lists the events that triggered Promptless and what came of each one. With no search or date range set, it shows the last 30 days. Use it to confirm Promptless caught a change, follow a long-running task, or find out why a change produced no suggestion. Each event reports its outcome: researching, suggestion created, suggestion updated, no suggestion, or suggestion closed. ![Triggers page row list grouped under a Today header, each row showing the time, source icon, action verb, PR or thread reference, and headline, with a status pill on the right reporting the trigger's outcome](https://promptless-customer-doc-assets.s3.us-east-2.amazonaws.com/docs-images/org_3DaVKUzHgjyjaODgCPaDmjXezqp/triggers-page-rows-status-pill-c11cab79.png) For each event, you can see the suggestions it created, updated, or closed, along with when the event arrived and when the run finished. To find older events, search your full trigger history by PR details, Slack thread topic, or task name. You can also set a **From** and **To** date range. To narrow the list, filter by **Trigger Type**. To show only events with or without suggestions, set **Suggestion Activity** to **Suggestion Activity** or **No Suggestion Activity**. The page reports how many events match the current filters. You can also group events by date or by event source. ### See what Promptless researched [Section titled “See what Promptless researched”](#see-what-promptless-researched) Each trigger includes a research breakdown of what Promptless read before drafting or skipping documentation. It appears on the Triggers page and on the suggestion the trigger produced. Use it to check that Promptless worked from the right sources. The breakdown lists items in roughly the order the agent worked: * Source and documentation files the agent opened, webpages it fetched, and Slack threads it read. * Knowledge base files, such as contribution guidelines or style rules, each linked to the file in the [Agent Knowledge Base editor](/docs/for-docs/get-the-most-out/agent-knowledge-base#view-files). * Content and filename searches, each marked with whether it ran against your doc collection or the agent’s own working directory. * Research delegated to a specialized subagent, with the subagent type and how many tool calls it made. * Any of [your own skills](/docs/for-docs/connect/doc-locations/how-promptless-learns-your-docs#use-your-existing-skills) the agent used. ## Backfill suggestions [Section titled “Backfill suggestions”](#backfill-suggestions) Backfill runs Promptless on pull requests that already exist. Use it to catch up on documentation for work that merged before a trigger was watching. It’s available on saved GitHub PR and GitLab merge request triggers. Any organization member can view a backfill’s status, progress, and the suggestions it produced. Only admins can launch one. A backfill covers pull requests opened or merged in the window you choose, up to 1,000 per repository. It applies the same repository, topic, directory, and branch filters the trigger uses for live events. For a trigger scoped by [repository topic](/docs/for-docs/connect/triggers/github-prs#limit-a-trigger-to-tagged-repositories), only repositories that carry a matching topic contribute pull requests. For GitHub PR triggers that activate only on first approval, backfill also replays first approvals. The preview then includes open pull requests whose first approval landed within the window, even those opened before it. GitLab merge request triggers don’t replay approvals, so a first-approval GitLab trigger returns no backfill results. Caution Launching a backfill runs every matched pull request live, exactly as Promptless handles a new event. Your publishing policy applies. With automatic PR creation or auto-merge turned on, a backfill can create or merge documentation PRs and send notifications for every matched pull request. Preview the list first so you know which pull requests Promptless processes. To run a backfill: 1. On the **Triggers** tab of the [Configuration page](https://app.gopromptless.ai/configuration), select **Backfill suggestions…** on the trigger. 2. Choose **Last 7 days**, **Last 14 days**, or **Last 30 days**. 3. Optional. To include pull requests that an earlier backfill of this trigger already processed, clear **Skip previously submitted PRs**. This option appears after the trigger’s first backfill. 4. Select **Preview**, and check the pull requests the trigger matches. 5. Select **Launch backfill**. Progress updates as the run works through the list. # API triggers > Request documentation updates from your CI/CD pipeline or any system that can make an HTTP request, using a Promptless API trigger. ## Overview [Section titled “Overview”](#overview) An API trigger lets your CI/CD pipeline, automation tools, or any system that can make an HTTP request ask Promptless for a documentation update. Use it to: * Request documentation updates from a CI/CD pipeline, for example after a deployment. * Connect ticketing, project management, or internal tools to Promptless. * Build automations, such as [Zapier recipes](/docs/for-docs/get-the-most-out/zapier-recipes) or a [Jira Automation flow](/docs/for-docs/connect/triggers/jira-automation). * Poll for the suggestions and finished tasks Promptless produces, so another system can act on them. An API request runs through the same pipeline as every other trigger. Promptless checks your API key and request, routes the request to your configured doc collections, and works from your instructions and connected context sources. When the docs need an update, it creates suggestions that follow your [publishing policies](/docs/for-docs/reference/configuration-reference#policies). This guide covers creating an API key, submitting a task, polling the read endpoints, and following a task’s status and conversation. Tip Choose by caller. An API key suits server-to-server and CI callers. [MCP triggers](/docs/for-docs/connect/triggers/mcp) suit your editor, with no key to create or paste. ## Set up API triggers [Section titled “Set up API triggers”](#set-up-api-triggers) API triggers need no YAML configuration. They’re active whenever your organization has an API key. ### Create an API key [Section titled “Create an API key”](#create-an-api-key) Each API key authorizes requests for your whole organization. Only organization admins can create or revoke keys. 1. Go to [**Settings > API Access**](https://app.gopromptless.ai/settings/api). 2. In the **Create API key** section, enter a **Name** that says what the key is for. A clear name tells your keys apart when you revoke one later. 3. Select **Create key**. 4. Copy the secret from the **Copy this key now** section as soon as it appears. Promptless shows it only once. Caution Store your API key securely. Promptless stores only a hash of the key for validation. ### Manage and rotate keys [Section titled “Manage and rotate keys”](#manage-and-rotate-keys) * An organization can hold many API keys at once. Each active key needs a distinct name within your organization. * Give each integration its own key, named for what uses it, such as a CI pipeline, a Zapier connection, or a script. You can then revoke or rotate one integration’s key, after you retire the integration or after a leak, without touching the others. * A key your organization created before keys had names keeps working and appears in the list as `Default`. * The key list shows each key’s **Name**, its `sk-pl-...` prefix in the **Key** column, and when it was **Created** and **Last used**. * Creating or revoking a key affects only that key. To revoke one, select **Revoke** on its row and confirm. Revoking is permanent, and a revoked key can’t be restored, so move any caller still using it to another key first. To rotate a key without a break in service: 1. Create a new key. 2. Move your integrations to the new key. Both keys work at the same time, so you can move callers one at a time. 3. Revoke the old key. ## Use the API [Section titled “Use the API”](#use-the-api) For the full request and response schemas, status codes, and an interactive explorer, see the [API Reference](/docs/for-docs/api/operations/submitapitriggerv1/). The sections below cover these endpoints with examples. ### Base URL and versioning [Section titled “Base URL and versioning”](#base-url-and-versioning) All requests use the base URL `https://api.gopromptless.ai`. The current API version is `/v1`. Use `POST /v1/triggers`. The unversioned `POST /triggers` path runs the same operation, for callers built before versioning. ### Endpoint [Section titled “Endpoint”](#endpoint) ```http POST /v1/triggers ``` ### Authentication [Section titled “Authentication”](#authentication) Include your API key as a Bearer token in the `Authorization` header: ```http Authorization: Bearer sk-pl-your-api-key ``` The bearer token determines which organization receives the trigger, so the URL carries no organization ID. ### Request format [Section titled “Request format”](#request-format) Send a JSON body with your documentation instructions: ```json { "instructions": "Update the getting started guide with the new authentication flow", "context": { "ticket_id": "ENG-123", "requested_by": "deploy-bot" } } ``` | Field | Type | Required | Description | | -------------- | ------ | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | | `instructions` | string | Yes | What you want Promptless to document. Be specific about which docs to update and what changes to make. | | `context` | object | No | Additional metadata to include with the request. This appears in trigger history for reference and is passed through to the workflow as additional context. | ### Example request [Section titled “Example request”](#example-request) ```bash curl -X POST "https://api.gopromptless.ai/v1/triggers" \ -H "Authorization: Bearer sk-pl-your-api-key" \ -H "Content-Type: application/json" \ -d '{ "instructions": "Document the new rate limiting feature added in v2.5", "context": { "release": "v2.5.0", "jira_ticket": "DOC-456" } }' ``` ### Response [Section titled “Response”](#response) A successful request returns a `202 Accepted` response: ```json { "trigger_event_id": "550e8400-e29b-41d4-a716-446655440000", "deduplicated": false } ``` `deduplicated` is `false` for a fresh submission. It is `true` only when an `Idempotency-Key` matched an earlier submission, described next. ### Idempotent submissions [Section titled “Idempotent submissions”](#idempotent-submissions) Send an optional `Idempotency-Key` request header to make a submission safe to retry. The key is a string of up to 255 characters. * A fresh submission returns a new `trigger_event_id` and `"deduplicated": false`. * A repeat submission that reuses a key already accepted returns the **original** `trigger_event_id` and `"deduplicated": true`, without creating a second trigger event. * Keys are scoped to your organization. Two organizations can use the same key string without affecting each other. * A failed submission (any `4xx` or `5xx`) does not consume the key, so you can retry it with the same key. * `POST /triggers` and `POST /v1/triggers` share one idempotency scope, so a key used on one path is recognized on the other. Reuse a key only for retries of the *same* request. Reusing one key for two genuinely different requests silently discards the second and points its `trigger_event_id` at the first request’s task. Derive the key deterministically from the request’s content, for example a hash of `instructions` plus `context`. A genuine retry then reuses the same key, while two genuinely different requests get different keys. ```bash curl -X POST "https://api.gopromptless.ai/v1/triggers" \ -H "Authorization: Bearer sk-pl-your-api-key" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: deploy-2026-08-20-v2.5.0" \ -d '{ "instructions": "Document the new rate limiting feature added in v2.5" }' ``` A repeat with the same key returns the original trigger event: ```json { "trigger_event_id": "550e8400-e29b-41d4-a716-446655440000", "deduplicated": true } ``` ### Error responses [Section titled “Error responses”](#error-responses) | Status | Error | Description | | ------ | ---------------------------- | -------------------------------------------------------------------- | | 400 | `invalid_idempotency_key` | The `Idempotency-Key` header is blank or longer than 255 characters. | | 400 | `invalid_since` | The `since` parameter is not a valid ISO 8601 timestamp. | | 400 | `invalid_filter` | `event` and `status` were combined in the same request. | | 401 | `authentication_failed` | The API key is missing, invalid, or revoked. | | 409 | `org_not_configured` | Your organization hasn’t finished setting up Promptless. | | 409 | `no_eligible_doc_collection` | No configured doc collection is eligible to receive the request. | | 422 | Validation error | The request body is invalid. | | 500 | `enqueue_failed` | The trigger could not be enqueued for processing. | | 503 | `runtime_store_unavailable` | Trigger intake is temporarily unavailable. | `invalid_since` and `invalid_filter` come from the [suggestions endpoint](#suggestions). The API enforces no rate limits and returns no `429` status. ## Read endpoints [Section titled “Read endpoints”](#read-endpoints) The `/v1` API also exposes read endpoints for polling integrations. They cover a connection check, the list of your doc collections, a suggestion lifecycle feed, and a finished-task feed. All take the same bearer token and return JSON. Each returns `401` when the key is missing, invalid, or revoked, and `503` when the read store is temporarily unavailable. ### Account [Section titled “Account”](#account) ```http GET /v1/account ``` Returns the organization tied to your API key. Use it to test a connection and label the account. `org_name` is `null` for an organization created before names were recorded. For the full schema, see the [Get account details reference](/docs/for-docs/api/operations/getaccount/). ```bash curl "https://api.gopromptless.ai/v1/account" \ -H "Authorization: Bearer sk-pl-your-api-key" ``` ```json { "org_id": "org_2b5f9c1e", "org_name": "Acme, Inc." } ``` ### Doc collections [Section titled “Doc collections”](#doc-collections) ```http GET /v1/doc-collections ``` Lists the doc collections configured for your organization. Each entry carries its `id`, `name`, `platform`, and `default_branch`. The response is not paged. For the full schema, see the [List doc collections reference](/docs/for-docs/api/operations/listdoccollections/). ```bash curl "https://api.gopromptless.ai/v1/doc-collections" \ -H "Authorization: Bearer sk-pl-your-api-key" ``` ```json { "doc_collections": [ { "id": "3f2504e0-4f89-41d3-9a0c-0305e82c3301", "name": "acme/docs", "platform": "github", "default_branch": "main" } ] } ``` ### Suggestions [Section titled “Suggestions”](#suggestions) ```http GET /v1/suggestions ``` Returns the suggestion lifecycle feed for your organization. That feed covers the suggestions Promptless has created, merged, and closed. For the full schema, see the [List suggestions reference](/docs/for-docs/api/operations/listsuggestions/). ```bash curl "https://api.gopromptless.ai/v1/suggestions?event=merged&limit=50" \ -H "Authorization: Bearer sk-pl-your-api-key" ``` ```json { "suggestions": [ { "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7", "title": "Document the new rate limiting feature", "description": "Add a rate limiting section to the API guide.", "status": "merged", "trigger_event_id": "550e8400-e29b-41d4-a716-446655440000", "url": "https://app.gopromptless.ai/suggestions/7c9e6679-7425-40de-944b-e07fc1f90ae7", "docs_pr_url": "https://github.com/acme/docs/pull/482", "doc_collection_id": "3f2504e0-4f89-41d3-9a0c-0305e82c3301", "doc_collection_name": "acme/docs", "impacted_file_paths": ["docs/api/rate-limits.md"], "impacted_file_count": 1, "created_at": "2026-08-20T14:32:00Z", "merged_at": "2026-08-21T09:15:00Z", "closed_at": null, "closed_without_merge": false, "close_reason": null } ] } ``` Each suggestion carries these fields: | Field | Type | Description | | ---------------------- | --------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | string (UUID) | Stable identifier for the suggestion. Deduplicate a feed on this value. | | `title` | string \| null | Short summary of the documentation change. | | `description` | string \| null | Longer explanation of the change. | | `status` | string \| null | Mirrors the docs pull request’s state: `open`, `draft`, `merged`, or `closed`. `null` when the suggestion is drafted but no docs PR has been opened yet; `draft` when a *draft* docs PR is open. | | `trigger_event_id` | string (UUID) \| null | Identifier of the task that created the suggestion, the same id `POST /v1/triggers` returned. `null` for suggestions created before tasks were recorded. | | `url` | string | Dashboard link to the suggestion. | | `docs_pr_url` | string \| null | Link to the documentation pull request, or `null` before a docs PR exists. | | `doc_collection_id` | string \| null | Identifier of the collection the suggestion targets. | | `doc_collection_name` | string \| null | Name of that collection. | | `impacted_file_paths` | array of string | Paths the suggestion changes. | | `impacted_file_count` | integer | Number of impacted files. | | `created_at` | string | ISO 8601 time the suggestion was created. | | `merged_at` | string \| null | ISO 8601 time the docs PR merged, or `null`. | | `closed_at` | string \| null | ISO 8601 time the suggestion closed, or `null`. | | `closed_without_merge` | boolean | `true` when the suggestion closed without merging. Use this field to distinguish suggestions that shipped from ones that were rejected. | | `close_reason` | string \| null | Supplementary machine-readable label for why the suggestion closed (for example, `dashboard_review`), or `null`. This set may expand over time and includes a catch-all such as `unknown_legacy`, so branch on `closed_without_merge` rather than hard-coding against `close_reason` values. | #### Filtering [Section titled “Filtering”](#filtering) Narrow the feed with these query parameters, all optional: | Parameter | Values | Notes | | --------- | ----------------------------------- | ---------------------------------------------------------------------------- | | `event` | `created`, `merged`, `closed` | Selects suggestions by lifecycle event and orders by that event’s timestamp. | | `status` | `open`, `draft`, `merged`, `closed` | Selects suggestions by current status. | | `query` | free text | Matches against the title and description. | | `since` | ISO 8601 timestamp | Inclusive lower limit on the event timestamp. | | `limit` | 1–100 | Number of suggestions to return. Defaults to 50. | | `offset` | 0 or greater | Number of suggestions to skip. Defaults to 0. | `event` and `status` cannot be combined in the same request; sending both returns `400 invalid_filter`. Use `event` to poll a lifecycle feed and `status` to search by current state. #### Polling [Section titled “Polling”](#polling) Results come back newest-first, ordered by the selected `event`’s timestamp in descending order. Build an incremental loop against that order: * Track the newest event timestamp you have seen, and pass it as `since` on the next poll. Because `since` is an inclusive lower limit, the next poll returns an event that committed a moment after your last one. * A row whose event timestamp equals `since` comes back again, so deduplicate results by `id`. * Omitting `since` returns from the start of the available history. * Page through a large result set with `limit` and `offset`. A response that returns fewer than `limit` suggestions means you have reached the end of the current set. * `event` accepts only one value per request and cannot be combined with `status`. The full lifecycle covers created, merged, and closed-without-merge. Track it by running a separate polling loop with its own `since` cursor for each `event` value. * Polling uses only `since`, `limit`, and `offset`, with no cursor token. A minimal incremental loop for one `event` value: ```text # Run one loop per event value (created, merged, closed). since = null # omitted on the first poll -> full history seen = set() # ids already handled, for dedup repeat on an interval: offset = 0 newest = since while true: page = GET /v1/suggestions?event=merged&limit=100&offset=offset (add "&since=" when since is set) for s in page.suggestions: # newest-first if s.id not in seen: process(s) seen.add(s.id) newest = max(newest, s.merged_at) if len(page.suggestions) < 100: # fewer than limit -> end of set break offset = offset + 100 since = newest # inclusive lower bound for next poll ``` ### Finished tasks [Section titled “Finished tasks”](#finished-tasks) ```http GET /v1/triggers ``` Lists your organization’s finished tasks, newest completion first, including tasks that made no documentation change. For the full schema, see the [List finished tasks reference](/docs/for-docs/api/operations/listfinishedtasks/). Only finished tasks appear in this feed. A task still running has no outcome yet, so follow one in flight with [`GET /v1/triggers/{trigger_event_id}`](#read-task-status). The feed omits Promptless’s internal re-runs. If Promptless reopens a finished task to rework it, the task appears again when it finishes, with a new `finished_at` and possibly a different `outcome`. ```bash curl "https://api.gopromptless.ai/v1/triggers?source=api&limit=50" \ -H "Authorization: Bearer sk-pl-your-api-key" ``` ```json { "tasks": [ { "trigger_event_id": "d3aa7c40-5ec4-48c6-8d10-81c2ee042690", "source": "api", "request": "API: Update the retry documentation", "outcome": "no_change_needed", "resolution": "The retry guide already documents the new backoff, so no change was needed.", "submitted_at": "2026-08-24T10:00:00+00:00", "finished_at": "2026-08-24T10:18:00+00:00" } ] } ``` Each task carries these fields: | Field | Type | Description | | ------------------ | -------------- | -------------------------------------------------------- | | `trigger_event_id` | string (UUID) | The task’s id, the same id `POST /v1/triggers` returned. | | `source` | string | The task’s origin, such as `api`. | | `request` | string \| null | A one-line summary of the submitted request. | | `outcome` | string \| null | How the task ended. See [Outcomes](#outcomes). | | `resolution` | string \| null | A note that explains how the task ended. | | `submitted_at` | string | ISO 8601 time the task was submitted. | | `finished_at` | string | ISO 8601 time the task finished. | #### Outcomes [Section titled “Outcomes”](#outcomes) `outcome` is one of these values: | Value | Meaning | | --------------------- | ---------------------------------------------------------------------------------------------------------- | | `suggestions_created` | The task produced at least one suggestion. | | `no_change_needed` | The task produced none because the docs already cover the change. | | `needs_input` | The task produced none and ended on a question the customer must answer. A later answer starts a new task. | | `failed` | Promptless could not finish the work. | `outcome` is `null` for tasks that finished before Promptless added the field and for tasks from sources other than the API or MCP. Promptless may add values later, so handle values not listed here. This feed omits the suggestions a task produced. Each suggestion in the [Suggestions](#suggestions) feed carries `trigger_event_id`, so join the two feeds on that field. #### Filtering [Section titled “Filtering”](#filtering-1) Narrow the feed with these query parameters, all optional: | Parameter | Values | Notes | | --------- | ------------------ | ----------------------------------------------------------------------------------------------------------------------------- | | `since` | ISO 8601 timestamp | Inclusive lower limit on the completion timestamp. A trailing `Z` is accepted, and a value without a timezone is read as UTC. | | `source` | trigger source | Exact source to return, such as `api`. Omit to return every source. | | `limit` | 1–100 | Number of tasks to return. Defaults to 50. | | `offset` | 0 or greater | Number of tasks to skip. Defaults to 0. | An invalid `since` returns `400 invalid_since`. #### Polling [Section titled “Polling”](#polling-1) Poll this feed the way you poll the [Suggestions](#suggestions) feed, ordered by when each task completed: * Results come back newest-completion-first, ordered by completion timestamp and then by `id`. * Track the newest `finished_at` you have seen and pass it as `since` on the next poll. Because `since` is an inclusive lower limit, a task that finishes a moment after your last poll comes back on the next one. * A task whose `finished_at` equals `since` comes back again. Deduplicate by `trigger_event_id` and `finished_at` together. A reopened task that finishes again keeps its `trigger_event_id` but carries a new `finished_at`, so deduplicating on the pair keeps its latest outcome instead of discarding it. * Page through a large result set with `limit` and `offset`. A response with fewer than `limit` tasks means you have reached the end of the current set. * A task finishing mid-poll moves rows to a higher offset, so a walk by `offset` returns it on a later page. ## Task status and messages [Section titled “Task status and messages”](#task-status-and-messages) After you submit a task, follow its progress and continue the conversation on the same trigger event. Both operations use the same `Authorization: Bearer sk-pl-...` token. The conversation is available for tasks submitted over the API or MCP and for tasks created through MCP `request_changes`. ### Read task status [Section titled “Read task status”](#read-task-status) ```http GET /v1/triggers/{trigger_event_id} ``` `trigger_event_id` is the id returned by `POST /v1/triggers`. A successful request returns `200 OK` with the task’s current state: | Field | Type | Description | | ------------------ | -------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `trigger_event_id` | string (UUID) | The task’s id. | | `status` | string | The task’s current status. The `status` string can change over time, so branch on `finished` to detect completion. | | `finished` | boolean | `true` when the task has completed or been skipped. | | `submitted_at` | string | ISO 8601 time the task was submitted. | | `source` | string | The task’s origin. | | `request` | string \| null | A one-line summary of the submitted request. | | `resolution` | string \| null | A note that explains how the task ended. Read it after `finished` is `true`. | | `outcome` | string \| null | How the task ended. See [Outcomes](#outcomes) for the values. `null` until the task finishes, and for tasks from sources other than the API or MCP. | | `suggestions` | array | A per-task summary of each suggestion this task produced, with the fields listed below. This is a lighter shape than the [Suggestions](#suggestions) feed. | | `status_guidance` | string | Human- or LLM-readable advice for polling the task and interpreting its outcome. Key on `finished`, a boolean, to detect completion. Do not parse `status_guidance` in code. | | `messages` | array | The persisted conversation, latest 100, oldest-first. Reading the conversation never consumes it. | Each entry in `suggestions` carries these fields: | Field | Type | Description | | ------------------- | --------------------- | ------------------------------------------------------------------------------------------------------ | | `id` | string (UUID) | Stable identifier for the suggestion. | | `title` | string \| null | Short summary of the documentation change. | | `description` | string \| null | Longer explanation of the change. | | `status` | string \| null | The docs pull request’s state: `open`, `draft`, `merged`, or `closed`. `null` before a docs PR exists. | | `doc_collection_id` | string (UUID) \| null | Identifier of the collection the suggestion targets. | | `docs_pr_url` | string \| null | Link to the documentation pull request, or `null` before a docs PR exists. | | `branch_name` | string | The git branch in the documentation repository. | | `labels` | array of string | Labels on the suggestion. | | `assignees` | array of string | Assignees on the suggestion. | | `created_at` | string | ISO 8601 time the suggestion was created. | The `suggestions` array lists the suggestions this task produced with their current `status` and docs pull request link. To track a suggestion’s full lifecycle, including whether it merged or closed without merging, use the [Suggestions](#suggestions) feed and its `closed_without_merge` field. Each entry in `messages` has the `TaskMessage` shape below. The send endpoint returns the same shape. | Field | Type | Description | | ------------------ | ------------- | ---------------------------------------------------------------------------------------------------- | | `id` | string (UUID) | Stable, immutable identifier. Deduplicate on it. | | `trigger_event_id` | string (UUID) | The task this message belongs to. | | `sequence` | integer | The message’s order within the task. | | `author` | object | `type` is `promptless` or `customer`. `name` is the customer’s email when available, otherwise null. | | `created_at` | string | ISO 8601 time the message was created. | | `message` | string | The message text. | Reading status works for any task source. Promptless populates the `messages` array for tasks submitted over the API or MCP and for tasks created through MCP `request_changes`. A task you submit over the API is eligible for a conversation. An empty `messages` array on your own API task means the task has no messages yet. Tasks from other sources, such as Slack, a GitHub pull request, or the dashboard, carry no conversation, so their `messages` array is empty. ```bash curl "https://api.gopromptless.ai/v1/triggers/550e8400-e29b-41d4-a716-446655440000" \ -H "Authorization: Bearer sk-pl-your-api-key" ``` ```json { "trigger_event_id": "550e8400-e29b-41d4-a716-446655440000", "status": "in_progress", "finished": false, "submitted_at": "2026-08-20T14:32:00Z", "source": "api", "request": "Document the new rate limiting feature added in v2.5", "resolution": null, "outcome": null, "suggestions": [ { "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7", "title": "Document the new rate limiting feature", "description": "Add a rate limiting section to the API guide.", "status": "open", "doc_collection_id": "3f2504e0-4f89-41d3-9a0c-0305e82c3301", "docs_pr_url": "https://github.com/acme/docs/pull/482", "branch_name": "promptless/document-rate-limits", "labels": ["documentation"], "assignees": ["deploy-bot@acme.com"], "created_at": "2026-08-20T14:35:00Z" } ], "status_guidance": "Keep polling until finished is true.", "messages": [ { "id": "b1e2c3d4-5678-90ab-cdef-1234567890ab", "trigger_event_id": "550e8400-e29b-41d4-a716-446655440000", "sequence": 1, "author": { "type": "customer", "name": "deploy-bot@acme.com" }, "created_at": "2026-08-20T14:32:05Z", "message": "Document the new rate limiting feature added in v2.5" } ] } ``` Poll this endpoint on an interval until `finished` is `true`. Back off and retry on a `503`. When you read the conversation, deduplicate messages by their stable `id` so a repeated poll does not reprocess one. For the full schema, see the [Get task status reference](/docs/for-docs/api/operations/gettaskstatus/). ### Send a task message [Section titled “Send a task message”](#send-a-task-message) ```http POST /v1/triggers/{trigger_event_id}/messages ``` Promptless appends the message to the original task named by `trigger_event_id`. The reply stays on that task’s conversation, and no new task is created. | Field | Type | Required | Description | | --------- | ------ | -------- | -------------------------------------------------------------------------- | | `message` | string | Yes | The instruction to add. Non-empty after trimming, up to 20,000 characters. | Send an optional `Idempotency-Key` request header, up to 255 characters, to retry safely. The same key with the same text returns the original stored message with `deduplicated` set to `true`. The same key with different text returns `409 idempotency_conflict`. The key is scoped to the task and your API key, so the same key value used on a different task is independent. A new message returns `201 Created` with body `{ "message": , "deduplicated": false }`. An idempotent replay returns `200 OK` with body `{ "message": , "deduplicated": true }`. ```bash curl -X POST "https://api.gopromptless.ai/v1/triggers/550e8400-e29b-41d4-a716-446655440000/messages" \ -H "Authorization: Bearer sk-pl-your-api-key" \ -H "Content-Type: application/json" \ -d '{ "message": "Also document the 429 rate-limit response for this endpoint." }' ``` ```json { "message": { "id": "c2f3d4e5-6789-01bc-def2-34567890abcd", "trigger_event_id": "550e8400-e29b-41d4-a716-446655440000", "sequence": 2, "author": { "type": "customer", "name": "deploy-bot@acme.com" }, "created_at": "2026-08-20T14:40:00Z", "message": "Also document the 429 rate-limit response for this endpoint." }, "deduplicated": false } ``` A retry that sends the same text with the same `Idempotency-Key` returns the stored message and sets `deduplicated` to `true`: ```json { "message": { "id": "c2f3d4e5-6789-01bc-def2-34567890abcd", "trigger_event_id": "550e8400-e29b-41d4-a716-446655440000", "sequence": 2, "author": { "type": "customer", "name": "deploy-bot@acme.com" }, "created_at": "2026-08-20T14:40:00Z", "message": "Also document the 429 rate-limit response for this endpoint." }, "deduplicated": true } ``` For the full schema, see the [Send a task message reference](/docs/for-docs/api/operations/sendtaskmessage/). ### Task error responses [Section titled “Task error responses”](#task-error-responses) Both operations return `401 authentication_failed` when the key is missing, invalid, or revoked. Both return `404 task_not_found` for an unknown task or one in another organization. Both return `503 runtime_store_unavailable` when the read store is temporarily unavailable. | Status | Error | Description | Applies to | | ------ | --------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- | | 404 | `task_not_found` | Unknown task, or a task in another organization. | both | | 422 | Validation error | The `trigger_event_id` in the path isn’t a valid UUID, or the request body is malformed. | both | | 409 | `task_finished` | The task has finished and stops accepting messages. A task that finished by reporting a blocker or a clarification request has still finished. To continue the work, submit a new trigger with `POST /v1/triggers`. | send | | 400 | `unsupported_task_source` | Task messages are available for tasks submitted over the API or MCP and for MCP `request_changes` tasks. Read the task’s status with `GET /v1/triggers/{trigger_event_id}` (status is available for every source), or submit the work as a new API trigger to converse. | send | | 400 | `invalid_message` | The message is empty or longer than 20,000 characters after trimming, or an `Idempotency-Key` that is blank or longer than 255 characters. | send | | 409 | `idempotency_conflict` | The same `Idempotency-Key` was reused with different text. | send | | 401 | `authentication_failed` | The API key is missing, invalid, or revoked. | both | | 503 | `runtime_store_unavailable` | Task intake or lookup is temporarily unavailable. | both | ## View API triggers [Section titled “View API triggers”](#view-api-triggers) API-triggered events appear in your dashboard with an **API Task** pill. A task that reaches the API through a Promptless-built client carries that client’s own pill. A task submitted through the Promptless Zapier app shows a **Zapier Task** pill. A task submitted from your editor over [MCP](/docs/for-docs/connect/triggers/mcp) shows an **MCP Task** pill. ### Trigger history [Section titled “Trigger history”](#trigger-history) View all API triggers on the [Triggers page](https://app.gopromptless.ai/triggers). API triggers show the submitted instructions and any context you included in the request. ### Suggestion history [Section titled “Suggestion history”](#suggestion-history) Set the **Trigger source** filter to “API” on the [Suggestions list](https://app.gopromptless.ai/suggestions) to see documentation suggestions that came from API requests. ## See also [Section titled “See also”](#see-also) * [API Reference](/docs/for-docs/api/operations/submitapitriggerv1/), for full request and response schemas and an interactive explorer * [MCP triggers](/docs/for-docs/connect/triggers/mcp), to start and follow documentation tasks from your editor * [Trigger Promptless from Jira Automation](/docs/for-docs/connect/triggers/jira-automation), to call the API trigger from a Jira flow * [Zapier recipes](/docs/for-docs/get-the-most-out/zapier-recipes), for Zapier automations built on the API trigger * [Configuration Reference](/docs/for-docs/reference/configuration-reference#policies), for the publishing policies API suggestions follow # GitHub commits > Trigger documentation suggestions from direct commits to your default branches, for teams that merge without pull requests or ship hotfixes. ## Overview [Section titled “Overview”](#overview) A GitHub commit trigger starts documentation work from commits pushed to a branch you monitor. Promptless reads each commit’s diff and message, and creates documentation suggestions when the change needs a documentation update. Add one when changes reach your default branch without a pull request: | Use case | Why a commit trigger fits | | ------------------------ | --------------------------------------------------------------------------------------- | | Changelog monitoring | Updates documentation when changelog files change. Scope it with `trigger_directories`. | | Hotfix documentation | Catches documentation needs from emergency fixes that skip the normal PR process. | | Direct-to-main workflows | Covers teams that commit directly to the default branch. | | Automated updates | Starts documentation updates from commits that automated processes push. | This guide covers choosing between commit and PR triggers, adding the trigger, and setting how Promptless notifies you and publishes its suggestions. Tip You can also ask Promptless in Slack or Microsoft Teams to set up the trigger for you. For example, “@Promptless add a commit trigger watching the main branch of my acme/api repo.” See [Ask Promptless to update your configuration](/docs/for-docs/get-the-most-out/ask-promptless-to-update-config). ## Before you start [Section titled “Before you start”](#before-you-start) * An admin role in your Promptless organization, to connect GitHub and edit the [Configuration page](https://app.gopromptless.ai/configuration). * The GitHub organization that holds the repositories you want to monitor, connected to Promptless. Promptless can’t save a GitHub commit trigger until it is. If the organization isn’t connected yet, [connect it](#connect-github) first. ## Connect GitHub [Section titled “Connect GitHub”](#connect-github) Skip this section if the organization already has a card on the [Integrations page](https://app.gopromptless.ai/integrations). You need an admin role in your Promptless organization to start a GitHub connection. GitHub then asks you to authorize the Promptless GitHub App with your GitHub account. The connection completes only if that account administers the organization or account you connect. For a GitHub organization, that’s an organization owner. For a personal account, it’s the account owner. On GitHub Enterprise Server, or on GitHub Enterprise Cloud when a policy blocks third-party apps, connect through a custom GitHub App. See [GitHub Enterprise integration](/docs/for-docs/reference/integrations/github-enterprise). 1. In the Promptless dashboard, open the [Integrations](https://app.gopromptless.ai/integrations) page. 2. Select **Connect GitHub**. 3. In GitHub, select the organization to install Promptless into. ![GitHub Organization Selection](/assets/github-select-org.png) 4. Select the repositories Promptless can access. These are typically your source code repositories and, if your docs live in GitHub, your documentation repository. ![Repository Selection](/assets/github-select-repos.png) 5. On the Integrations page, confirm that the organization appears on its own card. The connection link stays valid for one hour. If it expires before you finish, start the connection again from the Integrations page. Some GitHub organizations require an owner’s approval to install a third-party app. If yours does and you aren’t an owner, GitHub asks you to request approval. To connect in that case: 1. Complete GitHub’s approval request flow. The GitHub card on the Integrations page shows **Waiting on an organization owner** while the request is open. 2. Ask a GitHub organization owner to approve the Promptless GitHub App in the organization’s **Third-party Access** settings. 3. After the owner approves, confirm that the organization appears on its own card. Promptless connects the approved installation automatically. To check right away, select **Check for approval** on the card. If GitHub can’t reuse the approved installation, uninstall the Promptless GitHub App in GitHub, and connect again. Tip To find who can approve, open **Third-party Access** > **Pending requests** in your GitHub organization settings. It shows who has owner permissions. If your GitHub organization enforces an IP allow list, GitHub blocks requests from Promptless until an owner allows them. See [Organization IP allow lists](/docs/for-docs/reference/integrations/github#organization-ip-allow-lists). ## Choose commit triggers, PR triggers, or both [Section titled “Choose commit triggers, PR triggers, or both”](#choose-commit-triggers-pr-triggers-or-both) A commit trigger activates on commits pushed to a monitored branch. A [GitHub PR trigger](/docs/for-docs/connect/triggers/github-prs) activates on pull request activity. The two overlap in a standard GitHub workflow. When a pull request merges, its merge commit lands on the default branch. The commit trigger then activates along with the PR trigger’s merge event. Use a commit trigger on its own or alongside PR triggers for the same repositories: | Setup | When Promptless runs | Comments on PRs | Choose it when | | ---------------------- | ----------------------------------------------- | --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Commit and PR triggers | While the PR is open, and again after it merges | Yes | You want documentation feedback during review, and suggestions updated with the final merged content. | | Commit trigger only | After changes merge to the monitored branch | No | PR triggers create too much notification noise. [Send notifications to a Slack channel](#send-notifications-to-a-slack-channel) to hear about new suggestions. | ## Add a commit trigger [Section titled “Add a commit trigger”](#add-a-commit-trigger) 1. On the [Configuration page](https://app.gopromptless.ai/configuration), switch to **YAML** mode. 2. In the `triggers` section, add a `github_commit` trigger with a match clause for the repositories you want to monitor: ```yaml triggers: main-commits: trigger_type: github_commit match: - repos: - acme/backend - acme/frontend branches: - main # omit to match only the repository's default branch trigger_directories: - src/ - lib/ ``` 3. Save the configuration. Each match clause takes these fields: | Field | Required | Description | | --------------------- | -------- | ----------------------------------------------------------------------------------------------------------------- | | `repos` | Yes | The repositories to monitor, or the literal `all`. | | `branches` | No | The branches to monitor. Omit it to monitor only each repository’s default branch. | | `trigger_directories` | No | Only commits that change files in these directories trigger documentation updates, such as a changelog directory. | For every field, including repository exclusions and topic and owner filters, see the [Configuration Reference](/docs/for-docs/reference/configuration-reference#triggers). ## Set how Promptless publishes suggestions [Section titled “Set how Promptless publishes suggestions”](#set-how-promptless-publishes-suggestions) Commit triggers don’t comment on PRs, so tell Promptless where to report suggestions and how far to automate publishing. Set these options in your [publishing policies](/docs/for-docs/reference/configuration-reference#policies): | Option | Policy setting | Effect | | --------------------- | ---------------------------- | -------------------------------------------------------------------------------------------------------------------- | | Slack notifications | `notification.slack_channel` | Posts to a Slack channel when Promptless creates or updates suggestions. | | Automatic PR creation | `publishing.auto_create_pr` | Opens a documentation PR for each suggestion. | | Auto-merge | `publishing.auto_merge` | Merges documentation PRs into the default branch as soon as Promptless creates them. Requires automatic PR creation. | ### Send notifications to a Slack channel [Section titled “Send notifications to a Slack channel”](#send-notifications-to-a-slack-channel) For a private Slack channel, first invite Promptless by tagging `@Promptless` in the channel. Then set the channel in a policy: ```yaml policies: default: notification: slack_channel: docs-updates ``` ### Turn on auto-merge mode [Section titled “Turn on auto-merge mode”](#turn-on-auto-merge-mode) Auto-merge publishes documentation PRs without human review. Use it for internal documentation, high-confidence workflows that want full automation, or changelog updates that should publish immediately. Turn on both automatic PR creation and auto-merge in a policy rule scoped to the commit trigger: ```yaml policies: rules: - if: trigger: main-commits then: publishing: auto_create_pr: true auto_merge: true ``` ## See also [Section titled “See also”](#see-also) * [GitHub integration](/docs/for-docs/reference/integrations/github), for repository access, IP allow lists, and the authentication model * [GitHub PRs](/docs/for-docs/connect/triggers/github-prs), to start documentation work from pull request activity * [Triggers](/docs/for-docs/connect/triggers), for how triggers work and how to follow what one did * [Configuration Reference](/docs/for-docs/reference/configuration-reference#triggers), for every trigger and policy field # GitHub issues > Mention @Promptless in a GitHub issue to turn a documentation request into a reviewed suggestion. ## Overview [Section titled “Overview”](#overview) Mention @Promptless in a GitHub issue to turn a documentation request into a suggestion. Promptless reads the issue’s title, description, and comments, decides whether the request needs a documentation update, and creates suggestions when it does. Issue mentions fit when: * Contributors or users open issues that ask for specific documentation improvements. * Community members in an open-source project want to request docs updates without access to your other tools. * Your team tracks documentation gaps as issues and wants Promptless to act on them. The GitHub issue trigger is built in. It needs no YAML configuration and works in every repository where the Promptless GitHub App is installed. ## Before you start [Section titled “Before you start”](#before-you-start) * The GitHub organization that holds the repository, connected to Promptless through the Promptless GitHub App. If it isn’t connected yet, [connect it](#connect-github) first. * Your organization’s Promptless setup finished on the [Configuration page](https://app.gopromptless.ai/configuration). ## Connect GitHub [Section titled “Connect GitHub”](#connect-github) Skip this section if the organization that holds your repositories already has a card on the [Integrations page](https://app.gopromptless.ai/integrations). You need an admin role in your Promptless organization to start a GitHub connection. GitHub then asks you to authorize the Promptless GitHub App with your GitHub account. The connection completes only if that account administers the organization or account you connect. For a GitHub organization, that’s an organization owner. For a personal account, it’s the account owner. On GitHub Enterprise Server, or on GitHub Enterprise Cloud when a policy blocks third-party apps, connect through a custom GitHub App. See [GitHub Enterprise integration](/docs/for-docs/reference/integrations/github-enterprise). 1. In the Promptless dashboard, open the [Integrations](https://app.gopromptless.ai/integrations) page. 2. Select **Connect GitHub**. 3. In GitHub, select the organization to install Promptless into. ![GitHub Organization Selection](/assets/github-select-org.png) 4. Select the repositories Promptless can access. These are typically your source code repositories and, if your docs live in GitHub, your documentation repository. ![Repository Selection](/assets/github-select-repos.png) 5. On the Integrations page, confirm that the organization appears on its own card. The connection link stays valid for one hour. If it expires before you finish, start the connection again from the Integrations page. Some GitHub organizations require an owner’s approval to install a third-party app. If yours does and you aren’t an owner, GitHub asks you to request approval. To connect in that case: 1. Complete GitHub’s approval request flow. The GitHub card on the Integrations page shows **Waiting on an organization owner** while the request is open. 2. Ask a GitHub organization owner to approve the Promptless GitHub App in the organization’s **Third-party Access** settings. 3. After the owner approves, confirm that the organization appears on its own card. Promptless connects the approved installation automatically. To check right away, select **Check for approval** on the card. If GitHub can’t reuse the approved installation, uninstall the Promptless GitHub App in GitHub, and connect again. Tip To find who can approve, open **Third-party Access** > **Pending requests** in your GitHub organization settings. It shows who has owner permissions. If your GitHub organization enforces an IP allow list, GitHub blocks requests from Promptless until an owner allows them. See [Organization IP allow lists](/docs/for-docs/reference/integrations/github#organization-ip-allow-lists). ## Request a documentation update from an issue [Section titled “Request a documentation update from an issue”](#request-a-documentation-update-from-an-issue) 1. Open an issue, or go to an existing one, in a repository where the Promptless GitHub App is installed. 2. Mention `@Promptless` in the issue’s title or description, or in a comment, and describe the documentation change you want. Promptless adds an eyes (👀) reaction to the issue, or to your comment, when it starts working. It then decides whether the request warrants a documentation update. If it does, Promptless creates documentation suggestions and posts the results back to the issue. If your organization hasn’t finished setting up Promptless, Promptless replies on the issue with a link to the dashboard so you can complete setup. Suggestions from issues publish and notify according to your [policies](/docs/for-docs/reference/configuration-reference#policies), like suggestions from any other trigger. ## See also [Section titled “See also”](#see-also) * [GitHub integration](/docs/for-docs/reference/integrations/github), for repository access and the authentication model * [GitHub PRs](/docs/for-docs/connect/triggers/github-prs#request-documentation-via-pr-comments), to request documentation from a pull request comment * [Triggers](/docs/for-docs/connect/triggers), for how triggers work and how to follow what one did * [Configuration Reference](/docs/for-docs/reference/configuration-reference#policies), for publishing and notification policies # GitHub PRs > Trigger documentation suggestions from your GitHub pull requests, and choose whether they run when a PR opens, is approved, merges, or gets a new push. ## Overview [Section titled “Overview”](#overview) A GitHub PR trigger starts documentation work from pull request activity in the repositories you monitor. Choose whether Promptless runs when a PR opens, gets its first approval, merges, or receives new commits. To ask for documentation on one PR, [mention `@promptless` in it](#request-documentation-from-a-pull-request). When an event matches your trigger, Promptless reads the full pull request. That includes the title and description, the code diff, review comments, and every commit, including commits added after the PR opened. When a reviewer requests changes, Promptless reads both the feedback and the commits that address it. If the change needs a documentation update, Promptless creates documentation suggestions. Note Promptless processes PR information in real time and doesn’t store it. It analyzes a PR only when a configured trigger event or an `@promptless` mention starts work on it. Tip You can also ask Promptless in Slack or Microsoft Teams to set up the trigger for you. For example, “@Promptless add a GitHub PR trigger for my acme/api repo that only runs on the src/ directory.” See [Ask Promptless to update your configuration](/docs/for-docs/get-the-most-out/ask-promptless-to-update-config). ## Before you start [Section titled “Before you start”](#before-you-start) * An admin role in your Promptless organization, to connect GitHub and edit the [Configuration page](https://app.gopromptless.ai/configuration). * The GitHub organization that holds the repositories you want to monitor, connected to Promptless. Promptless can’t save a GitHub PR trigger until it is. If the organization isn’t connected yet, [connect it](#connect-github) first. ## Connect GitHub [Section titled “Connect GitHub”](#connect-github) Skip this section if the organization already has a card on the [Integrations page](https://app.gopromptless.ai/integrations). You need an admin role in your Promptless organization to start a GitHub connection. GitHub then asks you to authorize the Promptless GitHub App with your GitHub account. The connection completes only if that account administers the organization or account you connect. For a GitHub organization, that’s an organization owner. For a personal account, it’s the account owner. On GitHub Enterprise Server, or on GitHub Enterprise Cloud when a policy blocks third-party apps, connect through a custom GitHub App. See [GitHub Enterprise integration](/docs/for-docs/reference/integrations/github-enterprise). 1. In the Promptless dashboard, open the [Integrations](https://app.gopromptless.ai/integrations) page. 2. Select **Connect GitHub**. 3. In GitHub, select the organization to install Promptless into. ![GitHub Organization Selection](/assets/github-select-org.png) 4. Select the repositories Promptless can access. These are typically your source code repositories and, if your docs live in GitHub, your documentation repository. ![Repository Selection](/assets/github-select-repos.png) 5. On the Integrations page, confirm that the organization appears on its own card. The connection link stays valid for one hour. If it expires before you finish, start the connection again from the Integrations page. Some GitHub organizations require an owner’s approval to install a third-party app. If yours does and you aren’t an owner, GitHub asks you to request approval. To connect in that case: 1. Complete GitHub’s approval request flow. The GitHub card on the Integrations page shows **Waiting on an organization owner** while the request is open. 2. Ask a GitHub organization owner to approve the Promptless GitHub App in the organization’s **Third-party Access** settings. 3. After the owner approves, confirm that the organization appears on its own card. Promptless connects the approved installation automatically. To check right away, select **Check for approval** on the card. If GitHub can’t reuse the approved installation, uninstall the Promptless GitHub App in GitHub, and connect again. Tip To find who can approve, open **Third-party Access** > **Pending requests** in your GitHub organization settings. It shows who has owner permissions. If your GitHub organization enforces an IP allow list, GitHub blocks requests from Promptless until an owner allows them. See [Organization IP allow lists](/docs/for-docs/reference/integrations/github#organization-ip-allow-lists). ## Add a PR trigger [Section titled “Add a PR trigger”](#add-a-pr-trigger) 1. On the [Configuration page](https://app.gopromptless.ai/configuration), switch to **YAML** mode. 2. In the `triggers` section, add a `github_pr` trigger with a match clause for the repositories you want to monitor: ```yaml triggers: my-pr-trigger: trigger_type: github_pr match: - repos: - acme/backend - acme/frontend trigger_on: - opened # When PR opens - first_approval # After first approval - merge # When PR merges trigger_directories: - src/ ``` 3. Save the configuration. Each match clause takes these fields: | Field | Required | Description | | --------------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `repos` | Yes | The repositories to monitor, in `owner/repo` format, or the literal `all`. A clause that lists `updated` needs an explicit list. | | `trigger_on` | Yes | One or more [trigger modes](#choose-trigger-modes): `opened`, `first_approval`, `merge`, or `updated`. | | `trigger_directories` | No | Only PRs that change files in these directories trigger documentation updates. See [Limit a trigger to specific directories](#limit-a-trigger-to-specific-directories). | | `repo_topics` | No | Only repositories with at least one of these GitHub topics trigger documentation updates. See [Limit a trigger to tagged repositories](#limit-a-trigger-to-tagged-repositories). | A trigger runs when any of its match clauses matches. For every field, including repository exclusions and the base-branch and owner filters, see the [Configuration Reference](/docs/for-docs/reference/configuration-reference#triggers). To catch up on pull requests that opened or merged before you configured the trigger, run a [backfill](/docs/for-docs/connect/triggers#backfill-suggestions) from the saved trigger. Before you go live, review the first batch of backfilled suggestions to calibrate Promptless with your documentation style. ### Choose trigger modes [Section titled “Choose trigger modes”](#choose-trigger-modes) List one or more trigger modes in each match clause’s `trigger_on`: | Mode | `trigger_on` value | When Promptless runs | Choose it when | | -------------- | ------------------ | -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | | Opened | `opened` | Once, when the PR opens | You want documentation suggestions ready alongside the code changes, so reviewers can evaluate both. | | First approval | `first_approval` | Once, on the PR’s first approval | You want documentation work to start after code review, so Promptless analyzes the reviewed changes. | | Merge | `merge` | Once, when the PR merges | You want documentation only for changes that have landed. | | Updated | `updated` | On every push to an open PR | You want an open PR re-reviewed as it changes. See [Re-review open PRs on every push](#re-review-open-prs-on-every-push) first. | The first-approval mode triggers once per PR, on the first approval. Later approvals, including re-approvals after requested changes, don’t trigger more documentation updates. ## Re-review open PRs on every push [Section titled “Re-review open PRs on every push”](#re-review-open-prs-on-every-push) The `updated` mode re-reviews an open pull request each time someone pushes new commits to it. Promptless’s suggestions then stay current as the PR changes. It’s available for GitHub PR triggers only, and pushes start no work unless a match clause lists `updated` in `trigger_on`. Each push starts a new review, so a PR with many incremental commits gets many reviews. Scope the clause tightly: name an explicit `repos` list, and narrow it further with `trigger_directories`. Caution A match clause that lists `updated` in `trigger_on` must name an explicit `repos` list; it cannot use `repos: all`. Other clauses in the same trigger are unaffected. Promptless skips pushes to draft PRs and to PRs that Promptless opened. A push from any other contributor, including an external or first-time contributor, starts a new review. On a push, an `@promptless` mention in the title or description doesn’t bypass these filters or start a review. To turn `updated` on, add it to a clause’s `trigger_on` list. That clause must name an explicit `repos` list: ```diff triggers: my-pr-trigger: trigger_type: github_pr match: - repos: - acme/backend - acme/frontend trigger_on: - opened # When PR opens - first_approval # After first approval - merge # When PR merges - updated # Re-review on each new push trigger_directories: - src/ ``` To re-review on each push without the other modes, give `updated` its own clause with an explicit `repos` list, scoped with `trigger_directories`: ```yaml triggers: docs-review-bot: trigger_type: github_pr match: - repos: - acme/docs trigger_on: - updated # Re-review on each new push trigger_directories: - docs/ ``` The explicit-`repos` requirement applies to each match clause, not to the whole trigger. One trigger can pair a `repos: all` clause for the other modes with a scoped `updated` clause: ```yaml triggers: my-pr-trigger: trigger_type: github_pr match: - repos: all # broad clause for one-time modes trigger_on: - opened - merge - repos: # scoped clause required for updated - acme/docs trigger_on: - updated trigger_directories: - docs/ ``` ## Limit which pull requests trigger a review [Section titled “Limit which pull requests trigger a review”](#limit-which-pull-requests-trigger-a-review) Promptless checks each pull request event against these rules before it starts a review: | Pull request | What Promptless does | | -------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | | A draft PR | Skips it until it’s marked ready for review. An `@promptless` mention in the title, description, or a comment still starts work. | | A PR that Promptless opened | Skips it. | | A PR that changes only dot-directories, such as `.github/`, `.circleci/`, or `.beads/`, or root-level dot-files, such as `.gitignore` or `.editorconfig` | Skips it. These files are usually CI and tooling configuration. A PR that also changes other files gets a normal review. | | A PR with no changes in the clause’s `trigger_directories` | Skips it, unless another clause matches. See [Limit a trigger to specific directories](#limit-a-trigger-to-specific-directories). | | A PR in a repository without any of the clause’s `repo_topics` | Skips it, unless another clause matches. See [Limit a trigger to tagged repositories](#limit-a-trigger-to-tagged-repositories). | To narrow a trigger further, add a directory or topic filter. ### Limit a trigger to specific directories [Section titled “Limit a trigger to specific directories”](#limit-a-trigger-to-specific-directories) Limit a trigger to pull requests that change files in specific directories, such as `src/` or `api/`. Use it to focus documentation updates on the parts of your codebase your docs cover. In YAML, set the clause’s `trigger_directories` list. To set it in the dashboard: 1. On the [Configuration page](https://app.gopromptless.ai/configuration), select the **Triggers** tab. 2. Expand an existing **GitHub pull requests** trigger, or create one. 3. Open **More filters (optional)**. 4. Select **Only when files in these folders change**. 5. Enter each folder path, and press Enter or type a comma after each one. 6. Select **Save changes**, or **Add trigger** for a new trigger. ![A GitHub pull requests trigger on the Configuration page, with More filters expanded and docs/ entered under Only when files in these folders change](https://promptless-customer-doc-assets.s3.us-east-2.amazonaws.com/docs-images/org_3DaVKUzHgjyjaODgCPaDmjXezqp/github-directory-trigger-9b64b800.png) Promptless then considers only PRs that change files in those directories, and ignores changes to other files. ### Limit a trigger to tagged repositories [Section titled “Limit a trigger to tagged repositories”](#limit-a-trigger-to-tagged-repositories) If you have many repositories and only some need documentation automation, use [GitHub topics](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/classifying-your-repository-with-topics) to choose which ones trigger Promptless. Promptless triggers on any repository that has at least one of the topics you configure. In YAML, set the clause’s `repo_topics` list. To set it up in GitHub and the dashboard: 1. In GitHub, add a topic, such as `docs-watch` or `promptless`, to each repository you want Promptless to monitor. 2. On the **Triggers** tab of the [Configuration page](https://app.gopromptless.ai/configuration), expand a **GitHub pull requests** trigger, or create one. 3. Open **More filters (optional)**. 4. Select **Only repos tagged with these GitHub topics**, and enter the topics. 5. Select **Save changes**, or **Add trigger** for a new trigger. To add a repository to the trigger later, tag it with a configured topic in GitHub. To remove one, remove the topic from the repository. ## Set how Promptless publishes suggestions [Section titled “Set how Promptless publishes suggestions”](#set-how-promptless-publishes-suggestions) Set how Promptless publishes suggestions from PR triggers in your [publishing policies](/docs/for-docs/reference/configuration-reference#policies): | Option | Policy setting | Effect | | --------------------- | ---------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | | Source PR comments | `publishing.suppress_source_pr_comments` | Posts a summary comment on the source PR that links to the documentation suggestions, so reviewers see them while reviewing the code. On by default. | | Automatic PR creation | `publishing.auto_create_pr` | Opens a PR in your documentation repository with the suggested changes. | Slack notifications are separate from source PR comments. Promptless sends them to the channel in your `notification.slack_channel` policy setting, whether or not source PR comments are on. ### Suppress source PR comments [Section titled “Suppress source PR comments”](#suppress-source-pr-comments) Set `suppress_source_pr_comments: true` to stop comments on source PRs. Promptless still creates documentation suggestions. ```yaml policies: default: publishing: suppress_source_pr_comments: true ``` Teams commonly suppress comments: * During pilot or onboarding periods, before Promptless has been introduced to the broader engineering team * On public repositories, while keeping comments enabled for private repos ## Request documentation from a pull request [Section titled “Request documentation from a pull request”](#request-documentation-from-a-pull-request) To ask for documentation work on a specific pull request, mention `@promptless` or `@promptless-for-oss` in it. Matching is case-insensitive, and the repository needs the GitHub integration installed. A direct mention is a request, so it works outside your trigger modes. Where you put the mention decides when Promptless responds: | Mention location | When Promptless responds | | ------------------------------------------ | -------------------------------------------------------------------------------------------- | | PR title or description | When the PR opens, reopens, or is marked ready for review, or when an edit adds the mention. | | PR comment | When the comment is posted, on an open, draft, merged, or closed PR. | | PR review summary or inline review comment | When the review is submitted. | When you mention `@promptless` in a PR title, description, comment, or review, Promptless adds a 👀 reaction so you know it saw your request. The reaction shows up even when Promptless decides no documentation change is needed, so a missing suggestion doesn’t mean your mention was ignored. ### Request documentation via PR title or description [Section titled “Request documentation via PR title or description”](#request-documentation-via-pr-title-or-description) A mention in a PR’s title or description makes Promptless review the PR whatever your trigger configuration says. If your trigger runs only on first approval, the mention starts a review as soon as the PR opens. If the PR targets your documentation repository, which is normally outside your source scope, the mention pulls it in anyway. Include the mention anywhere in the title or description: ```markdown ## Summary Added new authentication endpoints for SSO integration. @promptless please document these API changes ``` A mention left in a merged PR’s description doesn’t start another review when the PR merges. ### Request documentation via PR comments [Section titled “Request documentation via PR comments”](#request-documentation-via-pr-comments) Tag Promptless in a comment on a source PR to request documentation work: ```text @promptless please update the docs for this API change ``` A comment mention helps when: * A PR was created before your trigger was set up * You want documentation for a PR that’s already merged or closed * The automatic trigger didn’t activate for your PR * You want to provide specific instructions about what to document Promptless ignores comments that don’t mention it directly. ### Request documentation via PR reviews [Section titled “Request documentation via PR reviews”](#request-documentation-via-pr-reviews) Mention `@promptless` in the summary body of a submitted PR review, or in any of its inline review comments. Promptless treats either as a direct request and reviews the PR. A mention in the summary body gets the 👀 reaction on the review. A mention that appears only in an inline comment gets the reaction on that comment. ### Trigger from automated accounts [Section titled “Trigger from automated accounts”](#trigger-from-automated-accounts) A direct `@promptless` mention doesn’t have to come from a person. It takes priority over Promptless’s bot filter. A comment or review from an automated account, like a GitHub Actions workflow, triggers documentation work just as a teammate’s does. Build docs requests into your CI by having an Action post an `@promptless` comment whenever you want docs updated or reviewed. For example, a GitHub Actions step can comment on a pull request to ask Promptless to document the change: ```yaml - name: Ask Promptless for docs run: gh pr comment "$PR_NUMBER" --body "@promptless please update the docs for this change" env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} PR_NUMBER: ${{ github.event.pull_request.number }} ``` Mentions work from any automated account, including CI or review Actions that run checks like Doc Detective or snippet validation. Promptless still ignores bot comments and reviews that don’t mention it. When Promptless acts on an automated account’s mention, its reply names the mention as the reason. The account’s owner can then decide whether to keep tagging it. ## See also [Section titled “See also”](#see-also) * [GitHub integration](/docs/for-docs/reference/integrations/github), for repository access, IP allow lists, and the authentication model * [GitHub commits](/docs/for-docs/connect/triggers/github-commits), to start documentation work from direct pushes to a branch * [Review and edit Promptless PRs](/docs/for-docs/work-the-queue/reviewing-prs), to give Promptless feedback on the PRs it opens * [Configuration Reference](/docs/for-docs/reference/configuration-reference#triggers), for every trigger and policy field # GitLab merge requests > Trigger documentation suggestions from merge requests in your GitLab projects when they open or merge. ## Overview [Section titled “Overview”](#overview) A GitLab merge request trigger starts documentation work from merge requests in the GitLab projects you monitor. When a merge request in a monitored project opens or merges, Promptless reads its code diff, title, and description. If the changes need a documentation update, Promptless creates documentation suggestions. Promptless skips a merge request whose changes are all in dot-directories, such as `.gitlab/` and `.gitlab-ci/`, or in root-level dot-files, such as `.gitignore` and `.gitlab-ci.yml`. These files typically hold CI and tooling configuration. A merge request that changes regular source files along with dot-files gets the normal analysis. Note Promptless processes merge request information in real time and doesn’t store it. Analysis runs only when a configured trigger event occurs. Tip You can also ask Promptless in Slack or Microsoft Teams to set up the trigger for you. For example, “@Promptless add a GitLab merge request trigger for my acme/backend project.” See [Ask Promptless to update your configuration](/docs/for-docs/get-the-most-out/ask-promptless-to-update-config). ## Before you start [Section titled “Before you start”](#before-you-start) * An admin role in your Promptless organization, to connect GitLab and edit the [Configuration page](https://app.gopromptless.ai/configuration). * The GitLab group that holds the projects you want to monitor, connected to Promptless. Promptless can’t save a GitLab merge request trigger until it is. If the group isn’t connected yet, [connect it](#connect-a-gitlab-group) first. ## Connect a GitLab group [Section titled “Connect a GitLab group”](#connect-a-gitlab-group) Skip this section if the group already has a card on the [Integrations page](https://app.gopromptless.ai/integrations). You need the **Owner** role on the GitLab group to create its access token, and an admin role in your Promptless organization to connect it. If you aren’t a group Owner, ask one to create the token. 1. In GitLab, go to your group’s **Settings > Access Tokens** and select **Add new token**. 2. Name the token, for example “Promptless”, and set an expiration date. The maximum is one year. 3. Select the **`api`** scope and the **Maintainer** role. 4. Select **Create group access token**, and copy the token. GitLab shows it only once. The token starts with `glpat-`. For more details, see [GitLab’s group access token documentation](https://docs.gitlab.com/user/group/settings/group_access_tokens/). 5. In the Promptless dashboard, open the [Integrations](https://app.gopromptless.ai/integrations) page. 6. Start the connection. For a gitlab.com group, select **Connect GitLab** on the **GitLab** tile. For a self-hosted instance, select **Connect Self-hosted GitLab** on the **Self-hosted GitLab** tile, and enter your **Instance hostname**. Enter only the host, with no `https://` and no path. 7. In the **Group path** field, enter the group’s full path, for example `acme/platform`. 8. Paste the token into the **Access token** field, and select **Connect**. ![Connect GitLab modal with Group path and Access token fields and a Connect button](https://promptless-customer-doc-assets.s3.us-east-2.amazonaws.com/docs-images/org_3DaVKUzHgjyjaODgCPaDmjXezqp/gitlab-connect-modal-aeb67dd0.png) The token must be a group access token with the **`api`** scope and the **Maintainer** role. Promptless uses it to create the merge-request webhooks, and a read-only `read_api` token or a Developer-role token can’t create them. For why, see [Token scope considerations](/docs/for-docs/reference/integrations/gitlab#token-scope-considerations). The group gets its own card on the [Integrations](https://app.gopromptless.ai/integrations) page. To connect another group, select **Connect GitLab** or **Connect Self-hosted GitLab** again and repeat these steps with that group’s token. ## Add a merge request trigger [Section titled “Add a merge request trigger”](#add-a-merge-request-trigger) 1. On the [Configuration page](https://app.gopromptless.ai/configuration), switch to **YAML** mode. 2. In the `triggers` section, add a `gitlab_mr` trigger with a match clause for the projects you want to monitor: ```yaml triggers: gitlab-mrs: trigger_type: gitlab_mr match: - repos: - acme/backend - acme/api trigger_on: - opened - merge trigger_directories: - src/ ``` 3. Save the configuration. Each match clause takes these fields: | Field | Required | Description | | --------------------- | -------- | --------------------------------------------------------------------------------------------------- | | `repos` | Yes | The GitLab projects to monitor, or the literal `all`. | | `trigger_on` | Yes | The merge request events that start an analysis: `opened`, `merge`, or both. | | `trigger_directories` | No | Only merge requests that change files in these directories trigger documentation updates. | | `branches` | No | Only merge requests that target these branches trigger documentation updates. Omit it to match any. | For every field, including project exclusions, see the [Configuration Reference](/docs/for-docs/reference/configuration-reference#triggers). To catch up on merge requests that opened or merged before you configured the trigger, run a [backfill](/docs/for-docs/connect/triggers#backfill-suggestions) from the saved trigger. Review the first batch of suggestions to calibrate Promptless with your documentation style before you go live. ## Check webhook delivery status [Section titled “Check webhook delivery status”](#check-webhook-delivery-status) Each saved GitLab merge request trigger on your [Configuration page](https://app.gopromptless.ai/configuration) shows when Promptless last received a merge request webhook from the trigger’s projects. Its color shows how long ago: | Color | Last webhook received | | ------ | ------------------------- | | Green | Within the last 4 days | | Yellow | Between 4 and 14 days ago | | Red | 14 or more days ago | A red status, or “No webhook recorded yet” on a trigger whose projects have recent merge requests, means webhooks probably aren’t reaching Promptless. Check [Token scope considerations](/docs/for-docs/reference/integrations/gitlab#token-scope-considerations) and [Fix common connection problems](/docs/for-docs/reference/integrations/gitlab#fix-common-connection-problems). ## Set how Promptless publishes suggestions [Section titled “Set how Promptless publishes suggestions”](#set-how-promptless-publishes-suggestions) Set where Promptless reports suggestions from this trigger, and how far it automates publishing, in your [policies](/docs/for-docs/reference/configuration-reference#policies): | Option | Policy setting | Effect | | --------------------- | ---------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | | Source MR comments | `publishing.suppress_source_pr_comments` | Posts a summary comment on the source merge request that links to its documentation suggestions. On by default; set the field to `true` to turn it off. | | Slack notifications | `notification.slack_channel` | Posts suggestion notifications to a Slack channel. Turning off source MR comments doesn’t affect them. | | Automatic PR creation | `publishing.auto_create_pr` | Opens a documentation PR for each suggestion. | With source MR comments on, reviewers see proposed documentation updates while they review the code changes. ## Request documentation via merge-request comments [Section titled “Request documentation via merge-request comments”](#request-documentation-via-merge-request-comments) To ask for documentation work on a specific merge request, tag Promptless in a comment on it. A comment mention is an explicit request. Promptless reviews that merge request even when its project isn’t in any of your [triggers’ repo lists](/docs/for-docs/reference/configuration-reference#triggers). Your GitLab connection only needs access to the project. GitHub supports the same request through [PR comments](/docs/for-docs/connect/triggers/github-prs#request-documentation-via-pr-comments). Comment mentions are useful when: * The merge request predates your trigger setup. * You want documentation for a merge request that’s already merged or closed. * The automatic trigger didn’t activate. * You want to give specific instructions about what to document. What Promptless does depends on the merge request you comment on: | Merge request | What Promptless does | | -------------------------------------------- | -------------------------------------------------------- | | One Promptless opened for your documentation | Revises that documentation suggestion. | | Any other merge request | Starts a new documentation review of that merge request. | Promptless responds to a mention whether the merge request is open, merged, or closed. A mention from an automated account, such as a CI job’s service account, counts the same as one from a teammate. ### Mention Promptless in a comment [Section titled “Mention Promptless in a comment”](#mention-promptless-in-a-comment) Post a new comment that tags `@promptless` anywhere in its text. Matching is case-insensitive. In OSS projects, tag `@promptless-for-oss`. ```txt @promptless please update the docs for this API change ``` GitLab also recognizes `/promptless` at the start of a comment line, but `@promptless` is more reliable. If `/promptless` doesn’t get a response, tag `@promptless`. Promptless reads mentions in new comments only. Mentions in a comment edit or in the merge request’s title or description don’t start documentation work. ### Confirm Promptless saw your mention [Section titled “Confirm Promptless saw your mention”](#confirm-promptless-saw-your-mention) When you tag `@promptless` in a comment on a merge request, Promptless adds a 👀 reaction to your comment. The reaction appears on both source merge requests and merge requests Promptless opened for your documentation. It shows up even when Promptless decides no documentation change is needed, so a missing suggestion doesn’t mean Promptless ignored your mention. ### Respond to comments on documentation merge requests [Section titled “Respond to comments on documentation merge requests”](#respond-to-comments-on-documentation-merge-requests) On a merge request Promptless opened for your documentation, your organization’s [comment trigger mode](/docs/for-docs/work-the-queue/reviewing-prs#comment-trigger-modes) decides which comments Promptless acts on. The modes are **Listen to all comments** and **Require a mention**. On other merge requests, Promptless acts only on comments that mention it. In either mode, tag `@promptless` or start a line with `/promptless` to make sure Promptless acts on a comment. Mentions work in [comments from automated accounts](/docs/for-docs/work-the-queue/reviewing-prs#mentions-from-automated-accounts) too. ## See also [Section titled “See also”](#see-also) * [GitLab integration](/docs/for-docs/reference/integrations/gitlab), for token scope, webhooks, and connection problems * [GitHub PRs](/docs/for-docs/connect/triggers/github-prs), for the equivalent GitHub trigger * [Review and edit Promptless PRs](/docs/for-docs/work-the-queue/reviewing-prs), to give Promptless feedback on the merge requests it opens # Jira > Start a Promptless session from a Jira ticket and have Promptless reply on the ticket with the documentation PR linked. ## Overview [Section titled “Overview”](#overview) Start a Promptless session from a Jira ticket. Promptless reports back on the ticket, as [Reply on the ticket](#reply-on-the-ticket) describes. Use Jira triggers when your team plans and tracks documentation work in Jira. A ticket starts a session in one of four ways: | Path | What starts a session | What it needs | | ------------------ | --------------------------------------------------------------------------------------------------------- | --------------------------------------- | | Label | Adding a label whose first token is `promptless`, such as `promptless` or `promptless-urgent`. | Atlassian connected. | | Mention | @mentioning the account Promptless acts as in a comment. | An attached Atlassian service account. | | Assignment | Assigning the issue to the account Promptless acts as. | An attached Atlassian service account. | | Configured trigger | Creating an issue, adding a label, or changing an issue’s status, when it matches a Jira trigger you add. | Atlassian connected and a Jira trigger. | The label, mention, and assignment paths are built in and need no YAML configuration. A configured trigger starts sessions whether or not a service account is attached. Two related capabilities work differently. [Jira as a context source](/docs/for-docs/connect/context-sources/jira) lets Promptless read tickets for background without acting on them or writing back. To have Promptless create a Jira issue, see [Create a Jira issue on request](/docs/for-docs/reference/integrations/atlassian#create-a-jira-issue-on-request). ## Before you start [Section titled “Before you start”](#before-you-start) * Atlassian connected to Promptless. Every path needs it. If it isn’t connected yet, [connect it](#connect-atlassian) first. * For the mention and assignment paths, an [attached Atlassian service account](#attach-a-service-account-for-mentions-and-assignments). * To add configured Jira triggers, an [organization admin](/docs/for-docs/reference/configuration-reference#permissions-and-conflict-detection) role. ## Connect Atlassian [Section titled “Connect Atlassian”](#connect-atlassian) Skip this section if Atlassian is already connected on the [Integrations page](https://app.gopromptless.ai/integrations). One Atlassian Cloud connection covers Jira, Confluence, or both. You need an admin role in your Promptless organization to connect it. Promptless reads Jira and Confluence with the permissions of the Atlassian account that approves the connection. If you attach an [Atlassian service account](/docs/for-docs/reference/integrations/atlassian#atlassian-service-account), Promptless uses it for Jira instead. To connect a [dedicated Atlassian account](/docs/for-docs/reference/integrations/atlassian#provision-an-atlassian-account-for-promptless), log in to Atlassian as that account first. 1. On the Promptless [Integrations](https://app.gopromptless.ai/integrations) page, select **Connect Atlassian**. 2. Select **Jira**, **Confluence**, or both, and select **Continue to Atlassian**. Promptless requests only the permissions for the products you select. 3. If Atlassian shows its login screen, log in with the account you want Promptless to use. ![Atlassian Login Screen](https://promptless-customer-doc-assets.s3.amazonaws.com/docs-images/org_2lvkgU9erOFxYhtEVVC0ymPrPdF/aab15aef-2759-42e6-93ec-d4c090526273-jira-atlassian-login.png) 4. On the OAuth consent screen, review the permissions Promptless requests. For what each scope is for, see [Permissions required](/docs/for-docs/reference/integrations/atlassian#permissions-required). ![Jira OAuth Consent Screen](https://promptless-customer-doc-assets.s3.amazonaws.com/docs-images/org_2lvkgU9erOFxYhtEVVC0ymPrPdF/aab15aef-2759-42e6-93ec-d4c090526273-jira-oauth-consent.png) 5. Select **Accept**. If the consent screen shows no **Accept** option, your Atlassian account might not have the required permissions. Ask your Jira administrator to connect, or [invite them to Promptless](/docs/for-docs/reference/account-management). 6. On the Promptless [Integrations](https://app.gopromptless.ai/integrations) page, confirm the connection on the Atlassian card. To manage Promptless’s access later, open Atlassian and go to your avatar > **Account settings** > **Connected apps**. ![Atlassian Connected Apps Management](https://promptless-customer-doc-assets.s3.amazonaws.com/docs-images/org_2lvkgU9erOFxYhtEVVC0ymPrPdF/aab15aef-2759-42e6-93ec-d4c090526273-jira-connected-apps.png) Connecting Atlassian turns on the built-in label path and lets you add configured Jira triggers. ## How a Jira ticket starts a session [Section titled “How a Jira ticket starts a session”](#how-a-jira-ticket-starts-a-session) To start a session from a ticket on a built-in path, do one of the following: * Add a label whose first token is `promptless`. The label path works whenever Atlassian is connected. * With a service account attached, @mention the account Promptless acts as in a comment. Promptless matches the mention by the account’s ID. A mention picked from Jira’s autocomplete shows the account’s display name, so the comment needs no literal `@promptless` text. * With a service account attached, assign the issue to the account Promptless acts as. Without a service account, a mention or an assignment starts no session. Labels whose first token is `promptless` are reserved for the built-in label path, and they never route to a configured Jira trigger. What Promptless posts on the ticket depends on how the session started. See [Reply on the ticket](#reply-on-the-ticket). The three built-in paths share one built-in trigger, `jira_mention`. To set publishing or notifications for them, target `jira_mention` in a policy rule. Each path has no key of its own. When one Jira update carries more than one built-in path, Promptless starts at most one session, for the highest-precedence path that applies: * A `promptless` label starts a session even when a mention or assignment on the same update starts none. * Assignment outranks the label. With a service account attached, an update that both assigns the issue and adds a `promptless` label starts the session as the assignment. ### Reply on the ticket [Section titled “Reply on the ticket”](#reply-on-the-ticket) What Promptless posts on the ticket depends on how the session started: | How the session started | What Promptless posts on the ticket | | -------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Mentioning or assigning Promptless | An acknowledgement, progress updates when there’s something useful to share, and an answer, even when no documentation change is needed. A ticket left without an answer is flagged for follow-up. | | A `promptless` label or a configured trigger | A comment with the result when the work produces a suggestion, or a blocker you can act on. Promptless posts no progress updates, and no comment when there’s no documentation change. | A result comment links the suggestion and the documentation PR. Promptless also attaches the documentation PR as a remote link, a linked reference on the Jira issue. Re-posting never adds a duplicate link. Your configured Slack or Teams notification and `escalation` channels receive their usual messages as well. ### Which account Promptless uses in Jira [Section titled “Which account Promptless uses in Jira”](#which-account-promptless-uses-in-jira) With an [Atlassian service account](#attach-a-service-account-for-mentions-and-assignments) attached, Promptless reads tickets, comments, adds remote links, and creates issues as the service account. If Atlassian refuses the service account, Promptless reports the failure and doesn’t fall back to the person who connected Atlassian. Without a service account, Promptless reads Jira as the person who connected Atlassian. Its comments, remote links, and new issues would appear under that person’s name. Promptless makes each of those writes only when your [Knowledge Base](/docs/for-docs/get-the-most-out/agent-knowledge-base) or the current request explicitly permits that action: * Permission covers only the action and scope it names. A Knowledge Base note that says Promptless may comment on `DOCS` tickets permits comments there, not remote links or new issues. * Permission given in one request applies to that request only. * A configured trigger, a notification setting, or a request for documentation work doesn’t grant permission. Without permission for these extra actions, Promptless still does the documentation work. It skips writing to Jira, records why, and delivers the result through your other notification channels. ## Add a configured Jira trigger [Section titled “Add a configured Jira trigger”](#add-a-configured-jira-trigger) Add a configured Jira trigger to start sessions when an issue is created, gets a label, or changes status in the projects you choose. 1. On the [Configuration page](https://app.gopromptless.ai/configuration), switch to **YAML** mode. 2. In the `triggers` section, add one or more Jira triggers. Each `trigger_type` names the moment it activates on: ```yaml triggers: jira-new-docs-issue: trigger_type: jira_new_issue match: - project_key: [DOCS] jira-needs-docs-label: trigger_type: jira_label_added match: - new_label: [needs-docs] jira-ready-for-docs: trigger_type: jira_status_change match: - is_done: true - new_status: ["In Review", "Pull Request"] ``` 3. Select **Save**. You can also add these triggers on the **Triggers** tab. Under **Tasks & tickets**, select **A new Jira issue**, **A Jira label**, or **A Jira status**. The trigger map keys, such as `jira-new-docs-issue`, are yours to name. The `trigger_type` values, such as `jira_new_issue`, are fixed type identifiers. See the [Configuration Reference](/docs/for-docs/reference/configuration-reference#triggers) for the full schema. ### How a configured trigger activates [Section titled “How a configured trigger activates”](#how-a-configured-trigger-activates) Each trigger type names the edge an issue crosses: the issue being created, a label being added, or the status changing. A trigger activates once per crossing. A later update about an issue that still matches doesn’t activate it again. For example, editing the description of a `DOCS` issue doesn’t re-activate a new-issue trigger. Commenting on an issue that already carries `needs-docs` doesn’t re-activate a label trigger. Creating an issue crosses every edge at once, because the issue arrives with its labels and its status. A new `DOCS` issue filed with `needs-docs` matches both `jira-new-docs-issue` and `jira-needs-docs-label`, and Promptless starts one session tagged with both keys. Within one `match` clause (each `-` item), the fields are ANDed. Separate clauses are ORed. So `jira-ready-for-docs` above activates when an issue reaches any done status, and separately when it reaches `In Review` or `Pull Request`. All Jira fields match case-insensitively. Multi-value matches compare each value on its own. A second listed label activates the trigger even when the issue already holds the first, and a move between two listed statuses activates it again. ### Scoping to projects [Section titled “Scoping to projects”](#scoping-to-projects) `project_key` is required on `jira_new_issue`, which would otherwise activate on every issue created anywhere in the site. It’s optional on the other two types. Set it unless you mean the whole site: as written, `jira-needs-docs-label` above matches a `needs-docs` label in any project. A `jira_status_change` clause can hold `project_key` alone, which matches any status change within those projects. ### Labels [Section titled “Labels”](#labels) A `new_label` that lists a label whose first token is `promptless` never matches, because the built-in label path claims those labels first. Name the label something else, such as `needs-docs`. A label that only contains the word, such as `docs-promptless` or `not-promptless`, isn’t reserved. ### Matching done statuses [Section titled “Matching done statuses”](#matching-done-statuses) `new_status` names statuses one by one. Status names differ by project, anyone can rename them, and a done status added later isn’t covered. `is_done: true` matches Jira’s done status category, which stays stable across projects and renames, so one clause covers every done status your site has. `is_done` accepts only `true`. To act on statuses outside the done category, name them with `new_status`. Note An issue moved between two done statuses, such as `Shipped` to `Closed`, activates an `is_done: true` trigger again. The move is a second status change into a done status, so it crosses the trigger’s edge a second time. ### Instructions and output [Section titled “Instructions and output”](#instructions-and-output) `instructions` is optional on all three Jira trigger types. It holds standing work that Promptless runs each time the trigger activates. Use it to give a label a standing job: apply the label, and Promptless runs those instructions against the issue. Omit `instructions` to work from the issue alone. A blank value is invalid. ```yaml triggers: jira-api-docs: trigger_type: jira_label_added instructions: Update the API reference for the change described in the issue. match: - new_label: [api-docs] project_key: [DOCS] ``` A Jira trigger’s output goes wherever the run’s `escalation` and publishing settings send it. That’s a docs suggestion and PR, plus the usual Slack or Teams notification. Promptless also comments on the ticket when the run produces a suggestion or hits a blocker you can act on. A run with no documentation change posts nothing on the ticket. See [Reply on the ticket](#reply-on-the-ticket). ## Attach a service account for mentions and assignments [Section titled “Attach a service account for mentions and assignments”](#attach-a-service-account-for-mentions-and-assignments) Attach a dedicated Atlassian service account to give Promptless its own identity in Jira. Promptless then reads and writes Jira as that account, and the mention and assignment paths start sessions. Without a service account, the account Promptless acts as is the real person who connected Atlassian. Promptless can’t tell ordinary ticket traffic for that colleague from a request for Promptless, so mentions and assignments do nothing. Promptless drops the update, doesn’t reply on the ticket, and doesn’t notify you in Slack or Teams. Only the label path and configured triggers start sessions. They read the ticket as the connecting account and write to Jira only with permission. See [Which account Promptless uses in Jira](#which-account-promptless-uses-in-jira). Before you attach one, an Atlassian admin creates the service account’s credentials with the scopes it needs. See [Atlassian service account](/docs/for-docs/reference/integrations/atlassian#atlassian-service-account). 1. On the [Integrations page](https://app.gopromptless.ai/integrations), go to the Atlassian card. 2. Enter the service account’s **Client ID** and **Client secret**. 3. Select **Attach**. The card then lists the attached account’s details. A **Not working** or **Unconfirmed** badge on the service account section flags a problem to fix. Promptless ignores its own activity in Jira. It recognizes its own updates by the service account when one is attached, and by the connecting account otherwise. ## Example [Section titled “Example”](#example) A team with an attached service account adds the `jira-api-docs` trigger above. A writer adds the `api-docs` label to ticket `DOCS-204` in the `DOCS` project. Applying that label activates the trigger. Following the standing instructions, Promptless updates the API reference and opens a suggestion and documentation PR. It then comments on the ticket with links to both and posts the usual Slack notification. Later, the team moves `DOCS-204` into `In Review`. That status change activates `jira-ready-for-docs`, which watches for the `In Review` and `Pull Request` statuses. When someone files a new `DOCS` issue that already carries `needs-docs`, the issue crosses the new-issue edge and the label edge at once. It matches both `jira-new-docs-issue` and `jira-needs-docs-label`, and Promptless starts one session tagged with both keys. Separately, an engineer @mentions the service account on `DOCS-204` to ask for a related update. Promptless acknowledges the request on the ticket and answers there when the work is done. It attaches the documentation PR as a remote link. ## See also [Section titled “See also”](#see-also) * [Trigger Promptless from Jira Automation](/docs/for-docs/connect/triggers/jira-automation), to start Promptless on a Jira condition these triggers don’t cover * [Atlassian integration](/docs/for-docs/reference/integrations/atlassian), for OAuth scopes and the service account * [Jira context source](/docs/for-docs/connect/context-sources/jira), to let Promptless read tickets for background * [Configuration Reference](/docs/for-docs/reference/configuration-reference#triggers), for every trigger and policy field # Trigger Promptless from Jira Automation > Build a Jira Automation flow that calls the Promptless API trigger, so a Jira event you choose, such as assigning a ticket to a docs owner, starts a documentation update. ## Overview [Section titled “Overview”](#overview) Use a Jira Automation flow when the [Jira triggers](/docs/for-docs/connect/triggers/jira) don’t fit your workflow. A flow can start Promptless on a more specific condition. For example, it can run when a ticket is assigned to a specific teammate, or when every ticket in a release is marked done. Jira Automation’s own triggers, conditions, and actions decide when the flow runs. The flow sends a web request with the ticket to the Promptless [API trigger](/docs/for-docs/connect/triggers/api). Promptless works from the ticket and opens a documentation suggestion. ## Before you start [Section titled “Before you start”](#before-you-start) You need: * Permission to manage automation in the Jira space, or Jira admin access. * Atlassian connected to Promptless. If it isn’t connected yet, [connect it](#connect-atlassian) first. * A Promptless API key for the flow. An organization admin creates one in [**Settings > API Access**](https://app.gopromptless.ai/settings/api). See [Create an API key](/docs/for-docs/connect/triggers/api#create-an-api-key). ## Connect Atlassian [Section titled “Connect Atlassian”](#connect-atlassian) Skip this section if Atlassian is already connected on the [Integrations page](https://app.gopromptless.ai/integrations). One Atlassian Cloud connection covers Jira, Confluence, or both. You need an admin role in your Promptless organization to connect it. Promptless reads Jira and Confluence with the permissions of the Atlassian account that approves the connection. If you attach an [Atlassian service account](/docs/for-docs/reference/integrations/atlassian#atlassian-service-account), Promptless uses it for Jira instead. To connect a [dedicated Atlassian account](/docs/for-docs/reference/integrations/atlassian#provision-an-atlassian-account-for-promptless), log in to Atlassian as that account first. 1. On the Promptless [Integrations](https://app.gopromptless.ai/integrations) page, select **Connect Atlassian**. 2. Select **Jira**, **Confluence**, or both, and select **Continue to Atlassian**. Promptless requests only the permissions for the products you select. 3. If Atlassian shows its login screen, log in with the account you want Promptless to use. ![Atlassian Login Screen](https://promptless-customer-doc-assets.s3.amazonaws.com/docs-images/org_2lvkgU9erOFxYhtEVVC0ymPrPdF/aab15aef-2759-42e6-93ec-d4c090526273-jira-atlassian-login.png) 4. On the OAuth consent screen, review the permissions Promptless requests. For what each scope is for, see [Permissions required](/docs/for-docs/reference/integrations/atlassian#permissions-required). ![Jira OAuth Consent Screen](https://promptless-customer-doc-assets.s3.amazonaws.com/docs-images/org_2lvkgU9erOFxYhtEVVC0ymPrPdF/aab15aef-2759-42e6-93ec-d4c090526273-jira-oauth-consent.png) 5. Select **Accept**. If the consent screen shows no **Accept** option, your Atlassian account might not have the required permissions. Ask your Jira administrator to connect, or [invite them to Promptless](/docs/for-docs/reference/account-management). 6. On the Promptless [Integrations](https://app.gopromptless.ai/integrations) page, confirm the connection on the Atlassian card. To manage Promptless’s access later, open Atlassian and go to your avatar > **Account settings** > **Connected apps**. ![Atlassian Connected Apps Management](https://promptless-customer-doc-assets.s3.amazonaws.com/docs-images/org_2lvkgU9erOFxYhtEVVC0ymPrPdF/aab15aef-2759-42e6-93ec-d4c090526273-jira-connected-apps.png) ## Choose an identity for Promptless in Jira [Section titled “Choose an identity for Promptless in Jira”](#choose-an-identity-for-promptless-in-jira) Promptless reads, comments on, and creates Jira tickets as one of two accounts: * With an [Atlassian service account](/docs/for-docs/reference/integrations/atlassian#atlassian-service-account) attached, Promptless uses the service account. * Without a service account, Promptless reads Jira as the user who connected Atlassian, and its comments and tickets appear under that person’s name. Promptless comments or creates tickets only when your [Knowledge Base](/docs/for-docs/get-the-most-out/agent-knowledge-base) or the request explicitly permits it. Without that permission, Promptless still does the documentation work and skips the Jira write. See [Which account Promptless uses in Jira](/docs/for-docs/connect/triggers/jira#which-account-promptless-uses-in-jira). To assign tickets to Promptless itself, attach a service account as well. ## Build the flow [Section titled “Build the flow”](#build-the-flow) This example flow starts Promptless when a ticket in the space is assigned to a docs owner. 1. In Jira, open the space’s **Space settings > Automation**. 2. Select **Create flow > Create from scratch**. 3. Add the **Work item assigned** trigger. 4. In the trigger’s panel, select **Add condition**, then add a **User condition**. 5. In the condition, set **User** to **Assignee**, **Check to perform** to **is**, and **Criteria** to the docs owner. 6. Add a **Send web request** action. Set **Web request URL** to `https://api.gopromptless.ai/v1/triggers` and **HTTP method** to **POST**. 7. Set **Web request body** to **Custom data**, and enter the request body from [Request body](#request-body). 8. Under **Headers (optional)**, add the key `Authorization` with the value `Bearer sk-pl-your-api-key`, and select **Hidden**. 9. Select **Save and enable**. ![A Jira Automation flow with a Work item assigned trigger, a condition on the assignee, and a Send web request action, with the Send web request settings open beside it](https://promptless-customer-doc-assets.s3.us-east-2.amazonaws.com/docs-images/org_3DaVKUzHgjyjaODgCPaDmjXezqp/jira-automation-api-trigger-flow-13b47191.png) ## Request body [Section titled “Request body”](#request-body) The request body takes two fields: * `instructions` is required and tells Promptless what to do. Name the ticket, and add any standing guidance for this flow, such as which docs to update. * `context` is optional. It appears with the request in trigger history on the [Triggers page](https://app.gopromptless.ai/triggers). Jira [smart values](https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/), such as `{{issue.key}}`, fill in details from the ticket that started the flow: ```json { "instructions": "Update the documentation for Jira ticket {{issue.key}}. Comment on the ticket with a link to the docs PR.", "context": { "jira_issue": "{{issue.key}}", "jira_url": "{{issue.url}}" } } ``` ## Confirm it works [Section titled “Confirm it works”](#confirm-it-works) To test the action before you save, expand **Validate your web request configuration**, enter a ticket key, and select **Validate**. Validating sends a real request, so Promptless starts a session for that ticket. A request that starts a session returns `202 Accepted`: ```json { "trigger_event_id": "550e8400-e29b-41d4-a716-446655440000", "deduplicated": false } ``` The request then appears on the Promptless [Triggers page](https://app.gopromptless.ai/triggers) with its instructions and context. For any other status, open the flow’s **Audit log** and see [Error responses](/docs/for-docs/connect/triggers/api#error-responses). ## See also [Section titled “See also”](#see-also) * [API triggers](/docs/for-docs/connect/triggers/api), for the request format, error responses, and task status * [Jira triggers](/docs/for-docs/connect/triggers/jira), to start Promptless from a label, mention, assignment, or configured Jira trigger * [Atlassian integration](/docs/for-docs/reference/integrations/atlassian), for OAuth scopes and the service account # LaunchDarkly > Start Promptless documentation work when a LaunchDarkly feature flag changes in a project, environment, or flag you choose. ## Overview [Section titled “Overview”](#overview) A LaunchDarkly flag trigger starts Promptless documentation work when a matching feature flag changes, such as a flag turned on in production. Use it when your team releases features by changing flags, so documentation work starts at rollout. Connecting LaunchDarkly sets up flag-change delivery to Promptless. A LaunchDarkly flag trigger then chooses which flag changes start documentation work. Note The LaunchDarkly integration and this trigger are in beta. For how Promptless verifies webhook deliveries and what disconnecting removes, see the [LaunchDarkly integration](/docs/for-docs/reference/integrations/launchdarkly) page. ## Before you start [Section titled “Before you start”](#before-you-start) * LaunchDarkly connected to Promptless. If it isn’t connected yet, [connect it](#connect-launchdarkly) first. * An [organization admin](/docs/for-docs/reference/configuration-reference#permissions-and-conflict-detection) role, to add triggers. ## Connect LaunchDarkly [Section titled “Connect LaunchDarkly”](#connect-launchdarkly) Skip this section if LaunchDarkly is already connected on the [Integrations page](https://app.gopromptless.ai/integrations). You need an admin role in your Promptless organization to connect LaunchDarkly, and a LaunchDarkly account that can create access tokens. 1. In LaunchDarkly, open [Authorization settings](https://app.launchdarkly.com/settings/authorization) and create an access token. 2. Mark the token as a **service token**. A service token isn’t tied to an individual user, so the integration keeps working when team members leave. 3. For the token’s role, select **Inline policy**. 4. Enter this policy: ```json [ { "effect": "allow", "actions": ["createWebhook", "deleteWebhook"], "resources": ["webhook/*"] }, { "effect": "allow", "actions": ["viewProject"], "resources": ["proj/*"] } ] ``` The policy grants Promptless the minimum permissions it needs: * `createWebhook` and `deleteWebhook` on `webhook/*` let Promptless manage its subscription to flag-change events. * `viewProject` on `proj/*` lets Promptless view projects and flag state. 5. Save the token, and copy it. For more on API access tokens, see the [LaunchDarkly docs](https://launchdarkly.com/docs/home/account/api-create). 6. On the Promptless [Integrations](https://app.gopromptless.ai/integrations) page, select **Connect LaunchDarkly**. 7. Paste the service token into the modal, and select **Connect**. Promptless validates the token and creates a webhook in your LaunchDarkly account that delivers flag-change events. LaunchDarkly then shows as connected on the Integrations page. ## Add a LaunchDarkly flag trigger [Section titled “Add a LaunchDarkly flag trigger”](#add-a-launchdarkly-flag-trigger) 1. On the [Configuration page](https://app.gopromptless.ai/configuration), switch to **YAML** mode. 2. In the `triggers` section, add a `launchdarkly_flag` trigger with one or more match clauses: ```yaml triggers: launchdarkly-checkout-flags: trigger_type: launchdarkly_flag match: - project_key: [checkout] environment_key: [production] flag_key: [express-checkout] - project_key: [billing] ``` 3. Select **Save**. The first clause sets all three fields, so it matches only a change to the `express-checkout` flag in the `checkout` project’s `production` environment. The second clause sets `project_key` alone, so it matches any flag change in the `billing` project. A change that matches either clause starts documentation work. The trigger map key, such as `launchdarkly-checkout-flags`, is yours to name. The `trigger_type` value `launchdarkly_flag` is a fixed type identifier. You can also add this trigger on the **Triggers** tab, from the **A LaunchDarkly flag** entry under **Product & releases**. Each clause there has three fields, **Projects**, **Environments**, and **Feature flags**, which set `project_key`, `environment_key`, and `flag_key`. [Backfill](/docs/for-docs/connect/triggers#backfill-suggestions) isn’t available for LaunchDarkly flag triggers, so a flag change from before you added the trigger starts no documentation work. ## Match a flag change [Section titled “Match a flag change”](#match-a-flag-change) A LaunchDarkly flag trigger matches on three optional list fields: | Field | What it watches | | ----------------- | -------------------------- | | `project_key` | The LaunchDarkly projects. | | `environment_key` | The environments. | | `flag_key` | The individual flags. | Each clause under `match` must set at least one of these fields, and Promptless rejects an empty clause. Within a clause, a flag change matches when it satisfies every field you set. Separate clauses are ORed. A field you leave empty matches every value, so a clause with only `project_key` matches any flag change in those projects. Promptless matches each key exactly as you enter it and doesn’t check it against your LaunchDarkly account. A misspelled project, environment, or flag key saves as valid configuration but never matches a real flag change, so copy keys from LaunchDarkly. ## What Promptless receives [Section titled “What Promptless receives”](#what-promptless-receives) When a matching flag changes, Promptless receives this context from the flag-change webhook LaunchDarkly delivers: * The flag key, project key, and environment key. * The action taken and the event title. * The email of the member who made the change. The webhook carries no before and after flag values or targeting-rule details, and Promptless makes no LaunchDarkly API call to fetch more. ## Example [Section titled “Example”](#example) A team runs a `checkout` project in LaunchDarkly and gates its new express-checkout flow behind the `express-checkout` flag. They add a LaunchDarkly flag trigger scoped to `project_key: [checkout]`, `environment_key: [production]`, and `flag_key: [express-checkout]`. When an engineer turns `express-checkout` on in production, LaunchDarkly delivers the change to Promptless. The trigger matches, and Promptless starts a documentation run for the change. Following the run’s publishing policy, Promptless drafts the express-checkout documentation and opens a documentation PR or leaves a draft suggestion. It then sends the usual Slack or Microsoft Teams notification. To confirm afterward that a flag rollout started a run, check the events Promptless lists in the docs PR description. See [Trigger events in documentation PRs](/docs/for-docs/connect/triggers#trigger-events-in-documentation-prs). ## See also [Section titled “See also”](#see-also) * [LaunchDarkly integration](/docs/for-docs/reference/integrations/launchdarkly), for webhook verification and what disconnecting removes * [Triggers](/docs/for-docs/connect/triggers), for how triggers work and how to follow what one did * [Configuration Reference](/docs/for-docs/reference/configuration-reference#triggers), for every trigger field # MCP triggers > Connect Claude Code, Cursor, Claude, or another MCP client to Promptless to start, track, and revise documentation tasks, or to edit your docs directly. Authorize with OAuth. No API key needed. ## Overview [Section titled “Overview”](#overview) Connect Claude Code, Cursor, Claude, or another MCP client to Promptless. From the conversation you already have open, start a documentation task and get back its outcome and docs pull request link. You can also send a running task more instructions, ask Promptless to revise a suggestion, and label, assign, retitle, open, or close a suggestion. You authorize once in a browser, with no API key to manage. [MCP](https://modelcontextprotocol.io) is an open protocol that editors use to connect to external tools. Any editor with an “MCP servers” setting can connect to Promptless. The Promptless MCP server is built in and always available, with no `promptless.yaml` `triggers:` entry and no setup on the Configuration page. Tip MCP is the no-key, interactive editor path. The [API trigger](/docs/for-docs/connect/triggers/api) is the server-to-server and CI path: an API key plus `POST /v1/triggers`. Both dispatch through the same pipeline, so a task behaves identically whichever way you start it. To use Promptless from the Claude.ai or ChatGPT web app, follow [Use Promptless from Claude.ai or ChatGPT](/docs/for-docs/work-the-queue/claude-and-chatgpt). ## Before you start [Section titled “Before you start”](#before-you-start) * An MCP-capable editor, such as Claude Code or Cursor, or a chat app that accepts custom connectors, such as Claude. * Your organization’s [Promptless setup](https://app.gopromptless.ai/configuration) finished. * An active membership in the organization. MCP needs no API key and no particular organization role. ## Connect the server [Section titled “Connect the server”](#connect-the-server) Promptless has two server URLs: * `https://api.gopromptless.ai/mcp` is the standard server. Promptless drafts the documentation changes, and you review them. Use it day to day. * `https://api.gopromptless.ai/mcp/with-direct-edits` adds six tools so your client can [edit doc files itself](#read-and-edit-documentation-directly). The extra tools use more of your client’s context, so switch to `/mcp` once you no longer need to edit files directly. Each URL is a separate connection that you authorize on its own. The steps below use `/mcp`; use the direct-edit URL in its place to get the extra tools. Connect the server once per editor. For Claude Code, one command sets it up: ```bash claude mcp add --transport http promptless https://api.gopromptless.ai/mcp ``` The same URL and command also appear in the [dashboard](https://app.gopromptless.ai) under **Settings**, in the **Editor connection (MCP)** section, which every organization member can see. ### Claude Code [Section titled “Claude Code”](#claude-code) 1. Run the add command shown above. 2. Run `/mcp` and pick **promptless**. 3. Authorize the connection in the browser tab that opens. See [Authorize in the browser](#authorize-in-the-browser). ### Cursor [Section titled “Cursor”](#cursor) 1. Add an HTTP MCP server named `promptless`. Use the URL `https://api.gopromptless.ai/mcp`, either in Cursor’s MCP settings or by adding the entry to `mcp.json`: ```json { "mcpServers": { "promptless": { "url": "https://api.gopromptless.ai/mcp" } } } ``` The `url` key tells Cursor to use HTTP transport. Or add the server in one step with the [Add to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=promptless\&config=eyJ0eXBlIjoiaHR0cCIsInVybCI6Imh0dHBzOi8vYXBpLmdvcHJvbXB0bGVzcy5haS9tY3AifQ%3D%3D) deep link, which registers the `promptless` server for you. 2. Click **Needs login**. 3. Authorize the connection in the browser tab that opens. See [Authorize in the browser](#authorize-in-the-browser). ### VS Code [Section titled “VS Code”](#vs-code) 1. Add the `promptless` server with the `code` CLI: ```bash code --add-mcp "{\"name\":\"promptless\",\"type\":\"http\",\"url\":\"https://api.gopromptless.ai/mcp\"}" ``` 2. Run **MCP: List Servers** from the Command Palette and start **promptless**. 3. Authorize the connection in the browser tab that opens. See [Authorize in the browser](#authorize-in-the-browser). ### Codex CLI [Section titled “Codex CLI”](#codex-cli) 1. Add the `promptless` server; Codex infers HTTP transport from the `--url` flag: ```bash codex mcp add promptless --url https://api.gopromptless.ai/mcp ``` 2. Run `codex mcp login promptless` to start authorization. 3. Authorize the connection in the browser tab that opens. See [Authorize in the browser](#authorize-in-the-browser). ### Claude [Section titled “Claude”](#claude) Add Promptless to Claude as a [custom connector](https://support.claude.com/en/articles/11175166-get-started-with-custom-connectors-using-remote-mcp): 1. In Claude, open **Customize** > **Connectors**, select **+**, then select **Add custom connector**. 2. Enter `https://api.gopromptless.ai/mcp`, then select **Add**. 3. Select **Connect**, and authorize the connection in the browser tab that opens. See [Authorize in the browser](#authorize-in-the-browser). On a Team or Enterprise plan, an Owner adds the connector under **Organization settings** > **Connectors**, then each member selects **Connect** in **Customize** > **Connectors**. Turn the connector on for a conversation from the **+** menu under **Connectors**. ### Other MCP clients [Section titled “Other MCP clients”](#other-mcp-clients) Any client that supports HTTP transport and OAuth connects at either URL. The exact steps vary by client. ## Authorize in the browser [Section titled “Authorize in the browser”](#authorize-in-the-browser) Your editor handles authorization automatically over OAuth; you approve the connection once in the browser. 1. A browser tab opens to the Promptless consent page. 2. Choose the organization to connect. The picker defaults to your active organization. 3. Check the **Returns to** row. It shows where Promptless sends access when you approve. Promptless doesn’t verify the client name, so go by this row. A local editor such as Claude Code or Cursor returns to a local address with a port, like `127.0.0.1:54321`. An app that opens through its own link scheme shows a callback like `myapp://claude.ai/cb`, and any app on your device that handles `myapp://` links receives the access. Cancel if you didn’t start this connection from that editor or app. 4. Select **Authorize as {your email}**. Your editor stores the token and returns you to the editor. Note An approved client acts with the same access as the member who approved it. The consent page has no permission picker. An approved connection can: * Start tasks, and send an additional instruction into a running task. * List your collections and your recent tasks, and search suggestions. * Read the status of any task in your organization, and follow a running one to its outcome. This includes tasks started from Slack, a GitHub pull request, the dashboard, or the API. * Revise a suggestion Promptless already produced. * Update a suggestion’s labels, assignees, and title, and open its docs pull request. * Close a suggestion, which also closes its docs pull request. * On the direct-edit URL, read and search your documentation and commit edits to an open suggestion’s branch. The write actions (revise, update, close, and edit) act on any suggestion in your organization, like the read tools, including suggestions other members created. Any active organization member can authorize a connection, whatever their [organization role](/docs/for-docs/security/access-and-permissions), and MCP access can’t be limited to specific members or roles. To control what gets submitted, use your [publishing policies and relevance filtering](/docs/for-docs/tune/noise-and-relevance-filtering). A token is tied to one organization. When your client names the server URL in its authorization request, the token works only at that URL. When it doesn’t, the token works at both URLs, so the consent screen lists file reading and editing for every connection. To connect a second organization, authorize again and pick that organization at consent. Your editor can hold one Promptless connection per organization. ## Available tools [Section titled “Available tools”](#available-tools) Both server URLs carry these 11 tools, which let you check on your collections, tasks, and suggestions, or queue and change your documentation work. The direct-edit URL adds six more, described in [Read and edit documentation directly](#read-and-edit-documentation-directly). Five tools are read-only: `list_doc_collections`, `get_task_status`, `list_recent_tasks`, `search_suggestions`, and `wait_for_task_update`. Your editor can auto-approve them, so routine status checks stop prompting you each time. Six tools queue or change work: `submit_documentation_task`, `send_task_message`, `answer_task_question`, `request_changes`, `update_suggestion`, and `close_suggestion`. These always ask before they run. Note If you already have an MCP connection, refresh or reconnect the `promptless` server in your editor. That loads the `send_task_message`, `answer_task_question`, and `wait_for_task_update` tools, the current tool descriptions, and the `next_call` that `submit_documentation_task` and `request_changes` return for following the task. In Claude Code, run `/mcp` and pick **promptless** again, or start a new conversation. In Cursor, remove the `promptless` server and add it again. ### `submit_documentation_task` [Section titled “submit\_documentation\_task”](#submit_documentation_task) Starts a documentation task and returns a task ID (the `trigger_event_id`) you can check with `get_task_status`. It also returns a `next_call`, the next tool call your editor should make. It names `wait_for_task_update` with its arguments, so your editor can follow the task automatically. | Argument | Required | Description | | ------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `instructions` | Yes | What you want documented. | | `doc_collection_id` | No | Target one collection. Omit to route across all your collections. | | `context` | No | Optional metadata attached to the request; appears in trigger history. | | `attachments` | No | Links to material that explains the change, such as a screenshot, design file, or spec. Each attachment is a URL (required) with an optional description; nothing is uploaded, so a link Promptless can’t reach is skipped. | A request that routes across all your collections still applies your [relevance filtering](/docs/for-docs/tune/noise-and-relevance-filtering) per collection. To target one collection, pass a `doc_collection_id` from `list_doc_collections`. A run takes several minutes. The submission returns a `next_call`, and your editor follows the task with `wait_for_task_update` until `next_call` is null. The outcome appears in the same conversation. To check status at a point in time, call `get_task_status` on request. To find a task later, use `list_recent_tasks`, which also lists tasks you didn’t start over MCP. ### `list_doc_collections` [Section titled “list\_doc\_collections”](#list_doc_collections) Lists your documentation collections. Use it to get a `doc_collection_id` to pass to `submit_documentation_task`. ### `get_task_status` [Section titled “get\_task\_status”](#get_task_status) Checks the status of any documentation task in your organization by its `trigger_event_id`, not only tasks you submitted over MCP. Tasks started from Slack, a GitHub pull request, the dashboard, or the API are all readable. The task’s submitted instructions and context appear in its trigger history. It also returns the suggestions the task produced. Each comes with its docs pull request link and review status, using the same `draft`, `open`, `merged`, or `closed` values `search_suggestions` uses. The response says whether the task has finished. Once it has, `outcome` says how it ended: `suggestions_created`, `no_change_needed`, `needs_input`, or `failed`. `outcome` is `null` until the task finishes, and for tasks from sources other than the API or MCP. A `resolution` note explains how the task ended. It also returns the task’s conversation. The `messages` array is the persisted conversation between the customer and Promptless for that task, capped at the latest 100 messages and returned oldest-first. The `messages` array is populated for tasks submitted over the API or MCP and for tasks created by calling `request_changes` over MCP. An empty `messages` array means either the task has no messages yet or its source doesn’t carry a conversation. Reading the conversation never consumes it. Each message carries a stable, immutable `id`, a `sequence` number, an `author` object, a `created_at`, and the `message` text. The `id` lets a caller dedupe, relaying each new message only once. Your editor tracks these `id`s for you, so it doesn’t relay the same message twice. Incremental message delivery comes from `wait_for_task_update`’s `cursor`. `get_task_status` reads the conversation so far at a single point in time. The `author` object’s `type` is `promptless` or `customer`, and its `name` is the customer’s email when available, otherwise null. A `status_guidance` field is a short text string carrying server-generated advice about following the task and interpreting its outcome. That advice is distinct from the conversation itself, which `messages` carries. ### `wait_for_task_update` [Section titled “wait\_for\_task\_update”](#wait_for_task_update) Follows a running task in the same conversation. It waits for new messages, a changed result, or completion. You get the outcome without checking status by hand. It’s read-only, and your editor can auto-approve it. | Argument | Required | Description | | ------------------ | -------- | ----------------------------------------------------------------------------------------------------------- | | `trigger_event_id` | Yes | The task to follow. | | `cursor` | No | Omit for an immediate initial snapshot. Reuse the `cursor` a prior call returned to receive later messages. | | `wait_seconds` | No | How long one wait lasts, from 0 to a server maximum of 30 seconds. Defaults to 30 when omitted. | Each call returns a page of new conversation messages in `messages`, plus a `cursor` to pass to the next call. Each `messages` entry has the same shape as the ones `get_task_status` returns, with a stable `id`, a `sequence`, an `author`, and the message text. Reads never consume messages. Retrying the same call with the same `cursor` is safe. It may repeat messages your editor already saw, which your editor dedupes by `id`. A `has_more_messages` flag is true when more pages are ready. The `update_type` is `snapshot` on the first call for a cursor, which is when you omit `cursor`. It’s `changed` when new messages or a new result arrived, and `timeout` when nothing changed during the wait. The `result` and `finished` fields report the task’s outcome and whether it has finished. The `result` mirrors the outcome payload `get_task_status` returns. It carries the task’s `resolution` note and its `suggestions`, each with its docs pull request link and review status. Every call also returns a `next_call`, which names `wait_for_task_update` and its arguments. Follow `next_call` until it’s null. `next_call` stays set while `has_more_messages` is true or the task isn’t finished. It becomes null only once the task is `finished` and `has_more_messages` is false. Your editor never stops on `finished` alone, so it never drops a trailing message page. A `timeout` is normal: your editor keeps waiting through the next `next_call` without a separate sleep and without narrating unchanged state. Waiting doesn’t cancel the cloud work. You stay in control of following. Ask your editor to follow just once, or to stop at any time. `get_task_status` stays available to check a long-running task on demand. ### `send_task_message` [Section titled “send\_task\_message”](#send_task_message) Use `send_task_message` to add an instruction to a task that’s still running. Use `submit_documentation_task` to start a new task, and `request_changes` to revise a suggestion Promptless already produced. Sends an additional instruction into a task that’s already running. The instruction folds into that running task’s work, and no new task starts. A task stops accepting messages once it finishes, including one that finished by reporting a blocker or by marking a clarifying question. To answer a clarifying question, use [`answer_task_question`](#answer-a-clarifying-question) instead; it answers a finished task’s marked question. | Argument | Required | Description | | ------------------ | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `trigger_event_id` | Yes | The original task’s ID (the one returned at submission). Reusing it keeps the reply on the same task; it does not create another task. | | `message` | Yes | The instruction to add. Up to 20,000 characters after trimming. | | `idempotency_key` | No | A safe-retry key. Retrying with the same key and the same text returns the original message marked deduplicated. The same key with different text is rejected as a conflict. | It returns the stored `message` plus a `deduplicated` boolean. When the message is newly stored, `deduplicated` is `false`; it comes back `true` only when an `idempotency_key` retry matches an already-stored message. That stored `message` has the same shape as an entry in `get_task_status`’s `messages` array. Like reading a task’s status, sending isn’t limited to tasks you started. You can send to an eligible task in your organization by its `trigger_event_id`. Task conversations apply to tasks submitted over the API or MCP, and to tasks created by calling `request_changes` over MCP. Reading a task’s status with `get_task_status` stays available for every task source. Like the other work-changing tools, it prompts before it runs and isn’t auto-approved. ### `answer_task_question` [Section titled “answer\_task\_question”](#answer_task_question) Use `answer_task_question` to answer a clarifying question a finished task marked. Use `send_task_message` to add an instruction to a task that’s still running. For the full walkthrough, see [Answer a clarifying question](#answer-a-clarifying-question). Answers the one clarifying question a finished task marked, so Promptless continues the work. | Argument | Required | Description | | --------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------ | | `trigger_event_id` | Yes | The finished task whose question you’re answering (UUID). | | `question_message_id` | Yes | The marked question’s message ID (UUID). | | `answer` | No | The answer text, 1–8000 characters. Omit it to have your editor open its native input form. Supply it only when you’ve already given the answer. | It returns the `question` text, an `outcome`, an optional continuation `trigger_event_id`, an optional `next_call`, and a `message`. The `outcome` is one of five values: * `submitted`. The answer is accepted, and Promptless starts a new continuation task. That continuation carries the original request, context, clarification history, and links to any results. `next_call` and `trigger_event_id` point at it, so follow `next_call`. * `already_answered`. The question already had an answer committed, by an earlier call or an overlapping native form. Retrying with the same answer returns that committed answer instead of erroring. If a different answer won first, yours isn’t submitted. Follow the task the returned `trigger_event_id` names, which points at the continuation already created. * `unavailable`. Your editor can’t show a native form, so it asks the question in chat and calls `answer_task_question` again with the answer. * `decline` or `cancel`. You declined or canceled the question, so following stops. Like the other work-changing tools, it prompts before it runs and isn’t auto-approved. ### `request_changes` [Section titled “request\_changes”](#request_changes) Use `request_changes` when you want Promptless to make the change for you. Use `update_suggestion` to set the suggestion’s labels, assignees, or title, or to open its pull request yourself. Use `close_suggestion` to end a review without shipping it. Asks Promptless to revise a suggestion it already produced. This is the revision loop. | Argument | Required | Description | | --------------- | -------- | ------------------------------------------------------------------------------------ | | `suggestion_id` | Yes | The ID of the suggestion to change (from `search_suggestions` or `get_task_status`). | | `instructions` | Yes | What to change about the suggestion. | Promptless updates that suggestion’s existing docs pull request instead of opening a second one. It returns a task ID you check with `get_task_status`, plus a `next_call` that follows the revision task with `wait_for_task_update`. If the suggestion’s pull request is no longer one Promptless can revise, the tool reports that back; start a new task with `submit_documentation_task` instead. ### `update_suggestion` [Section titled “update\_suggestion”](#update_suggestion) Sets a suggestion’s metadata (its labels, assignees, and title) yourself, and optionally opens its docs pull request. This is the path where you make the change yourself. By contrast, `request_changes` has Promptless make it, and `close_suggestion` ends a review without shipping it. Pass the suggestion’s ID (from `search_suggestions` or `get_task_status`). | Argument | Required | Description | | ------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------ | | `suggestion_id` | Yes | The suggestion to update. | | `labels` | No | Replaces the suggestion’s stored labels. Omit to leave them alone; pass an empty list to clear them. | | `assignees` | No | Replaces the suggestion’s stored assignees. Omit to leave them alone; pass an empty list to clear them. | | `title` | No | Sets the suggestion’s title. | | `open_pull_request` | No | Pass `true` to open the suggestion’s docs pull request in this call. Any `labels` or `assignees` edits in the same call apply first. | The title can be set here, but a suggestion’s description can’t. Labels and assignees are applied before the title. The title edit is pushed to the host GitHub or GitLab pull request before it’s stored. While a suggestion’s pull request is open, the host owns its title. So a title edit has to reach the pull request to stick. If the suggestion has no open pull request yet, the title is stored directly, since there’s no pull request to push to. If the host rejects the push, the call fails and the stored title is left unchanged. Any labels or assignees applied in the same call stay applied. The call is idempotent, so repeating it with the same arguments leaves the suggestion unchanged. It returns the updated `labels`, `assignees`, and `title`. It also returns the docs pull request URL (`docs_pr_url`), which is null when the suggestion has no open pull request. Finally, it reports whether this call opened the pull request (`pull_request_opened`). Because `labels` and `assignees` each replace the stored list, adding one without dropping the others means sending the full desired list. Read the current values first with `search_suggestions`, which returns each suggestion’s `labels` and `assignees`. Setting them tags this one suggestion; it isn’t a standing rule that auto-assigns or auto-labels future suggestions. Opening the pull request is idempotent too. If the suggestion’s docs pull request is already open, setting `open_pull_request` to `true` returns the existing pull request. It then reports `pull_request_opened` as false rather than opening a second one. ### `close_suggestion` [Section titled “close\_suggestion”](#close_suggestion) Ends a review without shipping it. This is the close path. It contrasts with revising the suggestion using `request_changes`, or opening its pull request yourself with `update_suggestion`. | Argument | Required | Description | | --------------- | -------- | -------------------------------------- | | `suggestion_id` | Yes | The suggestion to close. | | `reason` | No | An optional note saved with the close. | Closing the suggestion closes its docs pull request on the host first. If the host refuses to close the pull request, the suggestion stays open and the call reports why. A pull request that already merged, or otherwise shipped, can’t be closed. If the suggestion has no open pull request, the suggestion closes normally. Closing can’t be undone from your editor: no MCP tool reopens a closed suggestion. To pursue the change again, start a new task with `submit_documentation_task`. The close is attributed to your MCP client, so it’s distinguishable from a close done in the dashboard. It also records who closed it: you, plus your editor’s registered client name. Any `reason` you pass is saved with the close. In the dashboard’s close dialog, the **Send to Promptless** option sends your closing comment to Promptless and starts a follow-up run. `close_suggestion` has no equivalent, so a close over MCP starts no follow-up task. The call returns the `suggestion_id`, the resulting `status`, and a `message`. Like the other work-changing tools, it prompts before it runs. It’s destructive and can’t be auto-approved. ### `list_recent_tasks` [Section titled “list\_recent\_tasks”](#list_recent_tasks) Lists your organization’s recent documentation tasks, newest first, each with the `trigger_event_id` you pass to `get_task_status`. Use it when you’ve lost a task’s ID, or to see what Promptless has been working on. Like `get_task_status`, it covers tasks started from Slack, a GitHub pull request, or the dashboard, as well as tasks submitted over MCP. A task submitted over the API is read by ID with `get_task_status`. ### `search_suggestions` [Section titled “search\_suggestions”](#search_suggestions) Searches your existing suggestions by keyword and status. Use it to check whether a change is already covered before starting a new task, or to find a suggestion to revise. | Argument | Required | Description | | -------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `query` | Yes | Matches a suggestion’s title and description. Must be at least 3 characters after trimming. | | `status` | No | Restricts results to one of `draft`, `open`, `merged`, or `closed`. | | `labels` | No | A list of label strings. Returns only suggestions carrying at least one of the given labels. This is an any-of match. Omit it or pass an empty list to apply no label filter, so results come back across all labels. Matches exactly, including case, so a label in the wrong case returns nothing; call `search_suggestions` without `labels` first to see the exact stored label strings. | | `limit` | No | Caps how many results come back. Defaults to 25, never exceeds 100. | When more suggestions match than were returned, the result sets a `truncated` flag so you know to narrow the query. Filtering by `labels` pulls a labeled queue, such as every `P0` suggestion, in one call. That saves you fetching everything and filtering client-side, and the `triage-suggestions` workflow skill below relies on it. A `draft` or `open` suggestion is still live; a `merged` or `closed` one is already resolved. Each result also carries its `labels` and `assignees`, each a list of strings, and its `branch_name` (the git branch in the documentation repository the suggestion targets, always present). Use them to pick the suggestion to hand to `update_suggestion` or `request_changes`. You can also check out and diff the proposed change locally, even before its docs pull request opens. Once the suggestion’s pull request has merged or closed, the branch may no longer exist, since hosts often delete it. So a local checkout applies to a still-open suggestion. ## Read and edit documentation directly [Section titled “Read and edit documentation directly”](#read-and-edit-documentation-directly) These six tools are available only at `https://api.gopromptless.ai/mcp/with-direct-edits`. With them, your client finds pages, edits them on an open suggestion’s branch, checks the diff, and opens the pull request with `update_suggestion`. Edits go on an open suggestion. For a change no open suggestion covers, start a task with `submit_documentation_task`, then edit the suggestion it creates. Your client can auto-approve the four read tools: `list_documentation_files`, `read_documentation_file`, `search_documentation`, and `get_suggestion_diff`. The two write tools, `write_documentation_file` and `edit_documentation_file`, ask before each run. ### Choose what a read covers [Section titled “Choose what a read covers”](#choose-what-a-read-covers) `list_documentation_files`, `read_documentation_file`, and `search_documentation` take the same two optional arguments to choose what they read: | Argument | Required | Description | | ------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | | `doc_collection_id` | No | The collection to read, from `list_doc_collections`. Pass it when your organization has more than one collection and you don’t pass `suggestion_id`. | | `suggestion_id` | No | The suggestion whose branch to read, to see pages as it proposes them. Omit it to read the collection’s default branch, your published docs. | Each read returns a `ref` with the `sha` and `branch_name` it read. Pass that `sha` as `expected_head_sha` when you edit. Reads cover only the paths Promptless maintains for the collection. ### `list_documentation_files` [Section titled “list\_documentation\_files”](#list_documentation_files) Lists a collection’s file paths in sorted order. Use it to find a page’s path before you read or edit it. | Argument | Required | Description | | ------------- | -------- | ------------------------------------------------------------------ | | `path_prefix` | No | Lists only paths that start with this prefix, such as `docs/api/`. | | `limit` | No | How many paths to return. Defaults to 500, never exceeds 2,000. | It returns the `files`, a `total` count of matching paths, and a `truncated` flag. When `truncated` is true, narrow the listing with `path_prefix`. ### `read_documentation_file` [Section titled “read\_documentation\_file”](#read_documentation_file) Reads one text file by its repository-relative `path`, which is required. It returns the file’s `content` and `size_bytes`. It refuses binary files and files over 256 KB. ### `search_documentation` [Section titled “search\_documentation”](#search_documentation) Finds lines that match text or a regular expression across a collection’s text files, such as Markdown, MDX, reStructuredText, YAML, JSON, and HTML. | Argument | Required | Description | | ---------------- | -------- | ------------------------------------------------------------------------------------- | | `query` | Yes | The text to find, or a regular expression when `regex` is true. Up to 256 characters. | | `regex` | No | Pass `true` to treat `query` as an RE2 regular expression, similar to `grep -E`. | | `case_sensitive` | No | Pass `true` to match case exactly. | | `path_prefix` | No | Searches only files whose path starts with this prefix. | | `limit` | No | How many matching lines to return. Defaults to 50, never exceeds 200. | RE2 syntax covers character classes, alternation, and repetition, such as `retr(y|ies)` or `v[0-9]+\.[0-9]+`. It doesn’t support backreferences such as `\1` or lookaround such as `(?=...)`. Each match returns the file `path`, `line` number, and line `text`. A search reads up to 400 files of up to 128 KB each, within 10 seconds. `files_skipped` counts the files it didn’t reach; when it’s above zero, search again with a narrower `path_prefix`. `truncated` is true when more lines matched than `limit` returned. ### `get_suggestion_diff` [Section titled “get\_suggestion\_diff”](#get_suggestion_diff) Shows what a suggestion changes. Pass its `suggestion_id`, which is required. It returns one unified diff per changed file against the collection’s base branch, and each file’s `status`: `added`, `modified`, `removed`, or `renamed`. It also returns the suggestion’s `head_sha`, which you can pass as `expected_head_sha` when you edit. Diff text is capped at 200,000 characters per response. Once the cap is reached, each later file carries a `diff` of `null` and `truncated` is true. Binary files carry no diff text. ### `write_documentation_file` [Section titled “write\_documentation\_file”](#write_documentation_file) Creates or replaces one file on an open suggestion’s branch with the full content you pass. Use it for a new page or a rewrite of most of a page. For a change to part of a page, use `edit_documentation_file`. | Argument | Required | Description | | ------------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | | `suggestion_id` | Yes | The open suggestion whose branch receives the commit. | | `path` | Yes | The repository-relative file path, inside the paths Promptless maintains for the collection. | | `content` | Yes | The complete new file content, up to 256 KB. | | `expected_head_sha` | No | The `ref.sha` from your last read, or the `head_sha` from your last write. The write is refused when the suggestion’s branch has moved since then. | ### `edit_documentation_file` [Section titled “edit\_documentation\_file”](#edit_documentation_file) Replaces exact text in one file on an open suggestion’s branch. It takes `suggestion_id`, `path`, and `expected_head_sha` as `write_documentation_file` does, plus `edits`, which is required. `edits` is a list of 1 to 50 entries, each with an `old_text` and a `new_text`. Each `old_text` must match the file exactly once, so copy it verbatim from a read and include enough surrounding text to make it unique. An empty `new_text` deletes the matched text. The edits apply in order, and the call is refused when any `old_text` matches no place or several places. ### What a write commits [Section titled “What a write commits”](#what-a-write-commits) Each `write_documentation_file` or `edit_documentation_file` call makes one commit on the suggestion’s branch, attributed to you and your client: `Update from via `. It returns the new `head_sha` to pass as `expected_head_sha` on your next write, plus the suggestion’s `docs_pr_url` and `status`. When your edits leave the suggestion with no changes against its base branch, Promptless closes the suggestion and its docs pull request. No tool deletes a file. To remove a page, describe the removal with `request_changes`. ## Answer a clarifying question [Section titled “Answer a clarifying question”](#answer-a-clarifying-question) A task can finish by marking one clarifying question in your editor. This applies to a task you started over MCP. Answering it starts a new continuation task. That task carries the original request, the original context, the clarification history, and links to any results already produced. You pick up directly from the clarification. To answer through the native form, you need an MCP client that negotiates a recent protocol version and declares an elicitation capability. That capability is the MCP feature that lets a server show an input form inside your editor. A clarifying question reaches you through the same task-following loop this page documents. As your editor follows the task with `wait_for_task_update`, or as you check it with `get_task_status`, the response carries the marked `question` and a `next_call` pointing at `answer_task_question`. Your editor follows that `next_call` the same way it follows any other task. How you answer depends on your MCP client: * A client that declares an elicitation capability shows a native single free-text field titled **Your answer**, with the question as its prompt. The answer runs 1–8000 characters. * A client without that capability receives `outcome: unavailable`. Your editor posts the question as a chat message. Reply in the same conversation, and your editor relays your answer by calling `answer_task_question` again. Your editor follows the accepted answer via its `next_call`, which points at the new continuation task. The first committed answer wins. Answering the same question again returns `already_answered`, and a matching answer comes back unchanged. If a different answer won first, yours isn’t submitted. You follow the task the response names, the continuation already created, to pick up the committed one. If you decline or cancel the question, no continuation is created and following stops. The original finished task and anything it already produced, such as suggestions, remain. To pursue the change, start a new task with `submit_documentation_task`. ## Workflow skills [Section titled “Workflow skills”](#workflow-skills) If your editor supports it, Promptless can hand it step-by-step guidance for multi-step workflows that chain several of these tools together. A skill guides your editor through the [tools above](#available-tools) and adds no tools of its own. The editor decides when to load a skill, and you ask for what you want as usual. Two skills ship today. `triage-suggestions` is available at both server URLs. `edit-documentation` is available only at the direct-edit URL. `triage-suggestions` is a workflow for working through a backlog of suggestions. It pulls the backlog with `search_suggestions` and checks the `truncated` flag to see whether more are waiting. Then it reads each proposal in turn. Next it gives each suggestion one outcome, then hands the queue back to you. It can label or assign a suggestion with `update_suggestion`, send it back for a revision with `request_changes`, or close it with `close_suggestion`. Following that sequence keeps the editor from treating a truncated result set as your whole backlog. It also gives each suggestion exactly one outcome without you prompting each step. `edit-documentation` walks your client through one direct edit. It finds the pages, picks or starts a suggestion, edits each page, checks the diff, and opens the pull request. A skill doesn’t change how the tools behave. The work-changing tools these skills call, such as `update_suggestion`, `request_changes`, `close_suggestion`, and `edit_documentation_file`, still prompt before each run, just as they do when you call them directly. A skill only guides the sequence; it doesn’t bypass those confirmations. Note Skills reach your editor over the draft **Skills extension (SEP-2640)**. The MCP endpoint declares it as the `io.modelcontextprotocol/skills` capability in its `initialize` response. Many clients don’t support the extension yet and show no skills. To check whether yours does, see its MCP settings or release notes. Because the extension is still a draft, its shape can change. A client that doesn’t support the extension, or ignores it, sees the same tools and calls them directly. ## Ask your editor [Section titled “Ask your editor”](#ask-your-editor) Ask in plain language. For example: “List my Promptless doc collections, then start a task to document the new authentication flow in the API docs collection.” Your editor maps that to `list_doc_collections`, then `submit_documentation_task`. It follows the task automatically in the same conversation, using the `next_call` it gets back. It reports the outcome and docs pull request link back to you, without you checking status by hand. To avoid duplicating work, search before you submit. Your editor runs `search_suggestions` first, and if nothing live comes back, submits the task. For example: “Before I ask Promptless to document the new webhook retries, search existing suggestions for ‘webhook retries.’” To check a task at a point in time, ask by its ID: “What’s the status of Promptless task ``?” Your editor calls `get_task_status` and reports the outcome and any docs pull request link. This is the on-request check, not the primary way you get an outcome. Reach for it for a task you didn’t follow to completion, or to look in again later or from another session. It works for any task. To read a task’s conversation, ask for it: “What has Promptless said so far about task ``?” Your editor calls `get_task_status` and reports the conversation. To add to a task that’s still running, tell Promptless what else to cover: “Tell Promptless task `` to also cover the error responses.” Your editor maps that to `send_task_message`, and the instruction folds into the running task. This works for tasks you started over the API or MCP, or created with `request_changes` over MCP. Check back with `get_task_status` to see the message added to the conversation. A task can finish by marking one clarifying question. Answer it in plain language: “Answer Promptless task ``’s clarifying question: yes, cover the deprecation notice.” Your editor calls `answer_task_question`, and Promptless picks up your answer in a new task. Your editor follows that task via its `next_call`. To change a suggestion Promptless already made, ask for a revision: “Revise Promptless suggestion `` to also cover single sign-on.” Your editor calls `request_changes`, and Promptless updates that suggestion’s existing pull request instead of opening a new one. Your editor follows the revision task via `next_call` until it’s done, the same way it follows a new task. To set a suggestion’s labels, assignees, or title, or open its docs pull request yourself, ask for that. For example: “Assign Promptless suggestion `` to @alex, retitle it ‘SSO setup,’ and open its docs PR.” Your editor calls `update_suggestion`, which applies the change and opens the pull request in the same step. To just retitle it without opening a pull request, leave that part out: “Retitle Promptless suggestion `` to ‘SSO setup.’” To close a suggestion you won’t ship, ask for that: “Close Promptless suggestion ``. We decided not to document this.” Your editor calls `close_suggestion` and saves your reason with the close; closing also closes the suggestion’s docs pull request. If you’ve lost track of a task’s ID, ask for your recent ones: “What are my recent Promptless tasks?” Your editor calls `list_recent_tasks` and lists them newest first, so you can pick the ID to check. To work through a backlog, ask for a triage pass: “Triage my open Promptless suggestions, label the P0s, and close anything we’ve decided against.” If your editor supports [workflow skills](#workflow-skills), it can follow the `triage-suggestions` steps; if not, it calls the same tools directly. Either way the work-changing tools still prompt before they run, so you stay in control of what changes. On the direct-edit URL, name the change and the suggestion to put it on: “Find the pages that say webhook retries default to 3. Change them to 5 on the open webhook retries suggestion, show me the diff, and open the PR.” Each edit asks before it commits. ## See your MCP tasks in the dashboard [Section titled “See your MCP tasks in the dashboard”](#see-your-mcp-tasks-in-the-dashboard) On the [Triggers page](https://app.gopromptless.ai/triggers), a task started over MCP shows an **MCP Task** pill with a byline reading ` · submitted by @`. Tasks submitted with an `sk-pl-` API key show an **API Task** pill. To find MCP-originated suggestions on the [Suggestions list](https://app.gopromptless.ai/suggestions), set the **Trigger source** filter to “API”. That filter includes both MCP and API-key submissions. ## Manage and revoke your connection [Section titled “Manage and revoke your connection”](#manage-and-revoke-your-connection) Connections re-authorize automatically. The connection you approve lasts 90 days. After that, automatic refresh stops, and you approve the connection in the browser again, the way you did at setup. To revoke a connection, remove the `promptless` server from your editor, such as from Cursor’s MCP settings. In Claude, remove the connector from **Customize** > **Connectors**. The dashboard’s **Editor connection (MCP)** section shows setup instructions only, so revoke from your editor or chat app. Promptless checks your organization membership on every call, and revokes the connection if you lose active membership. Each member manages their own connection. An admin can’t revoke another member’s connection for them. ## Troubleshooting [Section titled “Troubleshooting”](#troubleshooting) Tool failures come back as errors your editor’s model sees, each formatted as `code: message`. Common ones: * **Empty `instructions`**: resubmit with a specific `instructions` string. * **A `doc_collection_id` that isn’t a valid ID (UUID)**: call `list_doc_collections` and pass an `id` from the returned list. * **An unrecognized `search_suggestions` status**: use one of `draft`, `open`, `merged`, or `closed`. * **A missing `search_suggestions` `query`, or one shorter than 3 characters after trimming**: provide a `query` of at least 3 characters. * **The organization hasn’t finished setting up Promptless**: the tool returns “This organization has not finished setting up Promptless.” Finish setup on the [Configuration page](https://app.gopromptless.ai/configuration), or ask a member with admin access to finish it. * **A requested collection isn’t configured**: the tool returns “The requested doc collection is not configured.” Call `list_doc_collections` for a valid `id`, or configure the collection first. * **A suggestion that can no longer be revised**: `request_changes` reports that the suggestion is no longer one Promptless can revise. Its pull request has moved beyond where a revision applies. Start a new task with `submit_documentation_task` instead. * **An `update_suggestion` call that can’t be applied**: a `suggestion_id` that isn’t a valid ID (UUID) or matches no suggestion returns an error. Call `search_suggestions` for a valid ID. Setting a suggestion’s labels, assignees, or title still succeeds even on a closed or merged suggestion. Only opening a pull request is refused for a closed suggestion that hasn’t merged, and the tool reports why. If the host rejects the title push, the call fails and the stored title is left unchanged. Any labels or assignees from the same call stay applied. No MCP tool retracts a pull request while keeping the suggestion open for further editing. Closing over MCP with `close_suggestion` closes the suggestion and its pull request together. If you opened a pull request by mistake and want to keep working the suggestion, close the pull request on the host directly. The host is GitHub or GitLab. * **A `close_suggestion` call that can’t be applied**: a `suggestion_id` that isn’t a valid ID (UUID) or matches no suggestion returns an error. Call `search_suggestions` for a valid ID. If the host refuses to close the pull request, the suggestion stays open and the tool reports why. A pull request that already merged can’t be closed. A suggestion that’s already closed can’t be closed again, and the tool reports so. * **Sending to a finished task**: the tool rejects it with `task_finished`. A task that finished by reporting a blocker or a clarification request has still finished, so it also rejects messages. Start a new task with `submit_documentation_task` to continue. If the finished task marked a clarifying question, answer it with [`answer_task_question`](#answer-a-clarifying-question). That continues the work in a new task. * **Sending to a task that isn’t API- or MCP-sourced**: the tool rejects it with `unsupported_task_source`. Task conversations are scoped to API and MCP submissions and to tasks created by calling `request_changes` over MCP. Read the task’s status instead, or start an API or MCP task to converse. * **An empty or over-length message**: the tool rejects it with `invalid_message`. The limit is 20,000 characters after trimming. * **A retried message that conflicts with a stored one**: the tool rejects it with `idempotency_conflict`. The retry reused the same `idempotency_key` with different text. Resend with a new `idempotency_key`, or with the original text. * **A `wait_for_task_update` cursor that’s invalid or from another task**: the tool rejects it with `invalid_cursor`. Omit the cursor to read from the beginning. If task storage doesn’t respond in time, the tool returns `task_read_timeout`; retry the same task and cursor. Set `wait_seconds` between 0 and 30, the server maximum. * **`answer_task_question` returns `unavailable`**: your editor can’t show a native form. It asks the clarifying question in chat and calls `answer_task_question` again with your answer. * **`answer_task_question` returns `already_answered`**: the question already had an answer committed. Follow the task the returned `trigger_event_id` names, which is the continuation already created. If a different answer won first, yours wasn’t submitted; following that task shows the committed answer. * **`answer_task_question` returns `decline` or `cancel`**: you declined or canceled the question. No work continues and following stops. The original task and anything it already produced remain. To pursue the change, start a new task with `submit_documentation_task`. * **An answer reference that points at an unrelated task**: `answer_task_question` rejects it with `continuation_conflict`. This happens when the `idempotency_key` matches a task other than this question’s own continuation. That covers a different parent task, a different question, or a task ineligible for a clarifying answer. Promptless doesn’t reuse that task. Start a new task with `submit_documentation_task`, restating your original request and your answer. * **A deduplicated answer whose continuation can’t be found**: `answer_task_question` rejects it with `continuation_unavailable`. This case is transient. A concurrent identical answer to the same question was still committing its continuation when this call looked for it. Retry `answer_task_question` with the same arguments. * **A read that names no collection in an organization with several**: the tool reports the available collections. Pass a `doc_collection_id` from that list, or pass a `suggestion_id`, which selects its collection. * **A path outside the paths Promptless maintains**: the read, list, or write is refused. Promptless reads and edits only the paths configured for the collection. Call `list_documentation_files` for valid paths. * **A `search_documentation` query that isn’t valid RE2**: the tool reports that the query is not a valid RE2 regular expression. The error names what failed to parse. Rewrite the pattern without backreferences or lookaround, or set `regex` to `false` to search for the literal text. * **A `search_documentation` query over 256 characters**: the tool refuses it. Shorten the query. * **A file over 256 KB**: `read_documentation_file` and both write tools refuse it. A binary file is refused for reading too. * **A write to a closed suggestion**: the tool refuses it, since a closed suggestion’s branch accepts no edits. Pick an open suggestion with `search_suggestions`, or start a task with `submit_documentation_task`. * **A write to a suggestion whose task hasn’t finished**: the tool refuses it until Promptless records the suggestion’s first commit. Wait for the task to finish, then retry. * **`stale_head`**: the suggestion’s branch changed after your last read, so `expected_head_sha` no longer matches it. The error names the current commit. Read the file again and retry with that commit as `expected_head_sha`. * **An `old_text` that matches no place or several places**: `edit_documentation_file` refuses the whole call and reports which edit failed and how many places it matched. Read the file again, copy the text verbatim, and include enough surrounding text to match once. * **Denied, canceled, or expired consent**: re-run the authorize step. In Claude Code, run `/mcp` and pick **promptless** again. In Cursor, click **Needs login** again. ### Setup issues [Section titled “Setup issues”](#setup-issues) First-run snags usually clear with a retry: * **The browser consent tab doesn’t open**: re-run the authorize step. In Claude Code, run `/mcp` and pick **promptless**; in Cursor, click **Needs login**. * **No promptless entry under `/mcp` in Claude Code**: confirm the add command ran, then re-open the client. * **Cursor’s Needs login button doesn’t respond**: remove the server and add it again. ## See also [Section titled “See also”](#see-also) * [API triggers](/docs/for-docs/connect/triggers/api), for server-to-server and CI callers that use an API key * [Use Promptless from Claude.ai or ChatGPT](/docs/for-docs/work-the-queue/claude-and-chatgpt), to connect from a web chat app * [Access and permissions](/docs/for-docs/security/access-and-permissions), for organization roles and what members can do * [Noise and relevance filtering](/docs/for-docs/tune/noise-and-relevance-filtering), to control which submitted tasks produce suggestions # Schedule triggers > Run any standing instructions you write on a repeating cron schedule, with no triggering event required. Use it for recurring audits, content checks, and drift sweeps across your doc collections, repos, and context sources. ## Overview [Section titled “Overview”](#overview) A schedule trigger runs standing instructions you write on a repeating cron schedule, with no triggering event. It works like an [API trigger](/docs/for-docs/connect/triggers/api) with a clock attached. Each time a scheduled time comes due, Promptless runs your instructions against your docs and connected context sources. It creates suggestions when the docs need an update, and otherwise finishes quietly. Use a schedule trigger to: * Check every week that your release notes reflect what shipped. * Audit a changelog against a release-notes page. * Sweep for documentation drift that no single event would catch. Tip You can set up this trigger by hand as this page describes, or ask Promptless in Slack or Microsoft Teams to do it for you. For example, “@Promptless add a schedule trigger every Monday at 9am to check my changelog against recent releases.” See [Ask Promptless to update your configuration](/docs/for-docs/get-the-most-out/ask-promptless-to-update-config). ## Before you start [Section titled “Before you start”](#before-you-start) * At least one active doc collection and a saved configuration. Promptless drops a scheduled run when either is missing. * An [organization admin](/docs/for-docs/reference/configuration-reference#permissions-and-conflict-detection) role, to create or edit triggers. * Every repository and context source your instructions name, connected through [source control](/docs/for-docs/connect/source-control) and [context sources](/docs/for-docs/connect/context-sources) so Promptless can read them. ## Set up a schedule trigger in the dashboard [Section titled “Set up a schedule trigger in the dashboard”](#set-up-a-schedule-trigger-in-the-dashboard) 1. On the [Configuration page](https://app.gopromptless.ai/configuration), select the **Triggers** tab. 2. Select **Add an automatic or scheduled trigger**. 3. Under **On a schedule**, select **A recurring schedule**. 4. Under **When should Promptless run?**, select a preset, or enter your own five-field cron expression. The help text then describes the schedule, so you can confirm the cadence. | Preset | Cron expression | | ------------------------ | --------------- | | **Every day at 9am** | `0 9 * * *` | | **Every weekday at 9am** | `0 9 * * 1-5` | | **Every Monday at 9am** | `0 9 * * 1` | | **First of the month** | `0 9 1 * *` | 5. Under **In which timezone?**, select the timezone the schedule runs in. It defaults to UTC. 6. Under **What should Promptless do each time?**, enter your [standing instructions](#write-standing-instructions). 7. Select **Add trigger**. The schedule runs at its next matching time after you save. Promptless doesn’t run it for times that have already passed. ## Set up a schedule trigger in YAML [Section titled “Set up a schedule trigger in YAML”](#set-up-a-schedule-trigger-in-yaml) For precise control, add the schedule trigger to the `triggers` section of your `promptless.yaml` file: ```yaml triggers: weekly-release-notes-check: trigger_type: schedule match: - cron: "0 9 * * 1" timezone: America/Los_Angeles # optional; defaults to UTC instructions: | Compare the changelog in acme/api against docs/release-notes.md and open a suggestion for anything that shipped but isn't documented. ``` The trigger takes these fields: | Field | Description | | -------------- | ---------------------------------------------------------------------------------------- | | `trigger_type` | Set to `schedule`. | | `cron` | Required. Five-field cron expression inside a `match` clause. Runs at most once an hour. | | `timezone` | Optional. IANA timezone name inside a `match` clause. Defaults to UTC. | | `instructions` | Required, non-empty. The standing instructions Promptless runs each time. | `instructions` sits alongside `match`, outside any clause, because one set of instructions covers every clause. Each `match` clause is a `cron` and `timezone` pair, and the trigger needs at least one. Add clauses to run the same instructions on several cadences, for example Mondays and Thursdays at 9am: ```yaml triggers: twice-weekly-check: trigger_type: schedule match: - cron: "0 9 * * 1" timezone: America/Los_Angeles - cron: "0 9 * * 4" timezone: America/Los_Angeles instructions: | Compare the changelog in acme/api against docs/release-notes.md and open a suggestion for anything that shipped but isn't documented. ``` ## Write standing instructions [Section titled “Write standing instructions”](#write-standing-instructions) The standing instructions are the whole job, because no pull request or message describes the work. Name the repositories and files to compare, and say what to open a suggestion for. Instructions can’t be empty, and they have no maximum length. Promptless trims leading and trailing whitespace. ## Cron schedule rules [Section titled “Cron schedule rules”](#cron-schedule-rules) A schedule uses a standard five-field cron expression: minute, hour, day of month, month, and day of week. Promptless rejects six-field expressions that add seconds, and shorthand aliases such as `@daily`. A schedule can run at most once an hour. Promptless checks the expression’s actual run times. It rejects any expression that would run more than once in an hour, however the expression is written. | Accepted | Rejected (too frequent) | | -------------- | ----------------------- | | `0 9 * * 1` | `*/5 * * * *` | | `0 9 * * *` | `0,30 * * * *` | | `0 * * * *` | `0-10 * * * *` | | `0 9,10 * * *` | `* * * * *` | | `0 9 1 * *` | | | `30 2 * * 1-5` | | ## Timezones and daylight saving [Section titled “Timezones and daylight saving”](#timezones-and-daylight-saving) The timezone is an optional IANA name, such as `America/Los_Angeles`, and defaults to UTC. A schedule keeps its wall-clock time across daylight-saving changes. A schedule set for 9am local runs at 9am local through both spring-forward and fall-back. ## What to expect [Section titled “What to expect”](#what-to-expect) * Promptless skips a missed occurrence. If Promptless is briefly unavailable when a scheduled time passes, it doesn’t run that occurrence later. * If an earlier run of the same schedule is still in progress, Promptless skips the next occurrence. * A run that finds nothing worth changing finishes with no suggestion and no notification. * A scheduled run goes through the same pipeline as every other trigger. Its suggestions follow your [policies](/docs/for-docs/reference/configuration-reference#policies) for publishing and notifications, and a policy rule can target it by its trigger key. Tip A scheduled run’s only signals are the suggestions it opens and the notifications your policy sends. Set a notification channel, and shape your instructions to control noise. See [Notifications](/docs/for-docs/tune/notifications) and [Noise and relevance filtering](/docs/for-docs/tune/noise-and-relevance-filtering). ## View schedule triggers [Section titled “View schedule triggers”](#view-schedule-triggers) Scheduled runs appear on the [Triggers page](https://app.gopromptless.ai/triggers) like any other trigger, labeled as a scheduled run. Each entry shows when the occurrence ran and what it produced. ## See also [Section titled “See also”](#see-also) * [API triggers](/docs/for-docs/connect/triggers/api), to start documentation work from your own systems * [Notifications](/docs/for-docs/tune/notifications), to choose where scheduled runs report * [Triggers](/docs/for-docs/connect/triggers), for how triggers work and how to follow what one did * [Configuration Reference](/docs/for-docs/reference/configuration-reference#triggers), for the full trigger schema # Slack messages > Trigger documentation updates from Slack conversations, by message action or by mentioning @Promptless, so support and internal threads become documentation suggestions. ## Overview [Section titled “Overview”](#overview) Turn Slack conversations into documentation suggestions. Support threads and internal discussions often raise questions your documentation should answer, and Promptless starts the update from the thread where the question came up. It reads the entire thread, including text, images, and file attachments, and creates documentation suggestions based on the conversation. Start Promptless in one of these ways: | Method | What you do | Configuration needed | | ------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | | Message action | Run the Promptless **Update Docs** message shortcut on any message, without interrupting the conversation. | None | | Mention in a channel | Tag @Promptless in a thread with instructions or questions. Promptless reads the full thread. | None | | Direct message | Send a request to @Promptless in a DM, for documentation requests you want to keep private. | None | | Passive channel listening | Nothing per message. Promptless responds to conversations in channels you select. | A `slack_listen` trigger. See [Set up passive channel listening](#set-up-passive-channel-listening). | Promptless reads only the Slack content you point it to: | How Promptless is triggered | What it reads | | ----------------------------------------------------------- | -------------------------------------------------- | | @mention, direct message, or **Update Docs** message action | The thread or conversation where you triggered it. | | Passive channel listening | Messages in the channels you selected. | With no passive listening configured, Promptless reads Slack only when someone triggers it. Tip You can also ask Promptless in Slack or Microsoft Teams to set up passive listening for you. For example, “@Promptless passively listen to my #support and #docs-feedback channels.” See [Ask Promptless to update your configuration](/docs/for-docs/get-the-most-out/ask-promptless-to-update-config). ## Before you start [Section titled “Before you start”](#before-you-start) * The Promptless Slack app, installed in your Slack workspace. If Slack isn’t connected yet, follow the setup steps in [Connect Slack](#connect-slack). * For passive channel listening, an admin role in your Promptless organization, to edit the [Configuration page](https://app.gopromptless.ai/configuration). ## Connect Slack [Section titled “Connect Slack”](#connect-slack) Skip this section if Slack already shows as connected on the [Integrations page](https://app.gopromptless.ai/integrations). 1. On the [Integrations page](https://app.gopromptless.ai/integrations), select **Connect Slack**. Slack opens in a new window. If your browser blocks the window, allow pop-ups for Promptless and select **Connect Slack** again. 2. In the Slack window, select the workspace where you want to install Promptless. 3. Review and approve the permissions the Promptless Slack app requests. Promptless needs them to respond to the right events in Slack and to notify your team when updates are available. For what each permission does, see [Key permissions](/docs/for-docs/reference/integrations/slack#key-permissions). 4. On the Integrations page, verify that Slack shows as connected. Some Slack workspaces require an admin to approve apps before anyone can install them. If you aren’t a workspace admin, Slack sends your request to an admin, and setup waits for their approval. The steps are the same from onboarding and from the Integrations page, and your pending request persists across page reloads and sessions. 1. In the Slack window, follow Slack’s prompts to send the request. Slack may notify you when an admin approves Promptless. 2. Wait for the admin’s decision. Until you finish the install, a pending card in onboarding or on the Integrations page shows that Promptless isn’t installed in Slack yet. Promptless can’t see the admin’s decision, so the card stays pending. 3. After an admin approves, select **Continue in Slack** on the pending card. Slack runs authorization again and connects Promptless. If you close the window or lose your network connection before you finish, the request stays pending. Select **Continue in Slack** to try again. If Slack reports that the attempt was denied or failed, Promptless clears the request, and you start a new one. ## Request documentation from a Slack thread [Section titled “Request documentation from a Slack thread”](#request-documentation-from-a-slack-thread) 1. In the thread, run the **Update Docs** message shortcut on a message, or tag @Promptless with your instructions. To keep the request private, send it to @Promptless in a direct message. 2. Optional. To refine the suggestion, reply in the same thread with feedback or more context. ### Include images and files [Section titled “Include images and files”](#include-images-and-files) Promptless reads the images and files in a thread you trigger it from, and decides whether each one adds useful context for the documentation: | Attachment | What Promptless does when it’s relevant | | ------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | | Image | Uploads it to a secure S3 bucket, formats it for your documentation platform, and adds it to the suggestion. | | File, including PDF | Extracts the relevant content, including images inside PDFs, and uses it in the suggestion. | | Audio, such as a voice message or recording | Transcribes the recording and uses what was said as context for the suggestion. | When you review the suggestion in the Promptless app, approve or reject each added image at the bottom of the review interface. ## Reply in a thread Promptless is in [Section titled “Reply in a thread Promptless is in”](#reply-in-a-thread-promptless-is-in) Promptless follows a thread after it posts there or is @mentioned there. Reading a message through passive channel listening doesn’t make Promptless follow the thread. Each later reply in a followed thread is a follow-on trigger. No new @mention is needed. Reply with feedback or more context, continue a conversation Promptless started, or send the images, files, or clarifications it asked for. Promptless decides whether each reply is actionable, so not every reply starts a documentation update. To have Promptless ignore one message, start it with `aside` or `/aside`: ```text aside This is an internal discussion point, not for docs. ``` ### Change the thread reply trigger mode [Section titled “Change the thread reply trigger mode”](#change-the-thread-reply-trigger-mode) The organization-wide thread reply trigger mode sets which replies Promptless processes: | Mode | Promptless processes | | ------------------------------- | ---------------------------------------------------------------------------------------------------- | | Listen to all replies (default) | Every reply in threads where it’s participating, except replies that start with `aside` or `/aside`. | | Require @promptless | Only replies that @mention Promptless. | In a channel Promptless watches through [passive channel listening](#set-up-passive-channel-listening), Promptless doesn’t react, show a status line, or reply. That covers both messages that start a thread and replies in one. This holds in both modes until someone @mentions Promptless in the thread or Promptless posts there. After that, the thread follows the mode above. Knowledge Base instructions can make Promptless post in a watched thread, for example to send a suggestion notification there. See [Know what to expect from passive listening](/docs/for-docs/get-the-most-out/passive-channel-listening#know-what-to-expect-from-passive-listening). To change the mode, open **Settings**, select **Organization**, and choose a mode. The setting applies to all Slack threads in your organization. ![Slack Thread Reply Trigger Mode settings](https://promptless-customer-doc-assets.s3.us-east-2.amazonaws.com/docs-images/org_3DaVKUzHgjyjaODgCPaDmjXezqp/slack-thread-trigger-mode-c10ff066.png) ## Set up passive channel listening [Section titled “Set up passive channel listening”](#set-up-passive-channel-listening) With passive listening, Promptless monitors the channels you select and creates documentation suggestions as messages are posted. It’s opt-in and applies only to the channels you list. 1. Optional. For a private channel, or a channel shared with another workspace through Slack Connect, add Promptless to the channel in Slack. Promptless joins public channels on its own when you configure them. 2. On the [Configuration page](https://app.gopromptless.ai/configuration), switch to **YAML** mode. 3. In the `triggers` section, add a `slack_listen` trigger that lists the channels, without the `#` prefix: ```yaml triggers: support-channels: trigger_type: slack_listen match: - channels: - customer-support - product-questions ``` 4. Save the configuration. When a Slack channel is renamed, Promptless updates your configuration automatically. See the [Configuration Reference](/docs/for-docs/reference/configuration-reference#triggers) for every option. By default, Promptless uses its own judgment to decide what to document from a monitored channel. To tailor the output, add instructions to the `PROMPTLESS.md` file in your [Agent KB](https://app.gopromptless.ai/settings/knowledge). ## See also [Section titled “See also”](#see-also) * [Slack integration](/docs/for-docs/reference/integrations/slack), for Slack permissions, private channel access, and troubleshooting * [Get the most out of passive channel listening](/docs/for-docs/get-the-most-out/passive-channel-listening), for choosing channels and tuning what Promptless documents from them * [Review from Slack and Teams](/docs/for-docs/work-the-queue/reviewing-from-slack-and-teams), to act on suggestions without leaving the thread # Build an agent knowledge base > View and edit the files that help Promptless understand your documentation style, product context, and workflow preferences ## Overview [Section titled “Overview”](#overview) The Agent Knowledge Base holds the files Promptless reads to understand your documentation style, product context, and workflow preferences. Promptless updates these files as it learns from your feedback. Open the Knowledge Base to check what Promptless has learned, correct an assumption it made, or add instructions it follows on every task. All organization members can view the files. Only organization admins can edit or create them. ![Agent Knowledge Base page showing the Files tree, the Recent updates by Promptless list, and collection\_analyses/promptless\_promptless\_ai\_63eb882f/product-overview.md open in the editor](https://promptless-customer-doc-assets.s3.us-east-2.amazonaws.com/docs-images/org_3DaVKUzHgjyjaODgCPaDmjXezqp/agent-knowledge-base-overview-0319a74a.png) ## View files [Section titled “View files”](#view-files) 1. In the left sidebar, open **Settings** and select **Agent Knowledge Base**. 2. In the file tree, select a file to open it in the editor. The URL updates with a `?file=` query parameter for the open file. Bookmark or share that URL to open the editor to the file. Recipients need their own access to your organization to open it. Your browser’s back and forward buttons move between the files you’ve viewed. ![The file editor showing collection\_analyses/promptless\_promptless\_ai\_63eb882f/product-overview.md selected in the Files tree, its file-path header, its line-numbered markdown source, and the Save button in the top-right (visible to organization admins)](https://promptless-customer-doc-assets.s3.us-east-2.amazonaws.com/docs-images/org_3DaVKUzHgjyjaODgCPaDmjXezqp/agent-knowledge-base-editor-detail-7525395e.png) ## Know the files that shape every task [Section titled “Know the files that shape every task”](#know-the-files-that-shape-every-task) Four files shape how Promptless works for your whole organization. The file tree marks each one with the Promptless logo, and the editor explains the file’s role above its contents. Promptless marks only these exact paths, so a file with the same name in another folder, such as `notes/PROMPTLESS.md`, has no logo. | File | What it controls | | ------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `PROMPTLESS.md` | Instructions Promptless receives at the start of every session. Put rules Promptless must always follow here, including the “If, then” hooks that [activate custom tasks](/docs/for-docs/get-the-most-out/teach-promptless-a-custom-task). | | `promptless.yaml` | Your triggers, doc collections, context sources, and policies. Edit it on the [Configuration page](https://app.gopromptless.ai/configuration). See the [Configuration reference](/docs/for-docs/reference/configuration-reference). | | `style/client_style_guide.md` | Your documentation style guide, which Promptless reads before it writes or revises your docs. Reference your repository’s style guide or Vale rules here. Promptless adds the style preferences it learns from feedback. | | `doc_workflow/notification_preferences.md` | Your preferences for the notifications Promptless sends, such as whom it mentions and how it formats messages. Promptless reads it when it writes a notification. | Promptless reads the other files in the Knowledge Base when a task calls for them. ## Review the doc collection analysis [Section titled “Review the doc collection analysis”](#review-the-doc-collection-analysis) When you connect a docs repository, Promptless studies your existing documentation, the repository’s full commit history, and your public docs site. It records what it learns in a `collection_analyses/` folder, with one subfolder for each connected docs repository. Promptless reads this analysis at the start of every documentation task, so its suggestions reflect how your product and docs work. Each analysis folder contains these files: | File | Contents | | -------------------------- | --------------------------------------------------------------------------------------------------------------- | | `README.md` | An index of the analysis and its headline findings. | | `product-overview.md` | What your product does, its key concepts, and terminology. | | `audience-and-personas.md` | Who your documentation serves and what knowledge each reader is assumed to have. | | `content-strategy.md` | Critical user journeys, where new content belongs, and gaps in your information architecture. | | `team-workflows.md` | Patterns from your commit history, such as update cadence, authorship, and which pages tend to change together. | | `style-observations.md` | Voice, formatting, and terminology patterns observed in your docs. | Promptless generates the analysis when you connect the repository, so it reflects your documentation at that time. If you’ve connected Slack or Microsoft Teams, Promptless notifies your configured channel when the analysis finishes. Otherwise, the files appear in the Agent Knowledge Base when it’s done. During analysis, Promptless also proposes Vale rules from your style guidance. It records them under a `style/vale/` folder and, when it can place them in your documentation repository, opens a suggestion to add them. See [Propose Vale rules from your style guidance](/docs/for-docs/audit/standards-enforcement#propose-vale-rules-from-your-style-guidance). Note The analysis files are Promptless’s best inferences from your docs, commit history, and public site, not confirmed facts. Organization admins can [edit any of them](#edit-files) to correct or refine what Promptless assumes. Promptless treats those edits as ground truth on future tasks. Caution If you point a collection at a different repository, Promptless analyzes the new repository from scratch. It replaces all six files, including any edits you’ve made. Copy anything you want to keep first. ## Track what Promptless changed [Section titled “Track what Promptless changed”](#track-what-promptless-changed) Promptless can update these files when you give feedback on suggestions through PR comments, the Promptless dashboard, or Slack. It applies what it learned to future tasks. The **Recent updates by Promptless** list shows its latest changes. Each entry shows: * The date of the update * The files changed, with a diff for each * A link to the suggestion that prompted the update, when there is one ## Edit files [Section titled “Edit files”](#edit-files) Only organization admins can edit Knowledge Base files. Other members see each file as view-only, with no **Save** button. 1. Open the file and make your changes in the editor. 2. Select **Save**. Promptless commits your changes directly to the Knowledge Base repository. Caution Leaving a file with unsaved changes discards them. Promptless asks you to confirm first when you switch files or use your browser’s back or forward buttons. It also asks when you follow the configuration page link above `promptless.yaml`. Select **Cancel** to stay on the file and keep your edits. Opening the configuration page link in a new tab keeps your edits and doesn’t ask. ## Create files [Section titled “Create files”](#create-files) 1. Select the **+** button next to a folder to create a file in it. To create a top-level file, select the new-file icon at the root. 2. In the **New file** dialog, enter a file name without the `.md` extension. Promptless adds the extension. To create the file in new folders, enter a path such as `nested/path/filename`, and Promptless creates the folders. 3. Select **Create**. The new file opens in the editor. ## See also [Section titled “See also”](#see-also) * [Teach Promptless a custom task](/docs/for-docs/get-the-most-out/teach-promptless-a-custom-task), to pair a trigger with a written workflow and a `PROMPTLESS.md` hook * [Teach conventions with feedback](/docs/for-docs/tune/teaching-conventions), for the feedback that updates these files * [Configuration reference](/docs/for-docs/reference/configuration-reference), for every `promptless.yaml` field * [Get support](/docs/for-docs/reference/getting-help), if you need help with your Knowledge Base # Ask Promptless to update your configuration > Ask Promptless in Slack or Microsoft Teams to change your triggers, doc collections, and other promptless.yaml settings directly ## Overview [Section titled “Overview”](#overview) Ask Promptless in Slack or Microsoft Teams to change your configuration, and it makes the change for you. Use it when describing a change in chat is faster than editing `promptless.yaml` on the [Configuration page](https://app.gopromptless.ai/configuration) yourself. For example, add a trigger for a new repository while you’re discussing it in a channel. A configuration change is not a documentation suggestion. Asking Promptless to update your docs produces a suggestion that you review and merge. Asking it to update your configuration changes your settings directly, with no suggestion and no pull request. ## Before you start [Section titled “Before you start”](#before-you-start) * The Promptless app in Slack or Microsoft Teams. To connect it, see [Connect Slack](/docs/for-docs/connect/triggers/slack-messages#connect-slack) or [Connect Microsoft Teams](/docs/for-docs/work-the-queue/reviewing-from-slack-and-teams#connect-microsoft-teams). * For a provider-backed trigger, such as a GitHub PR trigger, the provider’s integration connected. Promptless can’t add, rename, or change that trigger until it is. See [Connect a provider before you add its triggers](/docs/for-docs/connect/triggers#connect-a-provider-before-you-add-its-triggers). ## Ask Promptless to change your configuration [Section titled “Ask Promptless to change your configuration”](#ask-promptless-to-change-your-configuration) 1. In Slack or Microsoft Teams, mention `@Promptless` the same way you request documentation updates. 2. Describe the configuration change in your own words. There is no fixed command syntax. 3. If Promptless asks a clarifying question, reply in the same thread. Promptless validates the resulting configuration before it applies the change, so an invalid or unrecognized change isn’t saved. It then commits the change to `promptless.yaml` in your [Agent Knowledge Base](/docs/for-docs/get-the-most-out/agent-knowledge-base). Review the result on the [Configuration page](/docs/for-docs/reference/configuration-reference#configuration-editor). To undo a change, revert it like any other commit, or ask Promptless to change it back. You can also select **Ask Promptless** on the Configuration page. It opens a New Task where you describe the change. For how to work with Promptless in Slack and Teams, see [Review from Slack and Teams](/docs/for-docs/work-the-queue/reviewing-from-slack-and-teams). ## Choose what to change [Section titled “Choose what to change”](#choose-what-to-change) Promptless can change any setting `promptless.yaml` supports. These example requests work the same way in Slack and Microsoft Teams: | Section | Example requests | | ----------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | [Triggers](/docs/for-docs/reference/configuration-reference#triggers) | `@Promptless add a GitHub PR trigger for the acme/api repo` `@Promptless stop watching the #random channel` `@Promptless watch all repos in the acme org for docs changes` `@Promptless only trigger on the docs/ directory in acme/api` | | [Doc collections](/docs/for-docs/reference/configuration-reference#doc-collections) | `@Promptless add the acme/docs repo as a doc collection` `@Promptless limit the acme/docs collection to the docs/ folder` | | [Context sources](/docs/for-docs/reference/configuration-reference#context-sources) | `@Promptless remove the Notion context source` | | [Policies](/docs/for-docs/reference/configuration-reference#policies) | `@Promptless send suggestion notifications to #docs-review` `@Promptless turn on auto-create PRs for the acme/docs collection` | For every field, see the [Configuration reference](/docs/for-docs/reference/configuration-reference). ## Restrict who can change configuration from chat [Section titled “Restrict who can change configuration from chat”](#restrict-who-can-change-configuration-from-chat) By default, anyone who can mention Promptless in a connected Slack or Microsoft Teams channel can ask it to change your configuration. Editing on the [Configuration page](/docs/for-docs/reference/configuration-reference#configuration-editor) is limited to organization admins. To limit chat changes to specific people: 1. Open `PROMPTLESS.md` in your [Agent Knowledge Base](/docs/for-docs/get-the-most-out/agent-knowledge-base). 2. Add an allowlist of the usernames or handles allowed to change configuration through chat. 3. Select **Save**. When an allowlist is present, Promptless makes configuration changes from chat only for the listed users. ## See also [Section titled “See also”](#see-also) * [Teach Promptless a custom task](/docs/for-docs/get-the-most-out/teach-promptless-a-custom-task), to pair a trigger with written workflow instructions for a repeatable task * [Agent Knowledge Base](/docs/for-docs/get-the-most-out/agent-knowledge-base), where `promptless.yaml` and `PROMPTLESS.md` live * [Configuration reference](/docs/for-docs/reference/configuration-reference), for every `promptless.yaml` field # Keep localized docs current > Pair a trigger on your source-language directory with written instructions so Promptless drafts translated updates when your source docs change ## Overview [Section titled “Overview”](#overview) When your docs ship in more than one language, the translated pages fall behind each time the source content changes. Most teams write in one language, often English, and mirror it into the others. To keep the translations current, pair a trigger on the directory you write in with translation instructions. When source pages change, Promptless drafts the matching updates for your other languages. Caution AI-assisted drafting speeds up translation, but a person still needs to review it. Idiom, tone, terminology, and locale conventions are easy to get subtly wrong. Plan for a reviewer fluent in each target language to check every translated suggestion before it ships. ## Before you start [Section titled “Before you start”](#before-you-start) * The GitHub repository that holds your docs, connected to Promptless. * An admin role in your Promptless organization, to edit the [Configuration page](https://app.gopromptless.ai/configuration) and `PROMPTLESS.md`. You can also [ask Promptless to make the changes](/docs/for-docs/get-the-most-out/ask-promptless-to-update-config). ## Add a trigger on your source-language directory [Section titled “Add a trigger on your source-language directory”](#add-a-trigger-on-your-source-language-directory) A [GitHub commits trigger](/docs/for-docs/connect/triggers/github-commits) runs when new commits are pushed to a branch, whether or not the commits came through a pull request. 1. On the [Configuration page](https://app.gopromptless.ai/configuration), open the **Triggers** tab. 2. Select **Add an automatic or scheduled trigger**, then select **GitHub commits**. 3. Expand **More filters (optional)**. 4. Under **Only when files in these folders change**, enter the directory you write in, such as `docs/en`, and press Enter. 5. Select **Add trigger**. Only commits that change files in that directory start a run, so a commit that touches only translated directories doesn’t. ## Write translation instructions [Section titled “Write translation instructions”](#write-translation-instructions) The trigger decides when Promptless runs. Your instructions tell it how to handle the translation. Put them in `PROMPTLESS.md`, which Promptless loads at the start of every run. 1. Open `PROMPTLESS.md` in your [Agent Knowledge Base](/docs/for-docs/get-the-most-out/agent-knowledge-base). 2. Name the directory you write in, the directories to update, and any terms to keep in the source language. For example: “`docs/en` is the documentation source directory. Localize changes into `docs/es` and `docs/ja`, and keep product names untranslated.” 3. Select **Save**. For the “If, then” hook format and where longer workflows live, see [Teach Promptless a custom task](/docs/for-docs/get-the-most-out/teach-promptless-a-custom-task). ## Review translated suggestions [Section titled “Review translated suggestions”](#review-translated-suggestions) When a source page changes, Promptless opens a suggestion with the translated changes. Have someone fluent in the target language review and publish it. You can’t judge a translation’s correctness from the diff alone. ## Teach translation conventions with feedback [Section titled “Teach translation conventions with feedback”](#teach-translation-conventions-with-feedback) Expect to refine your translation instructions over the first few suggestions, especially when you maintain several target languages or are catching up a backlog. Product names, terms of art, and phrases you leave untranslated need to come out the same way every time. When you correct a translation, [teach the convention with feedback](/docs/for-docs/tune/teaching-conventions). When you close a suggestion with a reason, leave **Send to Promptless** checked so the feedback shapes future suggestions. Promptless records what it learns in your Agent Knowledge Base. For example, it records which terms stay in the source language or how to render a feature name. ## Catch up translations that are already behind [Section titled “Catch up translations that are already behind”](#catch-up-translations-that-are-already-behind) The trigger acts on new commits. It doesn’t scan pages that are already out of date. For one-time work across all your translated pages, use [Deep Analysis](/docs/for-docs/get-the-most-out/pay-down-docs-debt). Describe the catch-up in its instructions, and Promptless returns a coordinated set of suggestions. Once your translations are current, new commits to your source-language directory start runs as usual. ## Publish translated updates automatically [Section titled “Publish translated updates automatically”](#publish-translated-updates-automatically) Review localization pull requests at first. Once a fluent reviewer trusts the output, you can have Promptless merge them automatically: 1. On the [Configuration page](https://app.gopromptless.ai/configuration), open the **Policies** tab. 2. Add a rule, and under **When this matches**, choose your translation trigger. 3. Turn on **Open a pull request automatically** and **Merge the pull request automatically**. Auto-merge requires automatic pull request creation. 4. Select **Save policies**. The rule applies only to your translation trigger. Your other suggestions follow your default policy. Promptless doesn’t auto-merge into a protected branch. With the [GitHub (read-only) app](/docs/for-docs/reference/integrations/github-read-only), Promptless opens pull requests from a fork and doesn’t merge them automatically, so merge those yourself. Caution Auto-merge on a trigger applies to every target language that trigger drafts for, and publishes all of them without review. Turn it on only once a reviewer fluent in each language trusts Promptless’s output. To automate some languages and keep reviewing others, scope a separate trigger to each language. ## Work with a translation management system [Section titled “Work with a translation management system”](#work-with-a-translation-management-system) Promptless drafts translations from the instructions you provide. It has no documented integration with a translation management system (TMS) such as Phrase, Crowdin, or Lokalise. If your team uses a TMS and wants Promptless to hand off to it, email to discuss your requirements. ## See also [Section titled “See also”](#see-also) * [GitHub commits](/docs/for-docs/connect/triggers/github-commits), for every commit trigger option, including auto-merge * [Teach Promptless a custom task](/docs/for-docs/get-the-most-out/teach-promptless-a-custom-task), for the trigger-plus-instructions pattern this page uses * [Teach conventions with feedback](/docs/for-docs/tune/teaching-conventions), to make terminology choices stick * [Pay down docs debt with Deep Analysis](/docs/for-docs/get-the-most-out/pay-down-docs-debt), to catch up a translation backlog # Get the most out of passive channel listening > Point Promptless at your highest-signal Slack and Teams channels so it drafts documentation updates from real conversations, no @mention required. ## Overview [Section titled “Overview”](#overview) Passive listening has Promptless read the Slack and Microsoft Teams channels you choose and draft documentation updates from the conversations there, without anyone mentioning it. Use it on channels where questions and product decisions come up that your docs should reflect, such as a support channel shared with a customer. Promptless evaluates messages as they’re posted and drafts a suggestion only when a conversation warrants one. This page covers choosing channels, adding the triggers, and what to expect once listening is on. It also covers how to have Promptless act on a specific message. Tip You can also ask Promptless in Slack or Microsoft Teams to set this up. For example, “@Promptless start passively listening to my `#support` channel. Draft updates from doc issues or gaps in those conversations.” See [Ask Promptless to update your configuration](/docs/for-docs/get-the-most-out/ask-promptless-to-update-config). ## Before you start [Section titled “Before you start”](#before-you-start) * At least one [active doc collection](/docs/for-docs/connect/doc-locations/how-promptless-learns-your-docs). Without one, passive listening has nowhere to send suggestions and does nothing. * An admin role in your Promptless organization, to edit the [Configuration page](https://app.gopromptless.ai/configuration). * For Slack, the Promptless Slack app in your workspace. Promptless joins a public channel when you add it to a trigger. For a private channel, or a channel shared with another workspace through Slack Connect, [add Promptless to the channel in Slack](/docs/for-docs/reference/integrations/slack#add-promptless-to-private-channels) yourself. * For Microsoft Teams, the Promptless Teams app installed with permission to read channel messages, and admin consent. Teams support is in beta. Email to turn it on for your organization, then see [Connect Microsoft Teams](/docs/for-docs/work-the-queue/reviewing-from-slack-and-teams#connect-microsoft-teams). ## Pick the right channels [Section titled “Pick the right channels”](#pick-the-right-channels) Point passive listening at low-volume, high-signal channels. Good candidates include a Slack Connect channel shared with a customer, a dedicated `#docs-feedback` channel, or an internal channel where the team makes product decisions. Avoid a busy channel like `#general`, where Promptless evaluates many messages and few are worth documenting. For example, a team points passive listening at the Slack Connect channel they share with a customer. Over a week, three people ask some version of “how do I rotate our API key?” Promptless notices the docs don’t answer the recurring question and drafts a new FAQ entry. The team reviews and publishes it, and the next customer who asks finds the answer in the docs. Community and internal channels where the same question keeps coming up work the same way. ## Set up listening [Section titled “Set up listening”](#set-up-listening) 1. On the [Configuration page](https://app.gopromptless.ai/configuration), open the **Triggers** tab. 2. Select **Add an automatic or scheduled trigger**, then select **A Slack channel** or **A Microsoft Teams channel**. 3. Under **Which channels should Promptless watch?** or **Which Teams channels should Promptless watch?**, choose the channels to monitor: * For Slack, choose channels from the list, or enter channel names without the `#` prefix. * For Teams, choose channels from the list, or paste a channel’s conversation ID, which looks like `19:...@thread.tacv2`. 4. Select **Add trigger**. Promptless tracks Slack channel renames, so renaming a monitored channel doesn’t break the trigger. To stop monitoring a channel, edit or remove its trigger on the **Triggers** tab. The Configuration page stores each trigger in `promptless.yaml`. To manage triggers as configuration, edit the YAML directly. This example has one `slack_listen` trigger and one `msteams_listen` trigger: ```yaml triggers: support-channels: trigger_type: slack_listen match: - channels: - slack-connect-acme - docs-feedback teams-support: trigger_type: msteams_listen match: - channel_ids: - 19:abc123@thread.tacv2 ``` For every match field, see the [Configuration Reference](/docs/for-docs/reference/configuration-reference#triggers). ## Know what to expect from passive listening [Section titled “Know what to expect from passive listening”](#know-what-to-expect-from-passive-listening) Promptless drafts a suggestion when a conversation shows a gap or error in your docs, or new information worth documenting. The result can be a correction to an existing page as well as a new one. Most conversations produce no change, and that’s expected: Promptless stays quiet on ordinary chatter. Once listening is on: * Promptless doesn’t react to, acknowledge, or answer a message it reads through passive listening. Its suggestions appear in your [review queue](/docs/for-docs/work-the-queue/assignment-and-routing#triage-the-review-queue) and in the notification channel set in your [policies](/docs/for-docs/reference/configuration-reference#policies). Questions for your team go to the escalation channel set there. * Reading a thread doesn’t make Promptless follow it, in Slack or Teams. Promptless shows nothing in the thread and doesn’t answer replies there until someone @mentions it in the thread or it posts there. After that, it follows the thread like any other. * Knowledge Base instructions, such as notification preferences or `PROMPTLESS.md`, can also send notifications to a watched thread. For example, an instruction to send notifications to the thread where a request started makes Promptless post a suggestion notification as a reply there. Promptless then follows that thread. To keep watched threads silent, check that your Knowledge Base instructions don’t send notifications to the originating thread. * When a monitored thread keeps evolving, Promptless updates the suggestion it already opened for that thread, so you see one suggestion rather than several. * Promptless processes the messages it reads to draft suggestions and doesn’t retain them. See [Data handling](/docs/for-docs/security/data-handling-and-classification). ## Steer it in the moment [Section titled “Steer it in the moment”](#steer-it-in-the-moment) To have Promptless act on a specific message or thread right away, mention @Promptless in it. A mention runs immediately as a normal request, without the passive “is this worth documenting?” judgment. Once Promptless is active in a thread, it keeps listening to replies, so you can refine a suggestion or add context without mentioning it again. To have it skip a reply, start the message with `aside` or `/aside`. An organization-level setting decides whether Promptless listens to all replies or only to mentions. To change it, see [Change the thread reply trigger mode](/docs/for-docs/connect/triggers/slack-messages#change-the-thread-reply-trigger-mode). ## See also [Section titled “See also”](#see-also) * [Slack messages](/docs/for-docs/connect/triggers/slack-messages), for every way to start Promptless from Slack * [Review from Slack and Teams](/docs/for-docs/work-the-queue/reviewing-from-slack-and-teams#microsoft-teams), for other ways to work with Promptless in Teams * [Thread auto-reply](/docs/for-docs/work-the-queue/reviewing-from-slack-and-teams#thread-auto-reply), for how Promptless handles follow-up replies * [Get support](/docs/for-docs/reference/getting-help), for help choosing channels or tuning passive listening # Pay down docs debt with Deep Analysis > Submit large, complex documentation requests that require extended research and may create multiple suggestions across your docs ## Overview [Section titled “Overview”](#overview) Use Deep Analysis when a documentation project spans many pages, needs background research, or calls for a plan before any edits land. Promptless plans the work, splits it into parts, and runs its full writing workflow on each part. You get a coordinated set of suggestions in place of a single edit. Deep Analysis fits projects like these: * Refactor or rewrite a whole section to match a new pattern or stronger examples. * Audit the collection for consistency, accuracy, or style compliance. * Write documentation from scratch for a new feature or product. * Add error codes, examples, or other structured data across an OpenAPI reference. Deep Analysis is one of three modes on the New Task page. Choose the mode that fits the size of the request: | Mode | Best for | Expected response | Typical output | | ------------- | --------------------------------------- | ----------------- | ---------------------------- | | Fast | Typos and small wording fixes | Under 5 minutes | Usually 1 suggestion | | Default | Most documentation changes | 10–20 minutes | Usually 1–2 suggestions | | Deep analysis | Audits, migrations, and multi-page work | Can take hours | Often 10 or more suggestions | For routine updates, use a regular trigger, such as Slack or a GitHub PR trigger, or a New Task in **Default** mode. Tip Auditing, remediating, or restructuring an existing docs set? See [Audit and keep your docs healthy](/docs/for-docs/audit/keep-docs-healthy) for how Deep Analysis fits alongside Vale, Doc Detective, and redirects. ## Submit a request [Section titled “Submit a request”](#submit-a-request) 1. In the sidebar, select **New task**. To open the New Task page with **Deep analysis** already selected, use the [Deep Analysis link](https://app.gopromptless.ai/new-task?mode=deep). 2. Optional. To scope the run yourself, choose a collection from the **Doc Collection** chip. The default, **Let Promptless decide**, picks the collections the task affects. Only collections that have finished initial analysis appear in the list. 3. In the **Mode** chip, select **Deep analysis**. 4. Optional. Under **Use a template**, select a [Deep Analysis template](#choose-a-template). Do this before you write: a template replaces anything already in the instructions field. 5. In the instructions field, describe the project. Include the product area, the source code or APIs Promptless should inspect, examples to model, and the changes to focus on. 6. Optional. To add screenshots, PDFs, or specs, select **Attach files** (the paperclip) or paste an image into the field. You can attach up to 5 files, 10 MB each. 7. Optional. Change where Promptless reports on the task. The **Notify** control opens on the Slack channel your `promptless.yaml` policies route notifications to, or your escalation channel when that’s the only one set. Choose another channel, or select **No notification**. 8. Optional. Turn on **Auto-create PRs** to open a pull request for each of this task’s suggestions without reviewing it first. 9. Select the submit arrow, or press Cmd+Enter on macOS or Ctrl+Enter on Windows and Linux. Pressing Enter alone adds a new line. Promptless opens the task’s page, where you can follow the run and see the suggestions it produces. The run continues in the background, so you can close the tab. ## Choose a template [Section titled “Choose a template”](#choose-a-template) The **Use a template** rail includes four Deep Analysis templates for common project shapes. Each one fills the instructions field with a title line, a description, and `{curly-brace}` placeholders for the context Promptless needs. Edit the text before you submit. Selecting a template also sets **Mode** to the mode it needs, and selecting the selected card again clears the field. | Template | Use it to | | ------------------------------- | ------------------------------------------------------------------------------- | | Refactor a bad section of docs | Improve an existing section, using another set of docs as a model. | | Add error codes to OpenAPI spec | Add error codes and examples to your API specification. | | Write docs from scratch | Write new documentation, with guidance on outline, audience, and style. | | Audit for consistency | Review all documentation for consistent terminology, formatting, and structure. | The rail’s other templates, such as **Find doc update from recent merges**, run in **Default** mode. ## Follow a Deep Analysis run [Section titled “Follow a Deep Analysis run”](#follow-a-deep-analysis-run) A Deep Analysis run can take several hours and often produces 10 or more suggestions across your documentation. Promptless plans the work across your docs first, then runs the full writing workflow for each part: research, grounding in your source, editing, and review. The run appears on the Triggers page as `Deep Analysis: `, so you can tell it apart from regular tasks. If you chose a notification channel, Promptless sends the run’s suggestions and any blockers there. ## See also [Section titled “See also”](#see-also) * [Audit and keep your docs healthy](/docs/for-docs/audit/keep-docs-healthy), for how Deep Analysis fits into a docs remediation project * [Teach Promptless a custom task](/docs/for-docs/get-the-most-out/teach-promptless-a-custom-task), for recurring work that a trigger starts * [Get support](/docs/for-docs/reference/getting-help), for help scoping a Deep Analysis project # Keep changelogs and release notes current > Point Promptless at your changelog, activate updates when it changes, publish them automatically, and teach it how you like changelog entries written. ## Overview [Section titled “Overview”](#overview) Changelogs and release notes drift the same way the rest of your docs do: they fall behind what shipped. Promptless keeps them current alongside your other docs. When a change ships, it drafts changelog entries as suggestions, following your existing changelog structure and format and the conventions you teach it. Before drafting an entry, Promptless decides whether the change needs documentation at all. A change that touches no documented behavior produces no suggestion. See [Filter noise and tune relevance](/docs/for-docs/tune/noise-and-relevance-filtering) for how that decision works. This page covers pointing Promptless at your changelog, publishing changelog updates without manual review, and teaching Promptless how your entries read. To time drafts and publishing to your release stages, see [Time suggestions to your release cycle](/docs/for-docs/tune/release-timing). Tip You can also ask Promptless in Slack or Microsoft Teams to set this up. For example, “@Promptless set yourself up to auto-merge changelog updates.” See [Ask Promptless to update your configuration](/docs/for-docs/get-the-most-out/ask-promptless-to-update-config). ## Point Promptless at your changelog [Section titled “Point Promptless at your changelog”](#point-promptless-at-your-changelog) Where your changelog lives decides what to change: | Where your changelog lives | What to do | | ---------------------------------------- | ---------------------------------------------------------------------------------------------------------- | | In the same repository as your docs | Make sure your doc collection watches it. A collection with no folder filter watches the whole repository. | | In a different repository from your docs | Add a separate doc collection for that repository. A repository can have only one doc collection. | To add the changelog to an existing collection’s path scope: 1. On the [Configuration page](https://app.gopromptless.ai/configuration), open the **Doc collections** tab and open your doc collection. 2. Expand **More filters (optional)**. 3. Under **Only watch these folders**, add your changelog path alongside your docs folders. The field also accepts a single file, such as `CHANGELOG.md`. 4. Select **Save changes**. To track a changelog in another repository, select **Add doc collection** on the same tab. For how collections and path scope work, see [Doc collections](/docs/for-docs/reference/configuration-reference#doc-collections) and [GitHub repos (docs as code)](/docs/for-docs/connect/doc-locations/github-repos). ## Publish changelog updates automatically [Section titled “Publish changelog updates automatically”](#publish-changelog-updates-automatically) Auto-merge publishes changelog entries as soon as they’re ready, with no manual review. The defaults on the **Policies** tab apply to every suggestion, so turning on auto-merge there also merges API reference edits and migration guides. Add a rule that applies only to your changelog instead: 1. On the [Configuration page](https://app.gopromptless.ai/configuration), open the **Policies** tab. 2. Add a rule, and under **When this matches**, choose the trigger that covers your changelog. If your changelog has its own doc collection, choose that collection instead. 3. Turn on **Open a pull request automatically** and **Merge the pull request automatically**. Promptless has to open a pull request before it can merge it. 4. Select **Save policies**. Promptless doesn’t auto-merge into a protected branch, so branch protection on the branch Promptless targets blocks the automatic merge. For how publishing policies resolve, see [Control when a suggestion publishes](/docs/for-docs/tune/release-timing#control-when-a-suggestion-publishes) and the [publishing policy fields](/docs/for-docs/reference/configuration-reference#policies). ## Teach Promptless how you write changelog entries [Section titled “Teach Promptless how you write changelog entries”](#teach-promptless-how-you-write-changelog-entries) Promptless follows the changelog conventions you give it. Teach them through [feedback](/docs/for-docs/tune/teaching-conventions) or write them down: * Keep changelog entries in their own suggestion. Feedback such as “I always want changelog entries in their own suggestion, please move” teaches this convention. * Decide which changes deserve an entry. Where you draw that line is your team’s convention, not a setting. When you close a changelog suggestion you don’t want, choose a reason. For example, select **This change is too insignificant** or **This change is self-explanatory and doesn’t need docs**. Leave **Send to Promptless** checked. Or write the rule down ahead of time. See [Teach Promptless what to skip](/docs/for-docs/tune/noise-and-relevance-filtering#teach-promptless-what-to-skip) for both approaches. * Name a skill for changelog entries. In the `PROMPTLESS.md` file in your [Agent Knowledge Base](/docs/for-docs/get-the-most-out/agent-knowledge-base), tell Promptless which skill to use when it writes changelog entries. See [How Promptless learns your docs](/docs/for-docs/connect/doc-locations/how-promptless-learns-your-docs) for how Promptless applies that guidance. ## See also [Section titled “See also”](#see-also) * [Time suggestions to your release cycle](/docs/for-docs/tune/release-timing), to draft and publish entries at the right release stage * [GitHub commits](/docs/for-docs/connect/triggers/github-commits), to start updates from commits that change your changelog * [Filter noise and tune relevance](/docs/for-docs/tune/noise-and-relevance-filtering), to control which changes get suggestions # Keep screenshots current with Promptless Capture > Use Promptless Capture to keep product screenshots in sync with your UI, regenerating them from your current interface when code changes ## Overview [Section titled “Overview”](#overview) Promptless Capture keeps the product screenshots in your docs in sync with your UI. When a code change affects a documented feature, Promptless identifies which screenshots need updating and captures new ones from your current interface. To reach screens behind a login, Promptless needs credentials for a test account in your application. Promptless updates screenshots when: * A GitHub PR modifies UI components referenced in documentation. * A commit changes routes, layouts, or visual styling. * You ask for a screenshot update in Slack or the Promptless dashboard. * Promptless edits a page for any reason and finds a screenshot on it that no longer matches your interface. Promptless captures new screenshots only when it detects changes that likely affect documented UI. Code changes that don’t affect the interface leave screenshots alone. ## Before you start [Section titled “Before you start”](#before-you-start) * A dedicated test account for screenshot capture, not a personal or production account. A test account keeps sensitive data out of screenshots and gives a consistent UI state. * Access for that account to every feature you want to document, including any features that need specific permissions or plan tiers. ## Set up credentials [Section titled “Set up credentials”](#set-up-credentials) Store the test account’s credentials as [environment variables](/docs/for-docs/scale/environment-variables) that Promptless can read when it captures screenshots. 1. Go to the [Agent Env Vars](https://app.gopromptless.ai/settings/env-vars) page in **Settings**. 2. In the **Add Variable** form, enter a **Key Name** and **Value** for one credential. 3. For a password or other secret, turn on **Secret**. Promptless hides secret values after you save them. 4. Select **Add Variable**. 5. Repeat steps 2 through 4 for each credential. For example, add these variables: | Key Name | Holds | Secret | | ------------------- | -------------------------------------- | ------ | | `TEST_ACCOUNT_URL` | The login URL for your application | No | | `TEST_ACCOUNT_USER` | Username or email for the test account | No | | `TEST_ACCOUNT_PASS` | Password for the test account | Yes | You can use other names, such as `STAGING_LOGIN_URL` or `QA_USER`, to fit your organization’s conventions. ## Test your setup [Section titled “Test your setup”](#test-your-setup) 1. On the [New Task page](https://app.gopromptless.ai/new-task), request a documentation update that involves screenshots. 2. When the suggestion is ready, check its screenshots for: * Successful authentication, with no login screens * The intended feature, which shows Promptless reached the right page * Cropping that keeps the relevant UI elements visible 3. If the screenshots aren’t right, adjust your environment variables, or add navigation guidance to `PROMPTLESS.md` in your [Agent Knowledge Base](/docs/for-docs/get-the-most-out/agent-knowledge-base). See [Troubleshoot screenshot capture](#troubleshoot-screenshot-capture). ## Edit a screenshot [Section titled “Edit a screenshot”](#edit-a-screenshot) Refine a captured screenshot in the Screenshot Editor before you publish the suggestion. 1. In the suggestion, select one of the images it added to open the Screenshot Editor. 2. Edit the image with the editor’s tools: | Tool | Use it to | | ------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | | **Crop** | Focus on specific UI elements. Select **Apply Crop** to keep the crop, or **Cancel Crop** to leave crop mode without applying it. | | **Highlight** | Draw attention to an area of the screenshot. | | **Outlined Box**, **Outlined Circle** | Outline a control or region. | | **Shaded Box**, **Shaded Circle** | Shade a region to call it out. | | **Undo**, **Redo** | Step back or forward through your edits. | 3. Select **Save edits**. To discard unsaved changes and return to the last saved version, select **Reset edits**. Saved edits appear in your documentation suggestion right away. ## Review screenshot changes [Section titled “Review screenshot changes”](#review-screenshot-changes) A suggestion with screenshots shows them as thumbnails on its row in the list and in a **Screenshots** section at the top of the suggestion. The thumbnails include the images Promptless uploads and the screenshots a suggestion commits to your docs repository. A committed screenshot is tagged **New**, **Updated**, or **Removed**. 1. In the suggestions list, search for `has:screenshots` or turn on **Has screenshots** to list only suggestions with screenshots. ![Suggestions list filtered to suggestions with screenshots, with the Has screenshots switch on, a has:screenshots chip in the search field, and screenshot thumbnails tagged New under each row's title](https://promptless-customer-doc-assets.s3.us-east-2.amazonaws.com/docs-images/org_3DaVKUzHgjyjaODgCPaDmjXezqp/suggestions-has-screenshots-filter-12eeb822.png) 2. Select a thumbnail to open that screenshot on the suggestion’s **Review Suggestion** tab. ![Screenshots section at the top of a suggestion with a count of two and two thumbnails tagged New, above the Review Suggestion tab](https://promptless-customer-doc-assets.s3.us-east-2.amazonaws.com/docs-images/org_3DaVKUzHgjyjaODgCPaDmjXezqp/suggestion-screenshots-section-6a69decf.png) 3. Compare the screenshot with its previous version, then reject it, or publish the suggestion to accept it. For more on reviewing a suggestion’s changes, see [Check how changes render](/docs/for-docs/work-the-queue/reviewing-prs#check-how-changes-render). ## Troubleshoot screenshot capture [Section titled “Troubleshoot screenshot capture”](#troubleshoot-screenshot-capture) Promptless can’t log in to my application Check that your `TEST_ACCOUNT_URL`, `TEST_ACCOUNT_USER`, and `TEST_ACCOUNT_PASS` variables match what you use to log in by hand. If your screenshots show the login page, the credentials may be wrong, or the login flow may need more steps. If your application uses multi-factor authentication (MFA), create a test account that skips MFA. For guidance on MFA flows, email . Screenshots capture the wrong page Promptless may need navigation guidance. In `PROMPTLESS.md` in your [Agent Knowledge Base](/docs/for-docs/get-the-most-out/agent-knowledge-base), describe how to reach specific features, such as menu paths, URL patterns, or the buttons to select. Screenshots show features that should be hidden The test account may have access to features that typical users don’t see. Check your feature flag configuration, and consider a test account with permissions that match your documentation’s audience. Cropping cuts off important elements Adjust the crop in the [Screenshot Editor](#edit-a-screenshot), or give feedback on the suggestion so Promptless crops future captures better. Screenshots show loading states or spinners The page may not have finished loading before capture. Email if you see loading states in your screenshots consistently. ## See also [Section titled “See also”](#see-also) * [Manage environment variables](/docs/for-docs/scale/environment-variables), for how Promptless stores and uses the variables you add * [Review and edit Promptless PRs](/docs/for-docs/work-the-queue/reviewing-prs), to review and publish the suggestions that carry new screenshots * [Get support](/docs/for-docs/reference/getting-help), for help setting up Promptless Capture # Teach Promptless a custom task > Give Promptless a new or customized workflow by pairing a trigger with written instructions. Covers the general process, plus complete examples ## Overview [Section titled “Overview”](#overview) Promptless ships with default behaviors, such as reviewing code PRs for documentation impact. Teach it a custom task when you want it to do something new on a regular basis. For example, it can review contributor PRs in your docs repository or turn weekly analytics into doc-gap suggestions. A custom task has two parts: | Part | What it decides | Where it lives | | ------------------ | --------------------------------- | ------------------------------------------------------------------------------------------- | | A trigger | When Promptless runs | The **Triggers** tab of the [Configuration page](https://app.gopromptless.ai/configuration) | | A written workflow | What Promptless does when it runs | A file under `doc_workflow/` in your Knowledge Base, or an Agent Skill in a doc collection | An “If, then” hook in `PROMPTLESS.md` connects the two, so Promptless follows the workflow when the trigger activates. You can pair a workflow with [any supported trigger type](/docs/for-docs/reference/configuration-reference#trigger-types). Your instructions can add to Promptless’s default behavior or change it. Custom tasks act on new events, such as a PR opening. They don’t scan or audit the pages you already have. For one-time work across your whole docs set, such as an audit, a retrofit, or writing from scratch, use [Deep Analysis](/docs/for-docs/get-the-most-out/pay-down-docs-debt). Tip You can also ask Promptless in Slack or Microsoft Teams to set up a custom task. For example, “@Promptless I have a new workflow I’d like you to support. Can you help me set it up?” See [Ask Promptless to update your configuration](/docs/for-docs/get-the-most-out/ask-promptless-to-update-config). ## Before you start [Section titled “Before you start”](#before-you-start) * The integration that the trigger depends on, connected to Promptless. For example, the GitHub integration for a task that starts from a GitHub PR. * An admin role in your Promptless organization, to edit the Knowledge Base and Configuration page. Alternatively, ask Promptless in Slack or Microsoft Teams to make the edits for you. ## Write the workflow [Section titled “Write the workflow”](#write-the-workflow) The workflow holds the instructions Promptless follows once the trigger activates. Make it concrete. Say what to check, what to prioritize, and what output to produce, so Promptless knows what a successful run looks like. 1. Write the workflow in one of these places: * A Markdown file under `doc_workflow/` in your [Agent Knowledge Base](/docs/for-docs/get-the-most-out/agent-knowledge-base), such as `doc_workflow/review-inbound-doc-prs.md`. * An Agent Skill in a doc collection, under `.claude/skills/`, `.agents/skills/`, or `.cursor/skills/` in your docs repository. 2. In `PROMPTLESS.md`, add an “If, then” hook that points to the workflow, in the form “If \[condition], then \[do this].” When the workflow is an Agent Skill, name the doc collection it lives in. For example: “When a contributor PR is opened in `acme/docs`, use the `contributor-workflow` skill from the Acme doc collection.” 3. Save your changes. An organization admin can edit the files in the [Agent Knowledge Base](/docs/for-docs/get-the-most-out/agent-knowledge-base). You can also ask Promptless to make the edits, and it commits them for you. Caution Add the “If, then” hook even when the workflow is complete on its own. Promptless loads `PROMPTLESS.md` into every run, so a hook there is always in front of it. It loads workflow files and Agent Skills only when it needs them, so a workflow with no hook may not run consistently. Promptless also reads guidance from `AGENTS.md` and `CLAUDE.md` in your docs repository. See [How Promptless learns your docs](/docs/for-docs/connect/doc-locations/how-promptless-learns-your-docs). ## Add the trigger [Section titled “Add the trigger”](#add-the-trigger) The trigger decides when your workflow runs. For example, a GitHub PR trigger can activate when a PR is opened. A Slack channel trigger can act on messages that meet criteria you describe. 1. On the [Configuration page](https://app.gopromptless.ai/configuration), open the **Triggers** tab. 2. Select **Add an automatic or scheduled trigger**, then select the trigger type. 3. Fill in the trigger’s settings, such as the repositories or channels to watch. 4. Select **Add trigger**. Note In the dashboard, a GitHub PR trigger can run when a PR is opened, first approved, or merged. To run on every new push to a PR, set `trigger_on: [updated]` in `promptless.yaml`. See [Trigger modes](/docs/for-docs/connect/triggers/github-prs#choose-trigger-modes). For a one-off review outside your triggers, mention `@promptless` in a PR comment. When the trigger activates on a qualifying event, Promptless reads the context for that event, follows your workflow, and produces the output your instructions define. The context it reads and the output it produces depend on the workflow you write. ## Follow an end-to-end example [Section titled “Follow an end-to-end example”](#follow-an-end-to-end-example) Each example walks through the prerequisites, workflow instructions, trigger YAML, and `PROMPTLESS.md` hook for one task. [Example: review inbound documentation PRs](/docs/for-docs/get-the-most-out/teach-promptless-a-custom-task/review-inbound-doc-prs)Pair a written review workflow with a GitHub PR trigger. [Example: turn docs analytics into doc-gap suggestions](/docs/for-docs/get-the-most-out/teach-promptless-a-custom-task/analytics-docs-gaps)Pair an analytics workflow with a weekly schedule trigger. ## See also [Section titled “See also”](#see-also) * [How Promptless learns your docs](/docs/for-docs/connect/doc-locations/how-promptless-learns-your-docs), for where Promptless reads custom guidance and Agent Skills * [Configuration reference](/docs/for-docs/reference/configuration-reference#triggers), for every trigger type and field * [Ask Promptless to update your configuration](/docs/for-docs/get-the-most-out/ask-promptless-to-update-config), to set up triggers from Slack or Teams # Example: Turn docs analytics into doc-gap suggestions > Teach Promptless a weekly schedule trigger that turns documentation-site analytics into prioritized doc-gap suggestions. ## Overview [Section titled “Overview”](#overview) This example teaches Promptless to turn your documentation-site analytics into prioritized doc-gap suggestions once a week. It follows the process in [Teach Promptless a custom task](/docs/for-docs/get-the-most-out/teach-promptless-a-custom-task), pairing a written workflow with a schedule trigger. A schedule trigger runs on a repeating clock, with no triggering event. The workflow reads two signals from PostHog, which measures reader behavior on your docs site: | Signal | What it tells you | | ------------------------------------------------------ | -------------------------------------------------------------- | | Recurring site-search queries that return zero results | Readers are looking for a page that’s missing or hard to find. | | High traffic combined with a high exit rate on a page | Readers reach the page but leave without their answer. | Adapt the workflow to the analytics tool you use and the signals that matter most to your team. Tip You can also ask Promptless in Slack or Microsoft Teams to set this up. For example, “@Promptless add a weekly schedule trigger that turns our docs analytics into doc-gap suggestions.” See [Ask Promptless to update your configuration](/docs/for-docs/get-the-most-out/ask-promptless-to-update-config). ## Before you start [Section titled “Before you start”](#before-you-start) * Your PostHog credentials stored as [environment variables](/docs/for-docs/scale/environment-variables) that Promptless can read. You choose the variable names. This example uses `POSTHOG_PROJECT_API_KEY`, `POSTHOG_PROJECT_ID`, and `POSTHOG_HOST`, which you find in your PostHog project settings. * At least one active doc collection. * An admin role in your Promptless organization, to edit the Knowledge Base and Configuration page. Alternatively, ask Promptless in Slack or Microsoft Teams to make the edits for you. ## Write the workflow [Section titled “Write the workflow”](#write-the-workflow) The workflow tells Promptless how to read the analytics and act on them. It covers what to query, which signals matter, how to prioritize, and how much to open. 1. In your [Agent Knowledge Base](/docs/for-docs/get-the-most-out/agent-knowledge-base), create a workflow file under `doc_workflow/`. For example, name it `doc_workflow/analytics-docs-gaps.md`. 2. Write the workflow body. Adapt this example to your analytics tool and docs: ```markdown # Analytics-derived documentation gaps When the weekly analytics doc-gaps schedule runs: 1. Scope every query to your documentation paths only — on-site analytics filtered to your docs URL prefix (for example, `promptless.ai/docs`). Never pull product analytics. 2. Read two signals from the last 7 days: - **Recurring reader searches with no good answer** (site-search queries that return zero results). Each recurring instance is a reader asking for a page that does not exist or does not surface. A one-off search is noise, not a signal. - **Page-level performance** for existing docs pages: traffic and exit rate. High traffic combined with a high exit rate points to a page readers reach but leave without their answer. 3. Prioritize what to act on: - Propose **new content** for recurring missing results. A reader is telling you a page is missing or isn't surfacing, which shows up as a zero-result on-site search. - For **existing pages**, prioritize by traffic volume combined with how recently the underlying feature changed, not by page age. A stable, correct old page needs no work. 4. Redact before publishing. Never paste a raw search-query string or raw URL parameters into a suggestion title, description, or PR body — they can carry customer names, internal identifiers, or tokens. Describe the gap in your own words. ``` 3. In `PROMPTLESS.md`, add an “If, then” hook that points to the workflow. Promptless loads `PROMPTLESS.md` into every run and loads the workflow file only when it needs it, so the hook makes the workflow run reliably: ```text If the weekly analytics doc-gaps schedule runs, then follow the workflow in `doc_workflow/analytics-docs-gaps.md`. ``` 4. Select **Save** on each file. You can also ask Promptless to make these edits, and it commits them for you. To keep the workflow in your docs repository instead, write it as an Agent Skill in a doc collection, such as `.claude/skills/analytics-docs-gaps/SKILL.md` in `acme/docs`. The `PROMPTLESS.md` hook then names the doc collection and skill: ```text If the weekly analytics doc-gaps schedule runs, then use the `analytics-docs-gaps` skill from `acme/docs`. ``` ## Add the schedule trigger [Section titled “Add the schedule trigger”](#add-the-schedule-trigger) 1. On the [Configuration page](https://app.gopromptless.ai/configuration), open the **Triggers** tab. 2. Select **Add an automatic or scheduled trigger**. Under **On a schedule**, select **A recurring schedule**. 3. Under **When should Promptless run?**, set a weekly schedule. 4. Under **In which timezone?**, choose your timezone. 5. Under **What should Promptless do each time?**, enter a short pointer to the workflow file. For example: “Follow the weekly analytics doc-gaps workflow in doc\_workflow/analytics-docs-gaps.md.” 6. Select **Add trigger**. In `promptless.yaml`, the trigger looks like this: ```yaml triggers: analytics-docs-gaps: trigger_type: schedule match: - cron: "0 0 * * 1" timezone: America/Los_Angeles # optional; defaults to UTC instructions: | Follow the weekly analytics doc-gaps workflow in doc_workflow/analytics-docs-gaps.md. ``` The cron expression `0 0 * * 1` runs the workflow at midnight every Monday in the trigger’s timezone. Keep `instructions` a short pointer: the workflow file holds the full job. To pause or adjust the trigger later, edit it on the **Triggers** tab. For every schedule option, see [Schedule triggers](/docs/for-docs/connect/triggers/schedule). ## Check what each weekly run produced [Section titled “Check what each weekly run produced”](#check-what-each-weekly-run-produced) When the weekly schedule runs, Promptless: 1. Pulls the last 7 days of documentation-site analytics from PostHog, scoped to your docs paths. 2. Applies both signals and the workflow’s prioritization. 3. Opens suggestions, describing each gap in its own words with no raw queries or URL parameters. 4. Finishes without a suggestion when it finds nothing worth changing. A scheduled run shows its results only through the suggestions it opens and the notifications your policies send. Set a notification channel to see what each run produced. A quiet week means the run found nothing worth changing. A credential or access problem sends an escalation notification, not a suggestion notification. Set an [escalation channel](/docs/for-docs/tune/notifications#escalation-channel) to catch a broken integration. ## See also [Section titled “See also”](#see-also) * [Customize notifications](/docs/for-docs/tune/notifications), to route suggestion alerts and problem alerts to separate channels * [Filter noise and tune relevance](/docs/for-docs/tune/noise-and-relevance-filtering), to tune what counts as a suggestion * [Example: review inbound documentation PRs](/docs/for-docs/get-the-most-out/teach-promptless-a-custom-task/review-inbound-doc-prs), for the same pattern with a GitHub PR trigger # Example: review inbound documentation PRs > Teach Promptless to review contributor documentation PRs, covering prerequisites, trigger, workflow instructions, and PROMPTLESS.md updates ## Overview [Section titled “Overview”](#overview) This example teaches Promptless to review documentation PRs that someone other than Promptless opens, such as a contributor or a teammate. Promptless checks each PR for documentation quality and style, and for correctness against your source code. It fixes clear problems directly on the PR branch, comments where the author needs to decide, and submits a GitHub review. The example follows the process in [Teach Promptless a custom task](/docs/for-docs/get-the-most-out/teach-promptless-a-custom-task), pairing a written review workflow with a GitHub PR trigger. Tip You can also ask Promptless in Slack or Microsoft Teams to set this up. For example, “@Promptless add a GitHub PR trigger on my docs repo to review inbound documentation PRs.” See [Ask Promptless to update your configuration](/docs/for-docs/get-the-most-out/ask-promptless-to-update-config). ## Before you start [Section titled “Before you start”](#before-you-start) * The GitHub integration connected to your documentation repository, such as `acme/docs`. * An admin role in your Promptless organization, to edit the Knowledge Base and Configuration page. Alternatively, ask Promptless in Slack or Microsoft Teams to make the edits for you. ## Write the review workflow [Section titled “Write the review workflow”](#write-the-review-workflow) The workflow tells Promptless how to review a contributor’s documentation PR. It covers when the review applies, what to check, and how to act on what Promptless finds. 1. In your [Agent Knowledge Base](/docs/for-docs/get-the-most-out/agent-knowledge-base), create a workflow file under `doc_workflow/`. For example, name it `doc_workflow/review-inbound-doc-prs.md`. 2. Write the workflow body. Adapt this example to your repository: ```markdown # Inbound documentation PR review When a pull request is opened in the docs repo (acme/docs), or someone asks you to review a PR there, and the PR touches documentation content: 1. Acknowledge the review before starting it. Before doing any review work (reading/verifying the content or making edits), leave a comment on the PR that a review is in progress, so the author and team can see Promptless has picked it up. Don't comment on or review out-of-scope PRs. 2. Review every in-scope PR on the following dimensions: - **Quality and style.** Check that the edits match your voice, structure, and formatting conventions, plus any Vale rules the repo enforces. - **Correctness against the source code.** Verify the PR's claims against the actual product source, and flag or fix anything stale or unsupported. 3. Act on your findings. - **Make direct edits** on the PR branch for clear fixes, like typos, broken links, wrong flag names, outdated values, awkward sentences with obvious better phrasing, or factual corrections you verified against source. Do not leave a comment asking them to make a change you could make yourself. - **Leave comments** when there is ambiguity that needs the contributor to resolve it, like two valid interpretations, a design/intent question, a claim you can't verify from source, or a change that would alter meaning in a way the author should confirm. Comments are for judgment calls, not for changes you're confident about. 4. Leave a top-level summary comment that states what you reviewed, what you changed directly (with a short list), what you left as open questions/comments and why, and the overall assessment. The summary comment must be present even when you made only direct edits and left no inline comments, and even when you found nothing to change (in which case say so). 5. Set a GitHub review state. If the docs are correct and ready, approve the PR. Otherwise, submit the review with a Comment state, including when the inline comments from step 3 are still unresolved. ``` 3. In `PROMPTLESS.md`, add an “If, then” hook that points to the workflow. Promptless loads `PROMPTLESS.md` into every run and loads the workflow file only when it needs it, so the hook makes the workflow run reliably: ```text If a pull request that touches documentation content is opened in `acme/docs`, then follow the inbound documentation PR review workflow in `doc_workflow/review-inbound-doc-prs.md`. ``` 4. Select **Save** on each file. You can also ask Promptless to make these edits, and it commits them for you. To keep the workflow in your docs repository instead, write it as an Agent Skill in the doc collection, such as `.claude/skills/review-inbound-doc-prs/SKILL.md` in `acme/docs`. The `PROMPTLESS.md` hook then names the doc collection and skill: ```text If a pull request that touches documentation content is opened in `acme/docs`, then use the `review-inbound-doc-prs` skill from `acme/docs`. ``` ## Add the GitHub PR trigger [Section titled “Add the GitHub PR trigger”](#add-the-github-pr-trigger) Scope a GitHub PR trigger to your documentation repository so the workflow runs as soon as a contributor opens a PR there. 1. On the [Configuration page](https://app.gopromptless.ai/configuration), open the **Triggers** tab. 2. Select **Add an automatic or scheduled trigger**, then select **GitHub pull requests**. 3. Under **Which repositories?**, choose your documentation repository, such as `acme/docs`. 4. Under **When should Promptless run?**, select only **When it’s opened**. 5. Select **Add trigger**. In `promptless.yaml`, the trigger looks like this: ```yaml triggers: review-inbound-doc-prs: trigger_type: github_pr match: - repos: - acme/docs trigger_on: - opened ``` ## Check what Promptless does on each PR [Section titled “Check what Promptless does on each PR”](#check-what-promptless-does-on-each-pr) When a contributor opens a qualifying PR, Promptless: 1. Comments on the PR that a review is in progress. 2. Reads the PR’s title and description, diff, review comments, and commits. 3. Reviews the changes, editing the PR branch for clear fixes and commenting where the author needs to decide. 4. Posts a summary comment describing what it reviewed and what it found, and submits a GitHub review state. ## See also [Section titled “See also”](#see-also) * [GitHub PRs](/docs/for-docs/connect/triggers/github-prs), for every GitHub PR trigger option, including trigger modes * [Example: turn docs analytics into doc-gap suggestions](/docs/for-docs/get-the-most-out/teach-promptless-a-custom-task/analytics-docs-gaps), for the same pattern with a schedule trigger * [Agent Knowledge Base](/docs/for-docs/get-the-most-out/agent-knowledge-base), where the workflow file and `PROMPTLESS.md` live # Build Zapier automations that keep your docs current > Forward signals from call recorders, competitor pages, and your CRM into Promptless's Submit Documentation Task action with Zapier, so your docs and marketing pages stay current. ## Overview [Section titled “Overview”](#overview) The Promptless **Submit Documentation Task** action in Zapier sends a documentation task to Promptless from any Zap. Use it to keep docs current from signals that never reach your code repositories, such as sales calls, competitor sites, support tickets, and CRM events. Promptless researches each task, writes the change, and opens one pull request for you to review. If the page doesn’t exist yet, Promptless drafts it. This page gives step-by-step recipes for two common Zaps, more events worth sending, and tips for getting focused results. For the fields the action sends, see [API triggers](/docs/for-docs/connect/triggers/api). ## Before you start [Section titled “Before you start”](#before-you-start) * A Zapier account. * A Promptless API key for the Zapier connection. To create one, see [Create an API key](/docs/for-docs/connect/triggers/api#create-an-api-key). ## Update buyer persona profiles from call recordings [Section titled “Update buyer persona profiles from call recordings”](#update-buyer-persona-profiles-from-call-recordings) Use this recipe to update the buyer persona profiles in your docs after each sales or discovery call. Promptless reads these profiles when it writes marketing pages. 1. Start the Zap with a new meeting transcript from your call recorder, such as Grain, Fathom, Gong, or Zoom. Any recorder with a Zapier trigger for new transcripts works. 2. Optional. Add a filter step that passes only sales and discovery calls. Without the filter, internal meetings also start a persona profile update. 3. Add the **Submit Documentation Task** action. 4. In **What Changed**, ask Promptless to update the buyer persona profiles from the call. List what to capture: the objections prospects raised, the words they used for the problem, the alternatives they compared, and the outcomes they cared about. 5. In **Supporting Context**, add a label and value for the call date, the account name, and a link to the recording. Reviewers use these to trace a persona claim back to its call. ## Update comparison pages when competitors change [Section titled “Update comparison pages when competitors change”](#update-comparison-pages-when-competitors-change) Use this recipe to check competitor pages on a schedule and update the comparison pages their changes affect. 1. Start the Zap with **Schedule by Zapier**. Every two weeks is a reasonable starting interval. 2. Add a step that reads the competitor pages you track. Use a page-monitoring or scraping app from Zapier’s app directory, or use Webhooks by Zapier with a scraping service you run. 3. Add the **Submit Documentation Task** action. 4. In **What Changed**, ask Promptless to update the comparison pages that the scraped changes affect. 5. In **Supporting Context**, pass the scraped content, the page URL, and the date you scraped it. Send the full scraped content and let Promptless decide what changed. Promptless opens a pull request only when it finds a change worth documenting, so a scrape with nothing new opens no pull request. Caution Review pull requests that change claims about a competitor by hand before you merge them. ## Send other events to Promptless [Section titled “Send other events to Promptless”](#send-other-events-to-promptless) These events also work well with the **Submit Documentation Task** action: | Event | What to ask Promptless to do | | ------------------------------------------------------- | ----------------------------------------------- | | A recurring theme in support tickets from your helpdesk | Fill the gap in the docs. | | A deal that moves to closed-won in your CRM | Update the related case study or proof point. | | A published product release note | Update the marketing pages for that capability. | ## Set up Zaps for focused results [Section titled “Set up Zaps for focused results”](#set-up-zaps-for-focused-results) * Set **Doc Collection** in the action when a recipe always changes the same docs. A [doc collection](/docs/for-docs/connect/doc-locations/how-promptless-learns-your-docs) is a set of docs that Promptless maintains. If you leave the field blank, Promptless chooses the collection, so check which collection each pull request targets. * Start a new recipe against one collection, and add more after it works. For a structured trial, see [Run a pilot](/docs/for-docs/start-here/run-a-pilot). * In **What Changed**, name the page and what changed about it. A task such as “update the docs” gives Promptless too little to go on. * Each task opens one pull request. Nothing changes in your docs until you merge it. ## See also [Section titled “See also”](#see-also) * [API triggers](/docs/for-docs/connect/triggers/api), for the fields the action sends and how to manage API keys * [How Promptless learns your docs](/docs/for-docs/connect/doc-locations/how-promptless-learns-your-docs), for what Promptless reads when it writes * [Get support](/docs/for-docs/reference/getting-help), for help building a Zap # Measure the impact of Promptless > Track the value of keeping docs current with Promptless using the signals the product records, and turn them into a case you can take to leadership ## Overview [Section titled “Overview”](#overview) When leadership asks what the Docs function is worth, you need numbers you can defend. Much of that story already lives in Promptless and in your Git history: doc updates drafted, reviewed, and merged as the product changes. This guide shows which signals to track, where to read each one, and how to assemble them into a case for spend or headcount. If you maintain an open-source project, you may have no manager to report to. The same numbers then make the case to a foundation, a sponsor, or your community. They can also justify the hours you put in. Note Promptless doesn’t include a built-in reporting dashboard or a metrics export. The signals below come from places you already use, and you assemble the report yourself. Track the few numbers that matter to your leadership. ## Find the signals Promptless records [Section titled “Find the signals Promptless records”](#find-the-signals-promptless-records) Three places hold the raw signal, and each answers a different question about the value Promptless adds: * **Suggestions list.** Every draft Promptless creates, sorted into **Ready**, **PR Open**, and **Closed**, with an estimated review time for each suggestion. This shows drafting volume and review load. Filter by **Collection** to attribute activity to one doc collection, or by **Trigger source** to see which signals produce the most drafts. * **Triggers page.** Every event Promptless reacted to. The **Suggestion Activity** filter splits events into **Suggestion Activity** and **No Suggestion Activity**. This shows coverage: how many of your product’s changes Promptless caught, and how well it skips changes that don’t need docs. The **From** and **To** date fields scope a specific range, and the summary line shows how many triggers match. * **Your Git history.** Merged documentation PRs are the ground truth for shipped work, because a merged Promptless PR is a doc change that went live. Each PR’s author, reviewers, and timestamps live in GitHub or GitLab. Promptless opens these PRs under its own account, so filter to that author to isolate its contribution. Read the exact account name off any docs PR Promptless has opened in your repo. ## Choose the metrics to track [Section titled “Choose the metrics to track”](#choose-the-metrics-to-track) Pick the few that answer the question your leadership is asking: * **Doc updates shipped.** Count merged Promptless PRs over a period. This is the cleanest measure of output: work that reached readers. Read it from your Git history, filtered to the Promptless author. * **Share of doc changes automated.** Compare merged Promptless PRs with all merged doc PRs in the same repo over the same period. The share answers “how much of the docs work is Promptless carrying?” * **Coverage of product changes.** On the Triggers page, set the **From** and **To** dates. Set **Suggestion Activity** to **Suggestion Activity** and note the count in the summary line, then repeat with **No Suggestion Activity**. Comparing the two counts shows how much of your product’s movement Promptless catches. * **Review throughput and load.** Use the Suggestions list buckets and review-time estimates to show how much review the queue represents and how quickly your team clears it. This is the writing effort Promptless turns into review effort. * **Time saved.** Multiply doc updates shipped by your team’s own estimate of the hours a comparable manual update takes. Promptless doesn’t measure this for you, so state your assumption plainly. A defensible estimate lands better than a precise-looking number no one can source. Caution These counts describe activity and output, not documentation quality. Pair them with the outcome signals in the next section, so the story covers outcomes as well as volume. ## Pair output with outcomes [Section titled “Pair output with outcomes”](#pair-output-with-outcomes) The metrics above count what Promptless produces. To show whether that output helped readers or reduced cost, pair it with outcome signals from tools your team already runs. Promptless doesn’t produce, measure, or export these numbers. Read them in your own analytics, support, and docs-platform tools. The same signals also show what to improve next. * **Support-ticket deflection and self-service rate.** This is the strongest dollar lever and the clearest before-and-after comparison. Read it from your helpdesk or support platform, such as Zendesk or Intercom. GitHub Issues or Discussions also work if that’s where your users ask questions. After a Promptless-driven update to a documented topic, compare ticket volume on that topic before and after. The value is tickets deflected multiplied by your support team’s fully loaded cost per ticket, a figure support ops usually has. Attribution is an estimate, so show it as a before-and-after comparison on a specific topic. * **“Was this helpful?” ratings and feedback comments.** A per-page reader verdict, directly attributable to a specific updated page. That makes it ideal for before-and-after comparisons on a Promptless-driven change. It’s often built into your docs platform, such as Mintlify, GitBook, or ReadMe, or added with a feedback widget. This signal is self-selected and skews negative, so read it as a trend and a triage signal, not an absolute score. * **Site-search no-results rate and top queries.** The highest-signal map of content gaps, because users describe in their own words what they can’t find. Read it from your site-search analytics, such as Algolia or your docs platform’s search dashboard. Recurring no-result or high-volume queries show which gaps to close next and give you the language to match. A falling no-results rate on a topic after an update is a reader-side outcome. * **Page views and engagement on changed pages.** Confirms reach: the audience for an updated page exists. Read it from your web or product analytics, such as GA4 or Plausible. Traffic alone isn’t success, and a high bounce rate can be fine on a page that answers a question fast. Read engagement, such as GA4’s engaged sessions or average engagement time, alongside raw views, and treat traffic as context, not proof. * **Task completion rate.** The truest outcome: can readers do the thing? It also takes the most effort, since it needs usability testing or an instrumented funnel. Measure it when a topic is high-stakes enough to justify the effort. * **Softer leading indicators.** Content freshness, doc coverage, and organic search traffic from a search console, such as Google Search Console, round out the picture. Frame any growth or conversion attribution as correlation only. ### Convert outcomes to a dollar value [Section titled “Convert outcomes to a dollar value”](#convert-outcomes-to-a-dollar-value) If you have the cost inputs, put a dollar figure on the outcomes with these standard formulas: * **Deflection value** = tickets deflected × fully loaded cost per ticket. * **Contributor time saved** = doc updates shipped × hours saved per update × fully loaded hourly rate. “Doc updates shipped” is the same count you read from your Git history for the **Time saved** metric. * **Composite ROI %** = (attributed value − program and tool cost) ÷ cost × 100. Without cost inputs, the before-and-after trend carries the story: tickets or questions avoided, ratings climbing, or a falling no-results rate. Caution Attribution is imperfect, because you can’t prove a page view replaced a ticket. State every assumption you make, such as cost per ticket, hours per update, and deflection percentage. Prefer before-and-after and cohort comparisons over absolute claims, and present ranges over falsely precise figures. ## Build the case for leadership [Section titled “Build the case for leadership”](#build-the-case-for-leadership) Turn the signals into a short report you can repeat each period: 1. **Fix a period and a scope.** Choose a reporting window, usually a month or a quarter, and the doc collections it covers. Use the Triggers page **From** and **To** date fields to hold coverage numbers to that range. Read merged-PR dates from your Git history so every figure spans the same window. 2. **Pull the core counts.** Read merged Promptless PRs from your Git history, drafting and review activity from the Suggestions list, and coverage from the Triggers page for that window. 3. **Frame output as added capacity.** Lead with doc updates shipped and share of doc changes automated, the numbers that show the Docs function keeping pace with the product. Add time saved with your stated per-update assumption. 4. **Attach an outcome signal.** For the same collections and window, pull one or two outcome metrics from your own tools, such as ticket deflection, helpfulness ratings, or search gaps. The report then speaks to reader experience as well as throughput. Where you have the inputs, convert them to a dollar figure with the formulas above. 5. **Keep the sources visible.** Note where each number came from. Leadership trusts a figure it can trace to the Suggestions list, the Triggers page, or a merged PR far more than a bare total. ## See also [Section titled “See also”](#see-also) * [Triage the review queue](/docs/for-docs/work-the-queue/assignment-and-routing#triage-the-review-queue), to find and filter suggestions in the Suggestions list * [Follow what a trigger did](/docs/for-docs/connect/triggers#follow-what-a-trigger-did), to read trigger outcomes on the Triggers page * [Agent Knowledge Base](/docs/for-docs/get-the-most-out/agent-knowledge-base), for where lasting context about your docs lives * [Run a pilot](/docs/for-docs/start-here/run-a-pilot), for the volume and quality targets to report during an evaluation # Choose a platform > Pick a Git-backed documentation platform Promptless supports, weighing the tradeoffs between hosted docs tools and open-source static site generators Promptless works with any documentation platform whose content lives in a GitHub or GitLab repository. Pick a target platform by how well it fits your team. This page covers what Promptless needs from a platform and the factors to weigh when you choose one. Do I have to use Markdown? No. Promptless can suggest updates to any text-based file format, including DITA XML, reStructuredText, AsciiDoc, and other formats. ## Use cases [Section titled “Use cases”](#use-cases) Choosing a platform comes up in these situations: * You’re moving off a hosted editor that keeps content in its own database. Pick a Git-backed target with the factors in [How to choose](#how-to-choose), then follow [Migrate to a new docs platform](/docs/for-docs/migrate/migrate-to-a-new-platform). * Your current platform syncs or mirrors its content to GitHub. Check [What Promptless supports](#what-promptless-supports) first, because you might not need to move. * Your writers don’t work in code. Compare the authoring experience of each platform so they can keep editing after the move. ## What Promptless supports [Section titled “What Promptless supports”](#what-promptless-supports) Promptless opens pull requests or merge requests on content that lives as files in a GitHub or GitLab repository. Any docs-as-code platform that builds from a Git-backed source works. That includes a static site generator you host yourself and a hosted docs tool that keeps its content in a repository. Platforms that aren’t natively Git-based but sync or mirror their content to GitHub work too, because Promptless reaches the source through the repository. Note Some platforms are more common on Promptless than others. For those, see the [supported platforms](/docs/for-docs/connect/doc-locations/github-repos#supported-platforms) list. If you’re not sure whether your platform is supported, contact . Support expands based on user feedback, and the team can help you choose and set up a docs platform. ## How to choose [Section titled “How to choose”](#how-to-choose) Weigh the supported platforms on the factors that matter to your team: | Factor | What to weigh | | ---------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Hosting | Hosted docs tools, such as Mintlify, Fern, GitBook, and ReadMe, manage publishing for you. Open-source static site generators include Starlight, Docusaurus, MkDocs, Hugo, Nextra, and Vocs. They have no per-seat cost and give you full control of hosting and theming, and you own the build and deploy. | | Content format | If your team already writes in the target’s source format, usually Markdown or MDX, the migration is mostly moving files. Coming from a WYSIWYG editor or another source format adds a [conversion step](/docs/for-docs/migrate/migrate-to-a-new-platform). | | Authoring experience | Hosted docs tools often offer an in-app or Git-backed WYSIWYG editor for writers who don’t work in code. Open-source generators expect writers to edit Markdown and open pull requests. | | Components and API reference | If you rely on interactive components or generated API references, favor a platform built for them, such as Fern, Mintlify, or Starlight. | | Existing toolchain | Staying close to the stack you already deploy on causes the least friction. For example, a React or Astro team fits Starlight, Docusaurus, or Nextra, and a Python team may prefer MkDocs. | ## After you pick [Section titled “After you pick”](#after-you-pick) Once your content is in a GitHub or GitLab repository, connect it as a doc collection so Promptless can start proposing updates. Set the collection’s **Docs framework** setting (`docs_framework` in `promptless.yaml`) to your platform. For the setup steps, see [GitHub repos](/docs/for-docs/connect/doc-locations/github-repos) or [GitLab projects](/docs/for-docs/connect/doc-locations/gitlab-projects). # Migrate to a new docs platform > Move documentation off Doc360, ReadMe, Fern, HubSpot, or RoboHelp onto a Git-backed docs-as-code stack, preserving content and structure ## Overview [Section titled “Overview”](#overview) Promptless publishes to docs that live as files in a Git repository. If your hosted platform keeps your docs some other way, move the content onto a [supported docs-as-code platform](/docs/for-docs/migrate/choose-a-platform). Promptless can then propose changes to it. This guide covers the migration steps that every source platform shares. A migration is a one-time project. The effort depends on how much content you have and how far your source format is from the target’s. Every platform exports differently, and the Promptless team regularly helps teams move. If you’re planning a migration, contact before you start. ## Before you start [Section titled “Before you start”](#before-you-start) * Someone comfortable with Git and a static site generator, for the export, conversion, and scaffolding steps. If your docs team doesn’t write code, pair a writer with an engineer. * A GitHub or GitLab organization where you can create the new docs repository. * An admin role in your Promptless organization, to connect the repository as a doc collection. ## Migrate your content [Section titled “Migrate your content”](#migrate-your-content) 1. Export your content from the source platform in the most portable format it offers. Some platforms export Markdown directly. Others export HTML or a proprietary format that needs a conversion pass. Export images and other assets with the text so links don’t break. 2. Pick a [supported platform](/docs/for-docs/migrate/choose-a-platform) and scaffold a new project for it in a GitHub or GitLab repository. This repository becomes the source of truth for your docs. 3. Move the exported content into the new project’s file and folder structure, and convert it to the target’s source format and conventions. 4. Rebuild the navigation and the frontmatter the new platform expects, such as titles, slugs, and sidebar placement. 5. Record where every existing page lands in the new structure, as a map from each old URL to its new one. 6. Add a redirect from each old URL to its new one, so existing links keep resolving. For both of these steps, see [Preserve URLs and redirects](/docs/for-docs/migrate/preserve-urls-and-redirects). 7. Once the site builds from the repository, [connect the repository as a doc collection](/docs/for-docs/connect/doc-locations/github-repos). Promptless then runs its [initial analysis of your docs](/docs/for-docs/connect/doc-locations/how-promptless-learns-your-docs). 8. Configure the [triggers](/docs/for-docs/connect/triggers) that keep the migrated docs current. ## See also [Section titled “See also”](#see-also) * [Understand docs-as-code](/docs/for-docs/migrate/why-docs-as-code), for how Promptless works with docs in a Git repository * [Choose a platform](/docs/for-docs/migrate/choose-a-platform), to weigh hosted docs tools against open-source static site generators * [Preserve URLs and redirects](/docs/for-docs/migrate/preserve-urls-and-redirects), to build the URL map and verify redirects around cut-over * [GitLab projects](/docs/for-docs/connect/doc-locations/gitlab-projects), to connect a migrated GitLab project as a doc collection # Preserve URLs and redirects > Keep inbound links, search rankings, and bookmarks working after a docs migration by mapping old paths to new ones and adding redirects ## Overview [Section titled “Overview”](#overview) A migration usually changes your page URLs. The new platform lays out paths differently, and section names shift as you restructure. Every inbound link, bookmark, and search result that points at an old URL then returns a 404 error. Redirects send readers and search engines from each old URL to its new page, so the move stays invisible to your readers. This guide covers building an old-to-new URL map, adding permanent redirects, and verifying them around cut-over. The same steps apply when you restructure an existing docs set on the same platform. Your documentation platform and host serve redirects. Promptless proposes content changes through pull requests and doesn’t manage your hosting-level redirects. Caution Add redirects even when all your content moved to the new site. Search engines and external links still point at the old paths. Without redirects, the links and bookmarks your old URLs have collected land on 404 pages the day you cut over. ## Before you start [Section titled “Before you start”](#before-you-start) * A list of your published URLs. If your source platform can export one, start from that export so you don’t miss a page. Crawling your live site also lists every URL that needs a destination. * Access to your target platform’s site configuration or your host’s redirect rules. ## Build a URL map [Section titled “Build a URL map”](#build-a-url-map) Record where every old URL lands in the new structure. Capture the mapping while you move content, when the correspondence is freshest. A two-column mapping from old path to new path is enough: | Old path | New path | | ------------------------- | ------------------------------ | | `/kb/getting-started` | `/docs/get-started/quickstart` | | `/reference/api-overview` | `/docs/reference/api` | Every page whose URL changes needs an entry. Pages that keep their URL don’t. ## Add the redirects [Section titled “Add the redirects”](#add-the-redirects) Add a permanent (HTTP 301) redirect from each old path to its new one. A permanent redirect tells search engines to transfer ranking to the new URL. Where you add the rules depends on your target platform and host: 1. Check your platform’s and host’s documentation for how they read redirects. Most read them from a redirects map in your site config, or from a hosting-level redirects or rewrites file. 2. For each row of your URL map, add a permanent (301) redirect rule from the old path to the new path. 3. Optional. When a whole section moves under a new prefix, replace that section’s per-page rules with one wildcard or pattern redirect. This step requires a platform that supports pattern-based rules. ## Verify before and after cut-over [Section titled “Verify before and after cut-over”](#verify-before-and-after-cut-over) Confirm the redirects resolve before you point your domain at the new site, and again once it’s live: * Spot-check your most-visited old paths from your analytics, and confirm each one lands on the right new page. * Crawl the new site with a link checker to find any internal link or redirect that points at a dead path. * After cut-over, watch your host or analytics logs for 404 errors, and add any redirect you missed. ## Redirects for pages Promptless changes [Section titled “Redirects for pages Promptless changes”](#redirects-for-pages-promptless-changes) Promptless also handles redirects for the URLs its own suggestions change. When a suggestion retires, moves, or renames a page, or changes its slug, the same suggestion: * Adds a permanent redirect from each removed URL to the page that now covers the topic. The redirect goes next to the redirects your collection already keeps, such as a framework setting or your host’s configuration file. When no page covers the topic, the redirect points at the nearest overview page, and the suggestion calls out that choice for review. The suggestion also calls out the first redirect in a collection that has none yet. * Updates links elsewhere in the collection to point straight at the new page. When a sentence only existed to send readers to a retired feature, the suggestion rewords it. * Keeps the page and adds a deprecation notice when the feature is deprecated but still works. The notice links to the replacement and gives a removal date only when the source change establishes one. Promptless retires a page only when no supported release has the behavior it describes. A page that still describes current behavior stays, however old it is or however few readers it has. Links to a removed URL from outside the collection, such as your product’s interface or another repository, keep working through the redirect. Whoever owns those links decides whether to update them. ## See also [Section titled “See also”](#see-also) * [Migrate to a new docs platform](/docs/for-docs/migrate/migrate-to-a-new-platform), for the full migration that this URL work is part of * [GitHub repos](/docs/for-docs/connect/doc-locations/github-repos), to connect your migrated docs as a doc collection so Promptless keeps their content current * [Audit and keep your docs healthy](/docs/for-docs/audit/keep-docs-healthy), for how a restructure fits with the other audit and health jobs * , for help planning a redirect strategy # Understand docs-as-code > Understand what docs-as-code means, how Promptless works with docs in a Git repository, and when to move your docs to a Git-backed stack Promptless keeps your documentation current by proposing changes where your content lives. Most teams keep their docs in a Git repository as files a pull request can change, an approach called **docs-as-code**. If your hosted platform keeps content in its own database or WYSIWYG editor, moving to docs-as-code lets Promptless propose changes to it. ## Use cases [Section titled “Use cases”](#use-cases) Whether your docs need to move before you adopt Promptless depends on where the source lives today: | Your situation | What to do | | ---------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Your docs live in a hosted editor that keeps the content in its own database. | Move the content into a Git repository before a pilot. Start with [Choose a platform](/docs/for-docs/migrate/choose-a-platform). | | Your team writes in DITA, reStructuredText, or another format that isn’t Markdown. | Keep the format. Promptless edits any text-based source format in Git. | | You already publish from a Git-backed static site generator. | Skip the migration. [Connect your repository](/docs/for-docs/connect/doc-locations/github-repos), then set up your [triggers](/docs/for-docs/connect/triggers). | ## What docs-as-code means [Section titled “What docs-as-code means”](#what-docs-as-code-means) Docs-as-code treats documentation the same way engineering teams treat source code: * Content lives as source files in a Git repository. The files are often Markdown or MDX, but they can also be DITA, reStructuredText, a MadCap Flare project, or another authoring format. * Changes go through pull requests, so every edit is reviewable, diffable, and revertable with the tools your engineers already use. * A build tool, often a static site generator, publishes the site from those files. The repository is the source of truth, and the live site is a build artifact. Because the content is versioned files, Promptless proposes an edit the same way a teammate does. It creates a branch, changes the files, and opens a PR that you review before it ships. ## How Promptless works with docs-as-code [Section titled “How Promptless works with docs-as-code”](#how-promptless-works-with-docs-as-code) Promptless works inside your existing review workflow. When a trigger activates, such as a merged code PR, a Slack thread, or a support ticket, Promptless drafts the documentation change. It commits the change to a branch in your docs repository and opens a pull request with citations to the sources that informed it. You review and merge that PR like any other. Each part of that loop uses the docs as versioned files in a Git repository: * Promptless reads the current content to learn your product, voice, and structure. * Promptless writes its changes as a branch and a reviewable diff. * Your platform rebuilds the published site from the merged files. ## What “supported” looks like [Section titled “What “supported” looks like”](#what-supported-looks-like) Promptless publishes to any docs-as-code platform that builds from a GitHub or GitLab repository, whatever the tool or file format. Promptless works with Markdown and MDX, and also with DITA, reStructuredText, MadCap Flare, and FrameMaker (through a MIF intermediary). Some platforms aren’t natively Git-based but sync or mirror their content to GitHub. Promptless supports those setups too, because it reaches the source through a repository it can branch from. See the [supported platforms list](/docs/for-docs/connect/doc-locations/github-repos#supported-platforms) for the tools teams most often run on Promptless. ## Where to go next [Section titled “Where to go next”](#where-to-go-next) If your docs need to move, the rest of this section walks the migration end to end: * [Choose a platform](/docs/for-docs/migrate/choose-a-platform), to pick a supported docs platform that fits your team * [Migrate to a new docs platform](/docs/for-docs/migrate/migrate-to-a-new-platform), to move your content off a hosted platform and into a Git repository * [Preserve URLs and redirects](/docs/for-docs/migrate/preserve-urls-and-redirects), to keep existing links working after the move Open-source maintainers already on a Git-backed stack can start from the [open-source quickstart](/docs/for-docs/start-here/open-source-quickstart), which covers the free program. # Account management > Manage your Promptless organization, team members, and access controls from the dashboard. Look up what each Promptless role can do, how members join your organization, and what the Billing page shows. ## Create an account [Section titled “Create an account”](#create-an-account) You can sign up for an account at [accounts.gopromptless.ai](https://accounts.gopromptless.ai), or contact the team at . ## Manage team members [Section titled “Manage team members”](#manage-team-members) Each member of your organization has one of three roles: | Role | What the role can do | Typical use | | -------------- | --------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------- | | `Admin` | Manage organization settings, team members, integrations, and projects. Edit suggestions and the Agent Knowledge Base. | People who set up and run Promptless for the organization | | `Editor` | Edit documentation suggestions and create tasks. Editors can’t manage organization settings, integrations, or team members. | People who work directly on docs without needing admin access | | `Collaborator` | View documentation suggestions and leave comments for feedback. Collaborators can’t edit suggestions. | Stakeholders who review content without making direct changes | ### Add team members [Section titled “Add team members”](#add-team-members) Invite teammates and choose each one’s role from your organization’s management page: 1. In the upper-left corner of the dashboard, select your organization name. 2. Next to your organization, select **Manage**. ![Organization menu with the Manage button next to the current organization](https://promptless-customer-doc-assets.s3.us-east-2.amazonaws.com/docs-images/org_3DaVKUzHgjyjaODgCPaDmjXezqp/organization-manage-button-96515c5c.png) 3. Select **Members**, then select **Invite**. 4. Enter one or more email addresses, select a role, and select **Send invitations**. ### Admin-only configuration [Section titled “Admin-only configuration”](#admin-only-configuration) Every member can view the organization-wide configuration. Only admins can change it: | Configuration | Who can change it | | ----------------------------------------- | ------------------------------------------------------------------------------ | | Doc collections (create, edit, or delete) | Admins, in the dashboard or through the API with an API key issued to an admin | | Configuration page (`promptless.yaml`) | Admins | | Agent Knowledge Base | Admins | | Default role for new members | Admins | ## Domain verification and auto-enrollment [Section titled “Domain verification and auto-enrollment”](#domain-verification-and-auto-enrollment) Add your company’s email domain to your organization so people with addresses at that domain can join without an individual invitation. The domain’s enrollment mode controls how they join: | Enrollment mode | How people from the domain join | | --------------------------- | ----------------------------------------------------------------------------------- | | **No automatic enrollment** | An admin invites each person. | | **Automatic invitations** | People receive an invitation when they sign up and can join at any time. | | **Automatic suggestions** | People receive a suggestion to request to join, and an admin approves each request. | Changing the enrollment mode applies to new users only. ### Set up automatic team member joining [Section titled “Set up automatic team member joining”](#set-up-automatic-team-member-joining) 1. In the upper-left corner of the dashboard, select your organization name. 2. Next to your organization, select **Manage**. 3. Under **Verified domains**, select **Add domain**. ![Organization General page with the Verified domains section and its Add domain button](https://promptless-customer-doc-assets.s3.us-east-2.amazonaws.com/docs-images/org_3DaVKUzHgjyjaODgCPaDmjXezqp/add-domain-interface-2985f950.png) 4. Enter your domain, for example `yourcompany.com`. 5. Verify the domain with the code sent to an email address at that domain. 6. Select an enrollment mode, then select **Save**. ![Enrollment options for a verified domain, with Automatic invitations selected](https://promptless-customer-doc-assets.s3.us-east-2.amazonaws.com/docs-images/org_3DaVKUzHgjyjaODgCPaDmjXezqp/enrollment-mode-selection-d29b4789.png) ### Set the default role for new members [Section titled “Set the default role for new members”](#set-the-default-role-for-new-members) The **Default role for new members** setting sets the role that members who join through a verified domain receive: `Admin`, `Editor`, or `Collaborator`. Existing members keep their roles. To change the setting, an admin opens **Settings**, selects **Organization**, picks a role, and selects **Save**. ## Security and access controls [Section titled “Security and access controls”](#security-and-access-controls) Promptless supports these sign-in and security features for organizations: | Feature | What it provides | | ------------------------------- | -------------------------------------------------------------------- | | Single sign-on (SSO) | Sign-in through Google, GitHub, and enterprise identity providers | | Two-factor authentication (2FA) | Time-based one-time password (TOTP) codes as a second sign-in factor | | SAML 2.0 | Just-in-time provisioning for enterprise customers | | OpenID Connect (OIDC) | Sign-in through OIDC-compliant identity providers | Enterprise customers also have access to custom data retention policies and advanced audit logging. For SSO setup, see [Single sign-on (SSO) setup](/docs/for-docs/security/single-sign-on). ## Billing [Section titled “Billing”](#billing) Billing is a page in the dashboard Settings, visible only to **`Admin`** users in organizations on a paid plan. Organizations that aren’t on a paid plan (including free and trial organizations) and non-admins don’t see it. Anyone who navigates to it directly sees a restricted-access message. The Billing page has three sections: | Section | What it’s for | | ------------------- | ------------------------------------------------------------------- | | Current plan | View your plan, price, subscription status, and next billing event. | | Payment method | Replace the card on file. | | Cancel subscription | Find where to send a cancellation request. | ### View your current plan [Section titled “View your current plan”](#view-your-current-plan) The **Current plan** section of the Billing page summarizes your organization’s active subscription. Its information is read-only: | Field | What it shows | Example | | ------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ------------------ | | Plan name | The subscription’s product name | Promptless Startup | | Price and cadence | A fixed amount and billing frequency. Usage-based, tiered, and non-USD subscriptions show **Custom pricing** with the billing frequency. | $500/month | | Subscription status | One of **Active**, **Trial**, **Payment overdue**, **Unpaid**, **Paused**, or **Setup incomplete** | Active | | Next billing event | The next date in the subscription, labeled **Renews**, **Trial ends**, **Ends** (a pending cancellation), or **Current period ends** | Renews Aug 7, 2026 | When there’s no current subscription, the section says no active subscription was found. That happens before a subscription starts or after one ends. If the message looks wrong, email . ### Update your payment method [Section titled “Update your payment method”](#update-your-payment-method) To replace the card on file, select **Update payment method** on the Billing page. Stripe’s secure hosted billing portal opens to the card-update flow and returns you to the Billing page when you finish. Note Card details are handled entirely by Stripe’s hosted portal. Promptless never sees or stores your card data. ### Change or cancel a subscription [Section titled “Change or cancel a subscription”](#change-or-cancel-a-subscription) To upgrade a plan, change seats, or cancel, email the support team at . Send other billing questions to the same address. ## See also [Section titled “See also”](#see-also) * [Get support](/docs/for-docs/reference/getting-help), to contact the Promptless team about account management or team setup * [Access and permissions](/docs/for-docs/security/access-and-permissions), for how Promptless scopes its access to your connected services # Configuration reference > Complete reference for the promptless.yaml configuration file All Promptless configuration lives in a single `promptless.yaml` file in your organization’s Agent Knowledge Base. This file defines your doc collections, triggers, context sources, and publishing policies in one place. ## Configuration editor [Section titled “Configuration editor”](#configuration-editor) View and edit your configuration in the dashboard at [app.gopromptless.ai/configuration](https://app.gopromptless.ai/configuration). The page opens in **Form** mode, a structured editor that groups your configuration into four tabs: **Doc collections**, **Triggers**, **Context sources**, and **Policies**. Each tab shows how many items it holds and the fields for that section, so you can manage everything without editing YAML. You can also ask Promptless to make these changes for you in Slack or Microsoft Teams. See [Ask Promptless to update your configuration](/docs/for-docs/get-the-most-out/ask-promptless-to-update-config). Form mode saves one item at a time. When you add or change a doc collection, trigger, or context source, you save that item on its own. Promptless commits the change to your Agent Knowledge Base right away. Policies save as a single section. Each save is its own commit. When you need precise control over the file format, switch to **YAML** mode using the toggle at the top of the page. YAML mode is the raw editor with syntax highlighting, schema-driven completions, and inline validation. Use it when you want to copy configurations between environments or edit the file directly. In Form mode, Promptless fills in fields from your connected integrations. The doc collection platform (GitHub, GitHub OSS, GitHub Enterprise, or GitLab) is not a field you set. It comes from the integration that reaches the repository. The repo, Slack channel, and Jira, Confluence, Linear, and Notion pickers autocomplete from what each integration can see. Form mode also keeps references consistent for you. Renaming a doc collection updates every trigger and policy rule that points at it in the same save. It also warns you if the new name is already taken. Deleting a doc collection or trigger that a policy rule depends on removes those rules too, so every rule points at something that exists. ### Provider connection and trigger availability [Section titled “Provider connection and trigger availability”](#provider-connection-and-trigger-availability) In Form mode, a trigger type whose provider isn’t connected is disabled, with a link to connect it on the Integrations page. Schedule triggers need no integration and are always available. A saved trigger whose provider is disconnected shows as inactive: its match fields are locked, but you can still select **Remove**. It reactivates when you reconnect the provider. Saving an added, renamed, or modified trigger while its provider is disconnected fails, and nothing is committed to your `promptless.yaml`. Reconnect the provider, then save again. See [Connect a provider before you add its triggers](/docs/for-docs/connect/triggers#connect-a-provider-before-you-add-its-triggers). ### Set notifications, escalations, and publishing in Form mode [Section titled “Set notifications, escalations, and publishing in Form mode”](#set-notifications-escalations-and-publishing-in-form-mode) On the [Policies](#policies) tab, each policy has three groups: **Notifications**, **Escalations**, and **Publishing**. A policy is either the default policy or a rule. | Group | Purpose | | ------------- | ---------------------------------------------------------------------------------------------------------------- | | Notifications | Announces a new doc suggestion. | | Escalations | Routes an item that needs a person, such as a question about a change or an integration Promptless cannot reach. | | Publishing | Controls a doc update after it is ready. | Notifications and Escalations each have two channel selects: **Slack channel** and **Microsoft Teams channel**. The four selects use only two labels, repeated across the two groups. The group heading above a select is the only thing that identifies it. Always check the heading before you choose a channel. The Notifications selects write the singular `notification` key. | Select | YAML field | | --------------------------- | ------------------------------ | | **Slack channel** | `notification.slack_channel` | | **Microsoft Teams channel** | `notification.msteams_channel` | On a rule, each channel select maps to the tri-state resolution described in [Policy fields](#policy-fields). | Action | Option on a rule | Option on the default policy | | ------------------------ | ---------------------------------------- | --------------------------------------------------------- | | Inherit the channel | `Inherit from default` (omits the field) | Not available. The default policy has nothing to inherit. | | Stop Slack notifications | `Disabled — no Slack notifications` | `No Slack notifications` | | Stop Teams notifications | `Disabled — no Teams notifications` | `No Teams notifications` | | Stop Slack escalations | `Disabled — no Slack escalations` | `No Slack escalations` | | Stop Teams escalations | `Disabled — no Teams escalations` | `No Teams escalations` | | Route to a channel | Pick the channel name. | Pick the channel name. | The disable options are the Form-mode equivalent of `null`. Selecting one stops announcements or escalations on that platform. On a rule that routes nothing for a group, the two selects are hidden and an **Add notifications** or **Add escalations** button appears instead. Click the button to show the two selects. Both default to `Inherit from default`. * You pick from a list. You do not type a channel name. * The Slack selects list the channels the Slack integration can see. * The Teams selects list the channels Promptless has seen activity in. * When no Teams channels are available, the **Microsoft Teams channel** select under **Notifications** lets you paste a channel’s conversation ID instead. * The paste fallback can inherit or route to a channel. It cannot disable an inherited Teams channel. To disable one, switch to YAML mode and set `msteams_channel: null`. On the default policy, each **Publishing** flag is a switch. On a rule, each flag is a segmented control with **Inherit**, **On**, and **Off**. A rule can force a flag on or off against an inherited value. The switch and the segmented control write the same YAML keys: | Control | YAML field (under `publishing:`) | | ---------------------------------------- | -------------------------------- | | **Open a pull request automatically** | `auto_create_pr` | | **Merge the pull request automatically** | `auto_merge` | | **Skip the comment on the source PR** | `suppress_source_pr_comments` | ### Permissions and conflict detection [Section titled “Permissions and conflict detection”](#permissions-and-conflict-detection) Every organization member can view the configuration, but only admins can edit and save changes. Non-admins see a read-only view. The editor uses compare-and-swap to avoid overwriting concurrent changes. If someone else modifies the configuration while you’re editing, you see a conflict warning and can reload to get the latest version. Note Changes saved in the Configuration page take effect immediately for new triggers. Policies resolve at publish time, so mid-session config edits apply when suggestions are finalized. ## Initial configuration from onboarding [Section titled “Initial configuration from onboarding”](#initial-configuration-from-onboarding) When you complete the setup wizard, Promptless creates your `promptless.yaml` with sensible defaults based on the integrations you connected: | Connected Integration | Generated Trigger | Generated Context Source | | ---------------------------- | -------------------------------------------------------------- | ------------------------------------------- | | GitHub (docs or trigger app) | `github_pr` (opened, first\_approval, merge) with `repos: all` | None | | GitLab | `gitlab_mr` (opened, merge) with `repos: all` | None | | Jira / Confluence | None | Unscoped `jira` and/or `confluence` entries | | Linear | None | Unscoped `linear` entry | | Notion | None | Unscoped `notion` entry | | Google Drive | None | Unscoped `google_drive` entry | | Slite | None | Unscoped `slite` entry | Onboarding seeds pull request triggers only; [commit triggers](/docs/for-docs/connect/triggers/github-commits) are opt-in and stay off until you add a `github_commit` trigger yourself. Onboarding also sets `auto_create_pr: true` in `policies.default.publishing`, so Promptless opens a documentation PR, or a merge request on GitLab, for each suggestion. New suggestions then reach your team through the docs repository whether or not you set a notification channel. To keep suggestions as drafts while you calibrate, turn off **Open a pull request automatically** on the default policy. See [`publishing`](#publishing). These broad defaults let Promptless start listening for documentation-worthy events immediately. You can edit your configuration anytime to narrow scope, like restricting triggers to specific repositories or limiting context sources to particular projects. Note Automatic configuration of triggers and context sources is additive and idempotent. If you’ve already manually configured a trigger type or context source, onboarding won’t overwrite it. Connecting Jira, Confluence, Linear, or Notion *after* onboarding works the same way. Promptless adds a broad, unscoped context source for that tool if you don’t already have one. Existing entries and any scoping you’ve set are left untouched. ### Migration from projects [Section titled “Migration from projects”](#migration-from-projects) If your organization used the legacy Projects configuration, Promptless migrated it to `promptless.yaml`. The migration kept: * Trigger configurations and settings * Doc collection settings * Automatic PR creation and notification preferences * Context source scoping The Configuration page replaces the Projects page. Migrated triggers and doc collections keep working with no action from you. ### Add a commit trigger [Section titled “Add a commit trigger”](#add-a-commit-trigger) A commit trigger (`github_commit`) activates when commits are pushed to a branch you monitor, rather than when a pull request opens or merges. Without a `branches` filter, it watches only the repository’s default branch. Add one when you want Promptless to react to commits directly: ```yaml triggers: default-branch-commits: trigger_type: github_commit match: - repos: - acme/backend branches: - main # omit to match only the default branch trigger_directories: - src/ ``` In a typical pull request workflow, this overlaps with your PR triggers. Merging a pull request also pushes a merge commit to the default branch, so the commit trigger activates alongside the `github_pr` merge event. A commit trigger earns its place when changes reach a branch without a pull request. Hotfixes or commits pushed straight to the default branch are examples. With a commit trigger, Promptless still documents those changes. See [GitHub Commits](/docs/for-docs/connect/triggers/github-commits) for the full workflow. ## File structure [Section titled “File structure”](#file-structure) `promptless.yaml` has four top-level sections: | Section | Defines | Details | | ----------------- | -------------------------------------------------------------------------------------- | ----------------------------------- | | `doc_collections` | Documentation repositories where Promptless publishes updates | [Doc collections](#doc-collections) | | `context_sources` | Limits on what Promptless reads from connected integrations | [Context sources](#context-sources) | | `triggers` | Events that start documentation work | [Triggers](#triggers) | | `policies` | Where notifications and escalations go, how Promptless publishes, and when it archives | [Policies](#policies) | Every section is optional. A key the schema doesn’t define, at any level of the file, fails validation. ### Example configuration [Section titled “Example configuration”](#example-configuration) This file defines one doc collection, two scoped context sources, two triggers, and a default policy with one rule: ```yaml doc_collections: acme/documentation: docs_framework: docusaurus docs_root_url: https://docs.acme.com config_file_path: docusaurus.config.js filter: - docs/ context_sources: jira: source_type: jira project_keys: - DOCS - ENG linear: source_type: linear team_keys: - engineering # Built-in triggers (api, github_mention, jira_mention, msteams_mention, slack_mention, web) # are always on for connected integrations and are not configured here; # their keys remain valid in policies rules. triggers: main-repos: trigger_type: github_pr match: - repos: - acme/backend - acme/frontend trigger_on: - opened - first_approval trigger_directories: - src/ support-channel: trigger_type: slack_listen match: - channels: - customer-support policies: default: notification: slack_channel: docs-updates publishing: auto_create_pr: true auto_merge: false rules: - if: trigger: slack_mention then: publishing: suppress_source_pr_comments: true ``` ## Doc collections [Section titled “Doc collections”](#doc-collections) A doc collection is a documentation repository where Promptless publishes updates. Its key is the repository path: `owner/repo` on GitHub, or the project’s full path on GitLab, including every namespace segment (for example, `acme/platform/developer-docs`). The key is also the collection’s name. An organization can have one doc collection per repository. Each doc collection accepts these fields: | Field | Description | | ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `platform` | Repository platform: `github` (default), `github_oss`, `github_enterprise`, or `gitlab`. | | `host` | Bare instance hostname, with no scheme or path. Required for `github_enterprise`. Optional for `gitlab`: omit it for gitlab.com, or set it for self-hosted GitLab. Not valid for `github` or `github_oss`. | | `default_branch` | Branch that documentation PRs target. Defaults to the repository’s default branch. | | `docs_framework` | Documentation framework, such as `docusaurus`, `mkdocs`, or `starlight`. | | `docs_root_url` | URL of the published documentation site. | | `config_file_path` | Path to the framework’s configuration file, such as `docusaurus.config.js`. | | `vale_config_path` | Path to a Vale configuration file. Setting it turns on prose linting. | | `doc_detective` | Doc Detective settings. Including the key marks the collection as using Doc Detective, even before the repository has Doc Detective files. Set `config_path` only when your config file isn’t at the repository root. | | `filter` | Directory prefixes and file paths Promptless can modify. See [Path scope (filter)](#path-scope-filter). | ```yaml doc_collections: acme/docs: docs_framework: docusaurus docs_root_url: https://docs.acme.com filter: - docs/ - guides/ ``` ### GitLab projects [Section titled “GitLab projects”](#gitlab-projects) A GitLab collection sets `platform: gitlab` and uses the project path as its key. Omit `host` for gitlab.com, or set it to your instance hostname for self-hosted GitLab. Promptless opens merge requests on GitLab projects the same way it opens pull requests on GitHub. ```yaml doc_collections: acme/docs: # gitlab.com project platform: gitlab docs_framework: docusaurus acme/handbook: # self-hosted GitLab project platform: gitlab host: gitlab.acme.com docs_framework: mkdocs ``` ### Path scope (filter) [Section titled “Path scope (filter)”](#path-scope-filter) The `filter` field limits which files Promptless can modify: | `filter` entry | Files Promptless can modify | | ------------------ | ------------------------------- | | Empty or omitted | Any file in the repository | | Path ending in `/` | Any file in that directory tree | | File path | Only that file | ```yaml doc_collections: acme/docs: filter: - docs/ # All files under docs/ - CHANGELOG.md # Only this specific file ``` ## Context sources [Section titled “Context sources”](#context-sources) Promptless reads your connected integrations for context on documentation work. A context source entry limits what Promptless reads from one integration, such as which Jira projects or Notion databases it can query. Promptless reads the whole integration when it has no entry, or an entry with no scope fields. Add an entry only when you want to restrict scope. Each entry needs a `source_type`, which sets the scope fields it accepts: | `source_type` | Scope fields | Restricts Promptless to | | -------------- | -------------------------- | -------------------------------------------------------------------------- | | `jira` | `project_keys` | These Jira project keys | | `confluence` | `space_keys` | These Confluence space keys | | `linear` | `team_keys` | These Linear team identifiers | | `notion` | `database_ids`, `page_ids` | These Notion databases or pages | | `google_drive` | `drive_ids`, `folder_ids` | These shared drives or folders | | `slite` | None | No restriction. Promptless reads the whole Slite workspace when connected. | An entry’s key is a lowercase slug of letters, numbers, and hyphens, up to 64 characters, such as `google-drive`. ```yaml context_sources: jira: source_type: jira project_keys: - DOCS - PLATFORM confluence: source_type: confluence space_keys: - ENGINEERING linear: source_type: linear team_keys: - engineering - product notion: source_type: notion database_ids: - abc123def456 google-drive: source_type: google_drive drive_ids: - 0AExampleDriveIdUk9PVA folder_ids: - 1BExampleFolderIdXyZ slite: source_type: slite ``` ## Triggers [Section titled “Triggers”](#triggers) A trigger starts documentation work when an event matches it. Each trigger in the `triggers` section is one you configure. [Built-in triggers](#built-in-triggers), such as Slack mentions, are always on and don’t appear in the file. Each trigger accepts these fields: | Field | Required | Description | | -------------- | ------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `trigger_type` | Yes | The kind of event the trigger matches. See [Trigger types](#trigger-types). | | `match` | Yes | A list of one or more match clauses. The trigger activates when any clause matches, and every field set in that clause must match. | | `instructions` | For `schedule` only | Standing instructions Promptless receives on each run. Required for `schedule` and optional for `jira_new_issue`, `jira_label_added`, and `jira_status_change`. Other trigger types don’t accept it. | A trigger’s key is a lowercase slug of letters, numbers, and hyphens, up to 64 characters. Policy rules refer to the trigger by this key. ```yaml triggers: github-prs: trigger_type: github_pr match: - repos: - acme/backend - acme/api trigger_on: - opened - first_approval trigger_directories: - src/ - lib/ slack-support: trigger_type: slack_listen match: - channels: - support - customer-questions ``` ### Trigger types [Section titled “Trigger types”](#trigger-types) Provider-backed triggers require their integration to be connected. See [Provider connection and trigger availability](#provider-connection-and-trigger-availability). github\_pr Triggers when pull requests are opened, approved, or merged in specified repositories; it can also re-review an open PR on each new push. **Match clause fields:** | Field | Description | | --------------------- | ---------------------------------------------------------------------------------- | | `repos` | Required. The literal `all` or a list of repositories (`owner/repo` format) | | `excluded_repos` | Repositories to exclude from monitoring | | `trigger_on` | Required. `opened`, `first_approval`, `merge`, or `updated` | | `trigger_directories` | Only trigger when changes touch these directories | | `branches` | Only trigger for PRs targeting these branches | | `repo_topics` | Only trigger for repos with these GitHub topics | | `repo_owners` | Only trigger for repos owned by these owners (the `owner` segment of `owner/repo`) | Caution A match clause that lists `updated` in `trigger_on` must name an explicit `repos` list; it cannot use `repos: all`. Other clauses in the same trigger are unaffected. github\_commit Triggers when commits are pushed to specified branches. **Match clause fields:** | Field | Description | | --------------------- | ----------------------------------------------------------- | | `repos` | Required. The literal `all` or a list of repositories | | `excluded_repos` | Repositories to exclude | | `branches` | Branches to monitor (omit to match only the default branch) | | `trigger_directories` | Only trigger when changes touch these directories | | `repo_topics` | Only trigger for repos with these GitHub topics | | `repo_owners` | Only trigger for repos owned by these owners | gitlab\_mr Triggers when merge requests are opened or merged in GitLab projects. **Match clause fields:** | Field | Description | | --------------------- | ------------------------------------------------------------- | | `repos` | Required. The literal `all` or a list of GitLab projects | | `excluded_repos` | Projects to exclude | | `trigger_on` | Required. Events that activate the trigger: `opened`, `merge` | | `trigger_directories` | Only trigger when changes touch these directories | | `branches` | Only trigger for MRs targeting these branches | slack\_listen Passively monitors specified Slack channels for documentation-worthy conversations. When you configure a public channel, Promptless joins it. Private channels and channels shared with another workspace through Slack Connect need you to add Promptless in Slack before it can monitor them. **Match clause fields:** | Field | Description | | ---------- | ---------------------------------------------------------- | | `channels` | Required. List of channel names to monitor (no `#` prefix) | Tip Channel names are automatically updated when channels are renamed in Slack. msteams\_listen Passively monitors specified Microsoft Teams channels. **Match clause fields:** | Field | Description | | ------------- | ----------------------------------------------------------- | | `channel_ids` | Required. List of Teams channel conversation IDs to monitor | clickup Triggers when ClickUp tasks reach specified statuses. **Match clause fields:** | Field | Description | | ---------- | --------------------------------------------------------------- | | `statuses` | Required. List of task statuses that trigger documentation work | launchdarkly\_flag Triggers when a matching feature flag changes in a connected LaunchDarkly account. **Match clause fields:** | Field | Description | | ----------------- | --------------------------------------- | | `project_key` | Restrict to these LaunchDarkly projects | | `environment_key` | Restrict to these environments | | `flag_key` | Restrict to these feature flags | At least one of `project_key`, `environment_key`, or `flag_key` must be set in each clause. An empty field matches every value in that dimension. Requires LaunchDarkly to be connected (see [Connect LaunchDarkly](/docs/for-docs/connect/triggers/launchdarkly#connect-launchdarkly)). The integration and this trigger are in beta. See [LaunchDarkly triggers](/docs/for-docs/connect/triggers/launchdarkly#match-a-flag-change) for the full match semantics and an example. jira\_new\_issue Triggers when an issue is created in a matching project. **Match clause fields:** | Field | Description | | ------------- | ------------------------------------------------------------------ | | `project_key` | Required. Non-empty list of Jira project keys (for example `DOCS`) | The optional `instructions` field, a sibling of `match`, gives Promptless standing instructions on each run. A blank value fails validation. Promptless comments on the ticket when the run produces a suggestion or hits a blocker you can act on. It posts nothing when there’s no documentation change. See [Reply on the ticket](/docs/for-docs/connect/triggers/jira#reply-on-the-ticket). jira\_label\_added Triggers when a label is added to an issue. **Match clause fields:** | Field | Description | | ------------- | --------------------------------------------------------------------------------------------- | | `new_label` | Required. Labels whose addition activates the trigger; matches when any listed label is added | | `project_key` | Optional. Restrict to these project keys | A label whose first token is `promptless` is reserved for the built-in `jira_mention` path and never matches `new_label`; name the label something else. Takes the same optional `instructions` field and has the same on-ticket behavior as `jira_new_issue`. jira\_status\_change Triggers when an issue moves into a new status. **Match clause fields:** | Field | Description | | ------------- | ------------------------------------------------------------------------------------------------------- | | `new_status` | Status names the issue moved into | | `is_done` | Only `true` is accepted; matches any status in Jira’s done category, stable across projects and renames | | `project_key` | Optional. Restrict to these project keys | At least one of `new_status`, `is_done`, or `project_key` must be set in each clause. Takes the same optional `instructions` field and has the same on-ticket behavior as `jira_new_issue`. A Jira trigger activates once per crossing and does not re-fire on later deliveries about an issue that still matches. Creating an issue crosses every edge at once, so a new issue that matches two Jira triggers dispatches once, tagged with both keys. An issue moving between two done statuses activates an `is_done: true` trigger again. See [How a configured trigger activates](/docs/for-docs/connect/triggers/jira#how-a-configured-trigger-activates) for the full explanation. schedule Triggers when a scheduled time comes due and dispatches your standing instructions each time. **Match clause fields:** | Field | Description | | ---------- | ----------------------------------------------------------------------------------------------------------------- | | `cron` | Required. Five-field cron expression (minute, hour, day of month, month, day of week). Runs at most once an hour. | | `timezone` | Optional. IANA timezone name; defaults to UTC. Keeps its wall-clock time across daylight-saving changes. | Unlike other trigger types, a schedule trigger also takes a top-level `instructions` field (required, non-empty) as a sibling of `match`. Because no inbound event describes the work, the instructions are the whole job. Each `match` clause is a `{cron, timezone}` pair, and multiple clauses run the same instructions on multiple cadences. ### Built-in triggers [Section titled “Built-in triggers”](#built-in-triggers) These triggers are always active when their integration is connected and don’t appear in the YAML: | Key | Activates on | | ----------------- | ---------------------------------------------------------------------------------------------------------------------- | | `slack_mention` | @Promptless mentions in Slack channels | | `msteams_mention` | @Promptless mentions in Microsoft Teams | | `github_mention` | @Promptless mentions in GitHub issues and PR comments | | `gitlab_mention` | @Promptless mentions in GitLab merge-request comments | | `jira_mention` | Assigning a Jira issue to the Promptless account, @mentioning it in a comment, or adding a `promptless`-prefixed label | | `web` | Requests submitted through the web dashboard | | `api` | Requests from the HTTP API | Built-in triggers can’t be turned off, but you can use their keys in [policy rules](#rule-matching). ## Policies [Section titled “Policies”](#policies) Policies set where Promptless sends notifications and escalations, how it publishes documentation updates, and when it archives stale suggestions. `policies.default` applies to every suggestion. Each entry in `policies.rules` applies only when its `if` block matches, and overrides the default field by field. See [Rule matching](#rule-matching). `policies.default` and each rule’s `then` block accept these sections: | Section | Controls | Fields | | -------------- | ------------------------------------------------------------------------------- | ------------------------------- | | `notification` | Slack and Teams channels that announce suggestions | [`notification`](#notification) | | `escalation` | Slack and Teams channels, and email addresses, that receive escalations | [`escalation`](#escalation) | | `publishing` | Whether Promptless opens and merges documentation PRs, and what it posts on PRs | [`publishing`](#publishing) | | `archiving` | Whether and when Promptless archives stale suggestions | [`archiving`](#archiving) | ```yaml policies: default: notification: slack_channel: docs-notifications msteams_channel: "19:0a1b2c3d@thread.tacv2" escalation: slack_channel: docs-escalations msteams_channel: "19:4e5f6a7b@thread.tacv2" email: - docs-team@example.com publishing: auto_create_pr: true auto_merge: false suppress_source_pr_comments: false rules: - if: trigger: github-commits then: publishing: auto_merge: true - if: doc_collection: acme/internal-docs then: notification: slack_channel: internal-docs-team ``` ### Policy fields [Section titled “Policy fields”](#policy-fields) #### `notification` [Section titled “notification”](#notification) | Field | Description | | ----------------- | ------------------------------------------------------------------------------------------------- | | `slack_channel` | Slack channel name for suggestion notifications, with no `#` prefix | | `msteams_channel` | Microsoft Teams channel conversation ID for suggestion notifications, such as `19:…@thread.tacv2` | Set either field, both, or neither. Copy the Teams conversation ID from Teams. It’s the same value you paste into an `msteams_listen` trigger. Promptless can deliver to a Teams channel only after its bot has activity there. Each channel field resolves by whether and how you set it. Slack and Teams resolve separately, so you can turn off one and keep the other inherited. | Value | Result | | -------------------------------------- | ---------------------------------------------------------------------------------------- | | Field omitted | Inherits the channel from `policies.default` or an earlier matching rule | | `null` | Turns off notifications on that platform for the scope, overriding any inherited channel | | Channel name, or Teams conversation ID | Sends notifications to that channel | ```yaml policies: default: notification: slack_channel: docs-notifications rules: - if: doc_collection: acme/internal-docs then: notification: slack_channel: null # silence Slack for this collection ``` #### `escalation` [Section titled “escalation”](#escalation) The escalation channel receives problem reports: configuration and operational problems that need a person. Announcements about suggestions being created, updated, closed, or merged go to the `notification` channels. Promptless sends two kinds of problem reports: * A trigger problem is one Promptless hits while working on a trigger. For example, a test account is missing the feature flags Promptless needs to take a screenshot. Or a PR references a Jira issue that Promptless can’t read, because the Jira integration isn’t connected or the project isn’t accessible. * A connection alert comes from the daily [connection check](/docs/for-docs/reference/integrations#proactive-notifications), such as an integration that needs reconnecting. See [Escalation channel](/docs/for-docs/tune/notifications#escalation-channel) for the full behavior. `escalation` accepts the same channel fields as `notification`, plus `email`: | Field | Description | | ----------------- | ------------------------------------------------------------------------------------ | | `slack_channel` | Slack channel name for escalations, with no `#` prefix | | `msteams_channel` | Microsoft Teams channel conversation ID for escalations, such as `19:…@thread.tacv2` | | `email` | List of email addresses that receive escalations | ```yaml policies: default: escalation: slack_channel: ops-alerts msteams_channel: "19:4e5f6a7b@thread.tacv2" email: - oncall@acme.com ``` Set any combination of the three fields. They resolve the same way as `notification`: omit a field to inherit it, and set `slack_channel` or `msteams_channel` to `null`, or `email` to `[]`, to turn it off. `msteams_channel` needs the same prior bot activity as in `notification`. Escalations reach the escalation channels even when suggestion notifications are off or no notification channel is set. A problem report goes to a platform’s `notification` channel only when it’s a trigger problem and the resolved `escalation` section omits that platform’s field. A `null` field sends it nowhere on that platform. Connection alerts go only to the `escalation` destinations in `policies.default`. See [When problem reports go to the notification channel](/docs/for-docs/tune/notifications#when-problem-reports-go-to-the-notification-channel) for an example. Caution If you set only a `notification` channel, connection alerts reach no channel. Set an `escalation` destination in `policies.default` to receive them. Email is for escalations only, and suggestion notifications never arrive by email. `notification` has no email setting, so Promptless emails escalations only when you set `escalation.email`. Promptless emails only the addresses you list. Email escalation needs email delivery configured for your deployment. Promptless-hosted deployments have it on by default, and self-hosted deployments must configure it. #### `publishing` [Section titled “publishing”](#publishing) | Field | Default | Description | | -------------------------------- | ------- | ---------------------------------------------------------------------------------------- | | `auto_create_pr` | `false` | Open a documentation PR, or a merge request on GitLab, for each suggestion automatically | | `auto_merge` | `false` | Merge the documentation PRs that Promptless opens automatically | | `suppress_source_pr_comments` | `false` | Skip posting comments on source PRs | | `suppress_pr_description_extras` | `false` | Leave the generated extras out of documentation PR and merge request bodies | On GitLab, `auto_merge` merges immediately and squashes. A merge request that can’t merge right away stays open for you to merge manually. See [Automatic merge request creation](/docs/for-docs/connect/doc-locations/gitlab-projects#automatic-merge-request-creation). The extras that `suppress_pr_description_extras` removes are the “Open in Promptless” link, the trigger events section, and the tip. With the setting on, the body contains only the suggestion’s own description, whether the dashboard default or the agent wrote it. Note `auto_create_pr` controls only automatic PR creation. When it’s off, Promptless leaves suggestions as drafts and doesn’t open a documentation PR on its own. You can still open one on demand: ask the agent, select **Create PR** in Slack, or create it from the dashboard. `auto_merge` applies only to PRs that Promptless creates automatically. #### `archiving` [Section titled “archiving”](#archiving) Promptless archives stale suggestions automatically, so your dashboard stays focused on active work. The `archiving` section sets when: | Field | Default | Description | | ------------------ | ------- | --------------------------------------------------------------------------------------- | | `enabled` | `true` | Whether automatic archiving runs for this scope | | `stale_after_days` | `30` | Days of inactivity before Promptless archives a suggestion. Must be a positive integer. | Set `enabled: false` to keep a scope’s suggestions open indefinitely, for example when a team leaves a suggestion open until a linked ticket closes. Lower `stale_after_days` to archive sooner. Promptless measures inactivity from a suggestion’s last activity: the most recent of when it was created, updated, had its diff refreshed, or was reopened. Promptless never archives a suggestion that someone viewed within the window. ```yaml policies: default: archiving: stale_after_days: 45 rules: - if: doc_collection: acme/docs then: archiving: enabled: false # keep this collection's suggestions indefinitely ``` Note Archiving runs on a schedule, outside any trigger, so it resolves per doc collection. Only `policies.default` and rules that match on `doc_collection` apply. A rule can turn off archiving or change the window for one collection while the default covers the rest. A rule that sets `trigger` never affects archiving. ### Rule matching [Section titled “Rule matching”](#rule-matching) Promptless starts from `policies.default`, then applies each matching rule in order. A later rule overrides the fields an earlier one set. Each rule’s `if` block takes one or both of these keys: | Key | Matches when | | ---------------- | ----------------------------------------------------------------------------------------------------------------------------------- | | `trigger` | The event matched this trigger. Use a key from `triggers` or a [built-in trigger](#built-in-triggers) key, such as `slack_mention`. | | `doc_collection` | The suggestion targets this doc collection. Use the collection’s key from `doc_collections`. | When a rule sets both keys, both must match. Caution Promptless resolves policies when it publishes a suggestion. If you change the configuration while Promptless is creating a suggestion, the new policy values apply when that suggestion publishes. ## Validation and errors [Section titled “Validation and errors”](#validation-and-errors) The configuration editor validates your YAML before it saves. Each validation error appears as an inline marker with these details: | Detail | Description | | ------- | --------------------------------------------------------------- | | Path | The field that has the error | | Line | The line number in the YAML, when the error belongs to one line | | Message | What’s wrong | These are the most common validation errors: | Error | Fix | | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Unknown key, such as a typo or an unsupported field | Correct the spelling, or remove the key. | | Invalid value, such as an unknown `trigger_type` | Use one of the values this page lists for the field. | | Missing required field, such as `host` when `platform` is `github_enterprise` | Add the field. | | Duplicate repository key in `doc_collections` | Keep one entry per repository. | | Malformed `doc_collections` key | Use exactly `owner/repo` for GitHub, GitHub OSS, and GitHub Enterprise. Use the project’s full path, including nested namespaces, for GitLab. Remove any surrounding whitespace. | | Trigger or context source key that isn’t a lowercase slug | Rename the key using lowercase letters, numbers, and hyphens, such as `google-drive`. | | Policy rule that references an undefined trigger or doc collection | Correct the key, or define the trigger or doc collection it names. Built-in trigger keys are always defined. | | Provider-backed trigger added, renamed, or modified while its provider is disconnected | Reconnect the provider, then save again. See [Connect a provider before you add its triggers](/docs/for-docs/connect/triggers#connect-a-provider-before-you-add-its-triggers). | Tip If you push an invalid `promptless.yaml` to your Agent Knowledge Base with git, the last valid configuration stays active. The Configuration page editor shows the error. ## Repository and channel renames [Section titled “Repository and channel renames”](#repository-and-channel-renames) When you rename a GitHub repository or a Slack channel, Promptless updates your configuration to match. It commits the change to your Agent Knowledge Base: | Renamed | What Promptless updates | | ----------------- | ----------------------------------------------------------------------------------------------------------------------------- | | GitHub repository | The `doc_collections` key, the repository in trigger `repos` and `excluded_repos` lists, and `doc_collection` in policy rules | | Slack channel | The channel in `slack_listen` triggers, and `slack_channel` in `notification` and `escalation` policies | A Slack channel rename leaves `msteams_channel` values unchanged. # Frequently asked questions > Answers to common questions about setting up and using Promptless, from supported platforms to how suggestions get created. ## Overview [Section titled “Overview”](#overview) This page gives short answers to common questions about what Promptless connects to, what it reads, and how it handles your data. Each answer links to the page that covers the topic in full. For account creation and team management, see [Account management](/docs/for-docs/reference/account-management). ## Integrations and access [Section titled “Integrations and access”](#integrations-and-access) | Question | Answer | | ---------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | What platforms does Promptless integrate with? | For triggers: GitHub, GitLab, Jira, Slack, Microsoft Teams, and LaunchDarkly. For context: GitHub, GitLab, Jira, Confluence, Linear, Notion, Google Drive, and Slite. For publishing: Git-hosted docs, such as Fern, Mintlify, Docusaurus, ReadMe, GitBook, and MkDocs sites. See [Integrations](/docs/for-docs/reference/integrations) for the full list. | | Does Promptless monitor my Slack channels? | Not by default. Promptless reads Slack only when someone tags @Promptless, sends it a DM, or uses the **Update Docs** message action. If you turn on [passive channel listening](/docs/for-docs/get-the-most-out/passive-channel-listening), Promptless also reads the channels you select in your configuration, and only those. You can add or remove channels at any time. See [Slack integration](/docs/for-docs/reference/integrations/slack). | | Does Promptless analyze my entire codebase? | No. When a pull request triggers it, Promptless starts from the pull request and its diff. It reads other code in the repositories you’ve granted only when the diff alone doesn’t explain the change. Promptless never runs your code. | ## Data handling [Section titled “Data handling”](#data-handling) | Question | Answer | | ---------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | How does Promptless handle my data? | Promptless reads your documentation from its repository for each session and stores records of the updates it suggests. It processes data from third-party integrations without storing it, and it doesn’t process end-user data. All data is encrypted in transit with TLS 1.2 or higher, and at rest with AES-256. See [Data handling and classification](/docs/for-docs/security/data-handling-and-classification). | | Does Promptless train models on my data? | No. Promptless doesn’t use customer data to pre-train or fine-tune language models. See [How Promptless uses AI](/docs/for-docs/security/how-promptless-uses-ai). | ## See also [Section titled “See also”](#see-also) * [Get support](/docs/for-docs/reference/getting-help), if your question isn’t answered here * [Integrations](/docs/for-docs/reference/integrations), for every integration and what it provides # Get support > Reach the Promptless team for troubleshooting, setup help, and steering the agent, and see what they can help with. Contact the Promptless team when something doesn’t look right, or when you want help getting more out of Promptless. The team can help with: * **Events Promptless processed**: A trigger, suggestion, or other event that doesn’t look right. It can come from a code PR, a Slack message, or another source, and the team investigates it. * **Your setup**: Integrations, triggers, doc collections, and other configuration. The team can walk through it with you. * **How the agent behaves**: Guiding Promptless’s behavior, adjusting its preferences, or customizing how it handles your docs. * **Anything else**: Any other question about Promptless. ## Contact us [Section titled “Contact us”](#contact-us) Email support For questions, feedback, or troubleshooting, reach us at . Slack Connect During onboarding, the team sets up a shared Slack channel between your team and Promptless for direct support. [Schedule a call](https://cal.com/team/promptless/30m-all)Book a 30-minute call with the Promptless team to talk through your questions or get hands-on help. # Integrations > Connect Promptless to GitHub, GitLab, Slack, Atlassian, and other tools for triggers, context sources, and documentation publishing. ## Overview [Section titled “Overview”](#overview) Integrations connect Promptless to the tools your team already uses. This page lists each integration and the jobs it does, explains the health labels on the [Integrations](https://app.gopromptless.ai/integrations) page, and covers how organization admins manage connections. Each integration does one or more of these jobs: | Job | What the integration does | | ---------- | ----------------------------------------------------------------------------------------------------------- | | Triggers | Sends Promptless events, automatically or when someone asks, that can start documentation work. | | Context | Gives Promptless information to research while it drafts documentation. | | Publishing | Lets Promptless push documentation updates to your Git-hosted docs. | | Monitoring | Reports on a connected service, such as whether your Starport site’s Vercel deployment built and published. | Some integrations in beta aren’t listed here. To ask about an integration that isn’t listed, or to request a new one, contact . ## Available integrations [Section titled “Available integrations”](#available-integrations) Each integration’s page covers how to connect it and what it can reach: | Integration | Used for | What Promptless does with it | | ---------------------------------------------------------------------------- | ---------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | | [GitHub](/docs/for-docs/reference/integrations/github) | Triggers, context, publishing | Triggers on pull requests, commits, and issues, reads code for context, and publishes to GitHub repositories. | | [GitHub (read-only)](/docs/for-docs/reference/integrations/github-read-only) | Triggers, context, publishing to public repositories | Reads any repository you grant, including private code, and publishes to public repositories through a pull request from a fork. | | [GitHub Enterprise](/docs/for-docs/reference/integrations/github-enterprise) | Triggers, context, publishing | Connects GitHub Enterprise Server and Enterprise Cloud through a custom GitHub App. | | [GitLab](/docs/for-docs/reference/integrations/gitlab) | Triggers, context, publishing | Triggers on merge requests, reads source code for context, and publishes to GitLab projects. | | [Atlassian](/docs/for-docs/reference/integrations/atlassian) | Triggers, context | Triggers on Jira issues, and reads Jira issues and Confluence spaces for context. | | [Linear](/docs/for-docs/reference/integrations/linear) | Context | Reads Linear issues and projects for context. | | [Notion](/docs/for-docs/connect/context-sources/notion) | Context | Searches Notion pages and databases for product specs and internal documentation. | | [Google Drive](/docs/for-docs/connect/context-sources/google-drive) | Context | In beta. Searches Google Drive, and reads Docs, Sheets, and Slides for context. | | [Slite](/docs/for-docs/connect/context-sources/slite) | Context | Searches Slite notes for internal documentation and product context. | | [Slack](/docs/for-docs/reference/integrations/slack) | Triggers, context | Triggers on mentions, message actions, DMs, and passive channel listening, and posts suggestion notifications. | | [Microsoft Teams](/docs/for-docs/reference/integrations/microsoft-teams) | Triggers | In beta. Triggers on mentions, message actions, and passive channel listening. | | [LaunchDarkly](/docs/for-docs/reference/integrations/launchdarkly) | Triggers | In beta. Triggers on feature flag changes. | | [Vercel](/docs/for-docs/reference/integrations/vercel) | Monitoring | Reads the deployment status of your Starport documentation site, with read-only access. | ## Connection health [Section titled “Connection health”](#connection-health) Once a day, Promptless checks each connected integration to confirm that its credentials are still valid and that the service is reachable. Each card on the Integrations page shows the result as a health label, along with when Promptless last checked: | Label | What it means | What to do | | ------------------- | ---------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | | **Connected** | The latest check succeeded. Promptless can reach the service and is authenticated. | No action needed. | | **Problem** | The service was unreachable, or Promptless couldn’t verify the integration, during the latest check. | No action needed. Promptless checks again and returns the card to **Connected** when the check succeeds. | | **Needs reconnect** | The authorization expired or was disconnected, and it needs you to reauthorize it. | Reconnect the integration from its card. | Some cards use their own label for a problem state, such as **Access check failed** on a GitHub card. To see details for a problem state, select the label. The details show the time Promptless last confirmed the integration was healthy. For a **Problem**, they also show when Promptless first and last detected the issue. To check a connection right away, select the card’s check action, such as **Check access**. For symptoms and fixes by integration, see [Connection health](/docs/for-docs/connect/connection-health). ### Proactive notifications [Section titled “Proactive notifications”](#proactive-notifications) If your organization has an [escalation channel configured](/docs/for-docs/reference/configuration-reference#policies) in Slack, Microsoft Teams, or email, Promptless reports connection problems there and names the affected integration. You learn about a broken integration without checking the Integrations page: | Label | When Promptless notifies you | | ------------------- | ---------------------------------------------------------------------------------------------- | | **Needs reconnect** | When the daily check first finds the problem, including when a **Problem** turns into it. | | **Problem** | Once, after the problem has lasted at least 24 hours. A shorter problem sends no notification. | Promptless doesn’t notify you again about the same ongoing problem. After the integration recovers, a new problem sends a new notification. ## Manage integrations [Section titled “Manage integrations”](#manage-integrations) Organization administrators view and manage every connected integration on the [Integrations](https://app.gopromptless.ai/integrations) page in the Promptless dashboard: | Task | What to do | | ------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------- | | Connect an integration | Select the integration’s connect button, such as **Connect GitHub**, and follow the steps on its page. | | Recheck a connection | Select the card’s check action, such as **Check access**. | | Change what an integration can reach | Select the card’s link to the provider, such as **Configure in GitHub**, and change access there. | | Revoke Promptless’s access | Select the card’s disconnect button, such as **Disconnect GitHub**, and confirm. Promptless’s access to that service ends immediately. | ## See also [Section titled “See also”](#see-also) * [Connection health](/docs/for-docs/connect/connection-health), to diagnose an integration that stopped working * [Data handling and classification](/docs/for-docs/security/data-handling-and-classification), for how Promptless encrypts, stores, and retains data from connected services * [Configuration reference](/docs/for-docs/reference/configuration-reference), for the triggers, context sources, and doc collections that use these integrations # Atlassian integration > Connect Jira and Confluence through a single Atlassian OAuth connection for documentation context and triggers. ## Overview [Section titled “Overview”](#overview) Connect Atlassian so Promptless can use your Jira issues and Confluence pages when it drafts documentation, and start documentation work from Jira. One Atlassian Cloud OAuth connection covers Jira, Confluence, or both: | Capability | What Promptless does | Set it up | | ------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ | | Jira context | Reads the Jira issues that pull requests and commits reference, such as `PROJ-123`, and searches with JQL for related issues. | [Jira context source](/docs/for-docs/connect/context-sources/jira) | | Confluence context | Searches your Confluence spaces for existing patterns, terminology, and architectural decisions, so new documentation stays consistent. | [Confluence context source](/docs/for-docs/connect/context-sources/confluence) | | Jira triggers | Starts documentation work from Jira issues, and replies on the issue that started it. | [Jira trigger](/docs/for-docs/connect/triggers/jira) | | Jira issue creation | Creates a Jira issue when you ask for one during a session. | [Create a Jira issue on request](#create-a-jira-issue-on-request) | Promptless reads Confluence and never writes to it. In Jira, it posts replies and documentation PR links, and creates the issues you ask for. Which account it writes as, and when it needs your permission first, depends on whether you attach a [service account](#atlassian-service-account). In this guide, you connect Atlassian, choose the account Promptless uses, and attach a service account so mentions and assignments in Jira start documentation work. ## Before you start [Section titled “Before you start”](#before-you-start) * An admin role in your Promptless organization. * The Atlassian account Promptless should read as. Promptless sees what that account sees, so a [dedicated account](#provision-an-atlassian-account-for-promptless) gives you the most control. * For Jira mentions and assignments, an Atlassian organization admin who can create a [service account](#atlassian-service-account). ### Permissions required [Section titled “Permissions required”](#permissions-required) The OAuth consent screen lists the permissions Promptless requests. Promptless requests the scopes only for the products you select when you connect: | Product | Scope | What Promptless uses it for | | ---------- | --------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | | Jira | `read:jira-work` | Reads Jira issues, projects, and work data. | | Jira | `write:jira-work` | Comments on the ticket that started a session, attaches the documentation PR as a remote link, and creates a Jira issue on request. | | Jira | `read:jira-user` | Reads user information for issue context. | | Jira | `manage:jira-webhook` | Registers, renews, and deletes the webhook that delivers Jira ticket events. | | Confluence | `read:confluence-space.summary` | Reads space names and metadata. | | Confluence | `read:confluence-content.all` | Reads page content for documentation context. | | Confluence | `read:space:confluence` | Reads space information. Granular scope. | | Confluence | `read:page:confluence` | Reads individual pages. Granular scope. | | Confluence | `read:content:confluence` | Reads content bodies. Granular scope. | | Confluence | `search:confluence` | Searches spaces with CQL to find relevant pages. Granular scope. | | Confluence | `read:content-details:confluence` | Reads the content metadata that search returns. Granular scope. | | Both | `offline_access` | Refreshes tokens without asking you to reauthorize. | The Confluence scopes include classic and granular variants for compatibility with Atlassian’s API v2. ## Connect Atlassian [Section titled “Connect Atlassian”](#connect-atlassian) One Atlassian Cloud connection covers Jira, Confluence, or both. You need an admin role in your Promptless organization to connect it. Promptless reads Jira and Confluence with the permissions of the Atlassian account that approves the connection. If you attach an [Atlassian service account](/docs/for-docs/reference/integrations/atlassian#atlassian-service-account), Promptless uses it for Jira instead. To connect a [dedicated Atlassian account](/docs/for-docs/reference/integrations/atlassian#provision-an-atlassian-account-for-promptless), log in to Atlassian as that account first. 1. On the Promptless [Integrations](https://app.gopromptless.ai/integrations) page, select **Connect Atlassian**. 2. Select **Jira**, **Confluence**, or both, and select **Continue to Atlassian**. Promptless requests only the permissions for the products you select. 3. If Atlassian shows its login screen, log in with the account you want Promptless to use. ![Atlassian Login Screen](https://promptless-customer-doc-assets.s3.amazonaws.com/docs-images/org_2lvkgU9erOFxYhtEVVC0ymPrPdF/aab15aef-2759-42e6-93ec-d4c090526273-jira-atlassian-login.png) 4. On the OAuth consent screen, review the permissions Promptless requests. For what each scope is for, see [Permissions required](/docs/for-docs/reference/integrations/atlassian#permissions-required). ![Jira OAuth Consent Screen](https://promptless-customer-doc-assets.s3.amazonaws.com/docs-images/org_2lvkgU9erOFxYhtEVVC0ymPrPdF/aab15aef-2759-42e6-93ec-d4c090526273-jira-oauth-consent.png) 5. Select **Accept**. If the consent screen shows no **Accept** option, your Atlassian account might not have the required permissions. Ask your Jira administrator to connect, or [invite them to Promptless](/docs/for-docs/reference/account-management). 6. On the Promptless [Integrations](https://app.gopromptless.ai/integrations) page, confirm the connection on the Atlassian card. To manage Promptless’s access later, open Atlassian and go to your avatar > **Account settings** > **Connected apps**. ![Atlassian Connected Apps Management](https://promptless-customer-doc-assets.s3.amazonaws.com/docs-images/org_2lvkgU9erOFxYhtEVVC0ymPrPdF/aab15aef-2759-42e6-93ec-d4c090526273-jira-connected-apps.png) If you connected Jira before Promptless supported Confluence, reconnect to give it access to your Confluence spaces. Reconnecting keeps your existing Jira configuration. ## Provision an Atlassian account for Promptless [Section titled “Provision an Atlassian account for Promptless”](#provision-an-atlassian-account-for-promptless) Connect Atlassian as a dedicated account, such as “Promptless Bot,” to get a separate audit trail. A dedicated account also lets you control exactly which Jira projects and Confluence spaces Promptless can see. The account is a standard Atlassian user that you invite by email, and it connects through the same OAuth flow. It needs no administrative permissions: | Product | Permission the account needs | | ---------- | -------------------------------------------------------------------------------------- | | Jira | The **User** role, not **User access admin**, on projects Promptless should reference. | | Confluence | **Can view** on spaces Promptless should search. | A dedicated account gives Promptless a separate identity for reading and commenting, but it doesn’t turn on Jira mentions and assignments. Only an [attached service account](#atlassian-service-account) does that. Use an email alias like `your_email+promptless@company.com`, or ask your IT admin for a new address like `promptless@company.com`. 1. In Atlassian, go to your settings, and under Atlassian admin settings, select **User management**. ![Atlassian admin settings showing User management option](https://promptless-customer-doc-assets.s3.amazonaws.com/docs-images/org_2lvkgU9erOFxYhtEVVC0ymPrPdF/jira-user-management-settings-1761099982.png) 2. Select **Invite people**, and enter the email address for the Promptless account. Under the Jira app, select the **User** role. ![Invite people to Jira screen with email and User role selected](https://promptless-customer-doc-assets.s3.amazonaws.com/docs-images/org_2lvkgU9erOFxYhtEVVC0ymPrPdF/jira-invite-people-screen-1761099982.png) 3. Log out of your personal Atlassian account. The invitation works only when you accept it as the Promptless account. 4. Open the invitation in the Promptless account’s inbox, or in your own inbox if you used an alias, and accept it. You can name the account “Promptless Bot.” ![Email invitation from Jira to join the team](https://promptless-customer-doc-assets.s3.amazonaws.com/docs-images/org_2lvkgU9erOFxYhtEVVC0ymPrPdF/jira-email-invitation-1761099983.png) 5. In **User management**, confirm that the account’s status is **ACTIVE**. The status can take up to an hour to change from **INVITED**. ![Promptless Bot account showing as ACTIVE in user list](https://promptless-customer-doc-assets.s3.amazonaws.com/docs-images/org_2lvkgU9erOFxYhtEVVC0ymPrPdF/jira-promptless-bot-active-1761099983.png) 6. While logged in as the Promptless account, [connect Atlassian](#connect-atlassian). ## Atlassian service account [Section titled “Atlassian service account”](#atlassian-service-account) Attach an Atlassian service account to give Promptless its own Jira identity. A service account is a non-personal Atlassian account that authenticates with a Client ID and secret instead of through the OAuth connection. Which account Promptless uses for Jira changes what it does there: | Jira behavior | Without a service account | With a service account attached | | -------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | | Account Promptless reads Jira as | The connecting account | The service account, whose Jira project permissions set which issues Promptless can see | | Comments, links, and new issues | Posted as the connecting account, and only when your request or your [Agent Knowledge Base](/docs/for-docs/get-the-most-out/agent-knowledge-base) explicitly permits that action | Posted as the service account | | Built-in `promptless` label and configured Jira triggers | Start sessions | Start sessions | | @mentions and assignments | Start no session | Start sessions, and Promptless replies on the issue | Confluence always uses the connecting account. A trigger configuration on its own doesn’t permit Promptless to write as the connecting account. Without that permission, Promptless still does the documentation work and skips the Jira write. Either way, Promptless ignores its own activity on a ticket. For how each Jira path starts a session, see the [Jira trigger](/docs/for-docs/connect/triggers/jira) page. Mentions and assignments require a service account by design. Without one, the account Promptless acts as is a real person. A colleague who @mentions or assigns that person during ordinary Jira work would summon Promptless, which is noisy for that person and their team. A dedicated, non-personal identity avoids that noise. ### Attach a service account [Section titled “Attach a service account”](#attach-a-service-account) An Atlassian organization admin creates the service account’s credentials, and a Promptless admin attaches them: 1. In Atlassian Admin, go to **Directory** > **Service accounts**, and create a service account. 2. On the same screen, give the account the Jira **User** application role. For an existing account, use **⋯** > **Allow access** instead. 3. On the account’s **Credentials** tab, select **Create credentials**. 4. Choose **OAuth 2.0** as the authentication type, and name the credential. 5. On **Select scopes**, grant these classic scopes: `read:me`, `read:jira-user`, `read:jira-work`, and `write:jira-work`. 6. Select **Create**, and copy the client ID and secret. Atlassian doesn’t show the secret again. 7. On the Promptless [Integrations](https://app.gopromptless.ai/integrations) page, on the Atlassian card, enter the **Client ID** and **Client secret**. 8. Optional. Enter the **Atlassian Admin address**, so the card can link to the account’s credentials page. 9. Select **Attach**. The card then shows the attached account’s display name, email, account ID, and client ID. If Atlassian rejects the credentials, Promptless leaves the account unattached and shows an error. The service account uses a client-credentials grant, so Promptless mints a new 60-minute token as needed and stores no refresh token. Its scopes cover Jira only. ### Fix a broken service account [Section titled “Fix a broken service account”](#fix-a-broken-service-account) The service-account section of the Atlassian card carries a health badge: | Badge | What it means | What to do | | --------------- | ------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------- | | **Not working** | Atlassian refuses the credential, for example because its secret was rotated or revoked, or the account lost its Jira **User** role. | Re-attach the service account with its current Client ID and secret. | | **Unconfirmed** | Promptless couldn’t reach Atlassian to check the credential. | No action needed. Promptless checks again during its next health check. | Reconnecting the Atlassian OAuth connection doesn’t fix a broken service account, because the OAuth connection and the service-account credential are separate. Promptless also doesn’t fall back to the connecting account when the service account fails. If you’re troubleshooting from a symptom instead, see [Connection health](/docs/for-docs/connect/connection-health). ## Create a Jira issue on request [Section titled “Create a Jira issue on request”](#create-a-jira-issue-on-request) Ask Promptless during a session to create a Jira issue. With a service account attached, a Slack or Microsoft Teams message that names the target project is enough. Promptless creates issues only when you ask, never on its own or in response to a trigger. Before it creates one, it searches the project for an issue that already covers the same work, and reuses that issue when it finds one. It can’t set custom fields on the issues it creates. The new issue’s reporter is the account Promptless uses for Jira: the attached service account, or else the person who connected Atlassian. Without a service account, Promptless creates the issue only when the request or your [Agent Knowledge Base](/docs/for-docs/get-the-most-out/agent-knowledge-base) explicitly permits issue creation as that person. Permission to comment doesn’t cover issue creation. Issue creation uses the `write:jira-work` scope that Promptless already holds, so you don’t need to reconnect. To have Promptless open issues as part of a task you define, pair issue creation with your own trigger and written instructions. See [Teach Promptless a custom task](/docs/for-docs/get-the-most-out/teach-promptless-a-custom-task). ## Fix common Atlassian problems [Section titled “Fix common Atlassian problems”](#fix-common-atlassian-problems) | Problem | Cause | Fix | | ------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Promptless doesn’t respond to Jira @mentions or ticket assignments. | No service account is attached, so those deliveries start no session. | [Attach a service account](#attach-a-service-account). | | Promptless didn’t comment on a Jira issue, though no service account is attached. | Writing as the connecting account needs explicit permission, and none was given. | Ask for the comment in your request, add standing permission to your [Agent Knowledge Base](/docs/for-docs/get-the-most-out/agent-knowledge-base), or [attach a service account](#attach-a-service-account). | | Confluence searches fail with `401 Unauthorized; scope does not match`, while Jira works and the connection shows as connected. | The connection predates the `search:confluence` and `read:content-details:confluence` scopes. | Reconnect Atlassian from the [Integrations](https://app.gopromptless.ai/integrations) page. Reconnecting keeps your Jira and Confluence configuration. | | Promptless can see confidential Jira projects or Confluence spaces. | Promptless inherits the permissions of the connecting account, or of the service account for Jira when one is attached. | List only the projects and spaces Promptless should search under `context_sources` on the [Configuration](https://app.gopromptless.ai/configuration) page. For a hard limit, connect as an account that can’t see the confidential content, such as a [dedicated account](#provision-an-atlassian-account-for-promptless). | | The Atlassian card shows **No Atlassian account recorded**. | Promptless couldn’t read the account that connected Atlassian, so it can’t tell its own Jira comments from a person’s. | Reconnect Atlassian from the [Integrations](https://app.gopromptless.ai/integrations) page. | | Promptless actions are attributed to your personal account. | You connected Atlassian while logged in as yourself. | Disconnect Atlassian, log out of your personal Atlassian account, log in as the Promptless account, and connect again. | For how Promptless processes Jira data, including redaction and privacy controls, see the [Jira context source](/docs/for-docs/connect/context-sources/jira) page. ## See also [Section titled “See also”](#see-also) * [Jira trigger](/docs/for-docs/connect/triggers/jira), to choose which Jira events start documentation work * [Jira context source](/docs/for-docs/connect/context-sources/jira) and [Confluence context source](/docs/for-docs/connect/context-sources/confluence), to set which projects and spaces Promptless searches * [Connection health](/docs/for-docs/connect/connection-health), to find and fix integrations that stopped working # GitHub integration > Connect the Promptless GitHub App for triggers, context, and publishing across your repositories. ## Overview [Section titled “Overview”](#overview) Connect a GitHub organization to Promptless through the Promptless GitHub App. One connection covers triggers, context, and publishing for the repositories you grant the app: | Capability | What Promptless does | Set it up | | ---------- | --------------------------------------------------------------------------------------------- | ----------------------------------------------------------------- | | Triggers | Starts documentation work from pull requests, commits, and issues in monitored repositories. | [Triggers](/docs/for-docs/connect/triggers) | | Context | Searches code and issues in granted repositories for technical context. | [Context sources](/docs/for-docs/connect/context-sources) | | Publishing | Opens pull requests with documentation updates in repositories you set up as doc collections. | [GitHub repos](/docs/for-docs/connect/doc-locations/github-repos) | The app follows the [GitHub App specification](https://docs.github.com/en/apps/creating-github-apps/about-creating-github-apps) and authenticates with JWTs generated by the app installation. It has read and write access to the repositories you select, and either you or Promptless can revoke that access at any time. If you can’t grant write access, use the [GitHub (read-only) app](/docs/for-docs/reference/integrations/github-read-only). On GitHub Enterprise Server, use the [GitHub Enterprise integration](/docs/for-docs/reference/integrations/github-enterprise). In this guide, you install the app on an organization and choose which repositories it can reach. If your organization has an IP allow list, you also let Promptless through it. ## Before you start [Section titled “Before you start”](#before-you-start) * An admin role in your Promptless organization. * An owner of the GitHub organization to authorize the app. If you aren’t an owner, you can request approval during setup. * If your organization enforces an IP allow list, an owner who can change its **Authentication security** settings. ## Connect GitHub [Section titled “Connect GitHub”](#connect-github) You need an admin role in your Promptless organization to start a GitHub connection. GitHub then asks you to authorize the Promptless GitHub App with your GitHub account. The connection completes only if that account administers the organization or account you connect. For a GitHub organization, that’s an organization owner. For a personal account, it’s the account owner. On GitHub Enterprise Server, or on GitHub Enterprise Cloud when a policy blocks third-party apps, connect through a custom GitHub App. See [GitHub Enterprise integration](/docs/for-docs/reference/integrations/github-enterprise). 1. In the Promptless dashboard, open the [Integrations](https://app.gopromptless.ai/integrations) page. 2. Select **Connect GitHub**. 3. In GitHub, select the organization to install Promptless into. ![GitHub Organization Selection](/assets/github-select-org.png) 4. Select the repositories Promptless can access. These are typically your source code repositories and, if your docs live in GitHub, your documentation repository. ![Repository Selection](/assets/github-select-repos.png) 5. On the Integrations page, confirm that the organization appears on its own card. The connection link stays valid for one hour. If it expires before you finish, start the connection again from the Integrations page. Some GitHub organizations require an owner’s approval to install a third-party app. If yours does and you aren’t an owner, GitHub asks you to request approval. To connect in that case: 1. Complete GitHub’s approval request flow. The GitHub card on the Integrations page shows **Waiting on an organization owner** while the request is open. 2. Ask a GitHub organization owner to approve the Promptless GitHub App in the organization’s **Third-party Access** settings. 3. After the owner approves, confirm that the organization appears on its own card. Promptless connects the approved installation automatically. To check right away, select **Check for approval** on the card. If GitHub can’t reuse the approved installation, uninstall the Promptless GitHub App in GitHub, and connect again. Tip To find who can approve, open **Third-party Access** > **Pending requests** in your GitHub organization settings. It shows who has owner permissions. If your GitHub organization enforces an IP allow list, GitHub blocks requests from Promptless until an owner allows them. See [Organization IP allow lists](/docs/for-docs/reference/integrations/github#organization-ip-allow-lists). ### Connect multiple GitHub organizations [Section titled “Connect multiple GitHub organizations”](#connect-multiple-github-organizations) To add another organization, select **Connect another GitHub Org** on the [Integrations](https://app.gopromptless.ai/integrations) page, and repeat the steps in [Connect GitHub](#connect-github). Each organization gets its own card, with its repositories and its own **Check access** and **Disconnect GitHub** controls. When you create or edit a doc collection or trigger, repositories from every connected organization are available, listed as `organization/repository`. ## Manage repository access [Section titled “Manage repository access”](#manage-repository-access) Change which repositories Promptless can reach whenever you add a source or docs repository, or want to remove one. GitHub controls this access in the app’s installation settings. ![Repository access section of the Promptless GitHub App settings, with the All repositories and Only select repositories options](https://promptless-customer-doc-assets.s3.amazonaws.com/docs-images/org_2lvkgU9erOFxYhtEVVC0ymPrPdF/bc05f421-e940-4f84-b442-6f9181a0eab3-github-app-repository-management.png) 1. On the [Integrations](https://app.gopromptless.ai/integrations) page, on the organization’s GitHub card, select **Configure in GitHub**. The app’s installation settings open in GitHub in a new tab. 2. Under **Repository access**, select **All repositories** or **Only select repositories**. 3. Optional. To add a repository, select it from the **Select repositories** list. To remove one, select **×** next to its name. 4. Select **Save**. 5. Back on the GitHub card in Promptless, select **Check access**. The card lists the repositories the installation can reach, and they become available when you create or edit doc collections and triggers. GitHub can take a few minutes to report the change. If a repository is still missing, select **Check access** again. You can also reach the same settings in GitHub, under your organization’s **Settings** > **Third-party Access** > **GitHub Apps**: find **Promptless** and select **Configure**. To remove the app entirely, select **Uninstall** at the bottom of that page. ## Organization IP allow lists [Section titled “Organization IP allow lists”](#organization-ip-allow-lists) If your GitHub organization enforces an IP allow list, GitHub blocks requests from Promptless that don’t come from an allowed address. Promptless then can’t read pull requests or publish updates, and GitHub reports no error to you. A GitHub organization owner picks one of these options, both under **Settings** > **Authentication security**: | Option | What to do | Maintenance | | ------------------------------------------------------- | -------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | | Let installed GitHub Apps bypass the list (recommended) | Select **Enable IP allow list configuration for installed GitHub Apps**. | None. GitHub adds the Promptless GitHub App’s addresses and keeps them current. | | Add the Promptless egress IP address | Add `3.143.177.103`, the NAT gateway address that Promptless requests come from. | This address can change, so you might need to update the entry later. | These options apply to organizations on GitHub.com. For GitHub Enterprise, see [Allow Promptless IP addresses](/docs/for-docs/reference/integrations/github-enterprise#step-6-allow-promptless-ip-addresses) for the full list of addresses. ## Fix common GitHub connection problems [Section titled “Fix common GitHub connection problems”](#fix-common-github-connection-problems) | Problem | Cause | Fix | | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | | The GitHub card says no repositories are accessible to the installation. | The app is installed but has no repository access yet. | Grant access as described in [Manage repository access](#manage-repository-access). | | A repository you just granted doesn’t appear in Promptless. | GitHub can take a few minutes to report new access. | Select **Check access** on the GitHub card. | | The doc collection picker shows “No connected repository matches that.” | The repository isn’t in a connected organization, or the app can’t reach it. | Select **Manage repository access** below the picker to open the Integrations page, then connect the organization or grant the repository. | | The card shows **Waiting on an organization owner**. | Your organization requires an owner to approve third-party apps. | Ask an owner to approve the app. See [Connect GitHub](#connect-github). | | Promptless stopped reading pull requests or publishing, and your organization uses an IP allow list. | GitHub blocks requests from addresses that aren’t on the list. | Allow Promptless as described in [Organization IP allow lists](#organization-ip-allow-lists). | ## See also [Section titled “See also”](#see-also) * [GitHub PRs](/docs/for-docs/connect/triggers/github-prs), to choose which pull requests start documentation work * [GitHub repos](/docs/for-docs/connect/doc-locations/github-repos), to set up a GitHub repository as a doc collection * [Source control and access scope](/docs/for-docs/connect/source-control), to compare GitHub, GitHub Enterprise, and GitLab connections # GitHub Enterprise integration > Create a custom GitHub App for GitHub Enterprise Server or Cloud when your organization restricts third-party apps. ## Overview [Section titled “Overview”](#overview) Create a custom GitHub App for Promptless when your organization uses GitHub Enterprise Server (self-hosted). Do the same on GitHub Enterprise Cloud when a policy blocks third-party GitHub Apps. You register the app in your enterprise environment, and Promptless connects to your repositories through it. Caution For a standard GitHub.com organization, use the [standard GitHub integration](/docs/for-docs/reference/integrations/github). In the steps below, you register and configure the app, allow Promptless IP addresses through your firewall, and generate credentials. Then you install the app and connect it in the Promptless dashboard. ## Before you start [Section titled “Before you start”](#before-you-start) * GitHub Enterprise admin access, to create and configure GitHub Apps. * A GitHub Enterprise instance that Promptless can reach at a public HTTPS address. See [Hostname requirements](#hostname-requirements). * A secure place to store the private key and client secret you generate in Step 7. ### Hostname requirements [Section titled “Hostname requirements”](#hostname-requirements) Promptless connects to your instance from its own infrastructure. The GitHub Enterprise URL you enter must point to a publicly reachable GitHub Enterprise server over HTTPS. You can still restrict access to the [Promptless IP addresses](#step-6-allow-promptless-ip-addresses). GitHub Enterprise Server instances reachable only from inside a private network aren’t supported through this integration. Promptless validates the hostname when you connect the integration and again each time the connection refreshes. It rejects the hostname, and stores nothing, if the URL: * uses any scheme other than HTTPS. * embeds a username or password. * resolves to a private, internal, loopback, or otherwise non-routable address, whether directly or through DNS. * does not respond as a genuine GitHub Enterprise server. Enter the same public host you use to reach your instance in a browser, such as `github.example.com`. Promptless adds the API path for you. ## Step 1: Register a new GitHub App [Section titled “Step 1: Register a new GitHub App”](#step-1-register-a-new-github-app) 1. In your GitHub Enterprise admin settings, go to **GitHub Apps** and select **New GitHub App**. 2. Fill in the basic app information: * **GitHub App name** (required): a descriptive name, such as `Promptless Enterprise` or `Promptless (Your Company Name)`. * **Description**: `Promptless keeps your technical guides up-to-date using AI.` * **Homepage URL** (required): `https://gopromptless.ai` ![GitHub Enterprise App Registration](https://promptless-customer-doc-assets.s3.amazonaws.com/docs-images/org_2lvkgU9erOFxYhtEVVC0ymPrPdF/b5b5ff40-d884-4086-acb6-4bb2973bfd97-github-enterprise-app-registration.png) ## Step 2: Configure authentication URLs [Section titled “Step 2: Configure authentication URLs”](#step-2-configure-authentication-urls) Promptless uses these URLs to complete authentication and return you to the dashboard after you install or update the app. 1. Set **Callback URL** (required) to `https://app.gopromptless.ai/integrations`. 2. Set **Setup URL (Post installation)** (required) to `https://app.gopromptless.ai/integrations/github-redirect`. 3. Select **Redirect on update**, so users return to the setup URL when an installation changes, such as when repositories are added or removed. ![GitHub Enterprise Callback URL Configuration](https://promptless-customer-doc-assets.s3.amazonaws.com/docs-images/org_2lvkgU9erOFxYhtEVVC0ymPrPdF/b5b5ff40-d884-4086-acb6-4bb2973bfd97-github-enterprise-callback-url.png) ![GitHub Enterprise Post Installation Setup](https://promptless-customer-doc-assets.s3.amazonaws.com/docs-images/org_2lvkgU9erOFxYhtEVVC0ymPrPdF/b5b5ff40-d884-4086-acb6-4bb2973bfd97-github-enterprise-post-installation.png) ## Step 3: Configure webhook settings [Section titled “Step 3: Configure webhook settings”](#step-3-configure-webhook-settings) The webhook delivers repository events from GitHub Enterprise to Promptless as they happen. * **Webhook URL** (required): `https://api.gopromptless.ai/integrations/github/events` * **Webhook secret** (optional): leave it empty, or generate a secure secret if your security policies require one. * **SSL verification** (required): enable it. ![GitHub Enterprise Webhook Configuration](https://promptless-customer-doc-assets.s3.amazonaws.com/docs-images/org_2lvkgU9erOFxYhtEVVC0ymPrPdF/b5b5ff40-d884-4086-acb6-4bb2973bfd97-github-enterprise-webhook-config.png) ## Step 4: Configure repository permissions [Section titled “Step 4: Configure repository permissions”](#step-4-configure-repository-permissions) Grant the app these repository permissions: | Permission | Access | What Promptless uses it for | | --------------- | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | | Pull requests | Read and write | Reads pull request content and metadata, opens documentation pull requests, and comments on pull requests. | | Contents | Read and write | Reads repository files and structure, and creates and updates documentation files. | | Commit statuses | Read-only | Reads the status of commits and pull requests. | | Checks | Read-only | Receives check suite events and reads failing check runs, so it can fix CI failures on its documentation pull requests. | | Issues | Read-only | Reads repositories and pull requests while it researches changes, and receives pull request comments, such as feedback on a documentation pull request. | | Webhooks | Read and write | Manages webhook configuration and receives repository events as they happen. | Without the **Checks** permission, Promptless can’t detect or fix CI failures on its documentation pull requests. ![GitHub Enterprise Repository Permissions Overview](https://promptless-customer-doc-assets.s3.amazonaws.com/docs-images/org_2lvkgU9erOFxYhtEVVC0ymPrPdF/41ffdf0d-27c1-4927-b1fc-b0183443a066-github-enterprise-permissions-overview.png) ## Step 5: Subscribe to webhook events [Section titled “Step 5: Subscribe to webhook events”](#step-5-subscribe-to-webhook-events) Select these events, so Promptless receives every notification it acts on: | Event | Sent when | | --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ | | Pull request | A pull request is opened, updated, or closed. | | Pull request review | A pull request review is submitted. | | Pull request review thread | A review thread is created or updated. | | Pull request review comment | A review comment is made. | | Issue comment | A comment is added to a pull request, including feedback on a documentation pull request. | | Check suite | CI checks finish, so Promptless can fix failures on its documentation pull requests. Requires the **Checks** permission from Step 4. | | Push | Code is pushed to a repository. | | Release | A release is created or updated. | | Repository | Repository settings change. | ![GitHub Enterprise Webhook Events](https://promptless-customer-doc-assets.s3.amazonaws.com/docs-images/org_2lvkgU9erOFxYhtEVVC0ymPrPdF/41ffdf0d-27c1-4927-b1fc-b0183443a066-github-enterprise-webhook-events-updated.png) ## Step 6: Allow Promptless IP addresses [Section titled “Step 6: Allow Promptless IP addresses”](#step-6-allow-promptless-ip-addresses) If your GitHub Enterprise instance is behind a firewall or uses IP restrictions, add these addresses to your allow list. Promptless needs them for webhook delivery and API calls. If they’re blocked, Promptless can’t receive GitHub events or access your repositories. ```text 3.143.177.103 3.131.121.250 3.13.184.175 18.223.104.40 ``` API requests from Promptless appear in your GitHub Enterprise logs from `3.143.177.103`, the primary egress address (NAT gateway) for Promptless infrastructure. ## Step 7: Generate credentials [Section titled “Step 7: Generate credentials”](#step-7-generate-credentials) On the GitHub App settings page, generate the credentials you enter when you connect Promptless: 1. At the bottom of the page, select **Generate a private key**, and save the downloaded `.pem` file. 2. In the **Client secrets** section, select **Generate a new client secret**, and copy the secret. 3. Note the **App ID** at the top of the page, and the **Client ID** from the same settings page. Caution The private key and client secret give access to your GitHub Enterprise instance. Store them as highly sensitive credentials. ## Step 8: Install the app [Section titled “Step 8: Install the app”](#step-8-install-the-app) 1. Install the GitHub App on your organization. 2. Choose the repositories Promptless can access. 3. Complete the installation, and note the installation ID. ## Step 9: Connect the app to Promptless [Section titled “Step 9: Connect the app to Promptless”](#step-9-connect-the-app-to-promptless) Have these values ready: | Value | Where to find it | | ------------------------------------------- | --------------------------------------------------------------------------------- | | GitHub Enterprise URL | Your instance’s public host. See [Hostname requirements](#hostname-requirements). | | App ID and Client ID | Your GitHub App settings | | Client secret and private key (`.pem` file) | Step 7 | | Installation ID | Step 8 | Then connect the integration: 1. In the [Promptless dashboard](https://app.gopromptless.ai), open the **Integrations** page. 2. On the GitHub Enterprise tile, select **Connect GitHub Enterprise**, and enter the values. ![GitHub Enterprise Connection Interface](https://promptless-customer-doc-assets.s3.amazonaws.com/docs-images/org_2lvkgU9erOFxYhtEVVC0ymPrPdF/8a5d1abd-3c56-4c5f-a7b1-340ecd794940-github-enterprise-connect-button.png) When the connection succeeds, the dashboard confirms that the GitHub Enterprise integration is active. If the hostname fails validation, the connection fails with an error. ## Troubleshoot the connection [Section titled “Troubleshoot the connection”](#troubleshoot-the-connection) Webhook deliveries fail * Confirm that the [Promptless IP addresses](#step-6-allow-promptless-ip-addresses) are allowed. * Check that your GitHub Enterprise instance can reach the webhook URL. * Make sure the SSL verification setting matches your security requirements. * Review the GitHub Enterprise logs for webhook delivery errors. Authentication fails * Check the callback and setup URLs from Step 2. * Confirm that the private key and client secret are valid. * Check that the App ID matches your GitHub App. * Confirm that the installation completed. Promptless reports permission errors * Confirm that every permission in Step 4 is granted. * Check that the app is installed on the right repositories. * Confirm the webhook events from Step 5. * If Promptless doesn’t fix failed CI checks on its pull requests, confirm the **Checks** read-only permission and the **Check suite** event. * Check that users have access to the repositories. For help with configuration or troubleshooting, email . For other questions, email . ## See also [Section titled “See also”](#see-also) * [GitHub integration](/docs/for-docs/reference/integrations/github), for standard GitHub.com organizations * [Source control](/docs/for-docs/connect/source-control), to compare GitHub, GitHub Enterprise, and GitLab connections * [GitHub pull requests](/docs/for-docs/connect/triggers/github-prs), to start documentation updates from pull requests # GitHub (read-only) integration > Install the read-only Promptless GitHub App when you cannot grant write access; Promptless reads any repository and publishes to public ones through a fork. ## Overview [Section titled “Overview”](#overview) Install the read-only Promptless GitHub App when your team can’t grant a third-party or AI app write access to its repositories. Open-source maintainer groups are the most common case. With the read-only app, Promptless receives webhooks and reads repositories, and it publishes documentation through a pull request from its own fork. Reading works on any repository you grant, including private source code repositories you connect for [triggers](/docs/for-docs/connect/triggers) or [context](/docs/for-docs/connect/context-sources). Publishing through a fork works only for public repositories. For most teams, the [standard GitHub App](/docs/for-docs/reference/integrations/github) is the better fit. The two apps differ in these ways: | Capability | Standard GitHub App | GitHub (read-only) app | | ---------------------------------------------------------------------------- | ----------------------------------------------------- | ---------------------------------------------------------------------- | | Repository access | Read and write | Read-only, plus webhooks | | Triggers and context | Public and private repositories | Public and private repositories | | Publishing | A branch and pull request directly on your repository | A pull request from the Promptless fork into your upstream base branch | | Repositories Promptless can publish to | Public and private | Public only | | [Updating contributor PRs](/docs/for-docs/start-here/open-source-quickstart) | Supported | Not supported | You can use both apps in the same GitHub organization, with the standard app on some repositories and the read-only app on others. In this guide, you install the read-only app. Then you set up a public repository as a doc collection that Promptless publishes to through a fork. ## Before you start [Section titled “Before you start”](#before-you-start) * An admin role in your Promptless organization. * An owner of the GitHub organization or account that holds the repositories. If you aren’t an owner, you can request approval during setup. * For publishing, a public documentation repository. ## Connect the read-only app [Section titled “Connect the read-only app”](#connect-the-read-only-app) You need an admin role in your Promptless organization to connect an integration. 1. In the Promptless dashboard, open the [Integrations](https://app.gopromptless.ai/integrations) page. 2. Select **Connect GitHub (read-only)**. 3. In GitHub, grant the app access to the repositories you want Promptless to work with. For open-source publishing, include the public repository whose docs you want to keep current. The integration appears on the Integrations page as its own **GitHub (read-only)** card. To change which repositories Promptless can access, select **Configure in GitHub** on that card. It opens the app’s installation page in GitHub. ## Publish documentation through a fork [Section titled “Publish documentation through a fork”](#publish-documentation-through-a-fork) To publish to a repository connected through the read-only app, set it up as a [doc collection](/docs/for-docs/connect/doc-locations/github-repos). In the dashboard’s Form mode, Promptless fills in the doc collection’s `platform` field from the connected integration. In `promptless.yaml`, set `platform: github_oss` on the [doc collection](/docs/for-docs/reference/configuration-reference#doc-collections). This value selects the fork-based publishing flow and pins the doc collection to the read-only integration. Caution Fork-based publishing works only for public repositories, because Promptless can’t fork a private one. A doc collection in a private repository needs the [standard GitHub App](/docs/for-docs/reference/integrations/github). ### How publishing works [Section titled “How publishing works”](#how-publishing-works) The read-only app has no write permission, so Promptless can’t push branches or open pull requests on your repository. Instead, when it has a documentation update to publish: 1. Promptless forks your repository into a GitHub organization that Promptless owns. It creates the fork the first time it publishes, so no fork appears right after you set up the doc collection. 2. It pushes a documentation branch to the fork. 3. It opens a pull request from the fork into your repository’s upstream base branch. A shared Promptless service account performs every write in this flow. It creates the fork, pushes the branch, opens the pull request, and posts the linking comment. That account usually can’t add labels to pull requests in your repository. When GitHub denies the label request, the pull request still opens without the labels, and the labels stay on the suggestion in Promptless. If your review process depends on labels, a maintainer adds them in GitHub. ### Example [Section titled “Example”](#example) A public open-source project’s maintainers won’t grant write access to any external app. They install the read-only app, connect the project’s source and docs repositories, and set up a doc collection for the docs repository. When a contributor’s pull request merges, Promptless drafts the documentation update and pushes the branch to its fork. It then opens a pull request into the project’s upstream base branch. Maintainers review and merge it like any other community contribution. Promptless never holds write access to the repository. ## See also [Section titled “See also”](#see-also) * [GitHub repos](/docs/for-docs/connect/doc-locations/github-repos), to set up a GitHub repository as a doc collection * [Promptless ❤️ Open Source](/docs/for-docs/start-here/open-source-quickstart), to get started with Promptless on an open-source project * [Source control and access scope](/docs/for-docs/connect/source-control), to compare the access each Git provider connection grants # GitLab integration > Connect GitLab with a group access token so Promptless handles triggers, context, and publishing across gitlab.com and self-hosted projects. ## Overview [Section titled “Overview”](#overview) Connect a GitLab group to Promptless so it can start documentation work from your merge requests, read your code for context, and publish documentation updates. Promptless supports both gitlab.com and self-hosted GitLab. The connection works in two directions. Promptless uses a GitLab group access token to pull merge requests, repository files, and project metadata from GitLab. GitLab uses webhooks to notify Promptless when merge requests change. Because the token belongs to a group, one connection covers triggers, context, and publishing for that group’s projects: | Capability | What Promptless does | gitlab.com | Self-hosted GitLab | | ----------------------------- | ---------------------------------------------------------------------------------------------------- | ---------- | ------------------ | | Merge request triggers | Reviews merge requests that open or merge in monitored projects, and suggests documentation changes. | Yes | Yes | | Merge request link resolution | Fetches a merge request’s content when you share its link in a Slack message or other trigger. | Yes | No | | Source code reading | Reads files from your projects for context that a merge request diff doesn’t show. | Yes | No | | Publishing | Opens merge requests with documentation updates in projects you set up as doc collections. | Yes | Yes | Merge request link resolution fetches the title, state, source and target branches, author, discussion comments with file positions and resolved state, and the full diff. Source code reading uses the GitLab CLI (`glab`) to fetch files that a merge request references but doesn’t change. Promptless uses them to describe existing code and implementation behavior accurately. In this guide, you create a group access token, connect it in Promptless, and then set up merge request triggers and publishing. ## Before you start [Section titled “Before you start”](#before-you-start) * The **Owner** role on the GitLab group. GitLab restricts group access token creation to group Owners, so if you don’t have the role, ask a group Owner to create the token. * An admin role in your Promptless organization. Only organization admins can connect integrations. * For a self-hosted instance, its hostname, such as `gitlab.acme.com`. ### Token requirements [Section titled “Token requirements”](#token-requirements) The GitLab integration authenticates with a group access token that meets these requirements: | Requirement | Value | Why | | ----------- | ------------------ | ------------------------------------------------------------------------------------- | | Token type | Group access token | One token covers a group and its subgroups. GitLab lets only group Owners create one. | | Scope | `api` | Connecting a group creates webhooks, which a read-only `read_api` token can’t do. | | Role | Maintainer | Creating the merge-request webhooks requires the Maintainer role. | ### Token scope considerations [Section titled “Token scope considerations”](#token-scope-considerations) GitLab has no read-only option. Connecting a GitLab group always writes to GitLab with the group access token. Promptless creates the merge-request webhooks across the group’s projects, and it also sets the Promptless bot avatar. Webhook creation is the hard blocker. A read-only `read_api` token can’t create those webhooks, so the group connects but delivers no merge request triggers. Promptless offers a [GitHub (read-only) app](/docs/for-docs/reference/integrations/github-read-only), but GitLab has no equivalent. Even a setup that uses GitLab only for triggers and context needs a write-capable token. Maintainer is the effective requirement for any GitLab connection, whether you use it as a trigger and context source, a docs destination, or both. Publishing on its own (pushing a branch and opening a merge request) needs at least the Developer role. Every connection also sets up the merge-request webhooks, and creating them requires Maintainer. A Developer-role token completes the initial connection, but Promptless can’t create its webhooks and doesn’t report the failure. The connection then fails on the next refresh, so a Developer-role token isn’t a viable option. Use the `api` scope with the Maintainer role. Two layers limit what Promptless can reach: * The token’s group is a hard, token-level limit. A token scoped to a group or subgroup that contains only your documentation projects can’t reach anything outside it. That setup works only when your trigger and context source projects live in the same group or subgroup as your documentation projects. Otherwise the token can’t reach the source projects. * The doc collection is an application-level limit. Promptless enforces it, and the token doesn’t. Promptless writes only to the projects you configure as doc collections, and a doc collection’s path scope limits which files Promptless can change. ## Connect a GitLab group [Section titled “Connect a GitLab group”](#connect-a-gitlab-group) You need the **Owner** role on the GitLab group to create its access token, and an admin role in your Promptless organization to connect it. If you aren’t a group Owner, ask one to create the token. 1. In GitLab, go to your group’s **Settings > Access Tokens** and select **Add new token**. 2. Name the token, for example “Promptless”, and set an expiration date. The maximum is one year. 3. Select the **`api`** scope and the **Maintainer** role. 4. Select **Create group access token**, and copy the token. GitLab shows it only once. The token starts with `glpat-`. For more details, see [GitLab’s group access token documentation](https://docs.gitlab.com/user/group/settings/group_access_tokens/). 5. In the Promptless dashboard, open the [Integrations](https://app.gopromptless.ai/integrations) page. 6. Start the connection. For a gitlab.com group, select **Connect GitLab** on the **GitLab** tile. For a self-hosted instance, select **Connect Self-hosted GitLab** on the **Self-hosted GitLab** tile, and enter your **Instance hostname**. Enter only the host, with no `https://` and no path. 7. In the **Group path** field, enter the group’s full path, for example `acme/platform`. 8. Paste the token into the **Access token** field, and select **Connect**. ![Connect GitLab modal with Group path and Access token fields and a Connect button](https://promptless-customer-doc-assets.s3.us-east-2.amazonaws.com/docs-images/org_3DaVKUzHgjyjaODgCPaDmjXezqp/gitlab-connect-modal-aeb67dd0.png) The token must be a group access token with the **`api`** scope and the **Maintainer** role. Promptless uses it to create the merge-request webhooks, and a read-only `read_api` token or a Developer-role token can’t create them. For why, see [Token scope considerations](/docs/for-docs/reference/integrations/gitlab#token-scope-considerations). The group gets its own card on the [Integrations](https://app.gopromptless.ai/integrations) page. To connect another group, select **Connect GitLab** or **Connect Self-hosted GitLab** again and repeat these steps with that group’s token. The group’s card lists its projects by full path, for example `promptless-engineers/`. Promptless sets up webhooks in the group’s projects automatically. Each webhook subscribes to these GitLab events: | GitLab event | What Promptless does with it | | -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Merge request events | Starts a review when a merge request opens or merges. | | Comments | Picks up merge request comments that mention Promptless, so a tagged comment can request documentation work. See [Request documentation via merge-request comments](/docs/for-docs/connect/triggers/gitlab-merge-requests#request-documentation-via-merge-request-comments). | If a Promptless webhook is missing either event, Promptless restores it the next time it syncs the group’s webhooks. ### Connect more GitLab groups [Section titled “Connect more GitLab groups”](#connect-more-gitlab-groups) A group access token grants access to one group and its subgroups. To cover more than one top-level group, connect one token per group. Every group you connect stays active. You can connect sibling or nested groups, and groups on different GitLab instances, both gitlab.com and self-hosted. ### Refresh a group’s project list [Section titled “Refresh a group’s project list”](#refresh-a-groups-project-list) Promptless reads a group’s project list when you connect the group. * To pick up projects added to the group later, select **Refresh access** on the group’s card on the [Integrations](https://app.gopromptless.ai/integrations) page. ## Add merge request triggers [Section titled “Add merge request triggers”](#add-merge-request-triggers) Choose which projects start documentation work by adding a [GitLab merge request trigger](/docs/for-docs/connect/triggers/gitlab-merge-requests) and selecting its projects. To trigger only on changes in specific directories, such as `src/api` or `docs/reference`, fill in **Only when files in these folders change** on the trigger (`trigger_directories` in YAML). Use it to focus on user-facing code and API changes, and to skip internal tooling and test changes. When a merge request opens or merges in a monitored project, Promptless runs automatically: 1. Promptless analyzes the changes to determine whether documentation needs updates. 2. If it does, Promptless generates the documentation changes. 3. Promptless comments on the merge request with a link to review the documentation changes. 4. You review and approve the suggested updates in the Promptless dashboard. For how triggers work in general, see [Triggers](/docs/for-docs/connect/triggers). ## Publish documentation to GitLab [Section titled “Publish documentation to GitLab”](#publish-documentation-to-gitlab) A GitLab project can also be a doc collection: a place where your documentation lives and where Promptless publishes updates. When documentation needs to change, Promptless clones the project, edits files on a new branch, and pushes that branch. It then opens a merge request for you to review, the same way it opens pull requests on GitHub. Publishing uses the `api` scope the group access token already has. GitLab doc collections work on both gitlab.com and self-hosted GitLab, and you set them up the same way. The project picker lists your connected GitLab projects across every connected instance. For a self-hosted project, enter its hostname in the **GitLab host** field. Leave the field blank for gitlab.com. For setup details, see [GitLab projects](/docs/for-docs/connect/doc-locations/gitlab-projects). For the `platform: gitlab` and `host` fields, see [the configuration reference](/docs/for-docs/reference/configuration-reference#doc-collections). Promptless tracks merge request status the same way it tracks GitHub pull request status. GitLab has no draft flag at creation time, so Promptless marks a draft merge request with a `Draft:` title prefix. With auto-merge on, Promptless attempts the merge immediately. If GitLab can’t merge it yet, for example because a required pipeline hasn’t passed, the merge request stays open for you to merge. See [Automatic merge request creation](/docs/for-docs/connect/doc-locations/gitlab-projects#automatic-merge-request-creation) before you enable it. ## Fix common connection problems [Section titled “Fix common connection problems”](#fix-common-connection-problems) | Problem | Cause | Fix | | --------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------- | | You connected a GitLab group, but no merge request triggers arrive. | A read-only `read_api` token can’t create the merge-request webhooks, so the group connects but stays inert. | Recreate the token with the `api` scope and the Maintainer role, then reconnect. | | The token has the `api` scope, but you still get no merge request triggers. | A Developer-role token can’t create the merge-request webhooks. Only the Maintainer role can. | Recreate the token with the Maintainer role, then reconnect. | | A project you added to the group doesn’t appear under the connected group. | Promptless reads the project list when you connect a group, so it doesn’t show projects added later. | Select **Refresh access** on the group’s card on the [Integrations](https://app.gopromptless.ai/integrations) page. | For why GitLab has no read-only option and why the token needs the Maintainer role, see [Token scope considerations](#token-scope-considerations). ## See also [Section titled “See also”](#see-also) * [GitLab merge requests](/docs/for-docs/connect/triggers/gitlab-merge-requests), to configure which merge requests start documentation work * [GitLab projects](/docs/for-docs/connect/doc-locations/gitlab-projects), to set up a GitLab project as a doc collection * [Source control and access scope](/docs/for-docs/connect/source-control), to compare GitHub, GitHub Enterprise, and GitLab connections # LaunchDarkly integration (beta) > Connect LaunchDarkly with a service token so a configured LaunchDarkly flag trigger can start documentation work when a feature flag changes. ## Overview [Section titled “Overview”](#overview) Connect LaunchDarkly so Promptless can start documentation work when a feature flag changes. Connecting creates a webhook in your LaunchDarkly account that sends Promptless flag-change events from all your projects. The connection alone starts no work. A [LaunchDarkly flag trigger](/docs/for-docs/connect/triggers/launchdarkly) decides which flag changes start documentation work. Promptless reads projects and flag state, and it manages only its own webhook. It never edits a flag. The LaunchDarkly integration is in beta. In this guide, you create a LaunchDarkly service token, connect it in Promptless, and disconnect when you no longer need flag-triggered work. ## Before you start [Section titled “Before you start”](#before-you-start) * An admin role in your Promptless organization. * A LaunchDarkly account that can create access tokens. ## Connect LaunchDarkly [Section titled “Connect LaunchDarkly”](#connect-launchdarkly) You need an admin role in your Promptless organization to connect LaunchDarkly, and a LaunchDarkly account that can create access tokens. 1. In LaunchDarkly, open [Authorization settings](https://app.launchdarkly.com/settings/authorization) and create an access token. 2. Mark the token as a **service token**. A service token isn’t tied to an individual user, so the integration keeps working when team members leave. 3. For the token’s role, select **Inline policy**. 4. Enter this policy: ```json [ { "effect": "allow", "actions": ["createWebhook", "deleteWebhook"], "resources": ["webhook/*"] }, { "effect": "allow", "actions": ["viewProject"], "resources": ["proj/*"] } ] ``` The policy grants Promptless the minimum permissions it needs: * `createWebhook` and `deleteWebhook` on `webhook/*` let Promptless manage its subscription to flag-change events. * `viewProject` on `proj/*` lets Promptless view projects and flag state. 5. Save the token, and copy it. For more on API access tokens, see the [LaunchDarkly docs](https://launchdarkly.com/docs/home/account/api-create). 6. On the Promptless [Integrations](https://app.gopromptless.ai/integrations) page, select **Connect LaunchDarkly**. 7. Paste the service token into the modal, and select **Connect**. Promptless validates the token and creates a webhook in your LaunchDarkly account that delivers flag-change events. LaunchDarkly then shows as connected on the Integrations page. Promptless authenticates to LaunchDarkly with the service token. It verifies each webhook delivery with an HMAC-SHA256 signature, using a signing secret unique to your connection. ## Disconnect LaunchDarkly [Section titled “Disconnect LaunchDarkly”](#disconnect-launchdarkly) * On the [Integrations](https://app.gopromptless.ai/integrations) page, on the LaunchDarkly card, select **Disconnect LaunchDarkly**. Promptless removes its webhook from your LaunchDarkly account, and flag changes stop reaching Promptless. To revoke the service token too, delete it in LaunchDarkly’s [Authorization settings](https://app.launchdarkly.com/settings/authorization). ## See also [Section titled “See also”](#see-also) * [LaunchDarkly flag trigger](/docs/for-docs/connect/triggers/launchdarkly), to choose which flag changes start documentation work * [Connection health](/docs/for-docs/connect/connection-health), if a flag trigger stops starting documentation work after a disconnect, a revoked token, or a failed webhook signature check # Linear integration > Connect Linear through OAuth so Promptless reads your project management data for documentation context. ## Overview [Section titled “Overview”](#overview) Connect Linear so Promptless can read your Linear issues and projects as context when it drafts documentation. For example, when a pull request mentions a feature, Promptless can find the related Linear issue and reuse the reasoning recorded there. Promptless connects through [Linear’s OAuth 2.0 flow](https://developers.linear.app/docs/oauth/authentication) and refreshes its access token automatically. In this guide, you connect a Linear workspace, then reconnect it if Linear stops accepting Promptless’s access. ## Before you start [Section titled “Before you start”](#before-you-start) * An admin role in your Promptless organization. * A Linear account in the workspace you want to connect. Promptless reads only the teams that account can access. ## Connect Linear [Section titled “Connect Linear”](#connect-linear) You need an admin role in your Promptless organization to connect Linear. Promptless reads Linear with the permissions of the Linear account that signs in during the connection. 1. On the Promptless [Integrations](https://app.gopromptless.ai/integrations) page, select **Connect Linear**. 2. If Linear asks you to log in, log in to the Linear workspace you want to connect. ![Log in to Linear screen with Google, email, SAML SSO, and passkey options](/assets/linear-signin.png) 3. After Linear redirects you to Promptless, confirm that Linear shows as connected on the Integrations page. The Linear card lists the teams Promptless can reach. To review or revoke Promptless’s access from Linear, select **Review access in Linear** on the card. ## Reconnect Linear [Section titled “Reconnect Linear”](#reconnect-linear) When Linear stops accepting Promptless’s access, the Linear card on the [Integrations](https://app.gopromptless.ai/integrations) page shows a **Reconnect Linear** callout. Promptless can’t read Linear issues until you reconnect. Linear stops accepting access when Promptless can’t refresh its token, or when someone removes the Promptless authorization in Linear. 1. On the Linear card, select **Reconnect Linear**. 2. In Linear, approve access for Promptless. When the card lists your teams again, Promptless can read your Linear issues. ## See also [Section titled “See also”](#see-also) * [Linear context source](/docs/for-docs/connect/context-sources/linear), to choose how Promptless uses Linear for context * [Connection health](/docs/for-docs/connect/connection-health), to find and fix other integrations that stopped working # Microsoft Teams integration (beta) > Connect the Promptless Microsoft Teams app to trigger documentation updates from your team's conversations. Note The Microsoft Teams integration is in beta. To turn it on for your organization, contact . ## Overview [Section titled “Overview”](#overview) Install the Promptless app in your Microsoft Teams tenant so your team can start documentation work from Teams conversations. With Teams connected, you can: * Tag @Promptless in channels, threads, group chats, or a personal chat. * Run the **Update docs with Promptless** message action on any message. * Turn on [passive channel listening](/docs/for-docs/get-the-most-out/passive-channel-listening) for the channels you select. * [Ask Promptless to update your configuration](/docs/for-docs/get-the-most-out/ask-promptless-to-update-config), such as your triggers and doc collections. By default, Promptless reads Teams content only when someone mentions it or uses the message action. With passive listening on, it also reads the channels you select, and only those. Promptless doesn’t archive or store your Teams messages. It uses large language models (LLMs) from OpenAI and Anthropic, which can generate inaccurate results. In this guide, you install the Teams app, link your tenant to Promptless, and choose which SharePoint sites Promptless can read shared files from. ## Before you start [Section titled “Before you start”](#before-you-start) * An admin role in your Promptless organization. * Access to the Microsoft Teams admin center, with permission to manage app setup policies and install third-party apps. * A Microsoft admin to approve the admin-consent sign-in that links your tenant. * To let Promptless read files shared in channels, a SharePoint Administrator or Global Administrator with PowerShell. ### Key permissions [Section titled “Key permissions”](#key-permissions) Promptless requests these permissions through Teams resource-specific consent (RSC). A team owner consents to them when the app is installed in a team: | Permission | What Promptless uses it for | | ---------------------------- | ---------------------------------------------------------------------------------- | | `ChannelMessage.Read.Group` | Reads channel messages without an @mention, for passive listening. | | `TeamMember.Read.Group` | Resolves the identities of team members. | | `ChannelSettings.Read.Group` | Lists the team’s channels and their membership types, such as standard or private. | The app also has standard bot permissions, which let it send messages and notifications and read user information for mentions. ## Connect Microsoft Teams [Section titled “Connect Microsoft Teams”](#connect-microsoft-teams) To install Promptless in Microsoft Teams, you need: * Microsoft Teams admin center access * Permissions to manage app setup policies in your organization * Ability to install and configure third-party apps Connecting Teams has two stages. First, install the Promptless app into your Teams tenant (steps 1–3). Then link that tenant to your Promptless organization (step 4). The two stages are independent, and you can link before you install. Installing first, as numbered below, is the simplest path. 1. Download the Promptless Teams app package from the [Promptless integrations page](https://app.gopromptless.ai/integrations). ![Download Teams app package from Promptless integrations page](https://promptless-customer-doc-assets.s3.amazonaws.com/docs-images/org_2lvkgU9erOFxYhtEVVC0ymPrPdF/996a81d2-7bb6-4b6b-95d3-ef076c150450-teams-integrations-page-download.png) 2. Upload the Promptless Teams app: 1. Go to the [Microsoft Teams admin center](https://admin.teams.microsoft.com). 2. In the left navigation, under **Teams apps**, select **Manage apps**. Manage apps controls which apps users in your organization can install. 3. Select **Actions** > **Upload new app**. 4. Choose the Promptless Teams app package you downloaded. 5. Select **Upload**. ![Manage Apps](https://promptless-customer-doc-assets.s3.amazonaws.com/docs-images/org_2lvkgU9erOFxYhtEVVC0ymPrPdF/0042d96c-e3e7-42b7-8ee9-3d5cda74a0d4-teams-admin-center-app-setup-policies.png) ![Teams Manage Apps Overview](https://promptless-customer-doc-assets.s3.amazonaws.com/docs-images/org_2lvkgU9erOFxYhtEVVC0ymPrPdF/0042d96c-e3e7-42b7-8ee9-3d5cda74a0d4-teams-manage-apps-overview.png) ![Teams Upload Custom App Dialog](https://promptless-customer-doc-assets.s3.amazonaws.com/docs-images/org_2lvkgU9erOFxYhtEVVC0ymPrPdF/0042d96c-e3e7-42b7-8ee9-3d5cda74a0d4-teams-upload-custom-app-dialog.png) 3. Grant users access to the app: 1. In the left navigation, select **Setup policies**. ![Teams Global Policy Configuration](https://promptless-customer-doc-assets.s3.amazonaws.com/docs-images/org_2lvkgU9erOFxYhtEVVC0ymPrPdF/0042d96c-e3e7-42b7-8ee9-3d5cda74a0d4-teams-global-policy-configuration.png) 2. Select the **Global (Org-wide default)** policy. 3. Turn on **Upload custom apps** and **User pinning** if they’re off. Users need these settings to install and pin custom apps like Promptless. 4. Under **Installed apps**, select **Add apps**. ![Global Policy](https://promptless-customer-doc-assets.s3.amazonaws.com/docs-images/org_2lvkgU9erOFxYhtEVVC0ymPrPdF/0042d96c-e3e7-42b7-8ee9-3d5cda74a0d4-teams-add-apps-button.png) 5. Search for “Promptless”, and add it to the policy. 6. Select **Save**. 4. Link your Teams tenant to Promptless. This stage happens in Promptless, outside the Microsoft Teams admin center: 1. On the [Promptless integrations page](https://app.gopromptless.ai/integrations), find the **Microsoft Teams** integration. 2. Select **Link App & Grant Read Channels**. This starts a Microsoft admin-consent sign-in that only a Microsoft admin can approve. If you’re not an admin, ask your Microsoft admin to complete this step. 3. Approve the sign-in. This links your tenant to your Promptless organization. Until your tenant is linked, the Promptless bot can’t map incoming Teams messages back to your organization. It replies that no workspace is connected. If the button reads **Contact Promptless**, OAuth isn’t configured for your organization yet. Email to finish connecting. To let Promptless read files attached in Teams channels, a Microsoft tenant administrator also chooses which SharePoint sites it can read from. See [Choose which shared files Promptless can read](/docs/for-docs/reference/integrations/microsoft-teams#choose-which-shared-files-promptless-can-read). When someone adds Promptless to their personal chat, Promptless sends a welcome message. It explains how to ask an admin to connect the tenant, how to mention `@Promptless`, and how to use the **Update docs with Promptless** message action. If someone uses Promptless before your tenant is linked, Promptless points them to the [Integrations](https://app.gopromptless.ai/integrations) page, where an admin can finish the connection. ## Add Promptless to channels [Section titled “Add Promptless to channels”](#add-promptless-to-channels) Promptless receives messages only from channels in teams where the app is installed. To use Promptless in a channel: 1. Install the Promptless Teams app in the team that contains the channel. 2. Optional. To have Promptless read the channel without an @mention, add the channel to your [passive listening configuration](/docs/for-docs/get-the-most-out/passive-channel-listening). ## Choose which shared files Promptless can read [Section titled “Choose which shared files Promptless can read”](#choose-which-shared-files-promptless-can-read) Promptless reads files from Teams as context for the documentation it drafts. What it can read depends on where the file was shared: | Where the file was shared | What Promptless reads | | ------------------------- | ------------------------------------------------------------------------------------------------------- | | A personal (1:1) chat | Attached files and images, and inline images you paste into a message. | | A channel | Inline images, and attached files stored on a SharePoint site that a Microsoft admin granted access to. | | A group chat | Nothing that’s attached or pasted, including inline images. | A file on a SharePoint site without a grant shows as unavailable instead of being read. Access is granted per SharePoint site, not per channel. A team’s standard channels share one site, and each private or shared channel has its own site. To grant access to a site, a SharePoint Administrator or Global Administrator completes these steps after the Teams connection is approved: 1. On the [Integrations](https://app.gopromptless.ai/integrations) page, on the Microsoft Teams card, select **Choose SharePoint sites**. After the first grant, the button reads **Manage SharePoint site access**. 2. Select each site whose files Promptless should read. 3. Copy the permission command the dialog generates, and run it in PowerShell. 4. Select **Verify access**. The card lists each granted site. A private or shared channel’s site appears only to its members. To grant one, reconnect Microsoft Teams as an admin who belongs to that channel. If your organization linked Teams before Promptless could read channel files, an admin reconnects and picks sites before channel files become available. ## See also [Section titled “See also”](#see-also) * [Review from Slack and Teams](/docs/for-docs/work-the-queue/reviewing-from-slack-and-teams#microsoft-teams), to work with suggestions from Teams * [Get the most out of passive channel listening](/docs/for-docs/get-the-most-out/passive-channel-listening), to pick channels and set up listening * [Ask Promptless to update your configuration](/docs/for-docs/get-the-most-out/ask-promptless-to-update-config), to change triggers and doc collections from a chat # Slack integration > Connect the Promptless Slack app for documentation triggers and context from your team's conversations. ## Overview [Section titled “Overview”](#overview) Connect the Promptless Slack app so your team can start documentation work from Slack conversations and get notified when suggestions are ready. One connection covers these jobs: | Capability | What Promptless does | Set it up | | ------------- | ---------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | | Triggers | Starts documentation work when someone tags @Promptless, uses the **Update Docs** message action, or sends a DM. | [Slack messages](/docs/for-docs/connect/triggers/slack-messages) | | Context | Reads the thread where you trigger it, and Slack threads that a request links to. | [Slack messages](/docs/for-docs/connect/triggers/slack-messages) | | Notifications | Posts to your notification channel when suggestions are created, updated, or published. | [Customize notifications](/docs/for-docs/tune/notifications) | | Configuration | Updates your triggers, doc collections, and other configuration when you ask in Slack. | [Ask Promptless to update your configuration](/docs/for-docs/get-the-most-out/ask-promptless-to-update-config) | By default, Promptless reads Slack only when someone triggers it. If you turn on [passive channel listening](/docs/for-docs/get-the-most-out/passive-channel-listening), Promptless also reads the channels you select, and only those. Promptless doesn’t archive or store your Slack messages. It uses large language models (LLMs), which can generate inaccurate results. In this guide, you install the Slack app, add Promptless to private channels, and grant permissions that Promptless adds later. ## Before you start [Section titled “Before you start”](#before-you-start) * An admin role in your Promptless organization. * Permission to install apps in your Slack workspace, or a Slack workspace admin who can approve the request. ## Connect Slack [Section titled “Connect Slack”](#connect-slack) 1. On the [Integrations page](https://app.gopromptless.ai/integrations), select **Connect Slack**. Slack opens in a new window. If your browser blocks the window, allow pop-ups for Promptless and select **Connect Slack** again. 2. In the Slack window, select the workspace where you want to install Promptless. 3. Review and approve the permissions the Promptless Slack app requests. Promptless needs them to respond to the right events in Slack and to notify your team when updates are available. For what each permission does, see [Key permissions](/docs/for-docs/reference/integrations/slack#key-permissions). 4. On the Integrations page, verify that Slack shows as connected. Some Slack workspaces require an admin to approve apps before anyone can install them. If you aren’t a workspace admin, Slack sends your request to an admin, and setup waits for their approval. The steps are the same from onboarding and from the Integrations page, and your pending request persists across page reloads and sessions. 1. In the Slack window, follow Slack’s prompts to send the request. Slack may notify you when an admin approves Promptless. 2. Wait for the admin’s decision. Until you finish the install, a pending card in onboarding or on the Integrations page shows that Promptless isn’t installed in Slack yet. Promptless can’t see the admin’s decision, so the card stays pending. 3. After an admin approves, select **Continue in Slack** on the pending card. Slack runs authorization again and connects Promptless. If you close the window or lose your network connection before you finish, the request stays pending. Select **Continue in Slack** to try again. If Slack reports that the attempt was denied or failed, Promptless clears the request, and you start a new one. ### Key permissions [Section titled “Key permissions”](#key-permissions) Slack’s approval screen lists every permission the Promptless Slack app requests. These are the ones that control what you can do in Slack: | Permission | What Promptless uses it for | | ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------- | | `channels:read`, `groups:read` | Lists public channels, and private channels Promptless was invited to, so you can pick them as a notification channel or trigger source. | | `channels:join` | Joins a public channel before posting there or listening to it, so Promptless receives replies to its messages without an invite. | | `chat:write` | Replies in threads and posts suggestion notifications. | | `files:read` | Reads screenshots and logs attached to a request to @Promptless. | | `links:read`, `links:write` | Shows a preview card when someone shares a Promptless suggestion link. | | `users:read` | Shows people’s names instead of user IDs when Promptless replies to mentions. | | `users:read.email` | Matches the person who submitted a task through an MCP editor to their Slack account, so Promptless can DM them the result. | ## Add Promptless to private channels [Section titled “Add Promptless to private channels”](#add-promptless-to-private-channels) Promptless can’t join a private channel, or a channel shared with another workspace through Slack Connect, on its own. Add it yourself when you want to: * Use the channel as your notification channel for suggestions. * Trigger Promptless from messages in the channel. * Turn on passive listening for the channel. To add Promptless, tag `@Promptless` in the channel, and accept Slack’s prompt to invite the app. You can also run `/invite @promptless`. The channel then appears in the dashboard’s channel pickers, with no refresh needed. ## Update Slack permissions [Section titled “Update Slack permissions”](#update-slack-permissions) As Promptless adds Slack features, the app sometimes requests new permissions. A workspace that connected before a permission was added lacks it until you grant it. The Slack card on the [Integrations](https://app.gopromptless.ai/integrations) page then shows a **Grant additional Slack permissions** callout. The callout names each missing permission and what it’s for. 1. In the **Grant additional Slack permissions** callout, select **Update connection**. 2. In Slack, approve the added permissions. Promptless swaps the stored token in place, so your workspace stays connected and your channel memberships and configuration don’t change. The callout only adds capability to a connection that already works. When the authorization itself lapses or is rejected, the card shows **Needs reconnect** instead. See [Connection health](/docs/for-docs/connect/connection-health). ## Troubleshooting [Section titled “Troubleshooting”](#troubleshooting) | Problem | Cause | Fix | | -------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | A private channel doesn’t appear when you choose a notification channel or trigger source. | Promptless isn’t in the channel, or the workspace is missing `groups:read`. | [Add Promptless to the channel](#add-promptless-to-private-channels). If the Slack card names `groups:read` as missing, [update Slack permissions](#update-slack-permissions). | | A shared suggestion link posts as plain text, with no preview card. | The workspace is missing `links:write`. | [Update Slack permissions](#update-slack-permissions). | | Someone who submitted a task through an MCP editor gets no DM when their suggestion is ready. | The workspace is missing `users:read.email`, so Promptless notifies the notification channel instead. | [Update Slack permissions](#update-slack-permissions). | | The MCP submitter still gets no DM after you grant `users:read.email`. | Their Slack account email differs from their Promptless account email, the address shown as “Authorize as {email}” when they authorized the MCP connection. | Use the same email address for both accounts. Updating Slack permissions doesn’t fix this case. | | Promptless posts suggestion notifications in a public channel but doesn’t respond to replies in their threads. | Promptless couldn’t join the channel, often because the workspace is missing `channels:join`. Slack sends thread replies only to channel members. | Run `/invite @promptless` in the channel. Promptless then receives replies, including in threads it posted earlier. If the Slack card names `channels:join` as missing, also [update Slack permissions](#update-slack-permissions). | | Promptless isn’t reading a channel you configured for passive listening, and no error appears. | The channel is private or shared through Slack Connect, or the workspace is missing `channels:join`. | For a private or shared channel, [add Promptless to it](#add-promptless-to-private-channels). For a public channel, [update Slack permissions](#update-slack-permissions). | If a problem persists, contact . ## See also [Section titled “See also”](#see-also) * [Slack messages](/docs/for-docs/connect/triggers/slack-messages), to choose how Slack conversations start documentation work * [Review from Slack and Teams](/docs/for-docs/work-the-queue/reviewing-from-slack-and-teams), to work with suggestions from Slack * [Get the most out of passive channel listening](/docs/for-docs/get-the-most-out/passive-channel-listening), to pick channels and set up listening # Vercel integration > Connect Vercel through OAuth so Promptless reads whether your Starport documentation site built and published. ## Overview [Section titled “Overview”](#overview) Connect Vercel to see in the Promptless dashboard whether your [Starport](/docs/for-docs/starport) documentation site built and published. Promptless reads your site’s recent production deployments, plus the project and domain metadata that identify the site. Access is read-only. Promptless never deploys and never changes your Vercel projects, domains, or environment variables. The integration is optional and applies only to Promptless-managed Starport sites. It also backs the Promptless listing on the Vercel Marketplace, so you can start the installation from Vercel instead. ## Before you start [Section titled “Before you start”](#before-you-start) * An admin role in your Promptless organization. * A Promptless-managed Starport site that deploys to Vercel. ## Connect Vercel [Section titled “Connect Vercel”](#connect-vercel) An organization admin connects Vercel once, through OAuth, for the whole organization. 1. On the Promptless [Integrations](https://app.gopromptless.ai/integrations) page, select **Connect Vercel**. 2. On Vercel, approve read-only access for Promptless. 3. On the Integrations page, confirm that Vercel shows as connected. Monitoring is separate from your Starport deploy Your Starport site deploys to Vercel from CI, using the credentials in [Starport configuration](/docs/for-docs/starport/configuring-starport#configure-deploy-settings). This connection only reads the result. ## Fix connection problems [Section titled “Fix connection problems”](#fix-connection-problems) The [connection health](/docs/for-docs/connect/connection-health) label on the Vercel card reports whether the connection itself is authenticated and reachable. Deployment status appears separately in the dashboard. | What the Vercel card shows | What it means | What to do | | --------------------------------------------- | --------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | | **Problem** | Promptless couldn’t reach or verify Vercel during its latest check. | No action needed. Promptless checks again and returns the card to **Connected** when the check succeeds. | | **Needs reconnect** | The authorization expired or was revoked. | Select **Disconnect Vercel**, then **Connect Vercel**, and approve access again. | | A note that connecting Vercel isn’t turned on | Vercel connections aren’t enabled for your Promptless deployment yet. | Contact to have them enabled. | ## See also [Section titled “See also”](#see-also) * [Monitor a Starport site through read-only connections](/docs/for-docs/starport/connections), to connect Cloudflare Pages or PostHog for the same site * [Configure your Starport site](/docs/for-docs/starport/configuring-starport), to set the deploy settings your site uses # October customer referral program > Know a docs team that would love Promptless? Introduce them by October 31, 2026, and get $2,000 or a sponsored docs conference trip when they become a paying customer. ## Overview [Section titled “Overview”](#overview) Know another docs team that’s struggling with docs debt? Introduce them to Promptless by October 31, 2026. When they become a paying customer, you get $2,000 or a trip to a docs conference, paid for by Promptless. For every referral that becomes a paying customer, pick one reward: | Reward | What you get | | --------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | | Cash | $2,000. | | Conference trip | Promptless sends you or a teammate to the docs conference closest to you, with the ticket, travel, and hotel covered. The trip is worth about $2,000–4,000. | Pick the conference from this list: * [Write the Docs Australia](https://www.writethedocs.org/conf/) in Melbourne, December 3–4, 2026. * [CIDM ConVEx](https://convex.infomanagementcenter.com/) in Seattle, April 26–28, 2027. * [Write the Docs Portland](https://www.writethedocs.org/conf/portland/2027/), May 2–4, 2027. * Write the Docs Berlin, for customers in Europe. The 2027 dates aren’t announced yet. You can refer as many docs teams as you like, and each one that becomes a customer earns its own reward. For example, 10 new customers earn you $20,000, or conference trips for your whole team. ## Before you start [Section titled “Before you start”](#before-you-start) Anyone who works at a Promptless customer can refer, including paying customers, pilot customers, and open source projects that use Promptless. A referral counts when all of these are true: * You make the introduction by October 31, 2026. The team you refer can take as long as they need to sign and pay after that date. * The company is new to Promptless. It isn’t a current customer, and it hasn’t talked with Promptless in the last six months. * You’re the first person to introduce that company. If two people introduce the same company, the first introduction counts. ## Refer a docs team [Section titled “Refer a docs team”](#refer-a-docs-team) * By October 31, 2026, introduce the team to Manny or Prithvi at Promptless, by email or in your shared Slack channel with Promptless. Promptless replies to every introduction within one business day to set up a first call. When the company you referred makes its first payment, Promptless sends your reward. ## See also [Section titled “See also”](#see-also) * [Pricing](/pricing), to share Promptless plans with the team you refer. * [Promptless overview](/docs/for-docs/start-here/welcome), for an introduction your contact can read before the first call. # Manage environment variables > Store credentials, API keys, and configuration values that Promptless uses when interacting with your systems, and mark sensitive values as secrets ## Overview [Section titled “Overview”](#overview) Environment variables store credentials, API keys, and configuration values that Promptless uses when it works with your systems. The most common use is login credentials for [Promptless Capture](/docs/for-docs/get-the-most-out/screenshots), so Promptless can sign in to your application and capture product screenshots. Custom tasks, such as [turning docs analytics into doc-gap suggestions](/docs/for-docs/get-the-most-out/teach-promptless-a-custom-task/analytics-docs-gaps), read API credentials the same way. Promptless sees each variable’s name, so use a name that says what the value is for, such as `TEST_ACCOUNT_USER`, `QA_USERNAME`, or `STAGING_LOGIN_EMAIL`. Mark passwords, API keys, and other sensitive values as secrets. ## Before you start [Section titled “Before you start”](#before-you-start) * An admin role in your Promptless organization. Only organization admins can view and manage environment variables. * For screenshot credentials, a dedicated test or service account. See [Keep secrets secure](#keep-secrets-secure). ## Add an environment variable [Section titled “Add an environment variable”](#add-an-environment-variable) 1. In the Promptless dashboard, open **Settings** and select [**Agent Env Vars**](https://app.gopromptless.ai/settings/env-vars). 2. In the **Add Variable** form, enter a **Key Name**. Key names use uppercase letters, numbers, and underscores, up to 100 characters. The form converts the letters you type to uppercase. 3. Enter the **Value**. 4. If the value is a password, API key, or other sensitive value, turn on the **Secret** toggle. The **Value** field then masks what you type. 5. Select **Add Variable**. The variable appears in the table above the form. ![Agent Env Vars settings page, showing the variables table with Key, Value, and Created columns and Update and Delete buttons on each row, secret values masked with a lock icon, and an empty Add Variable form below the table](https://promptless-customer-doc-assets.s3.us-east-2.amazonaws.com/docs-images/org_3DaVKUzHgjyjaODgCPaDmjXezqp/env-vars-settings-page-7a435f2b.png) Agent Env Vars settings page ## Keep secrets secure [Section titled “Keep secrets secure”](#keep-secrets-secure) After you save a secret, the dashboard hides its value, and no one can view it again. Promptless also redacts secret values from the records it logs, stores, and transmits. See [How Promptless protects secrets and sensitive data](/docs/for-docs/security/secrets-and-sensitive-data#credential-redaction). ![Add Variable form with the Key Name field set to MY\_API\_TOKEN, a masked value, and the Secret toggle turned on](https://promptless-customer-doc-assets.s3.us-east-2.amazonaws.com/docs-images/org_3DaVKUzHgjyjaODgCPaDmjXezqp/env-vars-add-form-58342d8e.png) Adding a secret environment variable Caution Store credentials for dedicated test or service accounts, not personal accounts. Screenshots then contain no personal data, and results stay consistent. ## Example: Screenshot capture credentials [Section titled “Example: Screenshot capture credentials”](#example-screenshot-capture-credentials) For [Promptless Capture](/docs/for-docs/get-the-most-out/screenshots), add these variables so Promptless can log in to your application: | Variable | Example value | Secret | | ------------------- | ----------------------------------- | ------ | | `TEST_ACCOUNT_URL` | `https://app.yourcompany.com/login` | No | | `TEST_ACCOUNT_USER` | `qa-screenshots@yourcompany.com` | No | | `TEST_ACCOUNT_PASS` | `(your password)` | Yes | Tip Give the test account access to every feature you want documented, including features that need specific permissions or plan tiers. ## Update or delete a variable [Section titled “Update or delete a variable”](#update-or-delete-a-variable) You can change a variable’s value, but not its key name. To rename a variable, delete it and add it again under the new name. To change a variable’s value: 1. In the variable’s row, select **Update**. 2. Enter the new value. The field starts empty, so enter the whole value. 3. Select **Save**. To delete a variable: 1. In the variable’s row, select **Delete**. 2. Select **Confirm**. Promptless removes the variable, and the agent can no longer use it. ## See also [Section titled “See also”](#see-also) * [Keep screenshots current with Promptless Capture](/docs/for-docs/get-the-most-out/screenshots), to set up screenshot capture with your test-account credentials * [How Promptless protects secrets and sensitive data](/docs/for-docs/security/secrets-and-sensitive-data), for how Promptless redacts secret values and credential formats * [Build an agent knowledge base](/docs/for-docs/get-the-most-out/agent-knowledge-base), to name a variable in your instructions and tell Promptless when to use it * , for help with environment variables # Route changes across multiple repos > Structure doc collections and triggers so changes across many code repositories and organizations reach the right documentation, without cross-wiring your teams. ## Overview [Section titled “Overview”](#overview) When your organization runs many docs and code repositories, a few questions come up. Which code repositories feed which doc sites? How do you keep one team’s changes out of another team’s docs? How do you work across several GitHub organizations? You answer them with three kinds of configuration: * Scope each trigger to the code changes that matter. * Scope each doc collection to the files Promptless may change. * Give Promptless the team preferences it can’t research on its own. This guide shows how those pieces fit together across many repositories. Tip You can set this up by hand as this page describes, or ask Promptless in Slack or Microsoft Teams to do it for you. For example, “@Promptless route suggestions from my acme/api repo to the #api-docs channel.” See [Ask Promptless to update your configuration](/docs/for-docs/get-the-most-out/ask-promptless-to-update-config). ## Before you start [Section titled “Before you start”](#before-you-start) * An admin role in your Promptless organization, to edit the [Configuration page](https://app.gopromptless.ai/configuration) and the Agent Knowledge Base. * Each GitHub organization that holds your code or docs repositories, connected to Promptless. See [Work across multiple GitHub organizations](#work-across-multiple-github-organizations). ## One repository per doc collection [Section titled “One repository per doc collection”](#one-repository-per-doc-collection) Each doc collection is one documentation repository with its own settings. These include the docs framework, the default branch, and where the docs are published. They also include a path scope that limits which files Promptless can modify. Promptless can publish to several doc collections from the same trigger events and context sources. When a change is relevant to more than one collection, Promptless suggests changes for each collection it applies to, so related docs stay in sync. Promptless picks those collections by relevance, and a trigger has no setting that binds it to a specific collection. To keep teams apart, combine these controls: * Scope each team’s triggers to the repositories that team owns. See [Scope which triggers activate](#scope-which-triggers-activate). * Limit each collection with **Only watch these folders**, its path scope, so Promptless modifies only that collection’s docs files. * Name each collection in your [Knowledge Base instructions](#set-per-collection-preferences-in-your-knowledge-base) to steer what Promptless writes there. ## Scope which triggers activate [Section titled “Scope which triggers activate”](#scope-which-triggers-activate) A trigger’s filters set which code changes start documentation work. Set them up on the **Triggers** tab of the [Configuration page](https://app.gopromptless.ai/configuration). Choose the trigger’s repositories with **Which repositories?**, then narrow it under **More filters (optional)**: | Filter | What it does | | ----------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | | **Which repositories?** | Watches **All repositories**, or only the **Specific repos** you pick. This is the main control over which repositories a trigger watches. | | **Skip these repositories** | Leaves out the repositories you list. Use it when you watch **All repositories** but want to exclude a few. | | **Only repos owned by these accounts** | Limits the trigger to repositories owned by these accounts, the `owner` segment of `owner/repo`. | | **Only repos tagged with these GitHub topics** | Limits the trigger to repositories that carry these GitHub topics, so you opt repositories in by topic without listing each one. | | **Only when files in these folders change** | Starts work only when a change touches these folders. Unrelated changes in the same repository start no documentation work. | | **Only pull requests targeting these branches** | Starts work only for pull requests that target these branches. | The filters a trigger offers depend on its type. See the [configuration reference](/docs/for-docs/reference/configuration-reference#triggers) for every trigger and doc collection field. ## Work across multiple GitHub organizations [Section titled “Work across multiple GitHub organizations”](#work-across-multiple-github-organizations) Connect every GitHub organization that holds your repositories to the same Promptless account. After you connect the first organization, select **Connect another GitHub Org** on the [Integrations page](https://app.gopromptless.ai/integrations) to add the next. Each organization gets its own card, and repository pickers list repositories from every connected organization as `organization/repository`. For the steps, see [Connect multiple GitHub organizations](/docs/for-docs/reference/integrations/github#connect-multiple-github-organizations). ## See which collection a suggestion targeted [Section titled “See which collection a suggestion targeted”](#see-which-collection-a-suggestion-targeted) When suggestions span several collections, set the suggestions list’s **Group** control to **Doc collection** to see each collection’s suggestions under its own header. To focus on one collection, pick it from the **Collection** filter. See [Triage the review queue](/docs/for-docs/work-the-queue/assignment-and-routing#triage-the-review-queue) for the rest of the suggestions list. ## Apply rules per collection [Section titled “Apply rules per collection”](#apply-rules-per-collection) Publishing and notification behavior can differ by collection. To change it for one collection, add a policy rule that matches only that collection: 1. On the **Policies** tab of the [Configuration page](https://app.gopromptless.ai/configuration), select **Add rule**. 2. Under **When this matches**, set **Doc collection** to the collection. 3. Under **Promptless does this**, set the behavior that differs for that collection. For example, pick a different Slack channel for its notifications, or change **Open a pull request automatically**. 4. Select **Save policies**. When more than one rule matches, a later rule overrides the fields that earlier rules set. See the [configuration reference](/docs/for-docs/reference/configuration-reference#policies) for the policy schema. ## Set per-collection preferences in your Knowledge Base [Section titled “Set per-collection preferences in your Knowledge Base”](#set-per-collection-preferences-in-your-knowledge-base) A [policy rule](#apply-rules-per-collection) matches only on a trigger and a doc collection, and it sets only notification, escalation, publishing, and archiving fields. Put each team’s other conventions and exceptions in `PROMPTLESS.md` or other files in your [Agent Knowledge Base](/docs/for-docs/get-the-most-out/agent-knowledge-base). Promptless reads these files when it performs documentation tasks. To edit `PROMPTLESS.md`: 1. In the dashboard, open **Settings** and select **Agent Knowledge Base**. 2. Open `PROMPTLESS.md` and make your changes in the editor. 3. Select **Save**. The change commits directly to the Knowledge Base repository. Only organization admins can edit Knowledge Base files, and other members have read-only access. If you’re not an admin, ask Promptless to make the change for you. Promptless edits `PROMPTLESS.md` and commits the change. The Knowledge Base is shared across your whole organization, so name the doc collection in each instruction to scope it to that team’s docs. For example: * “Customer-facing guides belong in `acme/docs`. Keep internal runbooks in `acme/internal-docs`.” * “Treat `reference/` in `acme/docs` as generated. Its source of truth lives elsewhere, so leave those pages alone.” * “Never revise a released changelog entry in `acme/docs`. Add a new entry instead.” * “When `acme/api-docs` changes, check the authentication overview in `acme/docs` for staleness.” Note Knowledge Base instructions shape what the agent does and writes. Policy rules shape how Promptless publishes and announces the finished result, so a policy rule can’t stop a suggestion from being created. To prevent the work entirely, narrow the trigger scope. ## See also [Section titled “See also”](#see-also) * [Route changes to the right doc version](/docs/for-docs/scale/versioned-docs), to route changes across version branches or version directories * [GitHub repos](/docs/for-docs/connect/doc-locations/github-repos), for every doc collection setting, including path scope * [Configuration reference](/docs/for-docs/reference/configuration-reference), for the full trigger, doc collection, and policy schema * [Route and assign suggestions to the right people](/docs/for-docs/work-the-queue/assignment-and-routing), to send each suggestion to the right reviewer # Route changes to the right doc version > Route each change to the correct documentation version, whether your versions live on separate branches or in separate directories within one branch. ## Overview [Section titled “Overview”](#overview) Teams that run more than one live version of their documentation need each change to reach the version it belongs to. Teams commonly version docs in one of two ways: each version on its own branch, or every version in its own directory on one branch. Promptless works with both, and models versions as the branches or directories your docs already use. This guide shows how to route changes under each model, and how to steer directory-based routing with your Knowledge Base. Tip You can set this up by hand as this page describes, or ask Promptless in Slack or Microsoft Teams to do it for you. For example, “@Promptless set my acme/docs collection default branch to v2 and only trigger on PRs targeting v2.” See [Ask Promptless to update your configuration](/docs/for-docs/get-the-most-out/ask-promptless-to-update-config). ## Before you start [Section titled “Before you start”](#before-you-start) * An admin role in your Promptless organization, to edit the [Configuration page](https://app.gopromptless.ai/configuration) and the Agent Knowledge Base. * Your docs repository connected as a doc collection. See [GitHub repos](/docs/for-docs/connect/doc-locations/github-repos). ## Route versions on separate branches [Section titled “Route versions on separate branches”](#route-versions-on-separate-branches) When each version lives on its own branch, point the doc collection at a version branch. Then scope your triggers to the version branches you care about: 1. On the **Doc collections** tab of the [Configuration page](https://app.gopromptless.ai/configuration), expand the doc collection, then expand **More filters (optional)**. 2. Set **Default branch** to the branch where a version’s documentation lives. Promptless opens its pull requests against this branch. Without it, Promptless targets the repository’s default branch. 3. Select **Save changes**. 4. On the **Triggers** tab, open a GitHub pull requests trigger and expand **More filters (optional)**. 5. In **Only pull requests targeting these branches**, list the version branches to watch. A change to one version then starts no documentation work for another. For a GitHub commits trigger, list the branches in **Which branches?** instead. Left empty, **Which branches?** watches only the default branch. 6. Select **Save changes**. In `promptless.yaml`, these settings are the doc collection’s `default_branch` field and the trigger’s `branches` field. See the [configuration reference](/docs/for-docs/reference/configuration-reference#triggers). When a change comes from a non-default branch, Promptless opens the suggestion against the branch the change came from. A change that lands on a version branch updates that version’s docs. While a suggestion is open, Promptless keeps its branch synced with its base branch, so the suggestion builds on the latest documentation. ## Route versions in separate directories [Section titled “Route versions in separate directories”](#route-versions-in-separate-directories) Some frameworks, such as Docusaurus and Starlight, keep every version on one branch, each in its own directory. Under this model, routing decides which directory a change lands in. Within one collection, Promptless picks the version directory to edit by relevance, reasoning from the change and its context. No configuration field maps a source change to a target version directory. Each repository can have at most one doc collection, so all of a repository’s version directories share one collection. If your versions live in separate repositories instead, see [Route changes across multiple repos](/docs/for-docs/scale/multi-repo-routing). You steer directory targeting with path scope and with [Knowledge Base instructions](#steer-version-routing-in-your-knowledge-base). To limit which version directories Promptless can modify: 1. On the **Doc collections** tab of the [Configuration page](https://app.gopromptless.ai/configuration), expand the doc collection, then expand **More filters (optional)**. 2. In **Only watch these folders**, list each directory Promptless may modify, such as `versioned_docs/version-2.0/`. Path scope is include-only, so to keep Promptless out of a directory, list only the directories you want it to change. 3. Select **Save changes**. In `promptless.yaml`, path scope is the doc collection’s `filter` field. See [Path scope](/docs/for-docs/connect/doc-locations/github-repos#path-scope-documentation-directories). The **Only when files in these folders change** trigger filter (`trigger_directories`) works on the source side. It sets which directories must change to start documentation work, and it doesn’t choose the destination version directory. Before you approve a suggestion, check its file changes to confirm it landed in the right version directory. ## Steer version routing in your Knowledge Base [Section titled “Steer version routing in your Knowledge Base”](#steer-version-routing-in-your-knowledge-base) Because directory targeting is relevance-based, `PROMPTLESS.md` in your [Agent Knowledge Base](/docs/for-docs/get-the-most-out/agent-knowledge-base) is your main lever. Tell Promptless which directory holds the current version and which directories hold frozen releases, so it edits the right one. For example: * “In `acme/docs`, the current version lives in `docs/`. Older versions in `versioned_docs/` are frozen. Leave them alone unless I say otherwise.” * “Apply changes to the latest version directory, `versioned_docs/version-3.0/`. Don’t touch released version directories.” * “When both the current and a supported LTS version are affected, update `docs/` and `versioned_docs/version-2.0/` and note the LTS edit in the suggestion.” For the steps to edit `PROMPTLESS.md`, see [Set per-collection preferences in your Knowledge Base](/docs/for-docs/scale/multi-repo-routing#set-per-collection-preferences-in-your-knowledge-base). ## See also [Section titled “See also”](#see-also) * [Route changes across multiple repos](/docs/for-docs/scale/multi-repo-routing), to route changes when your versions or teams span several repositories * [Configuration reference](/docs/for-docs/reference/configuration-reference), for the full doc collection and trigger schema * [Build an agent knowledge base](/docs/for-docs/get-the-most-out/agent-knowledge-base), to write and organize Knowledge Base instructions # Access and permissions > How Promptless keeps access least-privilege: what it reads versus writes, how to scope each connection, the read-only options available, and how to revoke access. Promptless connects to the tools your team already uses, and follows the principle of least privilege: each connection grants only the access the work needs. Promptless reads from your tools, writes only to your documentation repository, and keeps each connection within the scope you set. You can revoke that access at any time. This page describes that posture for a security review and links to the pages that cover each connection in detail. ## Use cases [Section titled “Use cases”](#use-cases) * Answer a security reviewer’s questions about which systems Promptless reads, which it writes to, and how far each connection reaches. * Choose how to connect a documentation repository: with write access limited by path scope, or through the read-only GitHub app. * Plan how to revoke or rotate Promptless’s access, for example at the end of a pilot. * Decide which Promptless role each member of your team needs. ## What Promptless reads versus writes [Section titled “What Promptless reads versus writes”](#what-promptless-reads-versus-writes) Promptless writes in one place, your documentation repository. Every other connection is for reading: | Connection | Access | What Promptless does | | ---------------------------------------------------------------------------------- | --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Context sources, such as Jira, Linear, Confluence, Notion, Google Drive, and Slite | Read-only | Reads content to inform suggestions. Your tickets, issues, and pages stay unchanged. | | Source code, such as a GitLab project that sends merge request triggers | Read-only | Reads code changes for context and pushes no code to these projects. Connecting a GitLab group does write to GitLab: Promptless creates merge request webhooks on the group’s projects and sets its bot avatar. | | Documentation repositories on GitHub or GitLab | Write | Pushes a branch and opens a pull request on GitHub or a merge request on GitLab. Path scope limits which files it can change. | By default, you review every pull or merge request before it merges. If you enable [`auto_merge`](/docs/for-docs/reference/configuration-reference#policies) in a publishing policy, Promptless merges its own changes without review. Promptless also stores little. It keeps the feedback you give it and integration auth tokens, but not the content behind those tokens. It processes source code, support conversations, and context-source data in real time without keeping a copy. It doesn’t use customer data to train or fine-tune models. For the full breakdown, see [Data handling and classification](/docs/for-docs/security/data-handling-and-classification). ## Scope each connection [Section titled “Scope each connection”](#scope-each-connection) Each integration reaches only what you authorize: | Connection | How to keep its scope tight | | ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | GitHub repositories | When you install the GitHub app, choose **Only select repositories** and grant only the repositories Promptless needs. See the [GitHub](/docs/for-docs/reference/integrations/github) and [GitHub Enterprise](/docs/for-docs/reference/integrations/github-enterprise) integration pages. | | GitLab groups | Scope the group access token to a group or subgroup that contains only the projects Promptless needs. See the [GitLab](/docs/for-docs/reference/integrations/gitlab) integration page. | | Context sources | These connect through OAuth, so Promptless inherits the permissions of the account that authorized the connection. It searches only the projects, spaces, or drives you configure. For the tightest scope, connect through a dedicated service account, and share only the drives and folders Promptless needs with it. | ## Read-only options [Section titled “Read-only options”](#read-only-options) If you don’t need Promptless to write to a repository, you can connect it read-only: | Provider | Read-only option | | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | GitHub | The [GitHub (read-only) app](/docs/for-docs/reference/integrations/github-read-only) reads any repository you grant it. It publishes documentation to a public repository by opening a pull request from a fork. | | GitLab | None. One `api`-scoped group access token serves reads and writes. Limit its reach by scoping it to a group or subgroup with only the projects Promptless needs. | For how GitLab tokens limit what Promptless can reach, see [Token scope considerations](/docs/for-docs/reference/integrations/gitlab#token-scope-considerations). ## Limit where Promptless can write [Section titled “Limit where Promptless can write”](#limit-where-promptless-can-write) Path scope limits which files Promptless can change in a documentation repository it has write access to. Set it with **Only watch these folders** when you set up a doc collection. Promptless then changes only files that match one of those paths or sit inside them. It rejects a suggestion that reaches outside that scope, with an error that lists the out-of-scope files. Path scope keeps writes inside your documentation area, which matters in a monorepo where docs live beside source code. For setup, see [GitHub repos (docs as code)](/docs/for-docs/connect/doc-locations/github-repos) and [GitLab projects (docs as code)](/docs/for-docs/connect/doc-locations/gitlab-projects). ## Revoke or rotate access [Section titled “Revoke or rotate access”](#revoke-or-rotate-access) You can end Promptless’s access at any time: * Disconnect an integration from its card on the [integrations page](https://app.gopromptless.ai/integrations). Disconnecting revokes Promptless’s access to that service. * Uninstall the GitHub app. You or Promptless can revoke the GitHub app connection. * Rotate or remove a provider token, such as a GitLab group access token, on the provider’s side. ## Roles inside Promptless [Section titled “Roles inside Promptless”](#roles-inside-promptless) Role-based access control governs what each person can do in Promptless itself: | Role | What it can do | | ------------ | --------------------------------------------------------------------------------------------------------------------------------------- | | Admin | Full access to organization settings, team management, integrations, projects, and all suggestions, including the Agent Knowledge Base. | | Editor | Edit suggestions and create tasks. Editors can’t manage organization settings, integrations, or team members. | | Collaborator | View suggestions and leave comments. Collaborators can’t edit suggestions or send requests to Promptless. | To assign roles, see [Account management](/docs/for-docs/reference/account-management). ## Related resources [Section titled “Related resources”](#related-resources) * [Single sign-on (SSO) setup](/docs/for-docs/security/single-sign-on) for sign-in through your identity provider. * [Network architecture](/docs/for-docs/security/network-architecture) for multi-tenant isolation and encryption. * [Compliance and certifications](/docs/for-docs/security/compliance-and-certifications) for SOC 2, penetration testing, and incident notification. # Compliance and certifications > Review Promptless's SOC 2 Type II certification, security practices, and incident response for your security review. Promptless holds SOC 2 Type II certification, runs annual third-party penetration tests, and notifies customers of security incidents that affect their data. This page collects those details, along with audit logging and session management, for a security or vendor review. It also lists which reports you can request and where to send each request. ## Use cases [Section titled “Use cases”](#use-cases) * Answer a vendor questionnaire’s certification, penetration testing, and incident response questions. * Request the SOC 2 report or a penetration test summary for your security team. * Add your security team as a contact for incident notifications. * Confirm where to set session timeout policies, such as a 24-hour expiry, before you roll Promptless out. ## SOC 2 compliance [Section titled “SOC 2 compliance”](#soc-2-compliance) Promptless maintains SOC 2 Type II certification. The SOC 2 report covers: * Security controls and access management * Data encryption practices * Incident response procedures * Change management processes * Monitoring and logging capabilities To request a copy of the SOC 2 report, email . ## Penetration testing [Section titled “Penetration testing”](#penetration-testing) Independent security firms run third-party penetration tests on Promptless every year. These assessments evaluate infrastructure, application security, and data protection controls. Enterprise customers can request a penetration test summary report from . ## Security incident notification [Section titled “Security incident notification”](#security-incident-notification) If a security incident affects customer data, Promptless notifies you as follows: | Aspect | What happens | | ---------- | --------------------------------------------------------------------------------------------------------- | | Timing | Promptless notifies affected customers within 72 hours of confirming that an incident affects their data. | | Recipients | Organization administrators and any designated security contacts on file receive the notification. | | Content | A description of the incident, the affected data, the remediation steps taken, and recommended actions. | To add a security contact for incident notifications, such as a security team email address, email . ## Audit logging [Section titled “Audit logging”](#audit-logging) Promptless provides audit logging for enterprise customers. Audit logs capture security-relevant events, including: * User authentication events * Administrative actions, such as team member changes and role changes * Integration configuration changes * API key creation and revocation To request an audit log export, enterprise customers email . Exports come in standard formats that SIEM tools can ingest. ## Session management [Section titled “Session management”](#session-management) Who controls session duration depends on how your users sign in: | Sign-in method | Who controls sessions | | ----------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | | Enterprise SSO through SAML or OIDC | Your identity provider. Set session expiry, idle timeouts, and re-authentication requirements in your identity provider’s settings. | | Google or GitHub sign-in | The authentication provider. For details on session timeout behavior, email . | To enforce a specific session timeout policy, such as a 24-hour expiry, use [enterprise SSO](/docs/for-docs/security/single-sign-on). Then set the policy in your identity provider. ## Contact the Promptless team [Section titled “Contact the Promptless team”](#contact-the-promptless-team) Email with questions about compliance practices or to request compliance documentation. For specific security requirements, email . # Data handling and classification > See what data Promptless stores, what it only processes, and how data minimization keeps sensitive end-user data out of scope. Promptless practices data minimization, storing only the data it needs to automate your documentation. This page classifies the data Promptless stores, the data it processes without storing, and the data it never processes. It also covers how Promptless authenticates users and encrypts data, so you can answer a security reviewer’s data-handling questions. ## Use cases [Section titled “Use cases”](#use-cases) * Answer a security questionnaire’s questions about data retention, encryption, and end-user data. * Check what happens to a pull request, Slack thread, or Jira issue after Promptless reads it, before you connect that source. * Confirm which sign-in and multi-factor authentication options your plan includes. ## Data classification [Section titled “Data classification”](#data-classification) Promptless handles each category of data differently: | Data category | How Promptless handles it | Description | | ---------------------------- | ------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Documentation | Processed, not stored | Promptless reads your documentation from its repository when it works on an update, and stores records of the updates it suggests. See [How Promptless reads your documentation](#how-promptless-reads-your-documentation). | | Third-party integration data | Processed, not stored | Content from the tools that trigger Promptless or give it context. Promptless keeps it only as long as it needs to produce a documentation update. | | End-user data | Not processed | Promptless doesn’t process or store sensitive end-user data. | ### Data that Promptless stores [Section titled “Data that Promptless stores”](#data-that-promptless-stores) Promptless stores the minimum it needs and otherwise operates statelessly: | Data | What Promptless keeps | | ----------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Suggestion records | The title, description, and branch name of each documentation update, the paths of the files it changes, and the citations attached to it. The changed content lives on the suggestion’s branch in your documentation repository. | | Knowledge Base | The files in your [Agent Knowledge Base](/docs/for-docs/get-the-most-out/agent-knowledge-base), including the analysis Promptless writes of your documentation’s structure, style, and product coverage. | | Feedback for Promptless | Feedback on the quality of documentation updates: your edits to Promptless suggestions, and comments you leave in the Promptless dashboard. | | Integration auth data | The data needed to connect to a third-party tool, typically an authentication token. Promptless doesn’t store the content behind the token. | ### How Promptless reads your documentation [Section titled “How Promptless reads your documentation”](#how-promptless-reads-your-documentation) For each session, Promptless clones your documentation repository into a temporary workspace and deletes the workspace when the session ends. If you use the [GitHub (read-only) app](/docs/for-docs/reference/integrations/github-read-only), Promptless publishes from its own fork of your public documentation repository. ### Data that Promptless processes, but does not store [Section titled “Data that Promptless processes, but does not store”](#data-that-promptless-processes-but-does-not-store) Integrations with third-party tools trigger documentation updates or give Promptless context for them. Promptless uses that data to provide its service and doesn’t store it. **Promptless does not retain a copy of customer source code, support conversations, or any other data from third-party integrations.** For example: * When a GitHub pull request triggers a documentation check, Promptless analyzes the changes in real time without storing the pull request’s content. * When you use the Slack integration, Promptless processes conversations to find documentation needs and keeps no copies of them. * When Promptless reads context from tools like Linear or Jira, it uses that information only at generation time. It keeps no copy of the issues or projects. Promptless also redacts credentials and known secret values from the records it logs, stores, and transmits. See [How Promptless protects secrets and sensitive data](/docs/for-docs/security/secrets-and-sensitive-data). Promptless does not use customer data to pre-train or fine-tune language models. ### Data that Promptless does not process [Section titled “Data that Promptless does not process”](#data-that-promptless-does-not-process) Promptless doesn’t process or store sensitive end-user data for your organization, and you can’t configure it to. ## User authentication and access controls [Section titled “User authentication and access controls”](#user-authentication-and-access-controls) ### Standard authentication features [Section titled “Standard authentication features”](#standard-authentication-features) Every Promptless user gets these authentication features: * Single sign-on with Google or GitHub * Password policies that enforce complexity requirements * Two-factor authentication (2FA) with time-based one-time password (TOTP) codes * Password reset with verification ### Enterprise authentication features [Section titled “Enterprise authentication features”](#enterprise-authentication-features) Enterprise plan customers also get: * Single sign-on (SSO) through major identity providers * SAML 2.0, with just-in-time user provisioning, role mapping, and certificate-based authentication * OpenID Connect (OIDC) * Custom multi-factor authentication (MFA) policies and enforcement To set up enterprise SSO, see [Single sign-on (SSO) setup](/docs/for-docs/security/single-sign-on). ## Data security [Section titled “Data security”](#data-security) ### Encryption standards [Section titled “Encryption standards”](#encryption-standards) Promptless encrypts data in transit and at rest: | Data | Encryption | | ---------------------------------------------------------- | ---------------------------------------------------------- | | Data in transit, between all system components | TLS 1.2 or higher | | Data at rest, in primary data stores and secondary backups | AES-256, with keys managed through a key management system | | Backup data | Encrypted with independent encryption keys | ## Enterprise security support [Section titled “Enterprise security support”](#enterprise-security-support) Enterprise customers can request additional security features and support, such as custom data retention policies. For questions about how Promptless handles data, email . # How Promptless uses AI > How Promptless uses AI to generate documentation, including its default and enterprise model options, no training on customer data, real-time processing without retention, and self-hosting. Note This page describes the Promptless cloud offering. In a self-hosted deployment, you and the Promptless team decide how Promptless uses AI in your environment. Many deployments use your own AI setup or a customer-managed model deployment. See [self-hosting](/docs/for-docs/security/self-hosting). Promptless uses AI language models to generate documentation suggestions for your team. This page summarizes which models it uses and how it protects your data. Each point links to the security page that covers it in full. ## Use cases [Section titled “Use cases”](#use-cases) * Answer the AI and model-training questions in a security or vendor review, with a link to the page that covers each point. * Check what happens to a source’s content, such as a pull request or Slack thread, before you connect it. * Decide whether your organization needs a [self-hosted deployment](/docs/for-docs/security/self-hosting) with its own model setup. ## Which AI models Promptless uses [Section titled “Which AI models Promptless uses”](#which-ai-models-promptless-uses) Cloud-hosted customers use AWS Bedrock by default. Promptless is model-agnostic, so you and the Promptless team choose the final model during onboarding. For every AI infrastructure provider, see [subprocessors](/docs/for-docs/security/subprocessors). ## How Promptless handles your data [Section titled “How Promptless handles your data”](#how-promptless-handles-your-data) | Topic | What Promptless does | Details | | ------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | | Model training | Never uses customer data to pre-train or fine-tune language models, whatever the model, and uses your content only to generate your documentation suggestions. On the default AWS Bedrock path, model providers can’t access your prompts or completions, so they can’t train on your content. | [Privacy policy](/docs/for-docs/security/privacy-policy), [subprocessors](/docs/for-docs/security/subprocessors) | | Trigger and integration data | Processes the content behind a trigger or context source in real time to generate suggestions, then discards it. Examples include a GitHub PR, a Slack thread, or a Linear or Jira issue. Promptless keeps no copy of source code, support conversations, or other integration data. | [Data handling and classification](/docs/for-docs/security/data-handling-and-classification), [privacy policy](/docs/for-docs/security/privacy-policy) | | Stored data | Stores metadata about the documentation updates it suggests, your Knowledge Base, and the feedback you give on documentation updates. It also stores integration auth tokens, but not the content behind them. Otherwise, Promptless operates statelessly. | [Data handling and classification](/docs/for-docs/security/data-handling-and-classification) | | Credentials in logs and records | Redacts credentials from logs and stored records. | [How Promptless protects secrets and sensitive data](/docs/for-docs/security/secrets-and-sensitive-data) | | End-user data | Doesn’t process or store sensitive end-user data for your organization, and can’t be configured to. | [Data handling and classification](/docs/for-docs/security/data-handling-and-classification) | | Encryption | Encrypts data in transit with TLS 1.2 or higher, and data at rest with AES-256. | [Network architecture](/docs/for-docs/security/network-architecture) | ## Least-privilege access to your tools [Section titled “Least-privilege access to your tools”](#least-privilege-access-to-your-tools) Promptless gets only the access you grant it, and you can revoke or rotate that access at any time. | Control | How it limits access | | --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | Read-only context sources | Context sources are read-only, and Promptless reads only the repositories, channels, or projects you configure. | | Dedicated service account | For security-conscious setups, connect context sources through a service account in place of a broadly privileged person’s account. Share only the projects, drives, or folders it needs. | | Scoped documentation writes | Promptless writes only to your documentation repository. There, it opens pull requests limited to the documentation paths you configure. | | Read-only publishing | To grant no write access on GitHub, use the read-only GitHub app, which opens pull requests from a fork. GitLab has no read-only option. | | Per-organization isolation | Every record carries an organization ID, and every query is scoped to that organization, so customers share no data context. See [network architecture](/docs/for-docs/security/network-architecture). | | Role-based access control | Inside Promptless, three roles control what each user can do: Admin, Editor, and Collaborator. | For more detail, see [access and permissions](/docs/for-docs/security/access-and-permissions). ## Enterprise and self-hosting options [Section titled “Enterprise and self-hosting options”](#enterprise-and-self-hosting-options) Enterprise customers can keep their content away from external AI providers: | Option | What it keeps in your control | | ---------------------------------- | ------------------------------------------------- | | Self-hosting | All data stays within your own environment. | | Customer-managed model deployments | External AI providers never process your content. | For more detail, see [self-hosting](/docs/for-docs/security/self-hosting) and [subprocessors](/docs/for-docs/security/subprocessors). # Network architecture > Review the cloud network architecture, security controls, and redundancy behind Promptless. Promptless runs on AWS, inside its own virtual private cloud (VPC). Use this page to answer the infrastructure questions in a security assessment. It shows how events and users reach Promptless, how Promptless keeps each customer organization’s data separate, and which controls protect that data. ## Use cases [Section titled “Use cases”](#use-cases) * Give a security reviewer a diagram of how data flows between your tools, Promptless, and its subprocessors. * Answer questions about how Promptless isolates your organization’s data from other customers’ data. * Confirm the encryption and access controls that protect data in the Promptless cloud. ## Infrastructure overview [Section titled “Infrastructure overview”](#infrastructure-overview) The diagram shows the path from the events and people that start work in Promptless to the systems Promptless stores data in and publishes to: ![Diagram of the Promptless AWS VPC and the systems it connects to, described in the list that follows](https://promptless-customer-doc-assets.s3.amazonaws.com/docs-images/org_2lvkgU9erOFxYhtEVVC0ymPrPdF/e549b619-c0f6-42a0-b495-e538f71fb1cb-network_architecture_diagram.png) Promptless network architecture * Dashboard users and configured trigger events reach the Promptless AWS VPC. Trigger events include a GitHub pull request webhook, a Slack message action, or a Zendesk ticket webhook. * Inside the VPC, an API gateway passes requests to the Promptless EKS cluster. * The cluster stores data in an S3 document store and an RDS (Aurora) database. * The cluster publishes documentation to the providers you choose, such as ReadMe, Mintlify, Intercom, or GitHub. * The cluster calls cloud subprocessors for language model inference, logging and monitoring, and web app user authentication. For the current list, see [subprocessors](/docs/for-docs/security/subprocessors). The infrastructure is designed for security at every layer, high availability and fault tolerance, scalability, and monitoring and observability. ## Multi-tenant security model [Section titled “Multi-tenant security model”](#multi-tenant-security-model) Promptless keeps customer organizations apart through logical separation: * Every piece of data, such as users, suggestions, and trigger events, carries an organization ID. * Every database query is scoped to the requesting organization. * Authorization checks prevent access to another organization’s data. * Customer organizations share no data context. Shared infrastructure reduces the number of infrastructure assets to track and maintain, and the number of data access points across the system. ## Key security measures [Section titled “Key security measures”](#key-security-measures) These are the main measures that protect data in Promptless: | Measure | How Promptless applies it | | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------ | | Encryption in transit | All data in transit is encrypted with TLS 1.2 or later. | | Encryption at rest | Data stored in the Promptless database is encrypted with AES-256. | | Access controls | A combination of access controls, including role-based access control (RBAC), limits sensitive data to authorized users. | | Principle of least privilege | Each user gets only the permissions their role needs. | | Logical separation of data | All data is tagged with customer identifiers, which gives multiple layers of logical separation between customers. | For more detail about the network architecture, or to discuss specific security requirements, email the security team at . # Privacy policy > How Promptless handles your data, why it does not store your source code or conversations, and why it does not train models on your content. Promptless practices data minimization. It accesses only what it needs, when it needs it, and stores only what it needs to run the service. This page summarizes the privacy principles behind that approach, the options for organizations with stricter requirements, and where to find the full legal privacy policy. ## Use cases [Section titled “Use cases”](#use-cases) * Answer a privacy reviewer’s questions about data retention, model training, and integration scope with a short, forwardable summary. * Decide whether your organization needs self-hosting or a customer-managed model deployment to meet its privacy requirements. * Find the full legal privacy policy, or exercise your data rights. ## Privacy principles [Section titled “Privacy principles”](#privacy-principles) Promptless handles your data according to these principles: | Principle | What it means | | ---------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Promptless doesn’t store your source code or conversations | When Promptless analyzes a GitHub pull request or Slack thread, it processes that content in real time to generate documentation suggestions, then discards it. Promptless keeps no copies of your source code, support conversations, Jira tickets, or other integration data. | | Promptless doesn’t train models on your data | Promptless doesn’t use your content to pre-train or fine-tune language models. It uses your code, documentation, and conversations only to generate your documentation suggestions. | | Promptless stores only what’s necessary | Promptless stores records of the documentation updates it suggests and reads your documentation from its repository for each session. It also stores the feedback you provide to improve suggestion quality, and the credentials it uses to connect to your tools. | | Your data is encrypted | Data in transit is encrypted with TLS 1.2 or higher. Data at rest is encrypted with AES-256. | | You control the integration scope | Promptless accesses only the repositories, channels, or projects you configure, and requests no broad organizational access. | For the full classification of what Promptless stores and processes, see [Data handling and classification](/docs/for-docs/security/data-handling-and-classification). ## Enterprise privacy options [Section titled “Enterprise privacy options”](#enterprise-privacy-options) Organizations with stricter requirements have two options: | Option | What it keeps in your control | | ---------------------------------------------------- | -------------------------------------------------------------------------------- | | [Self-hosting](/docs/for-docs/security/self-hosting) | Promptless runs on your own infrastructure, and no data leaves your environment. | | Customer-managed model deployments | External AI providers never process your content. | ## Full privacy policy and data rights [Section titled “Full privacy policy and data rights”](#full-privacy-policy-and-data-rights) The [Promptless Privacy Policy](https://promptless.ai/privacy) is the full legal policy. It covers data collection, retention, cookies, and your rights. For questions about privacy practices, or to exercise your data rights, email . # How Promptless protects secrets and sensitive data > Confirm how Promptless protects secrets and sensitive data: real-time processing without retention, plus automatic credential-pattern redaction in the records it logs, stores, and transmits. Promptless protects secrets and other sensitive data in two layers. Data minimization comes first: Promptless processes trigger and integration content in real time and doesn’t retain it. Credential redaction adds a second layer: Promptless replaces credential formats and known secret values in the records it logs, stores, and transmits. Redaction covers only those formats and values. Promptless doesn’t detect or redact personal data (PII) in the content it processes, so data minimization is what protects that data. This page describes both layers so a security or procurement reviewer can confirm how Promptless protects sensitive data. ## Use cases [Section titled “Use cases”](#use-cases) * Confirm for a security or procurement review which credentials Promptless redacts, and in which records. * Mark an agent environment variable as secret, so Promptless redacts its value. * Decide which personal data to keep out of the sources you connect, because Promptless doesn’t scan content for it. ## How Promptless protects your data [Section titled “How Promptless protects your data”](#how-promptless-protects-your-data) Data minimization is the primary protection. Promptless processes the content behind a trigger or context source in real time to generate a suggestion, and does not store it. This covers a GitHub PR trigger, a Slack thread, and context from tools like Linear, Jira, Confluence, and Notion. Promptless also applies these limits: * Promptless does not retain a copy of source code, support conversations, or other integration data. * Promptless does not process sensitive end-user data. * Promptless uses your content only to generate your documentation suggestions, and does not use it to train language models. For the full data-handling posture, see [data handling and classification](/docs/for-docs/security/data-handling-and-classification). For how this applies to AI generation, see [how Promptless uses AI](/docs/for-docs/security/how-promptless-uses-ai). ## Credential redaction [Section titled “Credential redaction”](#credential-redaction) Credential redaction is the defense-in-depth layer alongside data minimization. It’s automatic and always on. It matches credential formats and specific values you mark as secret using [environment variables](/docs/for-docs/scale/environment-variables), acting on those recognized patterns and known values only. You mark a value secret with the **Secret** toggle under **Agent Env Vars** in **Settings**. These mechanisms protect the records Promptless logs, stores, and transmits. They do not scan the trigger and context content the agent reads to generate a suggestion. Redaction applies at these destinations: | Destination | What Promptless redacts | | -------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Log previews, telemetry spans, and persisted tool-call records | Replaces GitHub and GitLab token formats and `TOKEN=`-style assignments with `***` or `KEY=***`. | | Structured request logs | Replaces the values under sensitive key names, such as `password`, `token`, and `client_secret`, with `[REDACTED]` before an inbound request body reaches a structured log. | | Browser-tool responses | Rewrites each value you marked as secret to `NAME` before the response reaches the agent. Promptless uses its browser automation tool for tasks like capturing screenshots with [Promptless Capture](/docs/for-docs/get-the-most-out/screenshots). | ## What redacted output looks like [Section titled “What redacted output looks like”](#what-redacted-output-looks-like) The examples below are illustrative and use fabricated placeholder values. Redacted records take one of three forms. A recognized credential becomes `***`, and a `TOKEN=`-style assignment keeps its key and becomes `KEY=***`: ```text ghp_exampletoken -> *** GH_TOKEN=ghp_exampletoken -> GH_TOKEN=*** ``` Values under sensitive key names become `[REDACTED]` in structured logs: ```json { "password": "[REDACTED]", "client_secret": "[REDACTED]" } ``` A known secret value in a browser-tool response becomes `NAME`, where `NAME` is the label you gave the value: ```text DEPLOY_TOKEN ``` ## What Promptless does not scan [Section titled “What Promptless does not scan”](#what-promptless-does-not-scan) Credential redaction covers the credential formats and known secret values described above. Its scope is limited to those: * Promptless does not run a general secret or personal-data (PII) detector over ingested content from Confluence, Notion, Jira, Linear, Slack, or GitHub. * Promptless does not detect Social Security numbers, credit-card numbers, phone numbers, or free-form personal data. * Promptless does not scan the suggestion body for secrets before publishing. Personal data present in a connected source, such as a ticket or a chat message, can appear in a generated suggestion. Keeping such data out of the systems Promptless reads from is your responsibility. ## Encryption and isolation [Section titled “Encryption and isolation”](#encryption-and-isolation) For encryption standards and the multi-tenant isolation model, see [network architecture](/docs/for-docs/security/network-architecture) and [data handling and classification](/docs/for-docs/security/data-handling-and-classification). For how Promptless notifies you of a security incident, see [compliance and certifications](/docs/for-docs/security/compliance-and-certifications). # Self-hosting overview > Deploy Promptless on your own infrastructure for enhanced security, compliance, and control Enterprise only Self-hosting is available only to Enterprise customers. [Contact us](mailto:hello@gopromptless.ai) to discuss your self-hosting requirements and get access. Self-hosting runs Promptless on your own infrastructure, so you control your data, security, and compliance. It suits organizations with strict data governance policies or regulatory compliance needs, and teams that want full control over their documentation automation infrastructure. This page explains what self-hosting gives you, the deployment options, and what you need before you start. ## Use cases [Section titled “Use cases”](#use-cases) * Your data governance policy requires documentation, code analysis, and generated content to stay inside your infrastructure. * Your environment is air-gapped, or Promptless must run inside your VPC with your own networking and security groups. * You need Promptless to use your own authentication systems and LLM deployments, and to follow your own maintenance windows and backup policies. ## Why self-host Promptless? [Section titled “Why self-host Promptless?”](#why-self-host-promptless) Self-hosting gives enterprise organizations these benefits: | Area | Benefit | | ---------------------- | ---------------------------------------------------------------------------------------------- | | Data control | Your documentation, code analysis, and generated content never leave your infrastructure. | | Security | Promptless runs within your existing security perimeter, with your own authentication systems. | | Compliance | Meet strict regulatory requirements such as HIPAA, SOC 2, GDPR, or FedRAMP. | | Air-gapped deployments | Promptless supports isolated environments with no external access. | | Custom authentication | Integrate with your existing SAML, OIDC, or Active Directory systems. | | Network integration | Deploy within your VPC, with custom networking and security groups. | | Resource control | Scale compute and storage to your needs. | | Custom LLM models | Use your own fine-tuned models or private LLM deployments. | | Deployment flexibility | Choose your cloud provider or on-premises infrastructure. | | Maintenance windows | Control when updates and maintenance happen. | | Monitoring integration | Use your existing observability and alerting systems. | | Backup strategies | Apply your organization’s backup and disaster recovery policies. | ## Deployment options [Section titled “Deployment options”](#deployment-options) The Promptless team plans each self-hosted deployment with you. The plan fits your infrastructure, whether that’s a cloud provider or on-premises, along with your networking, security, and model setup. Note Self-hosted deployments are available as part of Enterprise support packages. [Contact the team](mailto:hello@gopromptless.ai) to discuss your requirements and timeline. ## Prerequisites for self-hosting [Section titled “Prerequisites for self-hosting”](#prerequisites-for-self-hosting) Before you begin a self-hosted deployment, you need: * An Enterprise license. Self-hosting is available only to Enterprise customers. * Administrative access to your target deployment environment. * Infrastructure experience, or dedicated DevOps resources. * A completed security and compliance review of the deployment architecture. [Contact Sales](mailto:hello@gopromptless.ai)Discuss your self-hosting requirements and enterprise licensing [Technical Support](mailto:help@gopromptless.ai)Get technical assistance with deployment and configuration ## Support and maintenance [Section titled “Support and maintenance”](#support-and-maintenance) Enterprise self-hosting includes: | Included | What you get | | ------------------ | --------------------------------------------------------------------- | | Deployment support | Guidance through initial setup and configuration. | | Updates | Regular releases with new features and bug fixes. | | Security patches | Timely security updates and vulnerability notifications. | | Technical support | Direct access to the Promptless engineering team for troubleshooting. | | Documentation | Guides, runbooks, and best practices. | | Monitoring | Health checks and recommended alerting configurations. | | Backup guidance | Recommendations for backup and disaster recovery strategies. | | Performance tuning | Optimization guidance as your usage grows. | To start planning a self-hosted deployment, [contact the team](mailto:hello@gopromptless.ai). # Single sign-on (SSO) setup > Set up single sign-on so enterprise users authenticate through your existing identity provider. Single sign-on (SSO) lets your team sign in to Promptless through your organization’s existing identity provider (IdP). ## Overview [Section titled “Overview”](#overview) Set up SSO when your organization manages access to its tools through an IdP, or when a security review requires it before rollout. The Promptless team configures SSO for you. You collect configuration details from your IdP, send them to Promptless, and then add the service provider details Promptless returns to your IdP. With SSO, your IdP controls access to Promptless: * Control Promptless access through your existing identity management workflows. * Enforce your IdP’s multi-factor authentication (MFA) requirements. * Apply consistent session handling across your organization’s applications. See [Session management](/docs/for-docs/security/compliance-and-certifications#session-management). * Keep authentication and access logs for compliance requirements. ### Supported authentication methods [Section titled “Supported authentication methods”](#supported-authentication-methods) Promptless supports these SSO methods: | Method | Supported identity providers | | --------------------- | ----------------------------------------------------------------------------------------------------------- | | SAML 2.0 | Enterprise identity providers, including Active Directory Federation Services, Okta, OneLogin, and Azure AD | | OpenID Connect (OIDC) | Google Workspace, Azure AD, and other OIDC-compliant providers | | Direct integrations | Google Workspace and GitHub Enterprise authentication | ## Before you start [Section titled “Before you start”](#before-you-start) Note SSO is available only for enterprise customers. To learn about enterprise plans and pricing, email . To request SSO, you need: * An active Promptless enterprise subscription * Administrative access to your identity provider * The ability to configure SAML assertions or OIDC claims for user attributes * A verified domain in your Promptless organization settings. See [Domain verification and auto-enrollment](/docs/for-docs/reference/account-management#domain-verification-and-auto-enrollment). ## Request SSO configuration [Section titled “Request SSO configuration”](#request-sso-configuration) Your IT team and the Promptless team set up SSO together: 1 ### Collect identity provider information From your identity provider, gather the details for your authentication method. For SAML 2.0: * Identity provider entity ID or issuer URL * Single sign-on service URL * X.509 certificate, the public key for signature verification * Attribute mappings for the email, first name, and last name fields For OpenID Connect (OIDC): * Issuer URL, the discovery endpoint * Client ID and client secret * Authorization endpoint and token endpoint URLs * Supported scopes and user attribute claims 2 ### Submit the configuration request Send these details to your dedicated account manager, or [email support](mailto:help@gopromptless.ai): * Your organization name and verified domain * Your preferred authentication method, SAML 2.0 or OIDC * The identity provider information from step 1 3 ### Complete the configuration with the Promptless team The Promptless team configures the SSO integration and sends you: * Service provider (SP) metadata to add to your identity provider’s configuration * The user attribute mapping and role assignment configuration After SSO is active, your team signs in through your IdP: * People who open Promptless are redirected to your organization’s sign-in portal. * After they authenticate with your IdP, they have immediate access to Promptless. * Promptless creates accounts for new users from their IdP profile, through just-in-time provisioning. * User access levels can sync from your identity management system. For questions about SSO setup or your organization’s authentication requirements, email the enterprise support team at . The Promptless team works directly with your IT department on the setup. ## See also [Section titled “See also”](#see-also) * [Access and permissions](/docs/for-docs/security/access-and-permissions#roles-inside-promptless) for the Admin, Editor, and Collaborator roles in Promptless * [Account management](/docs/for-docs/reference/account-management) for inviting team members and setting the default role * [Compliance and certifications](/docs/for-docs/security/compliance-and-certifications) for session management, audit logging, and incident notification # Promptless subprocessors > The third-party subprocessors behind Promptless's documentation automation, including its model-agnostic AI providers. This page lists the third-party subprocessors behind the Promptless documentation automation service, for a vendor or security review. It also lists the language model options Promptless supports. For more detail about security practices, data handling, or privacy commitments, email to schedule a call with the team. ## Current subprocessors [Section titled “Current subprocessors”](#current-subprocessors) Promptless uses these subprocessors to deliver its core service: | Subprocessor | Category | What Promptless uses it for | | ------------------------- | --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | Amazon Web Services (AWS) | Infrastructure and hosting | Primary cloud infrastructure: EKS, EC2, S3, RDS (Aurora), and Lambda. The primary data center location is us-east-2, with secondary locations in other US regions. | | Clerk | Authentication and security | User authentication, SSO, identity management, and security token services. | | DataDog | Monitoring and analytics | Infrastructure monitoring, application performance monitoring, log management, and security monitoring. | | Sentry | Monitoring and analytics | Error tracking and monitoring. | ## Language models and AI infrastructure providers [Section titled “Language models and AI infrastructure providers”](#language-models-and-ai-infrastructure-providers) Promptless is model-agnostic. By default, cloud-hosted customers access models through AWS Bedrock. Promptless may recommend models for different parts of the documentation process, based on what produces the best output for each. You make the final choice of architecture. These model options are available: | Model option | Available to | | ----------------------------------------------------------------- | ---------------------------------- | | AWS Bedrock | Default for cloud-hosted customers | | Multiple language models, including open-source and custom models | All customers | | Switching between model providers | All customers | | Custom model integration | All customers | | Cloud-provider-hosted model deployments | Enterprise customers | | Customer-managed model deployments | Enterprise customers | | Custom model fine-tuning | Enterprise customers | | Model performance monitoring and optimization | Enterprise customers | | Dedicated model resources | Enterprise customers | Whatever the model, Promptless does not use customer data to pre-train or fine-tune language models. ## Notes [Section titled “Notes”](#notes) * Customers can also connect third-party [integrations](/docs/for-docs/reference/integrations), such as GitHub, Slack, Linear, and Jira, to their projects. You choose which integrations to connect. * For the most current subprocessor information, email . For specific security requirements, email . ## See also [Section titled “See also”](#see-also) * [How Promptless uses AI](/docs/for-docs/security/how-promptless-uses-ai) * [Data handling and classification](/docs/for-docs/security/data-handling-and-classification) * [Network architecture](/docs/for-docs/security/network-architecture) # Starport overview > Starport is a managed docs-as-code framework, built on open-source Astro Starlight, that Promptless sets up and keeps current, on hosting you own. Starport is a managed docs-as-code framework, built on the open-source [Astro Starlight](https://starlight.astro.build/). Promptless stands up your documentation site, sets up its build and deploy pipeline, and keeps its content current as your product changes. The content lives in a Git repository your team owns. The site runs on a hosting provider you choose, such as Vercel, on an account you own. Migration is included, and optional You don’t need Starport to use Promptless. Promptless keeps your docs current on your existing setup. When you do want to move, every annual Promptless plan includes migration to Starport at no cost. Note The documentation you are reading runs on Starport. Promptless migrated promptless.ai onto the Starport template and keeps it current. ## Use cases [Section titled “Use cases”](#use-cases) Starport fits teams who want docs-as-code run as a service, on hosting they control: | Your situation | How Starport helps | | ------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Your docs live on a hosted platform, and you want the content in a Git repository you own. | Promptless migrates the content onto Starport as Markdown and MDX files in your repository. See [Migrate to Starport](/docs/for-docs/starport/migration). | | No one on your team has time to run a docs build, search, and redirects. | Promptless sets up the pipeline, which then runs in CI. Your team adjusts settings in plain configuration files. See [How Starport works](/docs/for-docs/starport/how-it-works). | | AI agents and coding assistants need to read your docs. | Every Starport site ships llms.txt files and, by default, a read-only docs MCP server and page actions. See [Agent-ready docs](/docs/for-docs/starport/agent-ready). | ## What Starport gives you [Section titled “What Starport gives you”](#what-starport-gives-you) Build pipeline set up for you, hosting you own Promptless sets up your build and deploy pipeline, which then runs in CI, so your team spends its time on content. Your site runs on a provider you choose, such as Vercel, on an account you own. Agent-ready by default Starport sites ship llms.txt files, a read-only docs Model Context Protocol (MCP) server, and page actions. AI agents use them to read and search your docs. Self-service configuration After onboarding, set site metadata, branding, search, redirects, and deploy options yourself, in plain configuration files. Kept current by Promptless Promptless detects when your product changes and opens documentation pull requests against the Git repository you own. ## Explore Starport [Section titled “Explore Starport”](#explore-starport) [How Starport works](/docs/for-docs/starport/how-it-works)Who runs each part of the site, and what your team owns. [What's included in Starport](/docs/for-docs/starport/whats-included)The capabilities a Starport site ships. [Agent-ready docs](/docs/for-docs/starport/agent-ready)How Starport makes your docs readable by AI agents. [Starport analytics](/docs/for-docs/starport/analytics)Send reader search and assistant activity to your analytics tool. [Monitor a Starport site](/docs/for-docs/starport/connections)Read-only connections that let Promptless read your deploy status and reader analytics. [Configure your Starport site](/docs/for-docs/starport/configuring-starport)The settings you change yourself after onboarding. [Migrate to Starport](/docs/for-docs/starport/migration)What Promptless does during the migration, and what you keep. [Keep your Starport docs current](/docs/for-docs/starport/keep-docs-current)How Promptless maintains your site after migration. # Agent-ready docs on Starport > How Starport makes docs readable by AI agents through llms.txt files, a read-only docs MCP server, page actions, afdocs scoring, and an optional site assistant. Agent-ready docs are documentation an AI agent can read, search, and cite on its own, without a person pasting pages into a prompt. A Starport site ships llms.txt files, a docs Model Context Protocol (MCP) server, and page actions. It adds agent-friendly docs (afdocs) scoring and an optional site assistant. Any AI agent can use these to answer questions about your product from your content. For the full capability list, see [What’s included in Starport](/docs/for-docs/starport/whats-included). ## Use cases [Section titled “Use cases”](#use-cases) | What you need | What to use | | ------------------------------------------------------------------------------------ | -------------------------------------------------- | | Give an AI agent your whole docs corpus as plain text. | [`llms-full.txt`](#the-llmstxt-files) | | Let a coding assistant, such as Claude Code or Cursor, search your docs as it works. | [The docs MCP server](#read-only-docs-mcp-server) | | Let a reader hand one page to ChatGPT or Claude. | [Page actions](#page-actions) | | Catch a change that makes your published docs harder for agents to read. | [Afdocs scoring](#afdocs-scoring) | | Answer reader questions from your docs, inside the site. | [The site assistant](#the-optional-site-assistant) | ## The llms.txt files [Section titled “The llms.txt files”](#the-llmstxt-files) Starport generates three files at build, following the [llms.txt standard](https://llmstxt.org/), so an agent can load your docs as plain text: * `llms.txt` is the entry point. It names your site and links to the two documentation sets below. * `llms-full.txt` carries the full text of your docs in one file. * `llms-small.txt` carries an abridged version, with non-essential content removed. An agent reads them at their published paths: ```text https://docs.example.com/llms.txt https://docs.example.com/llms-full.txt https://docs.example.com/llms-small.txt ``` Point an agent at `llms-full.txt` when it needs the whole corpus, and at `llms-small.txt` when its context window is tight. ## Read-only docs MCP server [Section titled “Read-only docs MCP server”](#read-only-docs-mcp-server) Starport serves a read-only [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) server at `/mcp`. AI clients such as Claude Code, Cursor, and VS Code connect to it to search and read your docs, through two tools: * `search` finds passages by query and returns them with their source URLs. * `get_page` returns one page’s full content as Markdown. Both tools are read-only, so an agent reads your docs and never writes to them. ```text https://docs.example.com/mcp ``` The endpoint requires no authentication. To restrict access, use your hosting provider’s access control, for example Cloudflare Access or Vercel Deployment Protection. Note The docs MCP server is on by default. To turn it off, set `MCP_ENABLED` to `false`. See [Configure deploy settings](/docs/for-docs/starport/configuring-starport#configure-deploy-settings) for the settings it needs. ## Page actions [Section titled “Page actions”](#page-actions) Every page carries controls that hand its content to an agent in one step. **Copy Markdown** copies the page as Markdown for pasting into any tool. Under **Open**, **Open in ChatGPT** and **Open in Claude** open that assistant with a prompt to read the page, ready for your questions. ## Afdocs scoring [Section titled “Afdocs scoring”](#afdocs-scoring) Starport checks how ready your docs are for agents with afdocs, the checker for the [Agent-Friendly Docs Spec](https://agentdocsspec.com/spec/web/). The check runs daily against your published site and can also be run manually. It fails when the score drops below a minimum, 100 by default, so a regression shows up on the next run. The check runs once the `AFDOCS_URL` repository variable holds your published site’s URL. To score any docs site without a Starport repository, use [Agent Score](/agent-score), a hosted run of afdocs. ## The optional site assistant [Section titled “The optional site assistant”](#the-optional-site-assistant) Add an Anthropic API key and Starport turns on an assistant in site search. A reader selects **Ask Assistant** and asks a question. The assistant answers from your published pages, with links to the pages it drew from. For the key and the model setting, see [Configure your Starport site](/docs/for-docs/starport/configuring-starport#turn-on-the-site-assistant). # Starport analytics > Measure reader search and assistant activity on a Starport site by forwarding its starport:analytics browser event to your analytics provider, and read the PostHog analytics Promptless sets up. ## Overview [Section titled “Overview”](#overview) A Starport site reports reader search and assistant activity through the analytics tools you already run. The site emits a browser event for each search and assistant interaction, and you forward those events to your analytics provider. Use this when you want to see what readers search for, which results they open, and what they ask the site assistant. If you gave Promptless a PostHog project key during setup, your site also reports page views and searches to PostHog. For the full capability list, see [What’s included in Starport](/docs/for-docs/starport/whats-included). ## Before you start [Section titled “Before you start”](#before-you-start) * Your analytics provider’s browser SDK, and access to add it to your Starport site. * Your organization’s consent setup for analytics. Search and assistant events carry what readers type, so connect them only through that setup. ## Forward Starport events to your analytics provider [Section titled “Forward Starport events to your analytics provider”](#forward-starport-events-to-your-analytics-provider) The site dispatches a `starport:analytics` event on `window` for each search and assistant interaction. Each event’s `detail` holds the event `name` and its `properties`. Every event includes `page_url`, the path of the page the reader was on. 1. Load your provider’s browser SDK on your Starport site, for example through Starlight’s `head` configuration in `astro.config.mjs`. 2. Add a listener that forwards each `starport:analytics` event to your provider: ```js // Illustrative: your provider's browser SDK is loaded as `myAnalytics`. window.addEventListener('starport:analytics', (event) => { const { name, properties } = event.detail; myAnalytics.track(name, properties); }); ``` 3. Deploy the change, run a search on the published site, and confirm that the event appears in your provider’s dashboard. Your provider then records the events listed here: | Event | When it fires | Properties besides `page_url` | | ------------------------ | -------------------------------------------- | ----------------------------------------------------------------------- | | `search_query` | A reader runs a search. | `query`, `results`, `latency_ms`, `query_ms` | | `search_result_click` | A reader opens a search result. | `query`, `url`, `position`, `source` (`search`, `recent`, or `starter`) | | `search_error` | A search fails. | `code` | | `assistant_question` | A reader asks the site assistant a question. | `question`, `question_length` | | `assistant_source_click` | A reader opens a page the assistant cited. | `url` | | `assistant_latency` | The assistant starts or finishes an answer. | `stage` (`first_text` or `complete`), `latency_ms`, `interrupted` | | `assistant_error` | The assistant can’t finish an answer. | `code` | | `assistant_feedback` | A reader rates an answer. | `message_id`, `value` (`up` or `down`) | To switch providers, change the listener. ## Read docs analytics in PostHog [Section titled “Read docs analytics in PostHog”](#read-docs-analytics-in-posthog) If you gave Promptless a PostHog project key during setup, Promptless sets it as the site’s `PUBLIC_POSTHOG_KEY` and manages it for you. Your site then reports page views, searches, and search-result clicks to that PostHog project. 1. In PostHog, open the project whose key you gave Promptless. 2. Look for the `$pageview`, `docs_search`, and `docs_search_result_clicked` events from your docs site. To let Promptless read that data back and find the pages that need work, connect PostHog read-only. See [Connect PostHog](/docs/for-docs/starport/connections#connect-posthog). ## See also [Section titled “See also”](#see-also) * [Monitor a Starport site through read-only connections](/docs/for-docs/starport/connections), to let Promptless read your deploy status and reader analytics. * [Data handling and classification](/docs/for-docs/security/data-handling-and-classification), for what Promptless processes and retains. * [Reporting and ROI](/docs/for-docs/measure/reporting-and-roi), for documentation impact across Promptless. # Configure your Starport site > Change a Starport site's metadata, branding, search, site assistant, redirects, and deploy settings yourself after onboarding, in astro.config.mjs and environment variables. ## Overview [Section titled “Overview”](#overview) After Promptless completes your onboarding, you maintain the site’s settings yourself. Most of them live in two places: `astro.config.mjs` for the site’s structure and appearance, and environment variables for values that change per environment. Promptless sets working values during onboarding, so change a setting here only when you want the site to behave differently. For the managed setup that comes first, see [How Starport works](/docs/for-docs/starport/how-it-works) and [Migrate to Starport](/docs/for-docs/starport/migration). ## Before you start [Section titled “Before you start”](#before-you-start) * Write access to your Starport site’s Git repository. * Access to your hosting provider’s environment variables for the site, such as your Vercel project’s settings. The default publish workflow pulls the production environment from Vercel when it builds. * For local builds, a `.env` file copied from `.env.example`. Git ignores `.env`, so values in it apply only to builds on your machine. ## Set site metadata [Section titled “Set site metadata”](#set-site-metadata) The site’s identity comes from four environment variables. Each one falls back to a default in `astro.config.mjs` when it’s unset. | Variable | What it sets | | -------------------- | ------------------------------------------------------------------ | | `SITE_URL` | The canonical URL, which the sitemap and OpenGraph links also use. | | `SITE_TITLE` | The site title. | | `SITE_DESCRIPTION` | The site description. | | `EDIT_LINK_BASE_URL` | The repository and branch that each page’s edit link points to. | 1. In your hosting provider’s environment variables, set the variables you want to change. 2. Optional. To build with the same values locally, set them in `.env`: .env ```bash SITE_URL=https://docs.your-company.com SITE_TITLE=Your Docs SITE_DESCRIPTION=Product documentation for your product. EDIT_LINK_BASE_URL=https://github.com/your-org/your-repo/edit/main/ ``` 3. Redeploy the site so the build picks up the new values. ## Set branding [Section titled “Set branding”](#set-branding) 1. In `public/`, replace `logo.svg` and `favicon.svg` with your own files. `astro.config.mjs` points the `logo` and `favicon` options at them. 2. In `src/styles/custom.css`, set your brand color in the `--sl-color-accent` token family: `--sl-color-accent`, `--sl-color-accent-low`, and `--sl-color-accent-high`. 3. In the same file, set your typeface with the `--sl-font` token. 4. Under the `:root[data-theme='dark']` selector, set the dark-mode accent values. 5. Check color contrast in both light and dark mode. ## Configure search [Section titled “Configure search”](#configure-search) Site search is on by default and needs no credentials. These `starlightSearch()` options in `astro.config.mjs` tune it: | Option | What it controls | | ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | | `ranking.fields` | How much each field counts toward a match. The fields are `title`, `description`, `heading`, and `body`, weighted `4`, `3`, `2`, and `1` by default. | | `starterLinks` | Up to four suggested destinations per language that seed the empty search box. Each one must point to a published page. | | `exclude` | Exact paths, or prefixes ending in `/*`, to keep out of the search index. | 1. In `astro.config.mjs`, edit the `starlightSearch()` options. 2. Rebuild the site with `npm run build`. The build regenerates the search index. ## Turn on the site assistant [Section titled “Turn on the site assistant”](#turn-on-the-site-assistant) The optional site assistant answers reader questions from your published pages. It runs on Anthropic models through your own Anthropic account, and it runs on Vercel. See [Agent-ready docs](/docs/for-docs/starport/agent-ready#the-optional-site-assistant) for what readers see. 1. In your Anthropic account, create an API key. 2. In your hosting provider’s environment variables, set `ANTHROPIC_API_KEY` for both build and runtime. On Vercel, add it to Production, and to Preview if you test there. Leave off any `PUBLIC_` prefix, so the key stays on the server. 3. Optional. Set `STARPORT_ASSISTANT_MODEL` to choose a different model than the default, `claude-sonnet-5`. The model must support Anthropic’s effort parameter. 4. Redeploy the site. The template turns on the assistant when the build finds the key. ```bash ANTHROPIC_API_KEY=your-anthropic-api-key STARPORT_ASSISTANT_MODEL=claude-sonnet-5 ``` Caution Each question the assistant answers calls your Anthropic account. The site limits each IP address to 20 questions every ten minutes, per server instance. That limit isn’t a spending cap, so set usage limits in your Anthropic account. Without the key, site search still runs and the assistant stays hidden. After you remove the key, rebuild the site to hide the assistant. ## Configure the API reference and page actions [Section titled “Configure the API reference and page actions”](#configure-the-api-reference-and-page-actions) The OpenAPI reference reads one entry per API from the `starlightOpenAPI([...])` array in `astro.config.mjs`. Each entry has a `base` path, a `label`, and a `schema` file. 1. Add the API’s OpenAPI spec file to the `openapi/` directory. 2. In the `starlightOpenAPI([...])` array, add an entry with its `base`, `label`, and `schema`. Each entry gets its own sidebar group. 3. To drop an API, remove its entry. Page actions take a `position` setting and an `actions` list that turns each action on or off, in the `starlightPageActions()` options. ## Author redirects [Section titled “Author redirects”](#author-redirects) Author redirects in `redirects.json` when a page moves or a URL changes. 1. In `redirects.json`, add a `source` and `destination` pair to the `redirects` array: ```json { "redirects": [ { "source": "/old-guide", "destination": "/docs/new-guide" } ] } ``` 2. Run `npm run build`. The build first runs `build:redirects`, which writes each pair into `vercel.json` as a permanent redirect. If you deploy somewhere other than Vercel, adapt `scripts/build-redirects.ts` to your host’s redirect format. ## Configure deploy settings [Section titled “Configure deploy settings”](#configure-deploy-settings) Starport deploys to Vercel through `.github/workflows/publish.yml` on every merge to `main`. The template’s README also documents how to deploy to GitHub Pages and Cloudflare Pages. 1. In your GitHub repository’s Actions secrets, set `VERCEL_TOKEN`, `VERCEL_ORG_ID`, and `VERCEL_PROJECT_ID`. The token comes from your Vercel account, and the two IDs come from `.vercel/project.json` after you run `vercel link`. The workflow skips the deploy until all three are set. 2. In your GitHub repository’s Actions variables, set `AFDOCS_URL` to your published site’s URL so the daily [afdocs check](/docs/for-docs/starport/agent-ready#afdocs-scoring) runs. 3. Optional. In your hosting provider’s environment variables, set the docs MCP server’s options: ```bash MCP_ENABLED=true MCP_RUNTIME=vercel ``` `MCP_ENABLED` defaults to `true`. Set it to `false` to turn off the docs MCP server and build a fully static site. The MCP server needs an on-demand runtime, which `MCP_RUNTIME` selects. It defaults to `vercel`, the verified runtime. Your hosting provider handles your custom domain and its TLS certificate, outside the repository. To let Promptless read whether each deploy succeeded, connect Vercel or Cloudflare Pages read-only on the integrations page. That connection only reads deploy status. Your CI uses the `VERCEL_*` secrets to publish. See [Monitor a Starport site through read-only connections](/docs/for-docs/starport/connections). ## Run checks before you merge [Section titled “Run checks before you merge”](#run-checks-before-you-merge) Run the same checks your CI runs before you merge a change: 1. Run `npm run check` to typecheck, test, and build the site. 2. Run `npm run lint:md` to lint Markdown structure. 3. Run `npm run lint:frontmatter` to validate frontmatter. This script needs Node 24 or newer. The other scripts run on Node 22.12 or newer. 4. Run `vale src/content` to lint prose. These files configure the build and its checks: | File | What it configures | | --------------------- | ------------------------------------------------------------------------- | | `package.json` | The scripts, such as `dev`, `build`, `preview`, `check`, and `build:pdf`. | | `pdf-exports.json` | The named PDF export sets, each with a name and its entry points. | | `docmeta.config.yaml` | Frontmatter validation. | | `.vale.ini` | Prose linting. | | `.remarkrc.mjs` | Markdown structure linting. | ## See also [Section titled “See also”](#see-also) * [Agent-ready docs](/docs/for-docs/starport/agent-ready), for what the docs MCP server, page actions, and site assistant give readers and agents. * [Starport analytics](/docs/for-docs/starport/analytics), to send search and assistant events to your analytics provider. * [Monitor a Starport site through read-only connections](/docs/for-docs/starport/connections), to let Promptless read deploy status and reader analytics. # Monitor a Starport site through read-only connections > The read-only connections that let Promptless read a Starport site's deployment status from Vercel or Cloudflare Pages, and its reader analytics from PostHog. ## Overview [Section titled “Overview”](#overview) Connect your hosting provider and analytics tool to Promptless so it can monitor your Starport site. Each connection is read-only: Promptless polls it for status or analytics and never writes to it. Set up a connection when you want Promptless to see what readers experience on the published site: | Connection | What Promptless reads | What it learns | | -------------------------- | ------------------------------------------ | ------------------------------------------- | | Vercel or Cloudflare Pages | Deployment status | Whether your docs site built and published. | | PostHog | Page views and search queries on your docs | Which pages need work. | You set up each connection once for your organization, not per site. For the full capability list, see [What’s included in Starport](/docs/for-docs/starport/whats-included). ## Before you start [Section titled “Before you start”](#before-you-start) * An admin role in your Promptless organization, to use the [integrations page](https://app.gopromptless.ai/integrations). * For Cloudflare Pages, permission in Cloudflare to create an API token for the account that hosts your docs site. * For PostHog, permission to create a personal API key, and the project that receives your docs site’s events. ## Connect Vercel [Section titled “Connect Vercel”](#connect-vercel) With Vercel connected, Promptless reads your deployment status, so it can tell whether your docs site built and published. It never deploys, and it never changes your projects, domains, or environment variables. An organization admin connects Vercel once, through OAuth, for the whole organization. 1. On the Promptless [Integrations](https://app.gopromptless.ai/integrations) page, select **Connect Vercel**. 2. On Vercel, approve read-only access for Promptless. 3. On the Integrations page, confirm that Vercel shows as connected. Monitoring is separate from your Starport deploy Your Starport site deploys to Vercel from CI, using the credentials in [Starport configuration](/docs/for-docs/starport/configuring-starport#configure-deploy-settings). This connection only reads the result. ## Connect Cloudflare Pages [Section titled “Connect Cloudflare Pages”](#connect-cloudflare-pages) With Cloudflare Pages connected, Promptless reads your Pages project and deployment status, so it can tell whether your docs site built. It never triggers a build, and it never changes anything in your account. 1. In Cloudflare, under **My Profile** > **API Tokens**, create a token with read access to **Cloudflare Pages** and **Account Settings**. 2. On the Promptless [integrations page](https://app.gopromptless.ai/integrations), select **Connect Cloudflare**. 3. In **API Token**, paste the token, then select **Connect**. 4. If the token reaches more than one Cloudflare account, choose the account that hosts your docs site, then select **Use this account**. Promptless reads deployment status from that account only. ## Connect PostHog [Section titled “Connect PostHog”](#connect-posthog) With PostHog connected, Promptless queries page views and search queries on your docs, so it can tell which pages need work. It never sends events, and it never changes anything in PostHog. 1. In PostHog, under **Settings** > **Personal API keys**, create a key with read access to **Query** and **Project**. 2. On the Promptless [integrations page](https://app.gopromptless.ai/integrations), select **Connect PostHog**. 3. In **Personal API key**, enter the key. 4. In **Project ID**, enter your project’s numeric ID. Find it under **Settings** > **Project** in PostHog, or in the project URL. 5. In **Region**, select **US Cloud**, **EU Cloud**, or **Self-hosted**. For a self-hosted instance, enter its URL. 6. Select **Connect**. This read-only connection is separate from the analytics your Starport site reports on its own. For how that reporting works, see [Starport analytics](/docs/for-docs/starport/analytics). ## Manage a connection [Section titled “Manage a connection”](#manage-a-connection) To remove a connection, use the disconnect action on its card on the [integrations page](https://app.gopromptless.ai/integrations). You can remove one at any time, and Promptless stops reading from it. To check whether a connection is active, see [Connection health](/docs/for-docs/connect/connection-health). ## See also [Section titled “See also”](#see-also) * [Starport analytics](/docs/for-docs/starport/analytics), for the events your site reports and how to forward them to your analytics provider. * [Configure deploy settings](/docs/for-docs/starport/configuring-starport#configure-deploy-settings), for the credentials your CI uses to publish the site. * [Vercel integration](/docs/for-docs/reference/integrations/vercel), for details of the Vercel connection. # How Starport works > Understand the managed model: Promptless stands up the site, sets up your build and deploy pipeline, and keeps content current, while your content and hosting stay yours in a Git repository and a hosting account you own. Starport splits the work on a docs site between Promptless and your team. Promptless sets up and maintains the tooling: the site framework, the build and deploy pipeline, and the content updates that track your product. Your team owns the content, the Git repository it lives in, and the hosting account the site deploys to. This page covers who runs each part and what your docs need before they can run on Starport. Starport follows the docs-as-code model: your pages live as source files in a Git repository, versioned and reviewed like code. For the settings you change yourself, see [Configure your Starport site](/docs/for-docs/starport/configuring-starport). For the move onto Starport, see [Migrate to Starport](/docs/for-docs/starport/migration). ## Use cases [Section titled “Use cases”](#use-cases) | Your situation | What Starport means for you | | --------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | | You’re deciding whether your team can run a docs site without a dedicated docs engineer. | Promptless sets up the build and deploy pipeline and keeps the site’s supporting features current. Your team writes and reviews content. | | Your security or platform team asks who controls the repository, the hosting, and what ships. | Your team owns the repository and the hosting account, and approves every change Promptless proposes. | | Your docs live in a hosted editor today. | The content moves into a Git repository as Markdown or MDX first. Promptless handles that move as part of the migration. | ## Who runs what [Section titled “Who runs what”](#who-runs-what) Each part of a Starport site has an owner: | Part of the site | Who runs it | What happens | | ------------------------- | ------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------- | | Site framework | Promptless | Promptless stands up your site on the Starport template, built on Astro Starlight. | | Build and deploy pipeline | Promptless sets it up, and it runs in CI | A merged change builds and publishes through your hosting provider, with no manual steps. | | Hosting | Your team, with setup help from Promptless | The site deploys to a provider you choose, such as Vercel, on an account you own. | | Supporting features | Promptless | Promptless keeps search, redirects, and the agent-ready features, such as llms.txt and the docs MCP server, current. | | Content updates | Promptless proposes, your team approves | Promptless detects when your product changes and opens documentation pull requests against your repository for your team to review. | | Site configuration | Your team | After onboarding, you tune the site through its configuration files. | Note Promptless proposes every content change as a reviewable pull request. Your team approves and merges each one, so you stay in control of what publishes. ## What you own [Section titled “What you own”](#what-you-own) Your content lives in a Git repository your team owns and controls. Promptless proposes edits the way a teammate would, by branching, changing files, and opening a pull request you review. Because the repository is yours, you keep its full history and access control, and you can edit content directly at any time. For the docs-as-code fundamentals and why Promptless builds on them, see [Understand docs-as-code](/docs/for-docs/migrate/why-docs-as-code). For how Promptless maintains content over time, see [Keep your Starport docs current](/docs/for-docs/starport/keep-docs-current). ## Prerequisites [Section titled “Prerequisites”](#prerequisites) To run on Starport, your documentation needs a docs-as-code footing: * A Git repository your team owns, which holds your content as source files. * Content authored in Markdown or MDX, the formats Starport builds from. If your docs live in a hosted editor that stores content in a proprietary database, the move to docs-as-code comes first. Promptless handles that move as part of the [managed migration](/docs/for-docs/starport/migration). # Keep your Starport docs current > How Promptless keeps a Starport site current after migration, tying Starport back to the core Promptless product. After you migrate to Starport, Promptless keeps your content current as your product changes. It runs the same loop it runs on any docs repository. A product change triggers Promptless, which drafts the documentation update and opens a pull request for your team to review. ## Use cases [Section titled “Use cases”](#use-cases) | What happens | What Promptless does | | --------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | An engineer merges a pull request that changes how a feature behaves. | Promptless drafts the matching documentation update and opens it as a pull request against your Starport repository. | | A support conversation shows that a page is wrong or missing. | Promptless drafts the fix from that conversation for your team to review. | | A documented procedure stops working. | The template’s weekly [Doc Detective](/docs/for-docs/audit/doc-detective) run opens a GitHub issue that mentions Promptless, and Promptless proposes a fix. This needs the Promptless GitHub App on your docs repository. | ## How Promptless keeps your content current [Section titled “How Promptless keeps your content current”](#how-promptless-keeps-your-content-current) Promptless watches the sources your team already uses, such as merged pull requests and support conversations. When one of them signals a product change, Promptless drafts the documentation update and opens it as a pull request against your repository. Your Starport content is Markdown and MDX in a Git repository, so Promptless edits it the way a teammate would. It creates a branch, changes files, and opens a reviewable change. You review each suggestion before it publishes, and you approve it, request edits, or decline it. To ask Promptless about a suggestion or a change you need, message it in Slack or Microsoft Teams. Note Every update arrives as a reviewable pull request. Your team approves and merges each one, so nothing publishes without your review. ## Related resources [Section titled “Related resources”](#related-resources) The loop on your Starport site is the same one Promptless runs across every doc collection. A trigger activates on an event, Promptless gathers context and produces a suggestion, and it opens a pull request for review. * [How Promptless works](/docs/for-docs/start-here/how-promptless-works), for the full model. * [Triggers](/docs/for-docs/connect/triggers), for the events that start the loop. # Migrate to Starport > The fully managed migration to Starport, covering what Promptless does, what you keep, and how you configure and maintain the site afterward. Promptless runs the migration to Starport for you. It stands up the site and moves your content and configuration onto it. Your team reviews the result, cuts over to the new site when ready, and runs the site’s configuration after onboarding. For the fundamentals of docs-as-code and platform choice, see [Understand docs-as-code](/docs/for-docs/migrate/why-docs-as-code) and [Choose a platform](/docs/for-docs/migrate/choose-a-platform). ## Use cases [Section titled “Use cases”](#use-cases) | Your situation | What the migration gives you | | ------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | | Your docs live on a hosted platform that keeps content in its own editor. | Your content moves into a Git repository you own, as Markdown and MDX source files. | | You want to change platforms without breaking existing links. | Promptless sets up redirects from changed URLs, so existing links keep working. | | Your team can’t pause writing for a migration project. | Promptless does the migration work while your team keeps writing, then you review the result. | | You need to know you can leave later. | Your content and site run on open-source Astro Starlight in your own repository and hosting account. | ## What Promptless handles [Section titled “What Promptless handles”](#what-promptless-handles) Promptless handles the migration end to end: 1. Promptless bootstraps your site on the Starport template. 2. Promptless migrates your content, components, screenshots, and configuration onto it. 3. Promptless sets up redirects for any URLs that change. For the fundamentals, see [Preserve URLs and redirects](/docs/for-docs/migrate/preserve-urls-and-redirects). 4. Promptless optimizes your docs for AI agents, so the llms.txt files, docs MCP server, and page actions work at launch. 5. Promptless readies the site for launch, so your team can cut over when you are ready. Note Your content moves as source files, and you review the migrated site before you cut over. ## What Promptless needs from you [Section titled “What Promptless needs from you”](#what-promptless-needs-from-you) The managed migration needs these from your team: * Access to your existing documentation content. * A Git repository for the content. If you don’t have one, Promptless sets one up with you. * Control of your domain’s DNS. You point the domain at the new site when you cut over. Promptless leaves your DNS records to you. ## What you keep [Section titled “What you keep”](#what-you-keep) Your content stays yours. It lives in a Git repository your team owns, as Markdown and MDX source files. You keep the full history and the access control, and you can edit and publish directly at any time. Promptless sets up the build, deploy, and content-maintenance tooling around that repository. If you stop using Promptless, you keep the content and the site. The site runs on the open-source Astro Starlight framework from your repository and hosting account, so it keeps building and serving on its own. ## After onboarding [Section titled “After onboarding”](#after-onboarding) Once you are live, the site’s configuration is yours. You tune it through its configuration files. See [Configure your Starport site](/docs/for-docs/starport/configuring-starport) for the options you own. Promptless keeps your content current as your product changes. See [Keep your Starport docs current](/docs/for-docs/starport/keep-docs-current) for how that works. ## Start a migration [Section titled “Start a migration”](#start-a-migration) Every annual Promptless plan includes migration to Starport at no cost. To start a migration, talk to your Promptless contact. If you’re evaluating Promptless, contact the Promptless team at . # What's included in Starport > The capabilities a Starport site ships, with what each one gives you. Every Starport site ships the capabilities below, built on the open-source Astro Starlight framework. Two of them have their own pages: [agent-ready docs](/docs/for-docs/starport/agent-ready) and [analytics](/docs/for-docs/starport/analytics). To change any of them after onboarding, see [Configure your Starport site](/docs/for-docs/starport/configuring-starport). ## Use cases [Section titled “Use cases”](#use-cases) * Compare Starport with your current docs platform before you migrate, for example to confirm that your API reference, translated pages, and old URLs carry over. * Answer a requirement that AI agents and coding assistants can read your docs. * Check which quality checks run on your docs, from broken-link validation at build time to scheduled procedure tests. ## Capabilities [Section titled “Capabilities”](#capabilities) | Capability | What you get | | ------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | Internationalization | Locale routing through Starlight i18n. The template ships English with a sample Spanish locale. | | Multi-section navigation | Group your pages into topic sections, each with its own sidebar. | | OpenAPI API reference | Render a reference from one or more OpenAPI specs, each with its own sidebar group. | | llms.txt files | The build generates `llms.txt`, `llms-full.txt`, and `llms-small.txt` so AI agents can load your docs as plain text. | | Docs MCP server | A read-only Model Context Protocol (MCP) server at `/mcp` lets AI clients search and read your docs. It’s on by default. | | Page actions | Each page has controls to copy it as Markdown or open it in ChatGPT or Claude. | | Agent-readiness scoring | A daily check scores your published site against the agent-friendly docs spec and fails when the score drops below your minimum. | | Broken-link validation | The build checks your internal links and fails on a broken one. | | Redirects | Author redirects in `redirects.json`, and the build emits them as permanent redirects. | | Sitemap | The build generates a sitemap for search engines. | | Site search and assistant | Full-text search across your docs and API reference. Add an Anthropic API key to turn on an assistant that answers questions from your pages. | | PDF export | Print any page to PDF, and export named sets of pages to PDF on a weekly schedule. | | Content linting | Frontmatter validation, Vale prose linting, and Markdown structure linting run over your content. | | Doc Detective testing | Runs the procedures in your docs as tests. A weekly run opens a GitHub issue when a test fails, and Promptless proposes a fix. | | Hosting | Deploy to Vercel by default. The template also documents deploys to GitHub Pages and Cloudflare Pages. | ## Related resources [Section titled “Related resources”](#related-resources) * [Monitor a Starport site through read-only connections](/docs/for-docs/starport/connections), to connect Vercel, Cloudflare Pages, or PostHog so Promptless reads your deploy status and reader analytics. * [Doc Detective integration](/docs/for-docs/audit/doc-detective), for how Promptless creates and updates tests for your documented workflows. * For an enterprise security review of Promptless itself, see [Compliance and certifications](/docs/for-docs/security/compliance-and-certifications), [Data handling and classification](/docs/for-docs/security/data-handling-and-classification), and [Subprocessors](/docs/for-docs/security/subprocessors). # How Promptless works > How Promptless turns triggers, context sources, and doc collections into reviewed documentation updates. Promptless keeps your documentation current by connecting three pieces. **Triggers** signal when something changed, and **context sources** help Promptless understand the change. **Doc collections** define where your documentation lives and where updates are published. This page explains how those pieces fit together and how teams use them. [How Promptless works](https://www.tella.tv/video/vid_cmkc3e0h900h804ii26qp01mo/embed?b=0\&title=1\&a=1\&loop=0\&t=0\&muted=0\&wt=0) ## Use cases [Section titled “Use cases”](#use-cases) Keeping documentation current is hard work. Context gets lost in handoffs, updates fall behind releases, and support teams keep answering the same questions because the docs trail the product. Promptless drafts content in the voice of your existing docs and keeps screenshots in sync as your UI changes. It also shows the citations and reasoning behind every suggestion. Your team stays in charge of review and approval. Teams use Promptless in different ways: * **Vellum** (YC W23) runs Slack Connect channels with key customers and uses Promptless to turn support conversations into documentation updates. Over 50% of Vellum’s docs PRs originate from Promptless. Each month, 60% of its product and engineering team uses Promptless to draft updates for features they own. * **Amplitude**’s technical writers couldn’t keep up with documentation demands, so the team uses Promptless to draft documentation for every feature release. Engineers review the first draft before it goes to customers. * **Basis**, an AI agents platform for accounting ([ofbasis.com](https://ofbasis.com/)), uses Promptless for its entire knowledge base. Promptless processes the team’s meeting recordings and updates customer pages, internal guides for its fast-growing team, and customer-facing documentation. * **Fortune 500 companies** use Promptless to make their technical writers more productive. Their context is spread across Linear, Confluence, and Slack, and Promptless assembles the relevant information to draft doc updates for every PR. * **Vitess**, a CNCF graduated project, uses Promptless for its open-source docs. Since installing Promptless, 94% of its documentation updates have been drafted with Promptless. See Promptless in action Vitess is a CNCF graduated project powering YouTube, Slack, and Square. Browse their [docs commit history](https://github.com/vitessio/website/commits/prod/content) to see Promptless drafting documentation updates in real time. ## How the components work together [Section titled “How the components work together”](#how-the-components-work-together) Triggers, context sources, and doc collections connect to turn a change into a reviewed documentation update: ![Diagram of how triggers, context sources, and doc collections connect in Promptless](/mermaid/how-it-works.svg) 1 ### Triggers start the process **Triggers** are the starting point for every documentation update. They watch for events that might require documentation changes: * **Code changes**: GitHub pull requests, commits, and issues, and GitLab merge requests, start analysis when new features or fixes land * **Team communication**: Slack messages and Microsoft Teams mentions start documentation updates * **Tickets and automation**: Jira tickets, API calls, MCP requests from your editor, and recurring schedules start documentation work Learn more in [Triggers](/docs/for-docs/connect/triggers). 2 ### Context sources explain the change **Context sources** are read-only integrations that give Promptless real-time access to the business context behind a change: * **Project management**: Linear issues and Jira tickets explain the requirements and rationale behind a feature * **Knowledge bases**: Confluence, Notion, Google Drive, and Slite carry specs, decisions, and existing product context Context sources are optional. They help Promptless draft suggestions that explain why a change was made as well as what changed. Learn more in [Context sources](/docs/for-docs/connect/context-sources). 3 ### Doc collections receive the update **Doc collections** define where your documentation lives and where Promptless publishes updates: * **Docs as code**: Your docs live in a Git repository and sync to a hosting provider such as Fern, Mintlify, or Docusaurus * **Multiple collections**: A single change can update more than one doc collection at once, so related docs stay in sync Learn more in [GitHub repos (docs as code)](/docs/for-docs/connect/doc-locations/github-repos). Note Promptless queries context sources in real time. It processes your source code and conversations to generate suggestions, then discards them without retaining that content. See the [privacy policy](/docs/for-docs/security/privacy-policy) for what Promptless stores. ## Core capabilities [Section titled “Core capabilities”](#core-capabilities) These capabilities keep suggestions accurate and easy to review: * **Voice Match:** Learns the tone, sentence structure, formatting, and terminology of your existing docs, so suggestions read as if your team wrote them. See [How Promptless learns your docs](/docs/for-docs/connect/doc-locations/how-promptless-learns-your-docs). * **Promptless Capture:** Keeps product screenshots in sync with your UI. When code changes affect a screenshot, Promptless detects which images need updating and regenerates them from your current interface. * **Screenshot Editor:** Crop, annotate, highlight UI elements, or add shapes and text to screenshots in the dashboard. Saved edits appear in your documentation suggestions right away. * **Passive channel listening:** Reads the Slack and Microsoft Teams channels you choose, such as Slack Connect customer channels. Promptless drafts a documentation suggestion when a conversation reveals something worth documenting. See [Get the most out of passive channel listening](/docs/for-docs/get-the-most-out/passive-channel-listening). * **Promptless Citations:** Shows where each documentation change came from. Every update references the specific GitHub files, Slack threads, or support conversations that informed it. ## Next steps [Section titled “Next steps”](#next-steps) * [Quickstart](/docs/for-docs/start-here/quickstart), to connect your repositories, docs, communication tools, and context sources. * [Review and edit Promptless PRs](/docs/for-docs/work-the-queue/reviewing-prs), to see what happens when a suggestion lands and how to approve, edit, or dismiss it. * [Open-source quickstart](/docs/for-docs/start-here/open-source-quickstart), to set Promptless up on a public repository through the free open-source program. * [Triggers](/docs/for-docs/connect/triggers), to tune which events start documentation work for your team. For setup guidance, contact . # Promptless ❤️ Open Source > Set up Promptless on a free open-source project to keep developer docs, changelogs, and translations in sync with a fast-moving codebase. ## Overview [Section titled “Overview”](#overview) Promptless helps open-source projects keep documentation in sync with fast-moving codebases. Use it to update developer docs, generate changelogs for new releases, or draft translations. This quickstart sets up Promptless in three parts: install a GitHub app, set up doc collections, and choose which changes start documentation work. Open-source workflows often differ from commercial ones, so it also covers the trigger and publishing settings that suit busy public repositories. Open Source Program Promptless is free for CNCF, Linux Foundation, and other eligible non-commercial open-source projects. Contact us at to get started. ## Before you start [Section titled “Before you start”](#before-you-start) * A Promptless account, through the Open Source Program if your project is eligible. * Permission to install a GitHub App on the organization that owns your repositories. Whether you can grant write access decides which app you install. ## Set up Promptless on your project [Section titled “Set up Promptless on your project”](#set-up-promptless-on-your-project) ### Install the GitHub app [Section titled “Install the GitHub app”](#install-the-github-app) Choose the app that matches the permissions you can grant: | App | How Promptless publishes | Choose it when | | ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------- | | Standard GitHub app | Creates branches and PRs directly on your repositories, public or private. | You can install apps with write permissions. | | GitHub (read-only) app | Creates PRs from a fork, which works for public repositories only. It can still read any repository, public or private, for triggers and context. | You can only install read-only apps. | To publish to a private repository, use the standard GitHub app. For details on the read-only app, see the [GitHub (read-only) integration](/docs/for-docs/reference/integrations/github-read-only). 1. On the [Integrations page](https://app.gopromptless.ai/integrations), connect GitHub with the app you chose. 2. Choose which repositories Promptless can access. ### Set up doc collections [Section titled “Set up doc collections”](#set-up-doc-collections) A doc collection tells Promptless where your documentation lives. Create more than one when you need to, for example when your changelog lives in a different location from your main docs. If your docs live in a monorepo alongside your code, scope the collection to the docs directory. * Create your doc collections by following [GitHub repos (docs as code)](/docs/for-docs/connect/doc-locations/github-repos). ### Configure triggers [Section titled “Configure triggers”](#configure-triggers) 1. Open the [Configuration page](https://app.gopromptless.ai/configuration). 2. In the `triggers` section of your `promptless.yaml`, list the repositories whose pull requests Promptless listens to. 3. Save the configuration. 4. Recommended. Run a [backfill](/docs/for-docs/connect/triggers#backfill-suggestions) to generate an initial batch of suggestions from recent pull requests, and review them to calibrate Promptless before going live. ### Open pull requests for every suggestion [Section titled “Open pull requests for every suggestion”](#open-pull-requests-for-every-suggestion) Many open-source projects centralize work in GitHub, so anyone can benefit from Promptless without a Promptless account. If that applies to your project, have Promptless turn every suggestion into a pull request. * After your initial calibration, turn on **Open a pull request automatically** (`publishing.auto_create_pr`) in your [publishing policies](/docs/for-docs/reference/configuration-reference#policies). Waiting until calibration is complete lets you refine the configuration before rolling it out to all contributors. ## Choose PR or commit triggers [Section titled “Choose PR or commit triggers”](#choose-pr-or-commit-triggers) Most projects trigger Promptless on opened PRs. In popular projects, many contributor PRs close without merging, so a commit trigger can fit better: | Trigger | When Promptless runs | Choose it when | | ----------------------------------------------------------------------- | ----------------------------------------- | ----------------------------------------------------------- | | [GitHub PR trigger](/docs/for-docs/connect/triggers/github-prs) | When a pull request opens | Most projects, where you want doc suggestions during review | | [GitHub commit trigger](/docs/for-docs/connect/triggers/github-commits) | When changes merge to your default branch | Many contributor PRs close without merging | Switch trigger types after your initial calibration. ## Extend Promptless to other workflows [Section titled “Extend Promptless to other workflows”](#extend-promptless-to-other-workflows) ### Translate your docs [Section titled “Translate your docs”](#translate-your-docs) For translation workflows, point the trigger at the English directory of your docs. Promptless then drafts updates that carry each change into the rest of your documentation. Someone fluent in the target language needs to review AI-drafted translations before they publish. See [Keep localized docs current](/docs/for-docs/get-the-most-out/localization) for how to set that up. ### Start updates from GitHub issues [Section titled “Start updates from GitHub issues”](#start-updates-from-github-issues) If your project uses GitHub Issues, create a [GitHub issues trigger](/docs/for-docs/connect/triggers/github-issues). Contributors can then tag Promptless in an issue to request a doc update. ### Update contributor PRs (coming soon) [Section titled “Update contributor PRs (coming soon)”](#update-contributor-prs-coming-soon) In some monorepos, you might want Promptless to add a docs commit to the contributor’s own PR, in place of a separate docs PR. The feature isn’t compatible with the [GitHub (read-only) app](/docs/for-docs/reference/integrations/github-read-only). If you’re interested in it, contact us at . ## See also [Section titled “See also”](#see-also) * [GitHub (read-only) integration](/docs/for-docs/reference/integrations/github-read-only), for what the read-only app can access and how fork-based PRs work * [Route changes across multiple repos](/docs/for-docs/scale/multi-repo-routing), when your code and docs span several repositories * [Route changes to the right doc version](/docs/for-docs/scale/versioned-docs), for projects that publish versioned docs * [Triggers](/docs/for-docs/connect/triggers), for every event that can start documentation work # Quickstart > Set up Promptless and connect your first integrations so it starts drafting documentation updates for your team. ## Overview [Section titled “Overview”](#overview) This quickstart gets Promptless drafting documentation updates for your team. You create an account, then work through a five-step setup wizard. The wizard connects your chat tool, your docs repository, the code providers whose changes start documentation work, and the tools that hold product context. When you finish, Promptless indexes your docs and starts watching for changes. Connecting your docs repository is the only step you must complete. You can connect everything else later. ## Before you start [Section titled “Before you start”](#before-you-start) * A Promptless account. Sign up for a free account at [accounts.gopromptless.ai](https://accounts.gopromptless.ai). * Admin access to the tools you plan to connect, depending on your organization’s settings: | Integration | Access you need | | ------------------- | ------------------------------------------------------------------------- | | Slack | Workspace admin permissions to install the Promptless app | | GitHub | Organization admin, or enough repository access to install the GitHub App | | Jira and Confluence | Atlassian admin permissions to authorize the OAuth connection | | Linear | Workspace admin permissions to connect the integration | If you don’t have the access an integration needs, invite a teammate who does. In the wizard, select **Invite team members** under **Need an admin?**. The invited person receives an email that brings them to the same setup page, and they continue from the current step. ## Complete the setup wizard [Section titled “Complete the setup wizard”](#complete-the-setup-wizard) When you first sign in, the setup wizard opens. Your progress saves automatically, so you can leave and pick up where you left off. 1. **Connect chat.** Connect Slack or Microsoft Teams. Promptless uses chat for notifications and for documentation requests that start in a conversation. If you use neither, book a setup call from this step. If your Slack workspace requires admin approval, the wizard shows a pending Slack card while you wait. After an admin approves, select **Continue in Slack** on the card to finish connecting. See [Connect Slack](/docs/for-docs/connect/triggers/slack-messages#connect-slack). 2. **Connect docs.** Install the Promptless GitHub App or connect GitLab, then pick the repositories where your documentation lives. Each repository you pick becomes a doc collection, and you can add more doc collections at any time. You must complete this step to finish setup. 3. **Connect triggers.** Optional. Connect the code providers whose changes should start documentation updates: GitHub or GitLab. If you skip this step, connect the provider before you add or change its triggers. See [Connect a provider before you add its triggers](/docs/for-docs/connect/triggers#connect-a-provider-before-you-add-its-triggers). 4. **Connect context.** Optional. Connect Atlassian (Jira and Confluence), Linear, or Notion to give Promptless more context for its suggestions. 5. **Review set-up.** Check the connection summary, then select **Finish setup**. Optional: book a setup review call so the Promptless team can help tune your configuration. ## Review what Promptless set up [Section titled “Review what Promptless set up”](#review-what-promptless-set-up) When you finish the wizard, Promptless indexes your docs repository to learn its structure and content. Indexing takes 5–30 minutes, depending on the size of your docs. Promptless also writes a `promptless.yaml` configuration from the integrations you connected: | Integration you connected | What Promptless adds | | -------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | | GitHub or GitLab | A pull request or merge request trigger with `repos: all`, so Promptless listens across all your repositories. | | Jira, Confluence, Linear, Notion, Google Drive, or Slite | An unscoped context source, so Promptless can use all the data the integration reaches. | Promptless doesn’t add commit triggers automatically. From then on, Promptless listens for trigger events from these sources, gathers context, and drafts documentation suggestions for your review. The wizard also turns on automatic PR creation in your default publishing policy. For each suggestion, Promptless opens a pull request in your docs repository, or a merge request on GitLab. You can review suggestions there even without a notification channel. To review suggestions as drafts in the dashboard before opening a PR, turn off **Open a pull request automatically** in the [publishing policies](/docs/for-docs/reference/configuration-reference#set-notifications-escalations-and-publishing-in-form-mode). To narrow or extend this configuration: 1. Open the [Configuration page](https://app.gopromptless.ai/configuration). 2. Edit your triggers and context sources, for example to limit a trigger to specific repositories or to add a [commit trigger](/docs/for-docs/connect/triggers/github-commits). 3. Save the configuration. ## See also [Section titled “See also”](#see-also) * [Triggers](/docs/for-docs/connect/triggers), for every event that can start documentation work and how to follow what a trigger did * [Configuration reference](/docs/for-docs/reference/configuration-reference), for the complete `promptless.yaml` schema and how to narrow triggers to specific repositories * [Slack integration](/docs/for-docs/reference/integrations/slack), for the permissions the Slack app requests and how to update them * [Run a pilot](/docs/for-docs/start-here/run-a-pilot), to plan a 14-day evaluation with your own docs Need help with integrations? Contact us at . # Run a pilot > Plan a 14-day Promptless pilot, set success criteria, and measure suggestion volume and quality against your own docs and workflows. ## Overview [Section titled “Overview”](#overview) Promptless offers 14-day pilots for [growth and enterprise customers](/pricing). A pilot shows how Promptless works with your own documentation, team workflows, and trigger events, so you can: * See Promptless handle different types of documentation updates * Evaluate suggestion quality across different scenarios * See how well Promptless fits into your team’s workflow This guide covers preparing for the pilot, the onboarding workshop, the success criteria to agree on, and the weekly check-ins that follow. Note Your pilot starts when Promptless creates your first suggestion. Time spent getting approvals for data source connections doesn’t count against your 14 days. ## Before you start [Section titled “Before you start”](#before-you-start) * A Promptless account. See the [Quickstart](/docs/for-docs/start-here/quickstart). * Optional. Your docs may need foundational work before a pilot, such as documenting major missing features, completing a large refactor, or creating documentation from scratch. Tell the Promptless team. Subject to availability, the team may be able to help with these projects before your pilot begins. ## Prepare for your pilot [Section titled “Prepare for your pilot”](#prepare-for-your-pilot) Before the pilot begins, connect Promptless to your workspaces and share your documentation standards with the Promptless team. Promptless uses them to draft an initial batch of suggestions. For connection instructions, see the [Quickstart](/docs/for-docs/start-here/quickstart). 1. Connect your source code repositories on GitHub, GitHub Enterprise, or GitLab. 2. Connect your documentation repository on GitHub or GitLab, for example the repository behind a Mintlify, Fern, ReadMe, or Docusaurus site. 3. Connect Slack or Microsoft Teams, so you get notified about new suggestions and can tag Promptless in threads or messages to request doc updates. 4. Recommended. Connect Jira or Linear to give Promptless context about the customer-facing impact of new features. 5. Share the material you’d give a new technical writer: your style guide, your Vale configuration if you use one, and documentation standards or templates. ## Attend the onboarding workshop [Section titled “Attend the onboarding workshop”](#attend-the-onboarding-workshop) We recommend starting every pilot with an in-person workshop. Duration A 90-minute session. For larger teams, we may run several workshops over a few days. Preparation Before your session, we run Promptless on historical events, such as the last 30 days of PRs. You then review real suggestions during the workshop. What we cover How Promptless works, your configuration, and hands-on review of suggestions, with the goal of publishing your first doc updates together. By the end of the workshop, you and the Promptless team: 1. Review your configuration and how [triggers, context sources, and documentation platforms](/docs/for-docs/start-here/how-promptless-works) work for your team. 2. Review suggestions together and publish your first documentation updates. 3. Agree on what a successful pilot looks like for your team. ## Measure success for your pilot [Section titled “Measure success for your pilot”](#measure-success-for-your-pilot) During the workshop, we define the success criteria for your pilot. These vary with each team’s needs. Across dozens of onboardings, though, *suggestion volume* and *suggestion quality* are the most reliable indicators that a team gets lasting value from Promptless. ### Suggestion volume [Section titled “Suggestion volume”](#suggestion-volume) Track how many suggestions Promptless creates. More suggestions aren’t always better, since too many can feel noisy. A steady stream of documentation suggestions shows that Promptless is plugged into the right parts of your workflow. Typical volume benchmarks by team size: | Team | Typical suggestions per month | | ------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | | 0–1 people working full-time on docs | 20–40 | | 2–5 technical writers | 30–100 | | Larger teams | Depends on how your team is organized. Consider setting a target for each product or product vertical you support. | If Promptless generates fewer than 20 suggestions a month, your team may be too early to see enough value from Promptless. ### Suggestion quality [Section titled “Suggestion quality”](#suggestion-quality) Rate Promptless’s suggestions on a scale from 0 to 10. Expectations differ from team to team, so your own rating is the measure. The target is for Promptless to consistently rate at least 8/10 for your team’s needs. Tip During your workshop, we discuss what quality means for your team, whether that’s technical accuracy, style guide compliance, or catching edge cases. Knowing your quality criteria helps us make Promptless better for you. Use these descriptions to calibrate your ratings: | Rating | What it means | | ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | 9–10 | Most suggestions are relevant and can be accepted with few or no edits. | | 7–8 | Most suggestions are accurate and relevant and need only moderate editing, such as refining style, adding specific details, or adjusting tone. Promptless meaningfully reduces your documentation workload. | | 4–6 | Suggestions sometimes catch relevant changes and serve as a starting point. They need significant editing, such as rewriting content, fixing inaccuracies, or filling in missing context. Promptless saves some time without changing your workflow much. | | 0–3 | Promptless creates negative value. Most or all suggestions aren’t a useful starting point, and even when they flag something relevant, you’d rather start from scratch. | ## Hold weekly check-ins [Section titled “Hold weekly check-ins”](#hold-weekly-check-ins) After your onboarding workshop, we schedule 15–30 minute weekly check-ins to track progress and address issues. Each check-in reviews: * How many suggestions Promptless created * How you’d rate suggestion quality this week, from 0 to 10 * The gap between current suggestions and 10/10 quality * How Promptless fits into your workflows, and whether it triggers at the right times We use these check-ins to find and fix issues, adjust your configuration, and make sure you’re getting value from Promptless. ## See also [Section titled “See also”](#see-also) * [Quickstart](/docs/for-docs/start-here/quickstart), to connect the integrations your pilot needs * [Give feedback on a suggestion](/docs/for-docs/work-the-queue/giving-feedback), to raise suggestion quality during the pilot * [Measure the impact of Promptless](/docs/for-docs/measure/reporting-and-roi), to turn pilot results into a case for leadership To discuss your pilot, contact us at . # Promptless overview > Learn what Promptless does, how it works, and where to start. Note All content in our docs is written with the help of Promptless, with oversight and governance from thoughtful humans. See how in our [public docs repo](https://github.com/Promptless/promptless.ai). Promptless is an AI agent built to support technical writers. It detects when docs need to change, gathers context from code and team tools, drafts updates, and opens reviewable suggestions or pull requests. Use Promptless to keep product docs, internal docs, agent instructions, screenshots, changelogs, and support-driven documentation current as your team ships. ## Use cases [Section titled “Use cases”](#use-cases) Teams use Promptless to keep docs current as the product changes, without adding writing work for every release: Update docs from code changes Detect when pull requests, commits, or releases change behavior that customers need to understand. Create new docs from context Draft new pages, guides, API references, changelog entries, and release notes from the context your team already has. Update docs from tickets and conversations Turn repeated customer questions, support tickets, Slack threads, and project tickets into documentation updates. Create and maintain screenshots Ask Promptless to capture new product screenshots or regenerate stale images when your UI changes. Review and improve suggestions Check the sources Promptless used, request edits, and teach Promptless your preferred structure and style. Publish through your docs workflow Get documentation pull requests in your docs-as-code repository, whether you publish with Mintlify, Fern, ReadMe, Docusaurus, or another platform. ## How Promptless works [Section titled “How Promptless works”](#how-promptless-works) Promptless works inside the tools your team already uses. A typical documentation update follows this flow: ![Diagram of triggers and optional context sources feeding Promptless, which proposes updates to your doc collections](/mermaid/how-it-works.svg) 1. **A trigger starts the workflow.** A pull request, commit, Slack message, Teams message, or API event tells Promptless to investigate whether docs need to change. 2. **Promptless gathers context.** Promptless reads the relevant code, existing docs, tickets, conversations, and configured context sources. 3. **Promptless drafts a suggestion.** Promptless decides which pages are affected, writes the proposed update, and explains the sources behind the change. 4. **Your team reviews the update.** Review the suggestion in Promptless, comment in GitHub, or ask for follow-up edits in Slack or Microsoft Teams. 5. **Promptless publishes through your docs workflow.** When the update is ready, Promptless opens or updates a documentation pull request for your normal review and merge process. ## Common starting points [Section titled “Common starting points”](#common-starting-points) [For development teams](/docs/for-docs/connect/triggers/github-prs)Start with GitHub pull request or commit triggers so docs updates are proposed as code changes land. [For technical writers](/docs/for-docs/tune/teaching-conventions)Review suggestions, provide feedback, and use Promptless to handle routine maintenance while you focus on structure and strategy. [For support and success teams](/docs/for-docs/connect/triggers/slack-messages)Turn repeated customer questions and support conversations into documentation updates. [For open-source maintainers](/docs/for-docs/start-here/open-source-quickstart)Use Promptless to keep fast-moving developer docs, changelogs, and contributor-facing content current. ## Next steps [Section titled “Next steps”](#next-steps) [Quickstart](/docs/for-docs/start-here/quickstart)Connect your repositories, docs, communication tools, and context sources. [How Promptless works](/docs/for-docs/start-here/how-promptless-works)Learn the terms Promptless uses for triggers, context sources, doc collections, and publishing. [Integrations](/docs/for-docs/reference/integrations)See every tool Promptless connects to and what each connection needs. **Want to see Promptless in action?** [Book a demo](/demo). # Filter noise and tune relevance > Reduce low-value documentation suggestions by scoping what triggers Promptless and teaching it which changes to skip ## Overview [Section titled “Overview”](#overview) When Promptless suggests docs for internal refactors and config bumps, reviewers start ignoring its suggestions. Tune for relevance so that most suggestions you see are ones worth publishing. Narrow what reaches Promptless in the first place, then teach it, over time, which changes your team doesn’t document. Promptless filters at three points, from earliest to latest: 1. **What triggers analysis.** Scope your triggers so only documentation-worthy events reach Promptless. 2. **What Promptless skips automatically.** Built-in filters drop changes that are never documentation-worthy. 3. **What you teach it to skip.** Feedback on suggestions changes what Promptless proposes next time. Start with trigger scope. A change that matches no trigger never becomes a suggestion. Tip You can also ask Promptless in Slack or Microsoft Teams to tune this for you. For example, “@Promptless only trigger on the docs/ and src/ directories in my acme/api repo.” See [Ask Promptless to update your configuration](/docs/for-docs/get-the-most-out/ask-promptless-to-update-config). ## Before you start [Section titled “Before you start”](#before-you-start) * An admin role in your Promptless organization, to edit triggers on the [Configuration page](https://app.gopromptless.ai/configuration) and files in the Agent Knowledge Base. ## Scope what triggers analysis [Section titled “Scope what triggers analysis”](#scope-what-triggers-analysis) Each trigger on the [Configuration page](https://app.gopromptless.ai/configuration) defines the events Promptless watches. The settings below matter most for relevance. The [Configuration reference](/docs/for-docs/reference/configuration-reference#triggers) documents the full set. ### Watch only the directories that change docs [Section titled “Watch only the directories that change docs”](#watch-only-the-directories-that-change-docs) Limit a GitHub pull request trigger to the folders that affect your documentation, such as `src/` or `api/`. Promptless then considers only pull requests that change files in those folders. A pull request that changes only `tests/` or `infra/` produces no suggestion. 1. On the **Triggers** tab of the [Configuration page](https://app.gopromptless.ai/configuration), expand a **GitHub pull requests** trigger. 2. Open **More filters (optional)**. 3. Select **Only when files in these folders change**, and enter the folder paths. 4. Select **Save changes**. In YAML, set the trigger’s `trigger_directories` list. See [Limit a trigger to specific directories](/docs/for-docs/connect/triggers/github-prs#limit-a-trigger-to-specific-directories). ### Watch only the repositories that matter [Section titled “Watch only the repositories that matter”](#watch-only-the-repositories-that-matter) If your organization has many repositories, most of them never need documentation. Two filters under **More filters (optional)** keep a trigger focused: * **Only repos tagged with these GitHub topics.** Enter one or more GitHub topics, such as `docs-watch`. Promptless triggers on any repository that has at least one of them. To add or remove a repository, change its topics in GitHub. Your configuration stays the same. See [Limit a trigger to tagged repositories](/docs/for-docs/connect/triggers/github-prs#limit-a-trigger-to-tagged-repositories). * **Skip these repositories.** Watch a broad set of repositories and list the noisy ones here. Those repositories never trigger a suggestion. In YAML, this is the `excluded_repos` list. See the [Configuration reference](/docs/for-docs/reference/configuration-reference#triggers). ### Trigger later in the release cycle [Section titled “Trigger later in the release cycle”](#trigger-later-in-the-release-cycle) The event a trigger runs on decides how often Promptless runs, and how finished a change is when it does. **When it’s opened** runs on every new pull request. **When it’s first approved** waits until a reviewer has approved the change, and **When it’s merged** waits until it lands. A later event means fewer runs, on changes that are closer to final. See [Time suggestions to your release cycle](/docs/for-docs/tune/release-timing). Note Publishing policies set how a suggestion is published, such as where Promptless notifies and whether it opens a PR. They can’t stop a suggestion from being created. To keep a change from becoming a suggestion, scope the trigger that matches it. ## Know what Promptless skips automatically [Section titled “Know what Promptless skips automatically”](#know-what-promptless-skips-automatically) Promptless drops some changes before it creates a suggestion. These filters always apply, and there’s nothing to configure: * **Draft pull requests.** Promptless waits until a pull request is marked ready for review. An `@promptless` mention on a draft still starts work. * **Pull requests Promptless opened.** Promptless skips its own docs PRs. * **Tooling-only changes.** Promptless skips a pull request that changes only dot-directories, such as `.github/` or `.circleci/`, or root-level dot-files, such as `.gitignore`. These are usually CI and tooling configuration. A pull request that also changes other files gets a normal review. * **Changes with no documentation impact.** For every triggered event, Promptless assesses whether the change needs documentation before it creates a suggestion. A change that touches no documented behavior produces no suggestion. When Promptless decides a change needs no documentation, the decision appears on the Triggers page in your dashboard. You can tell a considered “no” from a missed event. See [Follow what a trigger did](/docs/for-docs/connect/triggers#follow-what-a-trigger-did). ## Teach Promptless what to skip [Section titled “Teach Promptless what to skip”](#teach-promptless-what-to-skip) Trigger scope handles the broad cuts. Some changes touch documented behavior, but your team never documents them. Teach Promptless those judgment calls directly: write standing guidelines up front, and refine them through feedback as suggestions come in. ### Write standing guidelines in your Knowledge Base [Section titled “Write standing guidelines in your Knowledge Base”](#write-standing-guidelines-in-your-knowledge-base) Some sources mix documentation-worthy messages with noise no filter can catch. For example, a Slack channel that Promptless passively listens to carries both questions worth documenting and chatter that isn’t. Tell Promptless what to act on before it drafts anything: 1. In the Promptless dashboard, open **Settings** and select **Agent Knowledge Base**. 2. Open `PROMPTLESS.md`. 3. Add guidelines that say what to act on, what to ignore, and how to handle recurring edge cases. For example: * “In #support, document answers to how-to questions; ignore status updates and incident chatter.” * “When a thread resolves a bug, capture the workaround, not the back-and-forth.” * “Treat any message prefixed with `aside` as out of scope.” 4. Select **Save**. Promptless reads `PROMPTLESS.md` at the start of every task, so it applies these guidelines before it drafts a suggestion. See [Agent Knowledge Base](/docs/for-docs/get-the-most-out/agent-knowledge-base). ### Close a suggestion with a reason [Section titled “Close a suggestion with a reason”](#close-a-suggestion-with-a-reason) When a suggestion isn’t worth keeping, close it and select the reasons that fit. These reasons map directly to noise: * This change is too insignificant * This change is self-explanatory and doesn’t need docs * This change was covered in another Promptless suggestion * This is already in my docs Leave **Send to Promptless** checked so Promptless reads your reasons. See [Close a suggestion with feedback](/docs/for-docs/work-the-queue/giving-feedback#close-a-suggestion-with-feedback). ### State what to skip as a standing rule [Section titled “State what to skip as a standing rule”](#state-what-to-skip-as-a-standing-rule) To have Promptless skip a kind of change on every future suggestion, state a standing rule in your feedback. For example, in close feedback or a comment: * “Don’t create suggestions for dependency bumps.” * “Internal-only tooling changes never need docs.” Promptless records the rule in your [Agent Knowledge Base](/docs/for-docs/get-the-most-out/agent-knowledge-base) and applies it to later suggestions. See [Teach conventions with feedback](/docs/for-docs/tune/teaching-conventions). Tip Trigger scope removes whole categories of change, and feedback refines the judgment calls that get through. Revisit both after your first week. The suggestions you keep closing point to the next trigger filter or rule to add. ## Quiet the notifications, not the suggestions [Section titled “Quiet the notifications, not the suggestions”](#quiet-the-notifications-not-the-suggestions) Sometimes the suggestions are right but the alerts are too loud. Notification settings change who hears about a suggestion, and not which suggestions Promptless creates: * To change when and where Promptless notifies your team, see [Customize notifications](/docs/for-docs/tune/notifications). * To turn off the comments Promptless posts on source pull requests, see [Suppress source PR comments](/docs/for-docs/connect/triggers/github-prs#suppress-source-pr-comments). ## See also [Section titled “See also”](#see-also) * [Teach conventions with feedback](/docs/for-docs/tune/teaching-conventions), to make a rule apply to every future suggestion * [Time suggestions to your release cycle](/docs/for-docs/tune/release-timing), to choose the event that triggers Promptless * [GitHub PRs](/docs/for-docs/connect/triggers/github-prs#limit-which-pull-requests-trigger-a-review), for every rule Promptless checks before it reviews a pull request * [Customize notifications](/docs/for-docs/tune/notifications), to change who hears about suggestions # Customize notifications > Configure how Promptless notifies your team about documentation suggestions ## Overview [Section titled “Overview”](#overview) Promptless posts a notification to Slack or Microsoft Teams when a documentation suggestion is ready for review. Customize notifications to: * Send suggestion notifications to the channels your team watches, per doc collection. * Send escalations, the messages about configuration and access problems that block Promptless, to a separate channel or email address. * Change when Promptless notifies and what its messages contain. Tip You can also ask Promptless in Slack or Microsoft Teams to set up notifications for you. For example, “@Promptless send suggestion notifications to my #docs-review channel.” See [Ask Promptless to update your configuration](/docs/for-docs/get-the-most-out/ask-promptless-to-update-config). ## Before you start [Section titled “Before you start”](#before-you-start) * An admin role in your Promptless organization, to edit the [Configuration page](https://app.gopromptless.ai/configuration) and the Agent Knowledge Base. * [Slack](/docs/for-docs/connect/triggers/slack-messages#connect-slack) or [Microsoft Teams](/docs/for-docs/work-the-queue/reviewing-from-slack-and-teams#connect-microsoft-teams), connected to Promptless. ## Choose notification channels [Section titled “Choose notification channels”](#choose-notification-channels) Set the default notification channel in the `policies` section on the [Configuration page](https://app.gopromptless.ai/configuration), and add rules that override it for specific doc collections or triggers: ```yaml policies: default: notification: slack_channel: docs-updates msteams_channel: "19:0a1b2c3d@thread.tacv2" rules: - if: doc_collection: acme/internal-docs then: notification: slack_channel: internal-docs-team ``` Slack channel names don’t need the `#` prefix. When a Slack channel is renamed, Promptless updates your configuration automatically. `slack_channel` and `msteams_channel` are independent, so a policy can notify Slack, Teams, both, or neither. Note You can route notifications to any Slack channel by name, including one created after you connected Slack. Promptless resolves the channel when you save the configuration that routes to it. Mentioning `@Promptless` in a channel also adds that channel to the dashboard channel pickers. For a private channel, invite Promptless first by running `/invite @Promptless` in the channel. ### Disable an inherited channel [Section titled “Disable an inherited channel”](#disable-an-inherited-channel) A rule can turn off a channel that it would otherwise inherit from `policies.default` or an earlier rule by setting the field to `null`: ```yaml policies: default: notification: slack_channel: docs-updates rules: - if: doc_collection: acme/internal-docs then: notification: slack_channel: null ``` Here, suggestions for `acme/internal-docs` send no Slack notification, while every other collection still notifies `docs-updates`. Setting `slack_channel: null` disables the inherited channel, and omitting the field inherits it. `msteams_channel` works the same way, and you disable each channel independently. ### Notify a Microsoft Teams channel [Section titled “Notify a Microsoft Teams channel”](#notify-a-microsoft-teams-channel) To announce suggestions in a Teams channel, set `msteams_channel` in a policy. Teams channels are addressed by their conversation ID, a value that looks like `19:…@thread.tacv2`. Copy it from Teams. It’s the same ID you use for an `msteams_listen` trigger. Note The Promptless bot needs prior activity in a Teams channel before it can deliver notifications there. If Promptless can’t reach the configured channel, it replies in the originating thread instead. See the [Configuration Reference](/docs/for-docs/reference/configuration-reference#policies) for the complete policies schema. ## Escalation channel [Section titled “Escalation channel”](#escalation-channel) Escalation channels receive problem reports, which describe configuration and operational problems that someone on your team needs to fix. Promptless sends two kinds: * A trigger problem is one Promptless hits while working on a trigger. For example, a PR references a Jira issue Promptless can’t read because the Jira integration isn’t connected. Or the test account lacks the feature flags to reach a screen Promptless needs to screenshot. * A connection alert comes from the daily [connection check](/docs/for-docs/reference/integrations#proactive-notifications), such as an integration that needs reconnecting. Route problem reports to a dedicated channel on Slack, Teams, or both, with an `escalation` section next to `notification`. It takes the same channel fields, plus `email`: ```yaml policies: default: notification: slack_channel: docs-updates msteams_channel: "19:0a1b2c3d@thread.tacv2" escalation: slack_channel: docs-escalations msteams_channel: "19:4e5f6a7b@thread.tacv2" email: - docs-team@example.com ``` Problem reports reach these channels even when suggestion notifications are off or no notification channel is set. `slack_channel` routes them to Slack; `msteams_channel` routes them to Teams. If `escalation` leaves out a platform’s channel, trigger problems go to your `notification` channel on that platform instead. Connection alerts never do. The next section spells out the rules. ### When problem reports go to the notification channel [Section titled “When problem reports go to the notification channel”](#when-problem-reports-go-to-the-notification-channel) Promptless picks the destination for Slack and for Teams separately. On each platform, a problem report goes to the `notification` channel only when all three of these are true: 1. It’s a trigger problem. Connection alerts never go to a `notification` channel. 2. `escalation` leaves out that platform’s field: `slack_channel` for Slack, `msteams_channel` for Teams. If the field names a channel, the report goes there. If the field is `null`, the report goes nowhere on that platform. 3. A `notification` channel is set for that platform for the trigger. Promptless resolves both sections for a trigger problem from `policies.default` plus the rules that match the trigger. Connection alerts use only the `escalation` channels in `policies.default`; rules don’t change where they go. When someone asks Promptless for the work by tagging it in a Slack or Teams thread, Promptless reports a trigger problem in that thread instead. For example, this policy sets an escalation channel for Slack and leaves Teams out: ```yaml policies: default: notification: slack_channel: docs-updates msteams_channel: "19:0a1b2c3d@thread.tacv2" escalation: slack_channel: docs-escalations ``` | Problem report | Slack | Teams | | ---------------------------------------------------- | ------------------ | ------------------------------------------------- | | A PR references a Jira issue Promptless can’t read | `docs-escalations` | `19:0a1b2c3d@thread.tacv2` (notification channel) | | The connection check finds GitHub needs reconnecting | `docs-escalations` | Nothing | To keep the Jira problem out of Teams, add `msteams_channel: null` under `escalation`. Caution If you set only a `notification` channel, connection alerts reach no channel. A broken integration then shows up only on the [Integrations page](https://app.gopromptless.ai/integrations). To receive these alerts, set at least one of `slack_channel`, `msteams_channel`, or `email` under `escalation` in `policies.default`. To also escalate by email, list one or more addresses under `escalation.email`. Promptless emails only the addresses you list, and only for escalations. Suggestion notifications don’t use email, and `notification` has no email setting, so Promptless emails escalations only when you set `escalation.email`. Email escalation requires email delivery for your deployment. It’s on by default for Promptless-hosted deployments, and self-hosted deployments must configure it. Trigger problems include blockers such as these: * A test or staging account that can’t reach a needed screen * An unreachable or unconfigured integration * An expired or rejected credential * A missing permission * A configuration mismatch Every escalation opens with a bold banner line that names its kind: * `Blocked — one thing needed from you`: A blocker names the resource, quotes what Promptless saw, and notes any workaround it applied. It ends with a `Need:` line naming the one action that clears the blocker and a `Next:` line saying what happens once you answer. * `Heads up — worth a look`: A pointer names something Promptless noticed that you can act on. For example, a published page might link to an anchor that no longer exists. It ends with one `Suggested:` action. ## Notification preferences file [Section titled “Notification preferences file”](#notification-preferences-file) Promptless reads the `doc_workflow/notification_preferences.md` file in your [Agent Knowledge Base](/docs/for-docs/get-the-most-out/agent-knowledge-base) whenever it writes a notification. Write your preferences there in plain language. Anything you leave out keeps Promptless’s default behavior. To edit the file, open **Settings** in the Promptless dashboard, select **Agent Knowledge Base**, and open `doc_workflow/notification_preferences.md`. ### What you can customize [Section titled “What you can customize”](#what-you-can-customize) The preferences file overrides these defaults: * **When to notify.** Which events send notifications, and when to skip them. * **Delivery.** Where a notification goes, such as a reply in the originating Slack thread or a comment on the GitHub pull request. * **Message format.** The fields, order, and links your suggestion notifications carry. A format you state replaces the default format completely. ### Example customizations [Section titled “Example customizations”](#example-customizations) Teams commonly add instructions like these: **Change notification timing:** ```plaintext Only send notifications for suggestions that modify more than one file. Skip notifications for automated triggers that don't yield documentation updates. ``` **Adjust delivery preferences:** ```plaintext Always reply in the originating Slack thread when the trigger came from Slack. Use GitHub comments when reviewers are already engaged with the source PR. ``` **Customize message style:** ```plaintext Use a casual, friendly tone in all notification messages. Include enough context that someone new to the thread can understand why Promptless is posting. ``` An instruction that only sets tone, like this one, keeps the default fields and links and changes how the message reads. **Define a message format:** ```plaintext Format suggestion notifications as: What changed: Promptless suggestion: MR: Assigned: cc: ``` A full format like this one replaces the default message format. Promptless posts exactly the fields and links you list, in the order you list them, and adds nothing else. The example lists no Knowledge Base link, so its notifications carry none. A stated format applies to suggestion notifications only. Escalations keep their own format, and a blocker always ends with what Promptless needs from you and what happens next. A mention rule you state applies to every message Promptless sends. When no format is stated, Promptless sends one or two sentences on what changed and why, followed by labeled link lines: ```plaintext Triggered by: Review: Docs PR: Recorded: Open question: ``` `Recorded:` repeats once for each Knowledge Base file the work changed. `Open question:` appears at most once, and only when a decision rests with you alone. Promptless leaves out any line that has no value for a given notification. A requested mention still appears where one applies. This default format applies when the preferences file is absent or still holds only its placeholder text. If the file exists but can’t be read, Promptless holds the notification and sends nothing in the default format. A message can name a ticket, issue, or merge-request key, such as `INC-879`. When Promptless knows that key’s target, it renders the key as a link. The ticket that started the work is one such target. Any other key stays plain text. This linking adds no field, so it also applies when you’ve stated your own format. ## Slack notification features [Section titled “Slack notification features”](#slack-notification-features) In Slack, Promptless posts each suggestion notification as a preview card. Select the card to open the suggestion in Promptless, or use its buttons to publish the suggestion or open its PR without leaving Slack. A thread reply attaches the full diff of the documentation changes. ### Suggestion preview cards [Section titled “Suggestion preview cards”](#suggestion-preview-cards) Each preview card shows: * **Title**: The suggestion title * **Status badge**: Shows “New suggestion” for first notifications or “Updated suggestion” for follow-ups * **Description**: A short excerpt of the suggestion description * **Triggered by**: A descriptive label linking to the source that triggered the suggestion. Examples include “Merged GitHub PR #123 in acme/docs” or “Slack direct @mention” * **Files**: The number of files changed * **Status**: The current suggestion lifecycle status (Open, Pull Request, Published, or Rejected) ![Slack suggestion preview card showing the title, description, files with line change stats, Triggered by link, created timestamp, Pull Request status badge, and Publish and Review in Promptless buttons](https://promptless-customer-doc-assets.s3.us-east-2.amazonaws.com/docs-images/org_3DaVKUzHgjyjaODgCPaDmjXezqp/slack-suggestion-preview-card-4fa69850.png) Tip When your documentation repository has a protected branch, Slack notifications show **Create PR** or **View PR** in place of **Publish**. ### Direct messages to MCP submitters [Section titled “Direct messages to MCP submitters”](#direct-messages-to-mcp-submitters) Someone can submit a documentation task through an [MCP editor](/docs/for-docs/connect/triggers/mcp), such as Claude Code or Cursor. Promptless then sends that person a Slack direct message when the suggestion is ready for review. The suggestion then isn’t also posted to the channel. Direct messages to submitters are available in Slack only. If Promptless can’t reach the submitter by direct message, it posts to the configured notification channel. That happens when Slack isn’t connected, the `users:read.email` permission is missing, or no Slack account matches the submitter’s email. Note Direct messages require the [Slack integration](/docs/for-docs/reference/integrations/slack) to be connected with the `users:read.email` permission. The submitter’s Slack account email must also match their Promptless account email. That is the address shown as “Authorize as {email}” at MCP authorization. ## Post status updates in Slack threads [Section titled “Post status updates in Slack threads”](#post-status-updates-in-slack-threads) Promptless can post a follow-up in a suggestion’s original Slack thread when the suggestion resolves. The people who asked for the update then see how it ended. To turn this on: 1. In the [Promptless dashboard](https://app.gopromptless.ai/), open **Settings** and select **Organization**. 2. Under **Suggestion Status Updates**, check **Post Slack follow-ups when suggestions are resolved**. 3. Select **Save**. Promptless then posts one reply in each relevant Slack thread when: * The docs PR merges. * The docs PR closes without merging. * Someone closes the suggestion in the dashboard. * Promptless archives the suggestion after a period of inactivity. Delivery is best-effort. The suggestion’s status changes even if the Slack post fails. ## See also [Section titled “See also”](#see-also) * [Configuration Reference](/docs/for-docs/reference/configuration-reference#policies), for every notification and escalation field * [Route and assign suggestions to the right people](/docs/for-docs/work-the-queue/assignment-and-routing), for who Promptless notifies and assigns * [Slack integration](/docs/for-docs/reference/integrations/slack), for Slack permissions and private channel access * [Microsoft Teams integration](/docs/for-docs/reference/integrations/microsoft-teams), for how Promptless accesses Teams channels * [Get support](/docs/for-docs/reference/getting-help), for help setting up notification preferences # Time suggestions to your release cycle > Match when Promptless drafts and publishes documentation to how your product ships, from pull request to feature-flag rollout ## Overview [Section titled “Overview”](#overview) A documentation suggestion is most useful when it arrives as the change becomes real for your users. Drafted too early, it documents work your reviewers haven’t finished. Drafted too late, the docs trail the release. Align two things with your release cycle: * **When Promptless drafts.** The trigger event decides this. It can be a pull request opening or merging, a commit landing, a feature flag changing, or a call from your pipeline. * **When a suggestion publishes.** The publishing policy decides whether a suggestion waits for review or merges on its own. Both use the trigger and policy settings you already have on the [Configuration page](https://app.gopromptless.ai/configuration). Tip You can also ask Promptless in Slack or Microsoft Teams to adjust timing for you. For example, “@Promptless switch my acme/api PR trigger to run on first approval.” See [Ask Promptless to update your configuration](/docs/for-docs/get-the-most-out/ask-promptless-to-update-config). ## Match the trigger event to your release stage [Section titled “Match the trigger event to your release stage”](#match-the-trigger-event-to-your-release-stage) 1. On the **Triggers** tab of the [Configuration page](https://app.gopromptless.ai/configuration), expand your **GitHub pull requests** trigger. 2. Under **When should Promptless run?**, select one or more moments in a pull request’s life: | Option | Activates when | Choose it when | | ---------------------------- | -------------------------------------- | --------------------------------------------------------------------------------------- | | **When it’s opened** | A pull request opens | You want documentation drafted alongside the code, so reviewers evaluate both together. | | **When it’s first approved** | A pull request gets its first approval | You want Promptless to analyze the change after a reviewer has vetted it. | | **When it’s merged** | A pull request merges | You want documentation only for changes that have made it into the code base. | 3. Select **Save changes**. A new GitHub pull request trigger starts with **When it’s opened** and **When it’s merged** selected. If suggestions keep arriving before a change has settled, move to a later stage. Select both an early and a late option when you want early feedback and a refresh after merge. See [Choose trigger modes](/docs/for-docs/connect/triggers/github-prs#choose-trigger-modes) for the full behavior of each mode, and the [Configuration Reference](/docs/for-docs/reference/configuration-reference#triggers) for the underlying `trigger_on` field. Note **When it’s first approved** activates once per pull request, on the first approval only. Later approvals, and re-approvals after requested changes, don’t start another run. If you merge your own pull requests without a separate reviewer, it never activates. Use **When it’s merged** or a commit trigger instead. To keep suggestions current while a source pull request changes, add `updated` to the trigger’s `trigger_on` list in YAML. This mode is available only in YAML. Promptless then re-reviews the open pull request each time someone pushes new commits to it. It runs far more often than the options in the table. Scope it to specific repositories and `trigger_directories`. See [Re-review open PRs on every push](/docs/for-docs/connect/triggers/github-prs#re-review-open-prs-on-every-push). ## Document only what has shipped [Section titled “Document only what has shipped”](#document-only-what-has-shipped) To document changes once they land, add a [commit trigger](/docs/for-docs/connect/triggers/github-commits), which activates when commits reach a monitored branch. 1. On the **Triggers** tab, add a GitHub commit trigger. 2. Point it at the branch you want to watch. 3. Save your changes. Pair the commit trigger with your PR trigger to get both timings. Promptless comments on pull requests while they’re open, then refreshes the suggestion with the final content once the change merges to your default branch. A commit trigger on its own, without a PR trigger, is the quietest option. Promptless runs only after changes reach the monitored branch. ## Control when a suggestion publishes [Section titled “Control when a suggestion publishes”](#control-when-a-suggestion-publishes) Trigger timing decides when Promptless drafts. Publishing policies decide when a suggestion publishes. By default, a suggestion waits for someone to review and publish it. The defaults on the **Policies** tab of the [Configuration page](https://app.gopromptless.ai/configuration) apply to every suggestion. A rule overrides them for a specific trigger or doc collection. Some changes can publish without review, such as internal documentation or changelog updates you want live as soon as the change lands. For those, add a rule scoped to a trigger you trust: 1. On the **Policies** tab, add a rule. 2. Under **When this matches**, set **Trigger** to the trigger you trust. 3. Under **Promptless does this**, turn on **Open a pull request automatically**. 4. Turn on **Merge the pull request automatically**. 5. Save your changes. With both on, Promptless merges each docs PR from that trigger as soon as it creates it. Auto-merge requires automatic PR creation. Suggestions from every other trigger still wait for review. For every policy field and its default, see the [Configuration Reference](/docs/for-docs/reference/configuration-reference#policies). Note Publishing policies resolve at publish time, not when the trigger activates. If you change a policy while Promptless drafts a suggestion, the new values apply when that suggestion publishes. ## Documentation PRs open as drafts until the source PR merges [Section titled “Documentation PRs open as drafts until the source PR merges”](#documentation-prs-open-as-drafts-until-the-source-pr-merges) A docs PR (a merge request on GitLab) opens as a draft when it links to a source pull request that is still open. When that source pull request or merge request merges, Promptless marks the docs PR ready for review. When a docs PR links to more than one source pull request, Promptless waits for all of them to merge or close. A docs PR that links only to merged or closed source pull requests opens ready for review. This works the same way on GitHub, GitHub Enterprise, and GitLab. A suggestion with no linked source pull request opens ready for review immediately. That includes suggestions from Slack, Jira, MCP, or the API. ## Trigger from a feature-flag rollout [Section titled “Trigger from a feature-flag rollout”](#trigger-from-a-feature-flag-rollout) When a feature ships behind a flag, its pull request can merge weeks before users see the change. Pull request and commit timing then drafts the docs long before they’re relevant. A [LaunchDarkly flag trigger](/docs/for-docs/connect/triggers/launchdarkly) starts documentation work when the flag changes, which is when flagged features reach users. The trigger requires the [LaunchDarkly integration](/docs/for-docs/reference/integrations/launchdarkly), which is in beta. To connect it, follow [Connect LaunchDarkly](/docs/for-docs/connect/triggers/launchdarkly#connect-launchdarkly). ## Trigger from a deploy or release pipeline [Section titled “Trigger from a deploy or release pipeline”](#trigger-from-a-deploy-or-release-pipeline) If your release happens in a CI/CD pipeline, use the [API trigger](/docs/for-docs/connect/triggers/api) to request documentation work over HTTP. Add a step after the release completes that calls Promptless and passes release context. The docs then update on the same event that ships the product: ```bash curl -X POST "https://api.gopromptless.ai/triggers" \ -H "Authorization: Bearer sk-pl-your-api-key" \ -H "Content-Type: application/json" \ -d '{ "instructions": "Document the rate limiting feature released in v2.5.", "context": { "release": "v2.5.0" } }' ``` The `context` object is optional metadata that appears in the trigger’s history. See [API triggers](/docs/for-docs/connect/triggers/api) for the full request format. Tip These inputs combine. Most teams start by matching the PR trigger event to their review stage. They then add a flag or pipeline trigger for features whose release moment isn’t the merge. ## See also [Section titled “See also”](#see-also) * [GitHub PRs](/docs/for-docs/connect/triggers/github-prs), for every PR trigger mode and filter * [GitHub commits](/docs/for-docs/connect/triggers/github-commits), to document changes once they land on a branch * [Filter noise and tune relevance](/docs/for-docs/tune/noise-and-relevance-filtering), to cut low-value suggestions * [Configuration Reference](/docs/for-docs/reference/configuration-reference#policies), for every trigger and policy field # Teach conventions with feedback > Make Promptless apply your team's documentation conventions to every future suggestion by stating them as standing rules in feedback or writing them in the Agent Knowledge Base. ## Overview [Section titled “Overview”](#overview) A convention is a rule your team wants in every suggestion. Examples include a tone, where changelog entries go, or a kind of change you never document. When you teach Promptless a convention, it records the rule in your [Agent Knowledge Base](/docs/for-docs/get-the-most-out/agent-knowledge-base). It reads the rule on later tasks, so you don’t repeat the same feedback on every suggestion. Teach a convention in either of these ways: * State it as a standing rule in feedback you give on a suggestion. Use this when a suggestion shows you a rule you hadn’t written down. * Write it in the Knowledge Base yourself. Use this for rules you already know, so they apply from the first suggestion. To choose a feedback method for the suggestion in front of you, see [Give feedback on a suggestion](/docs/for-docs/work-the-queue/giving-feedback). ## State a convention in your feedback [Section titled “State a convention in your feedback”](#state-a-convention-in-your-feedback) Promptless records feedback as a convention when it says how Promptless should behave from now on. Feedback that only corrects the current suggestion changes that suggestion and nothing else. 1. Give feedback through a method that reaches Promptless: * **Request Changes** * A dashboard comment, or close feedback, with **Send to Promptless** checked * A comment on the docs PR * A reply in the Slack or Microsoft Teams thread 2. Phrase the rule so it applies beyond this suggestion, with words such as “always”, “never”, “from now on”, or “for all future suggestions”. Compare a one-off correction with the same feedback written as a standing rule: | One-off correction | Standing rule | | ---------------------------------------------------- | -------------------------------------------------------------------------------- | | ”Make the tone of this page more conversational." | "Make the tone more conversational, and do that for all future suggestions too." | | "Move this changelog entry into its own suggestion." | "I always want changelog entries in their own suggestion." | | "This dependency bump doesn’t need docs." | "Don’t create suggestions for dependency bumps.” | To combine both, fix the current suggestion and state the rule in the same request. Tip A rule about which changes to skip works the same way. For the other ways to cut low-value suggestions, see [Filter noise and tune relevance](/docs/for-docs/tune/noise-and-relevance-filtering). ## Check what Promptless recorded [Section titled “Check what Promptless recorded”](#check-what-promptless-recorded) When Promptless records a convention, its notification about the work includes a `Recorded:` line that links each Knowledge Base file it changed. To review every recorded convention, open the [Agent Knowledge Base](https://app.gopromptless.ai/settings/knowledge). The **Recent updates by Promptless** list shows each change with its diff and a link to the suggestion that prompted it. See [Track what Promptless changed](/docs/for-docs/get-the-most-out/agent-knowledge-base#track-what-promptless-changed). If Promptless recorded a rule you didn’t intend, or worded it too broadly, an admin can correct it as the next section describes. ## Write a convention in the Knowledge Base [Section titled “Write a convention in the Knowledge Base”](#write-a-convention-in-the-knowledge-base) Only organization admins can edit Knowledge Base files. 1. In the Promptless dashboard, open **Settings** and select **Agent Knowledge Base**. 2. Open the file for the kind of convention you want to add: | Convention | File | | --------------------------------------------------------- | ------------------------------------------ | | Writing style, terminology, and formatting | `style/client_style_guide.md` | | Whom Promptless mentions and how it formats notifications | `doc_workflow/notification_preferences.md` | | Any other rule Promptless must follow on every task | `PROMPTLESS.md` | 3. Add the convention as a plain-language rule. 4. Select **Save**. Promptless reads the file on later tasks. For how each file shapes Promptless’s work, see [Know the files that shape every task](/docs/for-docs/get-the-most-out/agent-knowledge-base#know-the-files-that-shape-every-task). ## See also [Section titled “See also”](#see-also) * [Give feedback on a suggestion](/docs/for-docs/work-the-queue/giving-feedback), to choose how to give feedback on the suggestion you’re reviewing * [Agent Knowledge Base](/docs/for-docs/get-the-most-out/agent-knowledge-base), for viewing, editing, and creating Knowledge Base files * [Filter noise and tune relevance](/docs/for-docs/tune/noise-and-relevance-filtering), to scope triggers and teach Promptless which changes to skip * [Route and assign suggestions to the right people](/docs/for-docs/work-the-queue/assignment-and-routing), to set routing and assignment conventions in the Knowledge Base # Route and assign suggestions to the right people > Learn how Promptless routes notifications, assigns documentation PRs, and credits requesters, and how to triage the review queue, so the right person picks up each suggestion ## Overview [Section titled “Overview”](#overview) A suggestion only helps if it reaches someone who can review it. By default, Promptless routes each suggestion, and the docs PR it opens, to the people closest to the change. It notifies whoever requested the work, assigns the docs PR, and credits the requester in the PR. Change those defaults in your [Agent Knowledge Base](/docs/for-docs/get-the-most-out/agent-knowledge-base) to match how your team divides ownership and review. Then use the review queue in the dashboard to claim, hand off, and find suggestions. Note This page covers routing work to people, including notifications, assignees, and requesters. To choose the Slack or Microsoft Teams channel a notification goes to, see [Customize notifications](/docs/for-docs/tune/notifications). ## How Promptless routes a suggestion [Section titled “How Promptless routes a suggestion”](#how-promptless-routes-a-suggestion) These defaults apply until you customize them. ### Notify the person who requested the change [Section titled “Notify the person who requested the change”](#notify-the-person-who-requested-the-change) When Promptless announces a suggestion, it notifies the person the work came from. That might be the author of the merged pull request, the teammate who tagged Promptless in Slack, or whoever started the thread. The requester sees that the suggestion is waiting on them. Promptless also replies where the conversation already happens. When a suggestion comes from a Slack thread, Promptless can post the update as a reply in that thread. Everyone discussing the change sees it there. A source PR in GitHub can get a comment that links the new docs PR. ### Assign the documentation PR [Section titled “Assign the documentation PR”](#assign-the-documentation-pr) When Promptless opens a docs PR, it sets an assignee so the PR lands in that person’s review queue. By default, the assignee is the person the change came from: the source PR’s author, or the teammate who requested the update in Slack. The person who changed the code or asked for the update then reviews the docs that follow. You can [point PRs at an area owner or a specific teammate](#customize-routing-in-your-knowledge-base) instead. Usernames rarely line up across platforms. The same person might be `@jdoe` in Slack and `jane-doe` on GitHub. Promptless matches accounts on a best-effort basis and usually connects a requester’s identities on its own. When it can’t, or when you want to be sure, add a username map to your Knowledge Base. Promptless then assigns and credits the right person even when their names differ. Note Assigned a Promptless docs PR and want to know what to do with it? See [Review and edit Promptless PRs](/docs/for-docs/work-the-queue/reviewing-prs). It covers reviewing the diff, requesting changes, and steering the PR from a GitHub comment. ### Credit the requester in the PR description [Section titled “Credit the requester in the PR description”](#credit-the-requester-in-the-pr-description) For a suggestion that starts from a Slack request, Promptless names the requester on a line near the top of the PR description, formatted as `Requested by: `. A reviewer who picks up the PR later knows whom to follow up with. ### Route approvals to a reviewer [Section titled “Route approvals to a reviewer”](#route-approvals-to-a-reviewer) Promptless can hand an approved docs PR to a designated writer or reviewer. Suppose a docs PR receives an approval, and that person hasn’t approved it yet. Promptless assigns them and notifies them that the PR is ready for writer review. This handoff runs only when you name the writer or reviewer in your Knowledge Base. Note For this workflow, set your GitHub PR triggers to activate when a PR gets its first approval. ## Customize routing in your Knowledge Base [Section titled “Customize routing in your Knowledge Base”](#customize-routing-in-your-knowledge-base) Write routing and assignment preferences in plain language, and Promptless applies them. You can adjust: * **Who gets notified.** Mention the original requester, or route suggestions to an area owner based on which docs or product area the change touches. * **Who owns the PR.** Choose which teammate is assigned a docs PR. * **How approvals hand off.** Name the writer or reviewer a PR goes to once it’s approved, and how Promptless notifies them. * **Who’s who across platforms.** Map each teammate’s Slack and GitHub handles so Promptless assigns and credits the right person. Only organization admins can edit the Knowledge Base. Other members can view it. 1. In the Promptless dashboard, open **Settings** and select **Agent Knowledge Base**. 2. Open `doc_workflow/notification_preferences.md`. 3. Add your preferences. For example: ```plaintext When a PR is approved but our lead writer (Jane) hasn't approved it, assign them and notify them for a final review. Route suggestions that touch the billing docs to the billing team's owner (Juan). | Person | Slack | GitHub | | --- | --- | --- | | Jane | @jdoe | jane-doe | | Bill | @Bill | billhandler | ``` 4. Select **Save**. For notification timing and message format, which live in the same file, see [Customize notifications](/docs/for-docs/tune/notifications#notification-preferences-file). ## Triage the review queue [Section titled “Triage the review queue”](#triage-the-review-queue) The suggestions list in the dashboard is your team’s review queue. Promptless gives each suggestion a priority and an estimated review time, and the list puts the most urgent work first. ![Suggestions list with the search field, Collection, Trigger source, and Labels menus, the Has screenshots switch, status tabs, and Group and Sort controls above collapsed rows grouped into Critical, High, and Medium sections, each row showing a priority badge, docs PR chip, change size, review time, and date](https://promptless-customer-doc-assets.s3.us-east-2.amazonaws.com/docs-images/org_3DaVKUzHgjyjaODgCPaDmjXezqp/suggestions-list-collapsed-b7e17ebe.png) As you triage, assign a suggestion to yourself or a teammate to claim it or hand it off, and adjust its priority and labels. To review a suggestion’s changes, see [Review in the dashboard](/docs/for-docs/work-the-queue/reviewing-prs#review-in-the-dashboard). ### Find the suggestions you need [Section titled “Find the suggestions you need”](#find-the-suggestions-you-need) Filter the queue by status, doc collection, trigger source, label, or whether a suggestion includes screenshots. Group and sort the list to match how your team works. The page URL keeps the view, so you can share it as a link. Search accepts free text and qualifiers such as `assignee:unassigned`, `priority:high`, `labels:`, `docs:`, and `has:screenshots`. To find a suggestion by pull request or merge request number, search for one of these: * `pr:123` matches the suggestion whose docs PR is #123. * `source-pr:123` matches suggestions triggered by source PR or MR #123. * `#123` matches either. ### Keep suggestions from archiving [Section titled “Keep suggestions from archiving”](#keep-suggestions-from-archiving) Promptless archives a suggestion after 30 days of inactivity. Viewing or editing a suggestion resets the timer. To change the window or keep suggestions open indefinitely, an admin sets the `archiving` policy for the doc collection. See the [Configuration reference](/docs/for-docs/reference/configuration-reference#policies) for its `enabled` and `stale_after_days` fields. You can also ask Promptless to change the policy for you, for example “@Promptless stop archiving suggestions in our docs collection.” See [Ask Promptless to update your configuration](/docs/for-docs/get-the-most-out/ask-promptless-to-update-config). If a suggestion is archived before you review it, contact to restore it. ## Mention a teammate in a comment [Section titled “Mention a teammate in a comment”](#mention-a-teammate-in-a-comment) To pull a teammate into a suggestion’s review, mention them in a line comment, an overall comment, or a reply. Type `@` and pick the teammate by name or email. The mentioned person gets an email that links to that comment. To mention someone who isn’t in your workspace yet, enter their full email address and choose the invite-and-mention option. After you confirm, Promptless invites them with [collaborator access](/docs/for-docs/security/access-and-permissions#roles-inside-promptless) and sends the same email. A comment can mention up to 20 people. If you mention the same person on the same suggestion again within 5 minutes, Promptless skips the second email. ## See also [Section titled “See also”](#see-also) * [Customize notifications](/docs/for-docs/tune/notifications), to choose notification channels and message format * [Review and edit Promptless PRs](/docs/for-docs/work-the-queue/reviewing-prs), for reviewing the diff and steering a docs PR from comments * [Give feedback on a suggestion](/docs/for-docs/work-the-queue/giving-feedback), for requesting changes, commenting, and closing suggestions * [Agent Knowledge Base](/docs/for-docs/get-the-most-out/agent-knowledge-base), for viewing and editing Knowledge Base files # Use Promptless from Claude.ai or ChatGPT > Connect Claude.ai or ChatGPT to Promptless to start documentation tasks, check their status, and review and revise suggestions from a conversation. Covers the server URL, OAuth sign-in, tools, and test prompts. ## Overview [Section titled “Overview”](#overview) Connect Claude.ai or ChatGPT to Promptless to do documentation work from a chat conversation. After you connect, you can: * Start a documentation task and follow it to a docs pull request. * Check the status of recent tasks. * Search and read the organization’s documentation. * Review, revise, or close a suggested documentation change. The connection uses the Promptless [MCP](https://modelcontextprotocol.io) (Model Context Protocol) server. This page covers adding Promptless to each app, approving the connection, the tools the app can call, and testing the connection. You can also give Promptless instructions and review its suggestions from other tools: * Slack and Microsoft Teams. See [Review from Slack and Teams](/docs/for-docs/work-the-queue/reviewing-from-slack-and-teams). * Jira. See [Jira](/docs/for-docs/connect/triggers/jira). * The Promptless dashboard and the docs PR. See [Review and edit Promptless PRs](/docs/for-docs/work-the-queue/reviewing-prs). * Editors such as Claude Code and Cursor. See [MCP triggers](/docs/for-docs/connect/triggers/mcp). ## Before you start [Section titled “Before you start”](#before-you-start) * A Promptless organization that has [finished setting up Promptless](https://app.gopromptless.ai/configuration). Any active member of the organization can connect. * Claude.ai on any plan. The Free plan allows one custom connector. On a Team or Enterprise plan, an Owner must add the connector for the organization first. * ChatGPT on a paid plan, with developer mode on. On a Business, Enterprise, or Edu workspace, an admin or owner controls developer mode and custom apps. ## Server details [Section titled “Server details”](#server-details) | Item | Value | | --------------------- | ----------------------------------------------------------------------------- | | Server URL | `https://api.gopromptless.ai/mcp/with-direct-edits` | | Authentication | OAuth 2.1 authorization code flow with PKCE (`S256`) | | Client registration | Dynamic client registration. No client ID or client secret is necessary. | | Access token lifetime | 8 hours. The app refreshes the token automatically. | | Connection lifetime | 90 days from approval. After 90 days, the user approves the connection again. | | Data scope | One Promptless organization, which the user selects on the approval page | | Account | A Promptless account. No API key is necessary. | | Privacy policy | [Promptless privacy policy](/docs/for-docs/security/privacy-policy) | | Support | | Chat apps must use the server URL in this table. A chat app has no local copy of the documentation repository, so this URL adds tools that search, read, and edit the documentation directly. Editors use `https://api.gopromptless.ai/mcp`, which doesn’t have these tools. Both URLs use the same sign-in and the same access. ## Add Promptless to Claude.ai [Section titled “Add Promptless to Claude.ai”](#add-promptless-to-claudeai) The steps are different for individual plans and organization plans. Free, Pro, and Max are individual plans. Team and Enterprise are organization plans. ### Individual plans [Section titled “Individual plans”](#individual-plans) 1. In Claude.ai, go to **Customize** > **Connectors**. 2. Select **+**. 3. Select **Add custom connector**. 4. In the name field, enter `Promptless`. 5. In the URL field, enter `https://api.gopromptless.ai/mcp/with-direct-edits`. 6. Do not change **Advanced settings**. Claude registers itself with Promptless, so it does not need an OAuth client ID or secret. 7. Select **Add**. 8. On the **Promptless** connector, select **Connect**. A Promptless tab opens. 9. Approve the connection in the Promptless tab. See [Approve the connection](#approve-the-connection). Some accounts show a two-step version of the **Add custom connector** dialog. The first screen asks for the name and URL. The second screen shows authentication options. On the second screen, keep the OAuth defaults. ### Organization plans [Section titled “Organization plans”](#organization-plans) An Owner adds the connector one time for the organization. Then each member connects their own Promptless account. 1. Owner: In Claude.ai, go to **Organization settings** > **Connectors**. 2. Owner: Select **Add**, point to **Custom**, and then select **Web**. 3. Owner: Enter the URL `https://api.gopromptless.ai/mcp/with-direct-edits`. 4. Owner: Select **Add**. 5. Member: Go to **Customize** > **Connectors**. Find the **Promptless** connector, which has the label **Custom**. 6. Member: Select **Connect**. A Promptless tab opens. 7. Member: Approve the connection in the Promptless tab. See [Approve the connection](#approve-the-connection). Each member approves their own connection. So each connection has the Promptless access of that member only. An Owner can block specific tools for all members in **Organization settings** > **Connectors**. ### Use Promptless in a Claude.ai conversation [Section titled “Use Promptless in a Claude.ai conversation”](#use-promptless-in-a-claudeai-conversation) 1. In a conversation, select **+** at the lower left of the message box. 2. Select **Connectors**. 3. Turn on **Promptless**. Claude asks the user to approve the first call to each Promptless tool. To change this for one tool, go to **Customize** > **Connectors** and select **Promptless**. Then set the tool to **Ask each time**, **Always allow**, or **Blocked**. Recommended settings: * Set read-only tools, such as `list_doc_collections` and `get_task_status`, to **Always allow**. * Keep tools that start or change work, such as `submit_documentation_task` and `edit_documentation_file`, on **Ask each time**. For more about connector settings, see the Anthropic [custom connectors guide](https://support.claude.com/en/articles/11175166-get-started-with-custom-connectors-using-remote-mcp). ## Add Promptless to ChatGPT [Section titled “Add Promptless to ChatGPT”](#add-promptless-to-chatgpt) ChatGPT runs custom MCP servers as apps in developer mode. OpenAI labels developer mode and full MCP support as beta. Some accounts show app settings under **Apps**. Other accounts show them under **Plugins**. The ChatGPT plan controls which Promptless tools can run: | Plan | Promptless tools that run | Who turns on developer mode | | ------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ | | Business, Enterprise, Edu | All tools, including tools that change data | An admin or owner. On Enterprise and Edu, an admin can also give developer mode to specific members through role-based access. | | Plus, Pro | OpenAI documents Pro as limited to read and fetch actions. Tools that change data, such as `submit_documentation_task`, might not run. | The user | | Free | None. The Free plan does not support custom apps. | Not available | 1. In ChatGPT, open **Settings**. 2. Turn on **Developer mode**. The toggle is under **Security and login**. On accounts with the earlier layout, the toggle is under **Apps** > **Advanced settings**. 3. Go to [chatgpt.com/plugins](https://chatgpt.com/plugins), or go to **Settings** > **Apps**. 4. Select **Create** or **+**. 5. In the name field, enter `Promptless`. 6. In the description field, enter a short description. For example: `Start and track Promptless documentation tasks, and search, read, and edit our docs.` ChatGPT uses this text to decide when to call the app. 7. In the MCP server URL field, enter `https://api.gopromptless.ai/mcp/with-direct-edits`. 8. For authentication, select **OAuth**. ChatGPT registers itself with Promptless, so it does not need a client ID or secret. 9. Select **Create**. A Promptless tab opens. 10. Approve the connection in the Promptless tab. See [Approve the connection](#approve-the-connection). ChatGPT reads the Promptless tool list. Then ChatGPT adds the app with a **Dev** label. On a Business, Enterprise, or Edu workspace, an admin can publish the app from the app drafts of the workspace. After the admin publishes the app, other members can connect to it. ### Use Promptless in a ChatGPT conversation [Section titled “Use Promptless in a ChatGPT conversation”](#use-promptless-in-a-chatgpt-conversation) In a new conversation, select Promptless from the tools menu below the message box. You can also @-mention Promptless by name. The selection applies only to the message that you send. For a follow-up message that needs Promptless, select or mention Promptless again. Before a tool that changes data runs, ChatGPT shows a confirmation card. Read the action, and then allow or deny it. For app permission settings, see the OpenAI [developer mode guide](https://help.openai.com/en/articles/12584461-developer-mode-and-full-mcp-apps-in-chatgpt-beta). ## Approve the connection [Section titled “Approve the connection”](#approve-the-connection) After you select **Connect** in Claude.ai or **Create** in ChatGPT, a Promptless tab opens. On this page, you approve the connection. Promptless uses OAuth, so the chat app does not get your Promptless password. 1. If you are not signed in to Promptless, sign in with your Promptless account. The approval page opens. 2. Find the web address that the page shows. The page sends the connection to this address. For Claude, the address is `claude.ai` or `claude.com`. For ChatGPT, the address is `chatgpt.com`. 3. If the address does not match the app that you connect, select **Cancel**. The app sets its own name, so check the address, not the name. 4. In the organization picker, select the Promptless organization to connect. The picker selects your active organization by default. The page also shows your role in the organization. 5. Select **Authorize as {your email}**. The tab shows that it is returning you to the app. You can close the tab. In Claude.ai or ChatGPT, Promptless shows as connected, and its tools are ready. If you are not a member of a Promptless organization, the approval page asks for an organization name. When you authorize, Promptless creates the organization. Before you start documentation tasks, [finish setting up Promptless](https://app.gopromptless.ai/configuration). ## Tools [Section titled “Tools”](#tools) The chat app selects the Promptless tool that matches the user’s request. Each tool has MCP annotations that tell the app if the tool is read-only or changes data. The **Type** column shows these annotations: * **Read-only**: `readOnlyHint` is true. The tool does not change data. * **Changes data**: `readOnlyHint` is false and `destructiveHint` is false. The tool adds work or input, and does not change or remove existing content. * **Changes existing content**: `readOnlyHint` is false and `destructiveHint` is true. The tool changes or closes an existing suggestion or file. | Tool | Action | Type | | --------------------------- | -------------------------------------------------------------------------------------------------- | ------------------------ | | `list_doc_collections` | Lists the doc collections of the organization. | Read-only | | `list_recent_tasks` | Lists the recent tasks of the organization, newest first. | Read-only | | `get_task_status` | Gets the status and conversation of one task. | Read-only | | `wait_for_task_update` | Waits up to 30 seconds for new messages or a status change on one task. | Read-only | | `search_suggestions` | Finds suggestions by keyword, status, or label. | Read-only | | `get_suggestion_diff` | Shows the changes that a suggestion proposes. | Read-only | | `list_documentation_files` | Lists the files in a doc collection. | Read-only | | `search_documentation` | Finds text in the documentation files. | Read-only | | `read_documentation_file` | Reads one documentation file. | Read-only | | `get_account_status` | Shows the setup status and connected integrations of the organization. | Read-only | | `submit_documentation_task` | Starts a documentation task. The task can open a docs pull request. | Changes data | | `send_task_message` | Adds an instruction to a task that is in progress. | Changes data | | `answer_task_question` | Sends the answer to a question that a task asked. | Changes data | | `request_changes` | Asks Promptless to revise a suggestion. | Changes data | | `connect_integration` | Creates a link that a person opens to connect an integration, such as GitHub, to the organization. | Changes data | | `update_suggestion` | Sets the title, labels, or assignees of a suggestion, or opens its docs pull request. | Changes existing content | | `close_suggestion` | Closes a suggestion and its docs pull request. | Changes existing content | | `write_documentation_file` | Creates or replaces one file on the branch of an open suggestion. | Changes existing content | | `edit_documentation_file` | Replaces specific text in one file on the branch of an open suggestion. | Changes existing content | The two file tools write only to the branch of an open suggestion, as one commit for each call. They do not write to the default branch of the documentation repository. The tools cannot edit a closed suggestion. For the arguments and results of each tool, see [Available tools](/docs/for-docs/connect/triggers/mcp#available-tools). ## Data access [Section titled “Data access”](#data-access) A connection has the access of the user who approved it, in the organization that the user selected. The approval page shows this access. There are no narrower permissions to select. A connection can: * Read all documentation tasks, doc collections, and suggestions in the organization. This includes work that started from Slack, GitHub, the dashboard, or the API. * Start documentation tasks, which can open docs pull requests. * Revise, update, and close suggestions. * Search, read, and edit documentation files on the branch of an open suggestion. A connection applies to one organization only. To use a different organization, disconnect, connect again, and select the other organization on the approval page. Promptless checks the organization membership of the user on each call. If the user is no longer an active member, the connection stops working. For more about access and membership, see [Authorize in the browser](/docs/for-docs/connect/triggers/mcp#authorize-in-the-browser). For data handling, see the [Promptless privacy policy](/docs/for-docs/security/privacy-policy). ## Test the connection [Section titled “Test the connection”](#test-the-connection) Use these prompts to make sure that the connection works. Start a new conversation with Promptless turned on. In ChatGPT, select or @-mention Promptless in each message. | Prompt | Tool | Expected result | | ---------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `List my Promptless doc collections.` | `list_doc_collections` | A list of the doc collections of the organization, by name. If the organization has not finished setup, the result tells you to [finish setting up Promptless](https://app.gopromptless.ai/configuration). | | `Show my recent Promptless tasks.` | `list_recent_tasks` | A list of recent tasks, newest first. The list includes tasks from Slack, GitHub, and the dashboard. A new organization might have no tasks. | | `Search my Promptless docs for "install".` | `search_documentation` | Lines that contain “install”, with their file paths. | | `Ask Promptless to fix any typos on the quickstart page in my docs collection, and follow the task until it finishes.` | `submit_documentation_task`, then `wait_for_task_update` | The app asks you to approve `submit_documentation_task`. Then the app follows the task for some minutes and shows messages from Promptless. The final result is a suggestion with a docs pull request link, or a statement that no change is necessary. | The last prompt is optional. It starts real work in the organization. To remove the result, enter `Close that Promptless suggestion.` If the first two prompts give results, the connection works. If the third prompt says that the tool does not exist, the connector uses `https://api.gopromptless.ai/mcp`. Remove the connector. Then add it again with `https://api.gopromptless.ai/mcp/with-direct-edits`. ## Reconnect or disconnect [Section titled “Reconnect or disconnect”](#reconnect-or-disconnect) A connection lasts 90 days from approval. During this time, the app refreshes its access automatically. After 90 days, the app asks you to connect again. To connect again: * In Claude.ai, go to **Customize** > **Connectors**, select **Promptless**, and select **Connect**. * In ChatGPT, go to **Settings** > **Apps** or **Plugins**, select **Promptless**, and connect your account. To disconnect: * In Claude.ai, go to **Customize** > **Connectors**. Open the menu next to **Promptless**, and select **Remove**. On a Team or Enterprise plan, an Owner can remove the connector for all members in **Organization settings** > **Connectors**. * In ChatGPT, go to **Settings** > **Apps** or **Plugins**, and select **Promptless**. Disconnect it from its menu. A workspace admin can turn off the app for all members in the admin settings of the workspace. The Promptless dashboard does not have a control to disconnect a chat app. Each member disconnects their own connection in the chat app. ## Troubleshooting [Section titled “Troubleshooting”](#troubleshooting) * **The approval page says that the request is no longer valid**: Approval requests expire after 30 minutes. Start the connection again from Claude.ai or ChatGPT. * **The approval page says that the request has already been answered**: You already approved or canceled the request. If the app still waits for approval, start the connection again. * **You canceled on the approval page**: The app shows that the connection was declined. To try again, select **Connect** in Claude.ai, or connect the app again in ChatGPT. * **The organization is not in the picker**: You are not an active member of the organization. Ask an admin of the Promptless organization to invite you. * **Promptless tools do not run in a Claude.ai conversation**: Turn on Promptless from **+** > **Connectors** in the conversation. Then make sure that the tool is not set to **Blocked** in **Customize** > **Connectors**. * **Promptless tools do not run in a ChatGPT conversation**: Make sure that developer mode is on. Then select or @-mention Promptless in the message. On a plan limited to read actions, tools that change data do not run. * **You connected the wrong organization**: Disconnect Promptless. Connect again, and select the correct organization on the approval page. For errors that Promptless tools return after you connect, see [Troubleshooting](/docs/for-docs/connect/triggers/mcp#troubleshooting) on the MCP triggers page. For other problems, send an email to . ## See also [Section titled “See also”](#see-also) * [MCP triggers](/docs/for-docs/connect/triggers/mcp), for the arguments and results of each tool, and for connecting editors such as Claude Code and Cursor * [Review and edit Promptless PRs](/docs/for-docs/work-the-queue/reviewing-prs), for reviewing the docs pull requests your tasks open * [Review from Slack and Teams](/docs/for-docs/work-the-queue/reviewing-from-slack-and-teams), to request and refine suggestions from a chat thread * [Promptless privacy policy](/docs/for-docs/security/privacy-policy), for how Promptless handles data # Give feedback on a suggestion > Choose how to give feedback on a Promptless suggestion, from requesting changes and commenting in the dashboard to closing it with a reason or commenting on its docs PR. ## Overview [Section titled “Overview”](#overview) Feedback on a suggestion tells Promptless what to change before you publish it. Choose a method by what your feedback covers and where you’re reviewing: | Situation | Method | | --------------------------------------------------------------------------- | ----------------------------------------------------------- | | You want one or more changes across the suggestion | [Request changes](#request-changes) | | Your feedback is about specific lines in a file | [Comment on lines](#comment-on-lines) | | Your feedback is about the whole suggestion, or you want a teammate’s input | [Leave an overall comment](#leave-an-overall-comment) | | The suggestion shouldn’t be published | [Close it with feedback](#close-a-suggestion-with-feedback) | | You review in GitHub or GitLab, and the docs PR is open | [Comment on the docs PR](#comment-on-the-docs-pr) | Feedback on one suggestion changes only that suggestion. To have Promptless apply a rule to every future suggestion as well, state it as a standing rule. See [Teach conventions with feedback](/docs/for-docs/tune/teaching-conventions). ## Before you start [Section titled “Before you start”](#before-you-start) * An Editor or Admin role in your Promptless organization, to request changes or close a suggestion. Any member can comment. ## Request changes [Section titled “Request changes”](#request-changes) Use **Request Changes** when you want Promptless to revise the suggestion, especially when you have several changes to ask for at once. 1. On the suggestion, select **Request Changes**. 2. Describe every change you want. Promptless addresses them together. 3. Select **Submit Request**. ![A suggestion in the Promptless dashboard with Request Changes expanded, showing an empty text field for describing the changes](https://promptless-customer-doc-assets.s3.us-east-2.amazonaws.com/docs-images/org_3DaVKUzHgjyjaODgCPaDmjXezqp/request-changes-button-7923b98a.png) For example: * “Put X file’s content as a section in Y file instead of making it its own file.” * “Make the tone more conversational, and do that for all future suggestions too.” * “I always want changelog entries in their own suggestion. Please move.” ## Comment on lines [Section titled “Comment on lines”](#comment-on-lines) Use a line comment when your feedback is about a specific passage. 1. In a file’s diff, select the text, or select a line number to select the whole line. If you’ve edited the file, save your edits first. 2. Select **Add comment or request changes**, or press ⌘M (Ctrl+M on Windows and Linux). 3. Enter your comment. 4. Optional. To keep Promptless from acting on the comment, clear **Send to Promptless**. 5. Post the comment. Once the suggestion has a docs PR, Promptless also posts your line comments and replies to the PR. That includes comments you didn’t send to Promptless. Replies left on the PR appear in the dashboard thread. ## Leave an overall comment [Section titled “Leave an overall comment”](#leave-an-overall-comment) Use an overall comment for feedback that applies to the whole suggestion, or to bring a teammate into the review. 1. On the suggestion, enter your comment under **Discussions**. 2. Optional. To pull in a teammate, [mention them](/docs/for-docs/work-the-queue/assignment-and-routing#mention-a-teammate-in-a-comment). A mention notifies that person whether or not you send the comment to Promptless. 3. Optional. To keep Promptless from acting on the comment, clear **Send to Promptless**. 4. Select **Post comment**. ## Close a suggestion with feedback [Section titled “Close a suggestion with feedback”](#close-a-suggestion-with-feedback) Close a suggestion when it shouldn’t be published. Closing doesn’t change the suggestion, but your reasons tell Promptless why it missed. 1. On the suggestion, select **Close Suggestion**. 2. Optional. Select one or more reasons: * I copied this change into my docs editor * This change is incorrect * This change is too insignificant * This change was covered in another Promptless suggestion * This is already in my docs * This change is self-explanatory and doesn’t need docs 3. Optional. In **Additional feedback (optional)**, explain what was wrong. To have Promptless skip similar changes in the future, say so here, for example “Don’t create suggestions for dependency bumps.” 4. Leave **Send to Promptless** checked so Promptless reads your reasons and feedback. The checkbox is available once you select a reason or enter feedback. 5. Select **Close Suggestion**. ![A suggestion in the Promptless dashboard with Close Suggestion expanded, listing close reasons as checkboxes](https://promptless-customer-doc-assets.s3.us-east-2.amazonaws.com/docs-images/org_3DaVKUzHgjyjaODgCPaDmjXezqp/close-suggestion-feedback-7f0b6b1d.png) ## Comment on the docs PR [Section titled “Comment on the docs PR”](#comment-on-the-docs-pr) Once Promptless opens the docs PR, you can review it in GitHub or GitLab like any other pull request. Leave line comments, or submit a review to send several comments at once. Whether Promptless acts on a comment without an `@promptless` mention depends on your organization’s comment trigger mode. See [Review and edit Promptless PRs](/docs/for-docs/work-the-queue/reviewing-prs). ## See also [Section titled “See also”](#see-also) * [Teach conventions with feedback](/docs/for-docs/tune/teaching-conventions), to make Promptless apply a rule to every future suggestion * [Review and edit Promptless PRs](/docs/for-docs/work-the-queue/reviewing-prs), for reviewing in the dashboard and steering the docs PR from comments * [Review from Slack and Teams](/docs/for-docs/work-the-queue/reviewing-from-slack-and-teams), to refine a suggestion from the thread it came from * [Filter noise and tune relevance](/docs/for-docs/tune/noise-and-relevance-filtering), when the same kind of suggestion keeps getting closed # Review from Slack and Teams > Request documentation updates from Slack and Microsoft Teams conversations, refine the suggestion in the thread, and act on it from the suggestion card ## Overview [Section titled “Overview”](#overview) Start documentation work from the Slack or Microsoft Teams conversation where a change comes up, and refine the suggestion without leaving the thread. Promptless reads the thread, including attached images and files, drafts the documentation update, and replies with the suggestion for you to review. Start Promptless in one of these ways: | Method | When to use it | Section | | ------------------------- | ---------------------------------------------------------- | ------------------------------------------------------------------- | | Message action | You don’t want to interrupt the conversation. | [Use a message action](#use-a-message-action) | | Channel mention | You want to give instructions in the thread. | [Mention Promptless in a channel](#mention-promptless-in-a-channel) | | Direct message | The request is private, or you have detailed instructions. | [Send a direct message](#send-a-direct-message) | | Passive channel listening | A channel’s discussions often reveal documentation needs. | [Passive channel listening](#passive-channel-listening) | The sections below describe Slack. For the Teams equivalents, see [Microsoft Teams](#microsoft-teams). ## Before you start [Section titled “Before you start”](#before-you-start) * For Slack, the Promptless Slack app, installed in your workspace. See [Connect Slack](/docs/for-docs/connect/triggers/slack-messages#connect-slack). * For Microsoft Teams, the Promptless Teams app, installed and linked to your Promptless organization. See [Connect Microsoft Teams](#connect-microsoft-teams). ## Request documentation in Slack [Section titled “Request documentation in Slack”](#request-documentation-in-slack) ### Use a message action [Section titled “Use a message action”](#use-a-message-action) 1. On any Slack message, open the message actions menu (⋯). ![Slack context menu with Promptless options including Update Docs, Create task in Notion, and Create an Issue](https://promptless-customer-doc-assets.s3.amazonaws.com/docs-images/org_2lvkgU9erOFxYhtEVVC0ymPrPdF/1756962237-slack-context-menu-promptless-integrations.png) Slack message actions menu showing Promptless integrations 2. Select **Update Docs**. If you don’t see it, select **More message shortcuts** and search for Promptless. Promptless analyzes the full thread, drafts the documentation updates, and sends you a direct message when it’s done. ### Mention Promptless in a channel [Section titled “Mention Promptless in a channel”](#mention-promptless-in-a-channel) 1. If this is the first time you’re tagging Promptless in the channel, add the Promptless app to the channel. 2. In a new message or a thread reply, tag @Promptless with instructions for the docs update. You can include internal and external links, Slack links, and images. Promptless analyzes the whole thread to understand the discussion. Point it to specific pages, or let it infer them from the context. It replies in the thread when it’s done drafting, and you can [refine the suggestion in the same thread](#thread-auto-reply). For example: ```txt @Promptless please also add a troubleshooting section covering the error cases we discussed earlier in this thread ``` ```txt @Promptless make sure to mention that this feature is only available in the Enterprise plan ``` ```txt @Promptless create a mermaid chart for the system architecture discussed in this thread ``` ### Send a direct message [Section titled “Send a direct message”](#send-a-direct-message) 1. In Slack, open the Promptless app from the **Apps** section. 2. Describe your request, or paste the content you want turned into documentation. You can include internal and external links, Slack links, and images. You don’t need to tag Promptless. Promptless sends the documentation updates to you in a direct message. ## Add images, files, and screenshots [Section titled “Add images, files, and screenshots”](#add-images-files-and-screenshots) ### Attach images and files [Section titled “Attach images and files”](#attach-images-and-files) Attach screenshots, diagrams, design mockups, API responses, or configuration files in the thread where you tag @Promptless or use **Update Docs**. Promptless reviews all text and attached files in the thread. When an image or file is relevant to the documentation, Promptless adds it to the suggestion. For example: ```txt @Promptless please document this new export feature. I've attached a screenshot showing the new export dialog. ``` ```txt @Promptless update the technical architecture page with this new system diagram (attached) ``` ```txt @Promptless we need to add troubleshooting docs for this error. See the screenshot above for the exact error message users are seeing. ``` ```txt @Promptless here's the design spec for the new onboarding flow (PDF attached). Please create documentation that matches this flow. ``` For how Promptless processes and stores images, see the [Slack integration](/docs/for-docs/reference/integrations/slack). ### Request screenshot captures [Section titled “Request screenshot captures”](#request-screenshot-captures) If your organization has screenshot capture set up, ask Promptless to capture fresh screenshots from your staging or production environment. Promptless navigates to your web application, captures the UI, and adds the screenshot to the documentation. For example: ```txt @Promptless capture a screenshot of the user settings page from staging and add it to the account management docs ``` ```txt @Promptless the dashboard screenshot in our getting started guide is outdated. Can you capture a fresh one from production? ``` ```txt @Promptless we need screenshots of the new onboarding flow. Please capture the welcome screen, the team setup page, and the final confirmation from staging. ``` Note Screenshot capture needs the feature enabled for your organization and your environment configured. See [Screenshots](/docs/for-docs/get-the-most-out/screenshots), or contact your Promptless admin or . ## Passive channel listening [Section titled “Passive channel listening”](#passive-channel-listening) With passive listening, Promptless monitors the Slack channels you select and creates documentation suggestions from their messages, with no mention or message action needed. Use it for documentation-focused or support channels, where discussions often reveal documentation needs. It’s opt-in: Promptless monitors only the channels you list, and you can add or remove channels at any time. To turn it on, add a `slack_listen` trigger on the [Configuration page](https://app.gopromptless.ai/configuration): ```yaml triggers: support-channels: trigger_type: slack_listen match: - channels: - customer-support - docs-feedback ``` Channel names don’t need the `#` prefix. For the full setup, see [Set up passive channel listening](/docs/for-docs/connect/triggers/slack-messages#set-up-passive-channel-listening). When new messages arrive in a thread Promptless already processed, Promptless updates its existing suggestion for that thread. You see one suggestion that changes as the thread grows, without a separate suggestion for each message. To have Promptless act on a monitored thread right away, @mention it there. For choosing channels and tuning what Promptless documents, see [Get the most out of passive channel listening](/docs/for-docs/get-the-most-out/passive-channel-listening). ## Thread auto-reply [Section titled “Thread auto-reply”](#thread-auto-reply) Promptless keeps reading new replies in a Slack thread after a message action, mention, or direct message triggers it there. It does the same in any thread where it has posted. You don’t need to tag `@Promptless` again to refine the suggestion, add context, or share images and files. Promptless decides whether each reply is actionable, so not every reply produces a documentation update. To have Promptless ignore a message, start it with `aside` or `/aside`: ```txt aside @InlinePizza are these the ones your thing found or were there more? ``` ### Configure thread replies [Section titled “Configure thread replies”](#configure-thread-replies) The thread reply trigger mode applies to your whole organization. To change it, open **Settings**, select **Organization**, and under **Slack Thread Reply Trigger Mode**, choose a mode: * **Listen to all replies in participating threads (opt out with aside)** (default): Promptless processes every reply in threads where it has posted or been mentioned. * **Require @promptless**: Promptless processes only replies that mention it. For details, see [Change the thread reply trigger mode](/docs/for-docs/connect/triggers/slack-messages#change-the-thread-reply-trigger-mode). ## Read citations in research replies [Section titled “Read citations in research replies”](#read-citations-in-research-replies) Some research questions need Promptless to fetch external URLs, such as documentation sites, articles, or video transcripts. Its reply then cites each fact with an inline link to its source. The linked phrase is the specific claim or number, not the whole sentence. For example, if you ask about API rate limits and Promptless fetches your docs and source code, the reply might look like this: > The hard rate limit on `/v1/embed` is **60 requests per minute per API key**, enforced by the gateway’s `rate_limiter.py` config. Each bolded term links to its source. The rate limit links to your API reference, and the file name links to the repository. If a fetch fails, Promptless says so and still links the URL it tried: > **Live status:** unverified. Your status page returned 503 when I checked, so I can’t confirm whether you’re currently throttled. Only sources that shaped the answer appear as citations. ## Microsoft Teams [Section titled “Microsoft Teams”](#microsoft-teams) Note The Microsoft Teams integration is in beta. Contact to enable it for your organization. Promptless works the same way in Microsoft Teams as in Slack. You start it from a conversation, and it drafts documentation updates for you to review. ### Connect Microsoft Teams [Section titled “Connect Microsoft Teams”](#connect-microsoft-teams) Skip this section if your Teams tenant is already linked to your Promptless organization. To install Promptless in Microsoft Teams, you need: * Microsoft Teams admin center access * Permissions to manage app setup policies in your organization * Ability to install and configure third-party apps Connecting Teams has two stages. First, install the Promptless app into your Teams tenant (steps 1–3). Then link that tenant to your Promptless organization (step 4). The two stages are independent, and you can link before you install. Installing first, as numbered below, is the simplest path. 1. Download the Promptless Teams app package from the [Promptless integrations page](https://app.gopromptless.ai/integrations). ![Download Teams app package from Promptless integrations page](https://promptless-customer-doc-assets.s3.amazonaws.com/docs-images/org_2lvkgU9erOFxYhtEVVC0ymPrPdF/996a81d2-7bb6-4b6b-95d3-ef076c150450-teams-integrations-page-download.png) 2. Upload the Promptless Teams app: 1. Go to the [Microsoft Teams admin center](https://admin.teams.microsoft.com). 2. In the left navigation, under **Teams apps**, select **Manage apps**. Manage apps controls which apps users in your organization can install. 3. Select **Actions** > **Upload new app**. 4. Choose the Promptless Teams app package you downloaded. 5. Select **Upload**. ![Manage Apps](https://promptless-customer-doc-assets.s3.amazonaws.com/docs-images/org_2lvkgU9erOFxYhtEVVC0ymPrPdF/0042d96c-e3e7-42b7-8ee9-3d5cda74a0d4-teams-admin-center-app-setup-policies.png) ![Teams Manage Apps Overview](https://promptless-customer-doc-assets.s3.amazonaws.com/docs-images/org_2lvkgU9erOFxYhtEVVC0ymPrPdF/0042d96c-e3e7-42b7-8ee9-3d5cda74a0d4-teams-manage-apps-overview.png) ![Teams Upload Custom App Dialog](https://promptless-customer-doc-assets.s3.amazonaws.com/docs-images/org_2lvkgU9erOFxYhtEVVC0ymPrPdF/0042d96c-e3e7-42b7-8ee9-3d5cda74a0d4-teams-upload-custom-app-dialog.png) 3. Grant users access to the app: 1. In the left navigation, select **Setup policies**. ![Teams Global Policy Configuration](https://promptless-customer-doc-assets.s3.amazonaws.com/docs-images/org_2lvkgU9erOFxYhtEVVC0ymPrPdF/0042d96c-e3e7-42b7-8ee9-3d5cda74a0d4-teams-global-policy-configuration.png) 2. Select the **Global (Org-wide default)** policy. 3. Turn on **Upload custom apps** and **User pinning** if they’re off. Users need these settings to install and pin custom apps like Promptless. 4. Under **Installed apps**, select **Add apps**. ![Global Policy](https://promptless-customer-doc-assets.s3.amazonaws.com/docs-images/org_2lvkgU9erOFxYhtEVVC0ymPrPdF/0042d96c-e3e7-42b7-8ee9-3d5cda74a0d4-teams-add-apps-button.png) 5. Search for “Promptless”, and add it to the policy. 6. Select **Save**. 4. Link your Teams tenant to Promptless. This stage happens in Promptless, outside the Microsoft Teams admin center: 1. On the [Promptless integrations page](https://app.gopromptless.ai/integrations), find the **Microsoft Teams** integration. 2. Select **Link App & Grant Read Channels**. This starts a Microsoft admin-consent sign-in that only a Microsoft admin can approve. If you’re not an admin, ask your Microsoft admin to complete this step. 3. Approve the sign-in. This links your tenant to your Promptless organization. Until your tenant is linked, the Promptless bot can’t map incoming Teams messages back to your organization. It replies that no workspace is connected. If the button reads **Contact Promptless**, OAuth isn’t configured for your organization yet. Email to finish connecting. To let Promptless read files attached in Teams channels, a Microsoft tenant administrator also chooses which SharePoint sites it can read from. See [Choose which shared files Promptless can read](/docs/for-docs/reference/integrations/microsoft-teams#choose-which-shared-files-promptless-can-read). For the permissions the Teams app requests and how Promptless accesses channels, see the [Microsoft Teams integration](/docs/for-docs/reference/integrations/microsoft-teams). ### Use Promptless in Microsoft Teams [Section titled “Use Promptless in Microsoft Teams”](#use-promptless-in-microsoft-teams) Start Promptless from Teams in any of these ways: * **Use a message action.** Open the menu on any Teams message and select **Update docs with Promptless**. Optionally, add instructions, such as “Focus on the error handling steps.” Teams confirms the request, and the suggestion typically appears within a few minutes. * **Tag @Promptless in a channel.** Mention @Promptless in a Teams channel with your instructions. Promptless analyzes the conversation and drafts relevant updates. * **Send a direct message.** Message @Promptless directly for private documentation requests. * **Listen to channels passively.** Add an `msteams_listen` trigger to monitor selected channels and draft suggestions without a mention. Like Slack listening, it’s opt-in and covers only the channels you select. See [Passive channel listening](/docs/for-docs/get-the-most-out/passive-channel-listening). Once Teams is connected, @Promptless mentions work with no further configuration. Thread replies work the same way as in Slack. See [Thread auto-reply](#thread-auto-reply). ### Act from the suggestion card [Section titled “Act from the suggestion card”](#act-from-the-suggestion-card) When Promptless creates a suggestion from Teams, it replies in the thread with a suggestion card. The card shows the title, description, status, creation date, branch, and affected files. Use its buttons to act without leaving Teams: * **Publish**: Merges the docs PR and publishes the changes. The card updates to show the result. * **Create PR**: Opens a docs pull request. The card refreshes to show the new PR link. * **View PR**: Opens the docs PR in your browser. * **Review in Promptless**: Opens the suggestion in the Promptless dashboard. Publishing behavior and notifications follow your [policies configuration](/docs/for-docs/reference/configuration-reference#policies). ## See also [Section titled “See also”](#see-also) * [Slack messages](/docs/for-docs/connect/triggers/slack-messages), for Slack setup, attachments, and passive listening configuration * [Customize notifications](/docs/for-docs/tune/notifications), for the Slack preview card and where suggestion notifications go * [Give feedback on a suggestion](/docs/for-docs/work-the-queue/giving-feedback), to refine a suggestion in the dashboard * [Slack integration](/docs/for-docs/reference/integrations/slack) and [Microsoft Teams integration](/docs/for-docs/reference/integrations/microsoft-teams), for permissions and troubleshooting * [Get support](/docs/for-docs/reference/getting-help), for help with Slack or Teams interactions # Review and edit Promptless PRs > Learn how to review a Promptless suggestion in the dashboard and provide follow-up instructions through comments and reviews on the GitHub pull request or GitLab merge request Promptless opened for your documentation ## Overview [Section titled “Overview”](#overview) Promptless opens a docs PR for a suggestion when you publish it, or when a publishing policy opens one automatically. A docs PR is a GitHub pull request or a GitLab merge request in your documentation repository. Review the suggestion in the Promptless dashboard to check its evidence and rendered changes. Then steer the docs PR with comments and reviews, the same way you review code. Promptless fixes quality issues in its docs PRs, such as linter failures, Vale warnings, and broken links, so your feedback can focus on the content. Note You can also @mention Promptless in comments on source code PRs to request documentation updates. See [Request documentation via PR comments](/docs/for-docs/connect/triggers/github-prs#request-documentation-via-pr-comments) for details. ## Comment trigger modes [Section titled “Comment trigger modes”](#comment-trigger-modes) One organization setting governs how Promptless responds to comments on documentation pull requests (GitHub) and merge requests (GitLab): **Listen to all comments** (default for new organizations): Promptless processes all human comments automatically. To have Promptless ignore a specific comment, start it with `aside` or `/aside`. **Require a mention** (default for existing organizations): Promptless responds when you tag `@promptless` in a comment. To invoke Promptless, mention `@promptless` (or `@promptless-for-oss`) anywhere in a comment, or start a line with `/promptless`. Both forms work on GitHub pull requests and GitLab merge requests. In **Listen to all comments** mode, Promptless also looks at who a comment addresses. If a comment’s question or request goes only to someone else, Promptless leaves it alone. A comment that doesn’t clearly address someone else still gets a reply. Note Change this setting anytime in [Settings → **Organization**](https://app.gopromptless.ai/settings/org). Changing organization settings requires the [Admin role](/docs/for-docs/security/access-and-permissions). ## Mentions from automated accounts [Section titled “Mentions from automated accounts”](#mentions-from-automated-accounts) Promptless acts on a direct `@promptless` mention (or a line-leading `/promptless`) the same way, whether it comes from a teammate or an automated account. In **Listen to all comments** mode, Promptless may skip some unmentioned comments from automated or bot accounts. For example, it may skip a staging-summary comment posted by a continuous integration (CI) or service account. Tagging `@promptless` (or using a line-leading `/promptless`) always ensures Promptless acts on the comment. To keep Promptless from acting on a known-noisy automated comment in **Listen to all comments** mode, start the comment with `aside` (or `/aside`). You can also set the mode to **Require a mention**. ## Review in the dashboard [Section titled “Review in the dashboard”](#review-in-the-dashboard) Every PR that Promptless opens links to its suggestion in the dashboard, at the top of the PR description. The suggestion holds what you need to judge a change before you merge it. Suggestions that don’t have a PR yet open from the [review queue](/docs/for-docs/work-the-queue/assignment-and-routing#triage-the-review-queue). * **Evidence:** Citations tie each change to the files, PRs, and commits Promptless relied on. The [research breakdown](/docs/for-docs/connect/triggers#see-what-promptless-researched) lists everything Promptless read before drafting, such as source files and Slack threads. * **History:** A timeline records each commit to the suggestion’s branch with its author, time, and changed files. It shows what Promptless and your teammates changed, and when. * **Collaboration:** Assignees, labels, and overall comments let your team coordinate on the suggestion. From the suggestion, you can edit the changes yourself, [ask Promptless for changes](/docs/for-docs/work-the-queue/giving-feedback), publish the suggestion as a PR or MR, or close it. ![Suggestion detail view with a three-tab bar showing the active Review Suggestion tab with the suggested file diff, the Triggers & Analysis tab, and the History & Collaboration tab](https://promptless-customer-doc-assets.s3.us-east-2.amazonaws.com/docs-images/org_3DaVKUzHgjyjaODgCPaDmjXezqp/suggestion-detail-three-tabs-f0e86827.png) ### Check how changes render [Section titled “Check how changes render”](#check-how-changes-render) Review a change as readers will see it, not only as a diff. Markdown and MDX files render with added and removed content highlighted, so you can check headings, lists, tables, and code blocks in context. Changed images appear as before-and-after versions side by side. SVG files render as images, and their markup diff is also available. You can reject a single image change to restore its previous version while keeping the rest of the suggestion. Image previews cover PNG, JPEG, GIF, BMP, WebP, AVIF, and SVG files. ### Rename a suggestion [Section titled “Rename a suggestion”](#rename-a-suggestion) When you rename a suggestion that has an open or draft PR on GitHub, Promptless renames the PR to match. The new title takes effect only after GitHub accepts it, so the suggestion and the PR keep the same title. Renaming the PR on GitHub updates the suggestion the next time you open it. Renaming changes only the title, not the branch or its commits. ## Open PRs for several suggestions at once [Section titled “Open PRs for several suggestions at once”](#open-prs-for-several-suggestions-at-once) When several suggestions are ready to publish, select them in the suggestions list and open their PRs in one batch. You can select suggestions one at a time, as a range, or as everything that matches your current filters. Promptless skips suggestions that are closed, have no changed files, or already have an open or draft PR. Before it starts, it confirms how many PRs it opens. You can retry any PR that fails to open. ## Give feedback on the docs PR [Section titled “Give feedback on the docs PR”](#give-feedback-on-the-docs-pr) Leave feedback on the docs PR in GitHub or GitLab. Promptless reads all previous comments on the PR to understand the context. An instruction can be as short as “Same here” or “Apply this change to the other section too.” ### Comment on a line [Section titled “Comment on a line”](#comment-on-a-line) Leave a comment on a specific line or section of the docs PR for targeted feedback. * In **Listen to all comments** mode, leave the comment. Promptless processes it automatically. * In **Require a mention** mode, tag `@promptless` in the comment. The mention doesn’t appear in autocomplete, but Promptless still sees it. ![A line comment on a GitHub docs PR that tags @Promptless and asks for an intro paragraph summarizing the section](https://promptless-customer-doc-assets.s3.amazonaws.com/docs-images/org_2lvkgU9erOFxYhtEVVC0ymPrPdF/github-pr-comment-feedback-b0dd5abf.png) ### Submit a review [Section titled “Submit a review”](#submit-a-review) To give several pieces of feedback at once on GitHub, submit a pull request review. Promptless handles all of the review’s comments together after you submit it. * In **Listen to all comments** mode, submit the review. Promptless processes it automatically. * In **Require a mention** mode, tag `@promptless` in the review summary. ## Examples of feedback [Section titled “Examples of feedback”](#examples-of-feedback) Comments like these work on a docs PR, and in the dashboard: | Kind of change | Example comment | | -------------------- | ----------------------------------------------------------------------------------- | | Content update | `Please add a section about error handling for this API endpoint` | | Content update | `Add a note that this feature requires admin permissions` | | Structural change | `Move this section to the beginning of the page for better flow` | | Structural change | `Split this into two separate sections: "Basic Usage" and "Advanced Configuration"` | | Technical correction | `The API endpoint should be /v2/users, not /v1/users` | | Technical correction | `Include the response status codes for each endpoint` | | Style and formatting | `Format this as a code block instead of inline code` | | Style and formatting | `Use a callout box to highlight this important warning` | To have Promptless apply a rule to every future suggestion, phrase it as a standing rule. For example: “Always include the response status codes for each endpoint.” See [Teach conventions with feedback](/docs/for-docs/tune/teaching-conventions). ## See also [Section titled “See also”](#see-also) * [Give feedback on a suggestion](/docs/for-docs/work-the-queue/giving-feedback), for requesting changes, commenting, and closing suggestions in the dashboard * [GitHub PRs](/docs/for-docs/connect/triggers/github-prs#request-documentation-via-pr-comments), to request documentation from comments on source code PRs * [GitLab merge requests](/docs/for-docs/connect/triggers/gitlab-merge-requests), for how Promptless works with merge requests * [Route and assign suggestions to the right people](/docs/for-docs/work-the-queue/assignment-and-routing), for who gets assigned a docs PR and how to triage the review queue * [Get support](/docs/for-docs/reference/getting-help), for help with PR and MR interactions # Promptless for Agent Instructions > Publish shared agent instructions, understand how they perform in real sessions, and review evidence-backed improvements with Promptless Instruction Governance. Promptless Instruction Governance (PIG) helps teams maintain the instructions their AI agents use. Keep shared skills, rules, commands, and tool configuration in a versioned **Instruction Hub**. Publish them as plugins, then use evidence from real sessions to improve them. You can start with instruction publishing on its own. When you are ready to learn from agent sessions, deploy the **trace analyzer** in your infrastructure and enroll the hosts that should send it traces. **Instruction Hub**Publish shared instructions Published pluginsthen **AI agent**Use instructions in real work Session tracesthen **Trace analyzer**Find instruction problems Findingsthen **Promptless Dashboard**Review evidence and improvements Reviewed instruction updates → Instruction Hub Publish instructions on their own, or add trace analysis to learn from sessions. Review proposed improvements and publish accepted changes back through your hub. See [How it works](/docs/governance/start-here/how-it-works#the-components-at-a-glance) for the full architecture, ownership boundaries, and data flow. ## Use cases [Section titled “Use cases”](#use-cases) * Copies of the same skill drift apart across repositories. Keep one reviewed source in an Instruction Hub, with clear ownership and a release history. * Your writers and developers use different agents. The `pig` toolchain builds agent-specific plugins from the same hub. Authors maintain one source, and each agent receives a format it supports. * Agents repeat a mistake, and no one knows which instruction causes it. The trace analyzer examines real sessions for missing, stale, conflicting, or ineffective instructions. It records each problem as a finding with supporting evidence. * Instruction changes must not reach your team without review. A finding can lead to a proposed pull request against your hub. Your team reviews it and publishes accepted changes through its usual Git workflow. For example, Acme’s writers and developers share a `review-docs` skill. A finding shows that an older release of the skill omits prerequisite checks, so agents approve guides with missing setup steps. A reviewer checks the cited session evidence, merges a correction, and publishes a new release for the team to install. ## Choose how much to set up [Section titled “Choose how much to set up”](#choose-how-much-to-set-up) The hub guides are for technical writers and developers. The deployment guides cover the Kubernetes, identity, storage, and operational decisions that DevOps and GitOps teams manage. You can begin authoring instructions without the deployment details. To hand setup to Claude Code, Codex, or another coding agent, start with [Set up PIG with a coding agent](/docs/governance/agent-setup-guide). It has a prompt for the whole setup, and each setup guide has a prompt for its own phase. ### Publish instructions first [Section titled “Publish instructions first”](#publish-instructions-first) An Instruction Hub needs a Git repository, the `pig` toolchain, a publishing pipeline, and an agent that can install the output. It does not need a trace analyzer, database, bucket, or model-provider account. New hubs have managed trace ingestion disabled by default. Use this path to establish your source of truth, test the authoring workflow, and get useful instructions into your team’s agents. [Create a hub](/docs/governance/get-started/set-up-your-instruction-hub) or [migrate existing instructions](/docs/governance/get-started/migrate-existing-instructions). ### Add evidence from sessions [Section titled “Add evidence from sessions”](#add-evidence-from-sessions) For trace analysis, deploy the analyzer and connect PostgreSQL and your cloud’s object storage. Configure a model provider, select the instruction repositories to analyze, and then enable host enrollment. Raw traces stay in your storage. The configured model provider receives analysis input, and Promptless receives trace metadata and findings that can include session-derived detail. The trace analyzer updates automatically to stable releases by default. You can pause updates or pin a release. See [Manage updates and recovery](/docs/governance/deploy-the-worker/manage-updates-and-recovery). Before you enable collection, read the [trust and data model](/docs/governance/start-here/trust-and-data-model) with your deployment team. ## Find your path [Section titled “Find your path”](#find-your-path) ### Author and publish instructions [Section titled “Author and publish instructions”](#author-and-publish-instructions) Author, publish, and install shared instructions without deploying a trace analyzer. [How it works](/docs/governance/start-here/how-it-works)See the components, dependencies, and data flow, from publishing an instruction to learning from a session. [Key concepts](/docs/governance/start-here/key-concepts)Look up hubs, assets, plugins, marketplaces, hosts, traces, findings, and releases. [Set up your Instruction Hub](/docs/governance/get-started/set-up-your-instruction-hub)Create shared instructions and validate a first release your team can install. [Migrate existing instructions](/docs/governance/get-started/migrate-existing-instructions)Consolidate scattered skills and configuration into one reviewed hub. [Publish and install plugins](/docs/governance/get-started/publish-and-install-plugins)Build a release to publish, or install a published plugin in your agent. [Set up PIG with a coding agent](/docs/governance/agent-setup-guide)Hand the setup to your coding agent, from the hub and plugins to optional trace analysis. [Supported agents](/docs/governance/reference/supported-agents)Compare instruction distribution and native trace collection support. ### Deploy trace analysis [Section titled “Deploy trace analysis”](#deploy-trace-analysis) Deploy the analyzer, enroll hosts, and act on the findings it produces. [Trust and data model](/docs/governance/start-here/trust-and-data-model)See which systems receive your data and which credentials connect them. [Plan your deployment](/docs/governance/deploy-the-worker/plan-your-deployment)Plan the infrastructure and access that trace analysis needs. [Install the trace analyzer](/docs/governance/deploy-the-worker/deploy-the-analyzer-worker)Set up trace analysis in your cluster with automatic updates, then verify your first session. [Enroll your hosts](/docs/governance/get-started/enroll-your-hosts)Enable optional trace collection and authorize a Claude or Codex host. [Understand findings](/docs/governance/findings-and-remediation/understand-findings)Evaluate and triage evidence-backed instruction problems. [Remediate findings](/docs/governance/findings-and-remediation/remediate-findings)Review a proposed instruction change and publish it through your Git workflow. # Set up PIG with a coding agent > Hand PIG setup to Claude Code, Codex, or another coding agent. The agent inspects your environment, sets up an Instruction Hub and plugins, and can deploy trace analysis and enroll hosts. ## Overview [Section titled “Overview”](#overview) A coding agent such as Claude Code or Codex can set up Promptless Instruction Governance (PIG) for you by following the setup guides. It reuses what already exists and asks you before a change that costs money, grants access, or publishes to your team. Use this page when you want an agent to do the setup work. To do it yourself, start with [Set up your Instruction Hub](/docs/governance/get-started/set-up-your-instruction-hub). Hand the agent the whole setup with the prompt on this page. To hand it one phase at a time, use the **Ask your agent** prompt in each setup guide. Either way, you finish with a published Instruction Hub, its plugins installed in your agent, and a hub skill that works in a real task. With trace analysis, the agent also deploys the analyzer, enrolls a host, and verifies one analyzed session. ## Before you start [Section titled “Before you start”](#before-you-start) * Decide whether you want trace analysis. A hub and its plugins work without it. Trace analysis adds a self-hosted analyzer, a PostgreSQL database, object storage, and a model provider. * Start the agent in a terminal that can reach your Git provider and, for trace analysis, your cloud account and Kubernetes cluster. * Expect to handle sign-ins, the Promptless Dashboard, and host enrollment approval yourself. The agent tells you when. * Store secrets in your secret manager and give the agent their names, never their values. ## Ask your agent to set up PIG [Section titled “Ask your agent to set up PIG”](#ask-your-agent-to-set-up-pig) 1. Copy this prompt and replace each bracketed value you know. The agent discovers the rest. Ask your agent: set up PIG end to end ```text Set up Promptless Instruction Governance (PIG) for my team. Follow https://promptless.ai/docs/governance/agent-setup-guide.md Outcome: a published Instruction Hub, its plugins installed in my agent, and a hub skill working in a real task. Trace analysis: [yes or no]. If yes, also deploy the analyzer, enroll this host, and verify one real session in the Promptless Dashboard. Known inputs (discover the rest before you ask me): - Hub repository: [existing hub URL, or the GitHub or GitLab group for a new one] - My agent: [Claude Code, Codex, Cursor, or Gemini CLI] - Cloud: [AWS, Azure, Google Cloud, or another Kubernetes platform] - Cluster: [kubectl context and namespace, if known] Ask me before paid, access, publishing, or destructive changes, and never ask me to paste a credential. Report what you verified, what is blocked, and my next step. ``` 2. Paste the prompt into the agent you started in the terminal from [Before you start](#before-you-start). 3. Answer the agent’s questions, and approve or decline each plan it shows you. 4. When the agent pauses for a step only you can do, complete the step and tell the agent. When it finishes, the agent reports each phase as verified, skipped, or blocked, with your next step. ## Instructions for coding agents [Section titled “Instructions for coding agents”](#instructions-for-coding-agents) The rest of this page, up to **See also**, is for you, the agent. Read all of it before you run a command. The linked guides are the source of truth for commands and configuration. If this page differs from a guide, follow the guide and report the difference. Append `.md` to a guide’s URL to read it as Markdown. The [documentation index](/llms.txt) lists every page. ### Act within scope, ask before consequential changes [Section titled “Act within scope, ask before consequential changes”](#act-within-scope-ask-before-consequential-changes) Without asking, run read-only inspection, prepare files on a local branch, render templates, and run dry runs, `terraform plan`, `pig validate`, and `pig verify`. Reuse existing resources and resume from the first incomplete phase. Before each of these actions, show the plan, diff, or `terraform plan` output and wait for approval. An approval covers only the plan you showed. * Creating a repository, or pushing to a branch that publishes, such as the hub’s source branch. * Applying Terraform, installing the Helm bootstrap, or applying a `PIGDeployment`. These create paid resources or start workloads and schema migrations. * Granting access: IAM, repository and CI token permissions, and the GitHub App’s repository access. * Enabling trace collection, which can upload the host’s existing session history. * Replacing, deleting, or importing existing infrastructure, Terraform state, Helm releases, or hub content. Before each phase that writes, report the exact target: Git remote and branch, cloud account and region, Kubernetes context and namespace, and Promptless organization. Stop if it differs from what the user described. When a step fails, stop and report it. Do not invent commands, flags, or keys, or switch deployment paths without agreement. Never weaken security to get past an error, such as by disabling TLS verification, making storage public, or broadening IAM. Preserve what others own. Keep the user’s uncommitted changes and work on a branch. Keep existing Terraform state, backends, and module pins, and do not import resources another workflow owns. Keep the Helm bootstrap out of Terraform `helm_release` resources and out of continuous GitOps reconciliation. After bootstrap, PIG owns its releases, as [GitOps ownership](/docs/governance/deploy-the-worker/gitops-ownership) describes. ### Keep credentials out of the conversation [Section titled “Keep credentials out of the conversation”](#keep-credentials-out-of-the-conversation) * Ask for the name of a secret, Kubernetes Secret, or environment variable, never its value. * Deliver credentials only through the user’s secret manager, a Kubernetes Secret created from it, or the CI provider’s own token. * Keep credentials out of Git, Helm arguments, committed `.tfvars` files, logs, and output. To confirm a Secret, check its keys, not its value. * Treat Terraform state and saved plans as secrets. Do not copy host enrollment credentials between machines or into the hub. ### Pause for steps only a person can do [Section titled “Pause for steps only a person can do”](#pause-for-steps-only-a-person-can-do) Tell the user what to do and what to tell you afterward, then resume with the listed check. | Step | Who | How you resume | | ---------------------------------------------------------------------------------------- | ------------------------------------------ | --------------------------------------------------------------- | | Sign in to a Git provider, cloud CLI, or cluster | The user | Rerun the identity check, such as `aws sts get-caller-identity` | | Add an analyzer in **Settings → Workers** and store its credential | A Promptless organization admin | Check that the named Kubernetes Secret has the expected key | | Select instruction repositories and turn on **Trace analyzer** in **Settings → Workers** | A Promptless organization admin | Confirm with the user that the repositories and switch appear | | Enable CI job token push access in GitLab | A GitLab project maintainer | Rerun the publishing pipeline and inspect its jobs | | Run Claude Code `/plugin` commands, install a Cursor plugin, or review plugins in Codex | The user | Confirm the installed plugin, then run the skill check | | Import a Cursor team marketplace | A Cursor team administrator | Confirm the imported plugins with the user | | Approve host enrollment | A signed-in Promptless organization member | Rerun the runtime `status` or `enroll` command | ### Report the result [Section titled “Report the result”](#report-the-result) Report: * Each phase as verified, skipped, or blocked, with the check that proved it. * The identifiers you created or reused, such as the hub repository, release version, deployment, namespace, and session ID. * What is blocked, the user’s next action, and anything you could not test. Do not report an outcome you did not check. ## Phase 1: Inspect the environment and choose a path [Section titled “Phase 1: Inspect the environment and choose a path”](#phase-1-inspect-the-environment-and-choose-a-path) 1. Look for `hub.yaml` and `plugins/pig.yaml` in the current repository and any repository the user named. Also look for installed `pig` plugins in the user’s agent. 2. Check tools. Hub work needs Git and Python 3.11 or later. Trace analysis also needs `kubectl`, Helm 3 or later, Terraform for a cloud guide, and the cloud’s CLI. 3. If the request does not say, ask whether the user wants trace analysis. If so, run `kubectl get pigdeployments --all-namespaces` and `helm list --all-namespaces` against the confirmed context. 4. Check [Supported agents](/docs/governance/reference/supported-agents). Every build target receives plugins, but plan trace analysis only for agents listed for native trace collection. 5. Choose a path from [Deploy trace analysis](/docs/governance/deploy-the-worker/plan-your-deployment): * AWS with an existing EKS cluster: [Deploy on AWS](/docs/governance/deploy-the-worker/deploy-on-aws), the path the current release targets. * AKS or GKE: [Deploy on Azure](/docs/governance/deploy-the-worker/deploy-on-azure) or [Deploy on Google Cloud](/docs/governance/deploy-the-worker/deploy-on-gcp). Tell the user these paths are experimental. * A cluster with a database, bucket, and workload identity in place: [Install with Helm](/docs/governance/deploy-the-worker/deploy-the-analyzer-worker). * A team that applies every upgrade itself: [Manual Helm management](/docs/governance/deploy-the-worker/manual-helm). **Stop** and ask how to continue when: * Trace analysis needs a Kubernetes cluster and none exists. The cloud guides do not create one. * The user wants collection from an agent without native trace collection. * The instruction repositories to analyze are not on GitHub. A GitLab hub can publish plugins, but the analyzer reads only GitHub repositories. **Done when** the user agrees on the hub to create or adopt, the agent to install for, and whether and where to deploy the analyzer. ## Phase 2: Create or adopt an Instruction Hub [Section titled “Phase 2: Create or adopt an Instruction Hub”](#phase-2-create-or-adopt-an-instruction-hub) Follow [Set up your Instruction Hub](/docs/governance/get-started/set-up-your-instruction-hub) and [Migrate existing instructions](/docs/governance/get-started/migrate-existing-instructions). You need the organization name, marketplace ID, repository location, and first skills or instructions to include. 1. Install the toolchain in a dedicated virtual environment, or reuse one where `pig --help` works. 2. To adopt a hub, clone it and work on a branch. Do not run `pig init` over it. 3. To create a hub, run `pig init --hub . --org ` in a new directory. `--org` is required. Add `--marketplace-id ` when the user chose a marketplace ID. Keep the generated `pig` plugin, because the toolchain requires its ID. 4. Add skills and group them into plugins. To import instructions, run `pig scan` on one source at a time and review each import, because it replaces a destination skill with the same ID. 5. Run `pig validate --hub .`, then `pig verify --hub .`, and commit to a local branch. Ask for approval before you create the remote repository or push to it. **Done when** `pig verify` prints a verified release ID and the commit contains `hub.yaml`, `plugins/`, and `assets/`. To resume, rerun `pig verify` on an existing `hub.yaml`. ## Phase 3: Configure publishing [Section titled “Phase 3: Configure publishing”](#phase-3-configure-publishing) Follow [Publish your hub](/docs/governance/get-started/publish-and-install-plugins#publish-your-hub). 1. Check for `.github/workflows/instruction-hub-*.yml` or an `include` of the toolchain template in `.gitlab-ci.yml`. 2. Add the guide’s workflow files or GitLab template. Set `hub-root` when the hub is not at the repository root. 3. Check repository settings. GitHub workflows need write permission to the source branch and `release/stable`. GitLab needs job token push access, which a project maintainer enables. Ask for approval before you push the workflow to the source branch, which starts publishing. **Done when** the run succeeded and `release/stable` contains `hub.release.json` and `dist///` for each plugin in `stable_plugins`. If publication stops because a branch advanced, update from the latest source and rerun. Do not force-push. ## Phase 4: Install plugins and check a skill [Section titled “Phase 4: Install plugins and check a skill”](#phase-4-install-plugins-and-check-a-skill) Follow [Install the plugins](/docs/governance/get-started/publish-and-install-plugins#install-the-plugins). 1. Confirm the user can read the hub repository and `release/stable`. 2. Install `pig` and the needed plugins from the agent’s tab in the guide. Run Codex and Gemini CLI terminal commands yourself. Ask the user to run Claude Code slash commands and app or dashboard steps. 3. Reload or restart the agent as the guide describes. **Done when** the plugin is listed at the published version. A hub skill must also run in a real task in a new session and read its supporting files. ## Phase 5: Deploy the trace analyzer [Section titled “Phase 5: Deploy the trace analyzer”](#phase-5-deploy-the-trace-analyzer) Skip this phase without trace analysis and report the hub as ready. Otherwise, follow [Deploy trace analysis](/docs/governance/deploy-the-worker/plan-your-deployment), the cloud guide from phase 1, [Install with Helm](/docs/governance/deploy-the-worker/deploy-the-analyzer-worker), and the [configuration reference](/docs/governance/deploy-the-worker/configuration-reference). You need: * The cloud account, region, and cluster context. * The analyzer hostname and how its certificate is managed. * The model provider and model. * The secret names for the analyzer credential, database connection string, and model key. 1. Check [Before you begin](/docs/governance/deploy-the-worker/plan-your-deployment#before-you-begin) and list missing items before you start. 2. Ask a Promptless organization admin to [register the analyzer](/docs/governance/deploy-the-worker/plan-your-deployment#register-an-analyzer). Promptless shows the credential once, and the admin stores it in the secret manager. 3. Select the release from the [stable catalog](https://github.com/Promptless/pig-deploy/blob/main/catalog/stable.json), download its files, and check every digest as in [Select and verify a release](/docs/governance/deploy-the-worker/deploy-the-analyzer-worker#1-select-and-verify-a-release). Stop if a digest differs. Never use an unreleased branch or candidate tag. 4. For a cloud guide, extract the example from the verified release archive. Fill the example inputs with confirmed values and configure the user’s remote state backend. Run `terraform init -backend-config=backend.tfbackend -lockfile=readonly`, `terraform validate`, and `terraform plan -out=pig.tfplan`. 5. Show the plan summary. Stop if it replaces the cluster, broadens shared permissions, or destroys retained storage. After approval, apply the saved plan and save the `deployment_configuration` output, which contains no credentials. 6. Create the namespaces and the analyzer ServiceAccount with the output’s annotations. Confirm Secret `pig-credentials` and ConfigMap `pig-postgres-ca` have the required keys, without reading values. 7. Write the bootstrap values for the cluster’s ingress controller, run `helm lint` and `helm template` on the verified chart, and show the permissions, images, and Ingress. Install after approval. 8. Write `pig-deployment.yaml` from the guide’s example and the Terraform output. Show the `kubectl apply --dry-run=server` result, then apply after approval. 9. Wait for the `PIGDeployment` to report `Ready=True`. Ask the user to point DNS at the Ingress address, then check `/healthz` and the unauthenticated policy route over HTTPS from the hosts’ network. 10. Ask a Promptless organization admin to [select instruction repositories](/docs/governance/deploy-the-worker/deploy-the-analyzer-worker#7-select-instruction-repositories) and confirm that [trace analysis is enabled](/docs/governance/deploy-the-worker/deploy-the-analyzer-worker#8-enable-trace-analysis). **Done when** the `PIGDeployment` reports `Ready=True` and the HTTPS checks pass from the hosts’ network. In **Settings → Workers**, the analyzer must show **Healthy** with a recent **Last checked in** time, selected repositories, and **Trace analyzer** set to **On**. This proves the deployment runs. Phase 7 proves analysis works. To resume, read the status of an existing `PIGDeployment`, Helm release, or Terraform state and continue from the first failing check. Do not reinstall the bootstrap over a supervisor that has updated itself. For a blocked update, follow [Updates and recovery](/docs/governance/deploy-the-worker/manage-updates-and-recovery). ## Phase 6: Enable trace collection and enroll a host [Section titled “Phase 6: Enable trace collection and enroll a host”](#phase-6-enable-trace-collection-and-enroll-a-host) Follow [Enroll your hosts](/docs/governance/get-started/enroll-your-hosts). You need the analyzer’s HTTPS address and the agreed pilot host. 1. Confirm collection is approved for this host, and point the user to the [trust and data model](/docs/governance/start-here/trust-and-data-model). The first collection can upload existing session history. 2. Set `trace_ingestion.enabled: true` in `hub.yaml`, run `pig verify`, and show the diff. Publish through the hub’s CI after approval. 3. Update the `pig` plugin on the pilot host, and set `PROMPTLESS_WORKER_BASE_URL` to the analyzer’s address where the agent launches. 4. Start enrollment in a new session or with the runtime’s `enroll` command. The host needs a local browser. After the user approves the host in the browser, rerun the command. 5. Run the runtime’s `ensure` and `status` commands for the same host family. **Done when** the runtime reports the host enrolled against the expected analyzer and the host appears in **Settings → Host access**. ## Phase 7: Verify the whole setup [Section titled “Phase 7: Verify the whole setup”](#phase-7-verify-the-whole-setup) Follow [Verify your deployment](/docs/governance/deploy-the-worker/verify-your-deployment). 1. Ask the user to run a small, non-sensitive task that uses a hub skill in a new session, in a repository selected for analysis. Record the agent source and session ID. 2. Wait for the configured quiet window after the session ends. 3. Run the runtime’s `collect --include-active` command and confirm `trace_upload_complete`. 4. Run each check in the guide for that session ID with read-only database sessions. Do not copy session content into your report. **Done when** all of these pass for the same session: * A hub skill ran. * The host is enrolled and checked in. * The trace is stored and readable through the analyzer’s identity. * At least one analysis run of the current trace revision succeeded. Zero findings is a valid result. * Promptless acknowledged the trace, and the session shows **Succeeded** on the Dashboard’s Traces page. * The `PIGDeployment` reports `Acceptance=True`. A ready pod, published release, listed plugin, or upload acknowledgment alone does not pass. When a check fails, find the first failing stage with [observability and troubleshooting](/docs/governance/deploy-the-worker/observability) and report it. ## See also [Section titled “See also”](#see-also) * [Set up your Instruction Hub](/docs/governance/get-started/set-up-your-instruction-hub), to create the hub yourself * [Deploy trace analysis](/docs/governance/deploy-the-worker/plan-your-deployment), to plan the infrastructure before the agent deploys it * [Trust and data model](/docs/governance/start-here/trust-and-data-model), to review what collection uploads before you approve it * [Observability and troubleshooting](/docs/governance/deploy-the-worker/observability), to diagnose a phase that the agent reports as blocked # Compute and sizing > Size the trace analyzer from representative sessions, database load, object growth, and model throughput. ## Overview [Section titled “Overview”](#overview) Use this guide to size the trace analyzer for production from a measured pilot, and to find the constraint to change when analysis falls behind. The analyzer uses compute to receive uploads, prepare traces, and run analysis. PostgreSQL stores ingestion and analysis state, the trace bucket stores session objects, and the repository mirror is disposable local storage. Load depends on session size, agent activity, analysis duration, and model rate limits, so a developer count alone doesn’t give you a capacity target. Measure representative sessions on one analyzer replica before you change capacity. ## Measure a pilot [Section titled “Measure a pilot”](#measure-a-pilot) In PIG 0.3.6, the supervisor runs one analyzer replica. It requests 500 millicores and 1 GiB of memory, with a 2 GiB memory limit. The manual Helm example uses the same values. Treat them as a pilot starting point. They don’t guarantee throughput. 1. Review the requests and limits on the generated analyzer Deployment: ```bash kubectl get deployment acme-analyzer --namespace pig \ -o jsonpath='{.spec.template.spec.containers[*].resources}{"\n"}' ``` 2. Run representative sessions from pilot hosts, and check current pod usage: ```bash kubectl top pods --namespace pig ``` `kubectl top` requires your cluster’s metrics service. 3. In your existing monitoring system, record the measurements listed in [Measure each constraint](#measure-each-constraint) over the pilot. ## Measure each constraint [Section titled “Measure each constraint”](#measure-each-constraint) Each constraint has its own measurements and its own place to adjust: | Constraint | Measure | Adjust | | ------------------- | ---------------------------------------------------------------- | ------------------------------------------------------------------------------ | | Analyzer compute | CPU saturation, memory peaks, restarts, processing time. | Kubernetes capacity and the supported workload configuration for your release. | | Analysis throughput | Eligible sessions waiting, time to completion, model throttling. | Model quota and analysis capacity together. | | PostgreSQL | Connections, query latency, storage growth, disk throughput. | Database size and capacity through Terraform. | | Trace bucket | Uploaded bytes, object counts, request rates, retrieval errors. | Storage policy and network capacity; keep required objects available. | | Repository mirror | Checkout size, temporary disk usage, refresh failures. | Node ephemeral storage and repository access. | Adding pods doesn’t clear a backlog caused by model throttling. Before you scale analysis, account for model quota and for the database connections each new replica opens. ## Plan capacity for availability and upgrades [Section titled “Plan capacity for availability and upgrades”](#plan-capacity-for-availability-and-upgrades) Use managed database availability and backups that meet your recovery objectives. Budget cluster capacity for migration Jobs and rolling releases on top of steady-state pods. Distribute workloads according to the release’s supported scheduling settings. When an update needs more infrastructure, PIG blocks the update and reports the requirement. Apply the cloud change through Terraform, and PIG retries its live checks. For capacity PIG can’t inspect, such as managed database disk headroom, [confirm the target release’s requirements](/docs/governance/deploy-the-worker/manage-updates-and-recovery#confirm-capacity-that-pig-cannot-inspect) from current provider metrics. Don’t edit generated Deployments to change their resources. The supervisor reconciles those resources back to its configured values. After any capacity change, repeat the [complete-session checks](/docs/governance/deploy-the-worker/verify-your-deployment) you ran at installation. ## See also [Section titled “See also”](#see-also) * [Manage updates and recovery](/docs/governance/deploy-the-worker/manage-updates-and-recovery), for blocked updates and release capacity confirmations * [Model providers](/docs/governance/deploy-the-worker/model-providers), for reserving model quota for analysis * [PostgreSQL](/docs/governance/deploy-the-worker/postgresql#plan-migrations-and-connection-capacity), for the connections each analyzer replica opens * [Observability](/docs/governance/deploy-the-worker/observability), for finding the stage where analysis stops making progress # Deployment configuration > Reference the PIGDeployment fields and bootstrap ingress values for automatic updates, storage, models, and Secret references. This reference lists the `PIGDeployment` fields and `pig-supervisor` bootstrap chart values used by the [default Helm installation](/docs/governance/deploy-the-worker/deploy-the-analyzer-worker). It covers resource identity, the collector Ingress, release policy, analyzer pod settings, the hosted connection, storage, and analysis. For a manually managed installation, see the [manual Helm reference](/docs/governance/deploy-the-worker/manual-helm-reference), which covers the worker chart `0.3.6` values. Those values are a separate interface. ## Resource identity [Section titled “Resource identity”](#resource-identity) ```yaml apiVersion: governance.promptless.ai/v1alpha1 kind: PIGDeployment metadata: name: acme namespace: pig ``` Each `PIGDeployment` identifies itself with these fields: | Field | Meaning | | -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `apiVersion` | `governance.promptless.ai/v1alpha1`. | | `kind` | `PIGDeployment`. | | `metadata.name` | At most 54 lowercase letters, digits, or hyphens, starting with a letter and ending with a letter or digit. The generated analyzer Deployment and Service add `-analyzer` to this name, such as `acme-analyzer`. | | `metadata.namespace` | The namespace the supervisor watches, set by the bootstrap chart’s `watchNamespace`. Secret and ConfigMap references resolve here. | Keep the resource name, namespace, and registered deployment ID stable. Create exactly one `PIGDeployment` in each watched namespace. Install one supervisor for that namespace, and keep its bootstrap values with your recovery records. ## Bootstrap chart values [Section titled “Bootstrap chart values”](#bootstrap-chart-values) The `pig-supervisor` bootstrap chart creates the HTTPS collector Ingress. Configure it in the chart’s `ingress` values, separately from the `PIGDeployment` resource. The Ingress is created in `watchNamespace` and routes the [collector paths](/docs/governance/deploy-the-worker/networking-and-identity#route-collector-requests) to the analyzer Service. | Value | Meaning | | -------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | | `watchNamespace` | Required. Namespace of the `PIGDeployment`, its Secrets, and the analyzer, such as `pig`. The Ingress is created there. | | `image.digest` | Supervisor image digest. The published chart sets it; carry forward the running digest before a later `helm upgrade`. | | `releaseCatalogURL` | Release catalog the supervisor reads. Defaults to the public stable catalog. | | `ingress.serviceName` | Required. The analyzer Service name, your `PIGDeployment` name followed by `-analyzer`, such as `acme-analyzer`. Also names the Ingress. | | `ingress.hostname` | Required. Analyzer hostname reachable from enrolled hosts. | | `ingress.ingressClassName` | Required. An existing Kubernetes ingress class. | | `ingress.tlsSecretName` | Optional TLS Secret covering the hostname; omit when the ingress controller supplies the certificate, such as ACM. | | `ingress.annotations` | Controller-specific annotations, such as the ingress-nginx request-body limit or AWS ALB scheme and ACM certificate. | The Ingress belongs to the bootstrap Helm release. Deleting or pausing the `PIGDeployment` leaves it in place; uninstalling the bootstrap release removes it. Ingress changes do not change the analyzer’s registered configuration or trigger its revalidation. To change them, follow [change the collector ingress](/docs/governance/deploy-the-worker/gitops-ownership#change-the-collector-ingress). ## Release policy [Section titled “Release policy”](#release-policy) Fields are under `spec.release`: | Field | Meaning | | --------------------------- | ------------------------------------------------------------------------------------------------------------------------------ | | `channel` | `stable` follows every stable release, including major releases and schema migrations. | | `paused` | `false` permits release transitions. `true` stops new transitions while preserving service and credential refresh. | | `pinnedVersion` | Empty follows the channel; an exact supported release pins the target. A pause takes precedence. | | `confirmation.configMapRef` | Name of a customer-owned ConfigMap in the deployment namespace with confirmations for the exact deployment and target release. | The policy coordinates the analyzer and supervisor together. A pin does not bypass compatibility or migration checks. See [updates and recovery](/docs/governance/deploy-the-worker/manage-updates-and-recovery). The confirmation ConfigMap binds `releaseDigest` and the Kubernetes object’s `deploymentUID`. Recovery confirmation uses `confirmedAt`, `postgresRecoveryPoint`, and `objectRecoveryPoint`. Operator capacity acknowledgement uses `capacityConfirmedAt`, `capacityRequirementsDigest`, and `capacityEvidence`. Supply the fields required by the target release; see [confirm release prerequisites](/docs/governance/deploy-the-worker/manage-updates-and-recovery#confirm-release-prerequisites). These acknowledgements do not replace live dependency checks or mirror Terraform state. ## Analyzer pods and hosted connection [Section titled “Analyzer pods and hosted connection”](#analyzer-pods-and-hosted-connection) Fields are under `spec`: | Field | Meaning | | ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `serviceAccountName` | Existing analyzer ServiceAccount, such as `pig-analyzer`, with cloud data-access bindings. | | `podLabels` | Additional analyzer pod labels required by your platform, such as Azure’s workload identity opt-in. | | `nodeSelector` | Optional node labels that the analyzer pod and its preflight and migration Jobs must match. On GKE Standard, set `iam.gke.io/gke-metadata-server-enabled: "true"`. Omit it on GKE Autopilot, which rejects it; see [Deploy on GCP](/docs/governance/deploy-the-worker/deploy-on-gcp). | | `hosted.runtimeURL` | Optional Promptless endpoint override. Defaults to `https://api.gopromptless.ai`. | | `hosted.installTokenSecretRef` | Secret `name` and `key` containing the deployment token. | The generated Service uses port 8080. The supervisor derives the registered configuration from the effective settings. The install token identifies the installation and is separate from individual host credentials. ## Storage [Section titled “Storage”](#storage) Fields are under `spec.storage`. Configure `postgres` and exactly one of `s3`, `azureBlob`, or `gcs`. | Field | Meaning | | ----------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `postgres.dsnSecretRef` | Secret `name` and `key` containing the database connection string with TLS settings. | | `postgres.migrationDsnSecretRef` | Optional Secret `name` and `key` for a [separate migration credential](/docs/governance/deploy-the-worker/postgresql#separate-the-migration-credential). The supervisor passes it to preflight and migration Jobs; the serving analyzer uses `postgres.dsnSecretRef`. | | `postgres.caConfigMapRef` | Optional ConfigMap `name` and `key` for a CA bundle mounted at `/etc/pig/postgres-ca/ca.pem`. | | `s3.region`, `s3.bucket`, `s3.prefix` | AWS region, bucket, and dedicated trace prefix. Uses the analyzer’s AWS workload identity. | | `azureBlob.accountURL`, `azureBlob.container`, `azureBlob.prefix` | HTTPS storage account URL, private container, and trace prefix. Uses Microsoft Entra Workload ID. | | `gcs.bucket`, `gcs.prefix` | Google Cloud Storage bucket and trace prefix. Uses Workload Identity Federation for GKE. | Storage configuration grants no cloud management authority. Changing a location does not move existing data. Plan that transition using the [object-storage guidance](/docs/governance/deploy-the-worker/object-storage). ## Analysis [Section titled “Analysis”](#analysis) Fields are under `spec.analysis`: | Field | Meaning | | ----------------------- | --------------------------------------------------------------------------------------- | | `activationAt` | Timezone-aware ISO timestamp for analysis eligibility. Leave empty for ingestion only. | | `quietWindowHours` | Positive interval after session activity before analysis; the example uses `0.5` hours. | | `model.provider` | `openai`, `azure_openai`, or `aws_bedrock`. | | `model.authentication` | `api_key`, or `aws_sigv4` for Bedrock. | | `model.baseURL` | A supported HTTPS Responses API endpoint. | | `model.name` | The model or deployment name available in your provider account. | | `model.apiKeySecretRef` | Secret `name` and `key`; omit for Signature Version 4. | The `model` settings are required even when `activationAt` is empty. An organization administrator selects the instruction repositories the analyzer reads in [PIG Settings](/docs/governance/deploy-the-worker/deploy-the-analyzer-worker#7-select-instruction-repositories). The analyzer reads GitHub repositories with a `main` branch. Analysis and remediation work with GitHub repositories only, even when your hub publishes to another Git host. For accepted endpoint shapes and authentication, see [Model providers](/docs/governance/deploy-the-worker/model-providers). Create Repo Issues and Propose Remediations use write access granted to the connected GitHub App for the selected repositories. A successful analysis clone does not verify that access. ## Notes [Section titled “Notes”](#notes) ### Validate a change [Section titled “Validate a change”](#validate-a-change) Review configuration through its owner, such as your GitOps repository. Validate the manifest against the installed release’s custom resource definition: ```bash kubectl apply --dry-run=server -f pig-deployment.yaml ``` Apply the change and inspect `kubectl describe pigdeployment acme --namespace pig`. Repeat [deployment verification](/docs/governance/deploy-the-worker/verify-your-deployment) after changes to storage, identities, model access, or endpoints. Schema validation alone cannot prove those dependencies are reachable. # Deploy on AWS > Prepare native storage, PostgreSQL, and workload identity with Terraform for an existing EKS cluster, then install PIG with Helm. ## Overview [Section titled “Overview”](#overview) Use this guide to run PIG on an existing Amazon EKS cluster and have Terraform create its dedicated infrastructure. The Terraform example creates an Amazon RDS for PostgreSQL database, an Amazon S3 trace bucket, and an IAM role for the analyzer’s workload identity. You then continue with the common [Helm installation](/docs/governance/deploy-the-worker/deploy-the-analyzer-worker). If you already have these resources, go directly to that guide. The guide reuses your cluster and network. It creates no cluster and installs no ingress controller, and it works with your existing secret-delivery and certificate-management systems. After installation, Terraform keeps ownership of the cloud infrastructure, and PIG maintains its own application releases. ## Before you begin [Section titled “Before you begin”](#before-you-begin) * Complete [deployment planning](/docs/governance/deploy-the-worker/plan-your-deployment), including your Promptless registration, Instruction Hub, and model access. * Have Terraform 1.11 or later, the AWS CLI, Helm, `kubectl`, and `jq`. The 0.3.6 example requires Terraform `>= 1.11.0, < 2.0.0`. * Prepare an existing EKS cluster running Kubernetes 1.30 or later and its IAM OIDC provider. In its VPC, prepare two private database subnets in different availability zones and the security group used by analyzer pods. The analyzer reaches S3 through a gateway endpoint or approved egress. * Have permission to provision the dedicated database, trace storage, and workload identity in that network. * Choose database capacity, availability, backup retention, trace retention, and encryption settings for your recovery requirements. To hand the infrastructure work to a coding agent, copy this prompt. [Set up PIG with a coding agent](/docs/governance/agent-setup-guide) covers the whole setup. Ask your agent: prepare AWS infrastructure for PIG ```text Prepare AWS infrastructure for the PIG trace analyzer on our existing EKS cluster with the versioned Terraform example. Follow https://promptless.ai/docs/governance/deploy-the-worker/deploy-on-aws.md and phase 5 of https://promptless.ai/docs/governance/agent-setup-guide.md Outcome: an applied Terraform plan and the saved deployment_configuration output. Inputs (discover these before you ask me): - AWS account and region: [for example, 123456789012, us-west-2] - EKS cluster: [cluster name and kubectl context] - VPC, database subnets, and workload security group: [IDs, or "discover them"] - PIG release: [for example, 0.3.6 from the stable catalog] - Terraform state backend: [our backend, or where our Terraform lives] Show me the plan summary and wait for my approval before `terraform apply`. Report the resources created and the next step. ``` ## 1. Get the versioned Terraform example [Section titled “1. Get the versioned Terraform example”](#1-get-the-versioned-terraform-example) Download and verify the release files as described in [Select and verify a release](/docs/governance/deploy-the-worker/deploy-the-analyzer-worker#1-select-and-verify-a-release). In the same shell, from that release directory, extract the Terraform example from the verified archive: ```bash cd "$PIG_RELEASE_DIR" tar -xzf "pig-deploy-${PIG_VERSION}.tar.gz" cd "pig-deploy-${PIG_VERSION}/examples/aws" ``` The example references the AWS module in the same archive, so the module matches the release. The example also includes its provider lock file. Keep `-lockfile=readonly` in the commands below so Terraform uses those reviewed provider checksums. To call the module from your own Terraform root instead, use `git::https://github.com/Promptless/pig-deploy.git//modules/aws?ref=db79db5a2c8a0e882bc888a870d6b407e5d5e76e`, the 0.3.6 source commit, and commit your own lock file. ## 2. Configure and apply infrastructure [Section titled “2. Configure and apply infrastructure”](#2-configure-and-apply-infrastructure) 1. **Confirm your account and cluster.** ```bash aws sts get-caller-identity kubectl config current-context ``` 2. **Configure remote state.** Use an existing private, versioned S3 bucket with encryption, and limit access to infrastructure operators. Terraform state stores the database password, so treat state and saved plans as secrets. ```bash cp backend.tfbackend.example backend.tfbackend ``` Set `bucket`, `key`, `region`, and `kms_key_id`. The example enables encryption and S3 lock files (`use_lockfile = true`), so operators need permission to write the lock object as well as the state. 3. **Set the example inputs.** ```bash cp terraform.tfvars.example terraform.tfvars ``` Set `name`, `region`, `eks_cluster_name`, `oidc_provider_arn`, `vpc_id`, two private `database_subnet_ids` in different availability zones, the analyzer’s `workload_security_group_id`, and a globally unique `trace_bucket_name`. Keep `namespace = "pig"` and `service_account_name = "pig-analyzer"`, which the module binds to the analyzer role, and set a dedicated `trace_prefix` such as `acme/traces`. The defaults create private PostgreSQL 16 on `db.t4g.medium` with Multi-AZ and deletion protection. Storage starts at 100 GiB and can grow to 200 GiB, with 14 days of backups. The bucket is versioned with 90 days of noncurrent-object recovery. Review these defaults in `variables.tf` against your workload and recovery requirements. Keep real `.tfvars` files out of Git. 4. **Supply the database password** from your secret manager, without writing it to a file: ```bash export TF_VAR_postgres_password="$(your-secret-manager-command)" ``` 5. **Initialize and review the plan.** ```bash terraform init -backend-config=backend.tfbackend -lockfile=readonly terraform validate terraform plan -out=pig.tfplan ``` Review the database, bucket, IAM role, and security group rule. The analyzer role gets object read and write access under the trace prefix and, when you set `kms_key_arn`, use of that key. It gets no RDS or infrastructure permissions. Stop if the plan replaces existing resources, expands shared permissions, or destroys retained storage. 6. **Apply the reviewed plan and save its output.** ```bash terraform apply pig.tfplan terraform output -json deployment_configuration > "$PIG_RELEASE_DIR/deployment-configuration.json" ``` The output file sits next to the verified release files. It contains database connection metadata, the S3 storage block, the ServiceAccount annotation, and pod labels. It contains no credential values. ## 3. Connect the infrastructure to PIG [Section titled “3. Connect the infrastructure to PIG”](#3-connect-the-infrastructure-to-pig) Return to the release directory. The `deployment-configuration.json` file there is the source of truth for the Kubernetes configuration in [Install with Helm](/docs/governance/deploy-the-worker/deploy-the-analyzer-worker). Each output goes to one destination: | Output | Destination | | ----------------------------- | --------------------------------------------------------------------------------------- | | `postgres` | The application connection string in `pig-credentials/postgres-dsn`. | | `storage.s3` | The `s3` block under `PIGDeployment.spec.storage`. | | `service_account_annotations` | Annotations on ServiceAccount `pig/pig-analyzer`, such as `eks.amazonaws.com/role-arn`. | | `pod_labels` | `PIGDeployment.spec.podLabels`. It is empty on AWS. | Read the connection metadata and storage block: ```bash cd "$PIG_RELEASE_DIR" jq '.postgres | {host, port, database, username, sslmode}' deployment-configuration.json jq '.storage' deployment-configuration.json ``` Build the connection string in your secret manager from those values and the database password, with `sslmode=verify-full`: ```text postgresql://USERNAME:URL_ENCODED_PASSWORD@HOST:5432/pig?sslmode=verify-full ``` Download the [RDS CA bundle for your database’s region](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html) and deliver it as ConfigMap `pig-postgres-ca` with key `ca.pem`. The analyzer uses it to verify the RDS certificate and hostname. It rejects a connection string whose `sslmode` is anything other than `verify-full`, including `require`. To give the serving analyzer a role without schema ownership, see [Separate the migration credential](/docs/governance/deploy-the-worker/postgresql#separate-the-migration-credential). Choose the model separately. Select a supported endpoint from [model providers](/docs/governance/deploy-the-worker/model-providers). The Terraform module grants no model access, so to use Bedrock with `aws_sigv4`, grant the analyzer role access to the model through your own IAM change. ## 4. Prepare HTTPS ingress [Section titled “4. Prepare HTTPS ingress”](#4-prepare-https-ingress) Install the [AWS Load Balancer Controller](https://kubernetes-sigs.github.io/aws-load-balancer-controller/latest/deploy/installation/) with its own IAM role, and request an ACM certificate for the analyzer hostname in the cluster’s region. The PIG Terraform module does not create these resources. Use the **AWS Application Load Balancer** values in [Bootstrap the supervisor and collector Ingress](/docs/governance/deploy-the-worker/deploy-the-analyzer-worker#4-bootstrap-the-supervisor-and-collector-ingress): supervisor-values.yaml ```yaml watchNamespace: pig ingress: serviceName: acme-analyzer # Your PIGDeployment name plus -analyzer hostname: traces.acme.example ingressClassName: alb annotations: alb.ingress.kubernetes.io/scheme: internet-facing alb.ingress.kubernetes.io/target-type: ip alb.ingress.kubernetes.io/certificate-arn: REPLACE_ACM_CERTIFICATE_ARN alb.ingress.kubernetes.io/listen-ports: '[{"HTTPS":443}]' alb.ingress.kubernetes.io/healthcheck-path: /healthz ``` Omit `tlsSecretName`: the ALB uses the ACM certificate. Choose `scheme: internal` only when every enrolled host and cloud runner can reach the private endpoint. Claude Tag needs an internet-facing endpoint. After the analyzer starts and the ALB’s targets are healthy, point the hostname’s DNS record at the ALB. Check HTTPS from the hosts’ network as described in [Point DNS at the Ingress](/docs/governance/deploy-the-worker/deploy-the-analyzer-worker#6-point-dns-at-the-ingress-and-check-https). ## 5. Bootstrap and verify [Section titled “5. Bootstrap and verify”](#5-bootstrap-and-verify) In `$PIG_RELEASE_DIR`, where the verified chart and `deployment-configuration.json` are, continue with [Install with Helm](/docs/governance/deploy-the-worker/deploy-the-analyzer-worker) from [step 2](/docs/governance/deploy-the-worker/deploy-the-analyzer-worker#2-create-the-namespaces-and-analyzer-serviceaccount). Apply the ServiceAccount annotation, Secrets, CA ConfigMap, and S3 storage block from this guide before you create the `PIGDeployment`. Keep the Helm bootstrap outside Terraform reconciliation. Terraform must not manage the self-updating supervisor through a `helm_release` resource or import its generated workloads. Finish with [Verify your deployment](/docs/governance/deploy-the-worker/verify-your-deployment) for one real session. ## Maintain the infrastructure [Section titled “Maintain the infrastructure”](#maintain-the-infrastructure) Use Terraform for database resizing, IAM changes, networking, backup policy, and object retention. PIG’s stable application channel updates only the application, so review each Terraform module upgrade as its own plan. If PIG reports a blocked release that requires an infrastructure change, apply that change through Terraform. PIG resumes once its live checks and any required [release-specific confirmations](/docs/governance/deploy-the-worker/manage-updates-and-recovery#confirm-release-prerequisites) pass. Keep backups and trace retention coordinated, and follow [recovery guidance](/docs/governance/deploy-the-worker/manage-updates-and-recovery) before replacing storage. ## See also [Section titled “See also”](#see-also) * [Install with Helm](/docs/governance/deploy-the-worker/deploy-the-analyzer-worker), the common installation this guide continues into * [PostgreSQL](/docs/governance/deploy-the-worker/postgresql), to separate the migration credential and plan database recovery * [GitOps ownership](/docs/governance/deploy-the-worker/gitops-ownership), for which controller owns each resource after bootstrap * [Updates and recovery](/docs/governance/deploy-the-worker/manage-updates-and-recovery), for blocked updates and storage recovery * [IAM roles for service accounts](https://docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts.html), the AWS guide to the workload identity this module configures # Deploy on Azure > Prepare native storage, PostgreSQL, and workload identity with Terraform for an existing AKS cluster, then install PIG with Helm. ## Overview [Section titled “Overview”](#overview) Use this guide to evaluate PIG on an existing AKS cluster and have Terraform create its dedicated infrastructure. The Terraform example creates an Azure Database for PostgreSQL flexible server, a Blob Storage container for traces, and a workload identity for the analyzer. You then continue with the common [Helm installation](/docs/governance/deploy-the-worker/deploy-the-analyzer-worker). If you already have these resources, go directly to that guide. The guide reuses your cluster and network. It creates no cluster and installs no ingress controller, and it works with your existing secret-delivery and certificate-management systems. After installation, Terraform keeps ownership of the cloud infrastructure, and PIG maintains its own application releases. Experimental cloud support This cloud is experimental. The current stable release, PIG 0.3.6, targets AWS only. Use this guide for evaluation; it does not establish equivalent acceptance on this cloud. ## Before you begin [Section titled “Before you begin”](#before-you-begin) * Complete [deployment planning](/docs/governance/deploy-the-worker/plan-your-deployment), including your Promptless registration, Instruction Hub, and model access. * Have Terraform 1.11 or later, the Azure CLI, Helm, and `kubectl`. The 0.3.6 example requires Terraform `>= 1.11.0, < 2.0.0`. * Prepare an existing resource group and VNet with a delegated PostgreSQL subnet and a private endpoint subnet. Link private DNS zones for PostgreSQL and Blob Storage to the cluster’s VNet. Enable the AKS OIDC issuer and Microsoft Entra Workload ID. * Register the Azure resource providers the example uses. The example does not register them. * Have permission to provision the dedicated database, trace storage, and workload identity in that network. * Choose database capacity, availability, backup retention, trace retention, and encryption settings for your recovery requirements. To hand the infrastructure work to a coding agent, copy this prompt. [Set up PIG with a coding agent](/docs/governance/agent-setup-guide) covers the whole setup. Ask your agent: prepare Azure infrastructure for PIG ```text Prepare Azure infrastructure for the PIG trace analyzer on our existing AKS cluster with the versioned Terraform example. Follow https://promptless.ai/docs/governance/deploy-the-worker/deploy-on-azure.md and phase 5 of https://promptless.ai/docs/governance/agent-setup-guide.md Outcome: an applied Terraform plan and the saved deployment_configuration output. Azure support is experimental; confirm with me before you continue. Inputs (discover these before you ask me): - Subscription, resource group, and region: [for example, acme-prod, pig-rg, eastus2] - AKS cluster: [cluster name and kubectl context] - VNet and subnets: [names or IDs, or "discover them"] - PIG release: [release tag, or "latest published release"] - Terraform state backend: [our backend, or where our Terraform lives] Show me the plan summary and wait for my approval before `terraform apply`. Report the resources created and the next step. ``` ## 1. Get the versioned Terraform example [Section titled “1. Get the versioned Terraform example”](#1-get-the-versioned-terraform-example) Download and verify the release files as described in [Select and verify a release](/docs/governance/deploy-the-worker/deploy-the-analyzer-worker#1-select-and-verify-a-release). In the same shell, from that release directory, extract the Terraform example from the verified archive: ```bash cd "$PIG_RELEASE_DIR" tar -xzf "pig-deploy-${PIG_VERSION}.tar.gz" cd "pig-deploy-${PIG_VERSION}/examples/azure" ``` The example references the Azure module in the same archive, so the module matches the release. The example also includes its provider lock file. Keep `-lockfile=readonly` in the commands below so Terraform uses those reviewed provider checksums. ## 2. Configure and apply infrastructure [Section titled “2. Configure and apply infrastructure”](#2-configure-and-apply-infrastructure) 1. **Confirm your account and cluster.** ```bash az account show --query '{subscription:id,tenant:tenantId}' -o table kubectl config current-context ``` 2. **Copy the example inputs.** ```bash cp terraform.tfvars.example terraform.tfvars ``` Set `subscription_id`, `location`, `resource_group_name`, the AKS `oidc_issuer_url`, the existing `postgres_subnet_id` and `private_endpoint_subnet_id`, the linked `postgres_private_dns_zone_id` and `blob_private_dns_zone_id`, and a globally unique `storage_account_name`. Keep `namespace = "pig"` and `service_account_name = "pig-analyzer"`, which the module binds to the analyzer’s federated identity, and set a dedicated `trace_prefix` such as `acme/traces`. The defaults create PostgreSQL 16 on `GP_Standard_D2s_v3` with 128 GiB of storage, zone-redundant high availability, and 14 days of backups. Trace storage uses zone-redundant replication, blob versioning, 90 days of soft delete, and 89 days of point-in-time restore. Review these defaults and deletion protection in `variables.tf` against your workload and recovery requirements. Keep private database access and private trace storage. Supply the database password as `TF_VAR_postgres_password` from your secret manager, and keep real `.tfvars` files out of Git. Terraform stores the password in its encrypted remote state. 3. **Initialize and review the plan.** Copy `backend.tfbackend.example` to `backend.tfbackend` and set your existing encrypted, private state backend with locking. Limit its access to infrastructure operators. ```bash cp backend.tfbackend.example backend.tfbackend terraform init -backend-config=backend.tfbackend -lockfile=readonly terraform validate terraform plan -out=pig.tfplan ``` Review the dedicated database, storage, identity, and network bindings. Stop if the plan replaces your cluster, expands shared permissions, or destroys retained storage unexpectedly. Terraform state and saved plans can contain credentials; store them as secrets even when an output is marked sensitive. 4. **Apply the reviewed plan.** ```bash terraform apply pig.tfplan terraform output -json deployment_configuration > "$PIG_RELEASE_DIR/deployment-configuration.json" ``` The output file sits next to the verified release files. It contains database connection metadata, the Blob Storage block, the ServiceAccount annotation, and the workload identity pod label. It contains no credential values. ## 3. Connect the infrastructure to PIG [Section titled “3. Connect the infrastructure to PIG”](#3-connect-the-infrastructure-to-pig) The `deployment-configuration.json` file in `$PIG_RELEASE_DIR` is the source of truth for the Kubernetes configuration in [Install with Helm](/docs/governance/deploy-the-worker/deploy-the-analyzer-worker). Each output goes to one destination: | Output | Destination | | ------------------------------ | -------------------------------------------------------------------- | | `postgres` connection metadata | The application connection string in `pig-credentials/postgres-dsn`. | | `storage` | The `azureBlob` block under `PIGDeployment.spec.storage`. | | `service_account_annotations` | Annotations on ServiceAccount `pig/pig-analyzer`. | | `pod_labels` | `PIGDeployment.spec.podLabels`. | For Azure, the ServiceAccount annotation is `azure.workload.identity/client-id`. Its value resembles `REPLACE_MANAGED_IDENTITY_CLIENT_ID`. Copy the identity from your output, not this illustrative value. Copy the `azure.workload.identity/use: "true"` label from `pod_labels` into `spec.podLabels` in the `PIGDeployment`. The analyzer and its maintenance Jobs need this label for workload identity injection. The federated identity is scoped to `system:serviceaccount:pig:pig-analyzer`, and the Blob data role is scoped to the trace container. Build the connection string in your secret manager from the `postgres` output and the database password, with `sslmode=verify-full`: ```text postgresql://USERNAME:URL_ENCODED_PASSWORD@HOST:5432/pig?sslmode=verify-full ``` Deliver the CA bundle that verifies your flexible server’s certificate as ConfigMap `pig-postgres-ca` with key `ca.pem`. Replace the S3 block in the common Helm example with this block, using the provisioned location: ```yaml azureBlob: accountURL: https://REPLACE_STORAGE_ACCOUNT.blob.core.windows.net container: traces prefix: acme/traces ``` Choose the model separately. Select a supported endpoint from [model providers](/docs/governance/deploy-the-worker/model-providers). The Terraform module grants no model access. ## 4. Bootstrap and verify [Section titled “4. Bootstrap and verify”](#4-bootstrap-and-verify) In `$PIG_RELEASE_DIR`, where the verified chart and `deployment-configuration.json` are, continue with [Install with Helm](/docs/governance/deploy-the-worker/deploy-the-analyzer-worker) from [step 2](/docs/governance/deploy-the-worker/deploy-the-analyzer-worker#2-create-the-namespaces-and-analyzer-serviceaccount). Apply the ServiceAccount annotation, Secrets, CA ConfigMap, Blob Storage block, and pod label from this guide before you create the `PIGDeployment`. For the collector Ingress, use the **Ingress with a TLS Secret** values with your cluster’s ingress controller and certificate. Keep the Helm bootstrap outside Terraform reconciliation. Terraform must not manage the self-updating supervisor through a `helm_release` resource or import its generated workloads. Finish with [Verify your deployment](/docs/governance/deploy-the-worker/verify-your-deployment). Confirm native storage writes and reads, a successful analysis, and visible Promptless Dashboard status for one exact session. ## Maintain the infrastructure [Section titled “Maintain the infrastructure”](#maintain-the-infrastructure) Use Terraform for database resizing, IAM changes, networking, backup policy, and object retention. PIG’s stable application channel updates only the application, so review each Terraform module upgrade as its own plan. If PIG reports a blocked release that requires an infrastructure change, apply that change through Terraform. PIG resumes once its live checks and any required [release-specific confirmations](/docs/governance/deploy-the-worker/manage-updates-and-recovery#confirm-release-prerequisites) pass. Keep backups and trace retention coordinated, and follow [recovery guidance](/docs/governance/deploy-the-worker/manage-updates-and-recovery) before replacing storage. ## See also [Section titled “See also”](#see-also) * [Install with Helm](/docs/governance/deploy-the-worker/deploy-the-analyzer-worker), the common installation this guide continues into * [Object storage](/docs/governance/deploy-the-worker/object-storage), for trace retention and recovery on each storage backend * [GitOps ownership](/docs/governance/deploy-the-worker/gitops-ownership), for which controller owns each resource after bootstrap * [Updates and recovery](/docs/governance/deploy-the-worker/manage-updates-and-recovery), for blocked updates and storage recovery * [AKS workload identity](https://learn.microsoft.com/en-us/azure/aks/workload-identity-deploy-cluster), the Azure guide to the workload identity this module configures # Deploy on Google Cloud > Prepare native storage, PostgreSQL, and workload identity with Terraform for an existing GKE cluster, then install PIG with Helm. ## Overview [Section titled “Overview”](#overview) Use this guide to evaluate PIG on an existing GKE cluster and have Terraform create its dedicated infrastructure. The example creates a Cloud SQL for PostgreSQL instance, a Cloud Storage trace bucket, and a Google service account for the analyzer’s workload identity. You then continue with the common [Helm installation](/docs/governance/deploy-the-worker/deploy-the-analyzer-worker). If you already have these resources, go directly to that guide. The guide reuses your cluster and network. It creates no cluster and installs no ingress controller, and it works with your existing secret-delivery and certificate-management systems. After installation, Terraform keeps ownership of the cloud infrastructure, and PIG maintains its own application releases. Experimental cloud support This cloud is experimental. The current stable release, PIG 0.3.6, targets AWS only. Use this guide for evaluation; it does not establish equivalent acceptance on this cloud. ## Before you begin [Section titled “Before you begin”](#before-you-begin) * Complete [deployment planning](/docs/governance/deploy-the-worker/plan-your-deployment), including your Promptless registration, Instruction Hub, and model access. * Have Terraform 1.11 or later, the gcloud CLI, Helm, and `kubectl`. The 0.3.6 example requires Terraform `>= 1.11.0, < 2.0.0`. * Prepare an existing project with the Cloud SQL, IAM, and Cloud Storage APIs enabled. Its VPC needs private services access with an allocated IP range for Cloud SQL. * Enable Workload Identity Federation for GKE on the cluster. On GKE Standard, enable the GKE metadata server on the node pool that runs the analyzer. * Have permission to provision the dedicated database, trace storage, and workload identity in that network. * Choose database capacity, availability, backup retention, trace retention, and encryption settings for your recovery requirements. To hand the infrastructure work to a coding agent, copy this prompt. [Set up PIG with a coding agent](/docs/governance/agent-setup-guide) covers the whole setup. Ask your agent: prepare Google Cloud infrastructure for PIG ```text Prepare Google Cloud infrastructure for the PIG trace analyzer on our existing GKE cluster with the versioned Terraform example. Follow https://promptless.ai/docs/governance/deploy-the-worker/deploy-on-gcp.md and phase 5 of https://promptless.ai/docs/governance/agent-setup-guide.md Outcome: an applied Terraform plan and the saved deployment_configuration output. Google Cloud support is experimental; confirm with me before you continue. Inputs (discover these before you ask me): - Project and region: [for example, acme-prod, us-central1] - GKE cluster: [cluster name and kubectl context] - VPC network: [name, or "discover it"] - PIG release: [release tag, or "latest published release"] - Terraform state backend: [our backend, or where our Terraform lives] Show me the plan summary and wait for my approval before `terraform apply`. Report the resources created and the next step. ``` ## 1. Get the versioned Terraform example [Section titled “1. Get the versioned Terraform example”](#1-get-the-versioned-terraform-example) Download and verify the release files as described in [Select and verify a release](/docs/governance/deploy-the-worker/deploy-the-analyzer-worker#1-select-and-verify-a-release). In the same shell, from that release directory, extract the Terraform example from the verified archive: ```bash cd "$PIG_RELEASE_DIR" tar -xzf "pig-deploy-${PIG_VERSION}.tar.gz" cd "pig-deploy-${PIG_VERSION}/examples/gcp" ``` The example references the Google Cloud module in the same archive, so the module matches the release. The example also includes its provider lock file. Keep `-lockfile=readonly` in the commands below so Terraform uses those reviewed provider checksums. ## 2. Configure and apply infrastructure [Section titled “2. Configure and apply infrastructure”](#2-configure-and-apply-infrastructure) 1. **Confirm your account and cluster.** ```bash gcloud config list project kubectl config current-context ``` 2. **Copy the example inputs.** ```bash cp terraform.tfvars.example terraform.tfvars ``` Set `project_id`, `region`, the cluster’s `workload_identity_pool`, the existing `network_id` and its private services access `allocated_ip_range`, and a globally unique `trace_bucket_name`. Keep `namespace = "pig"` and `service_account_name = "pig-analyzer"`, which the module binds to the Google service account, and set a dedicated `trace_prefix` such as `acme/traces`. The defaults create regional high-availability PostgreSQL 16 on `db-custom-2-7680`, with 2 vCPUs and 7.5 GiB of memory. Storage is 100 GiB of SSD, with 14 daily backups and 7 days of point-in-time recovery. The trace bucket uses versioning and 90 days of soft delete. Review these defaults and deletion protection in `variables.tf` against your workload and recovery requirements. Keep private database access and private trace storage. Supply the database password as `TF_VAR_postgres_password` from your secret manager, and keep real `.tfvars` files out of Git. Terraform stores the password in its encrypted remote state. 3. **Initialize and review the plan.** Copy `backend.tfbackend.example` to `backend.tfbackend` and set your existing encrypted, private state backend with locking. Limit its access to infrastructure operators. ```bash cp backend.tfbackend.example backend.tfbackend terraform init -backend-config=backend.tfbackend -lockfile=readonly terraform validate terraform plan -out=pig.tfplan ``` Review the dedicated database, storage, identity, and network bindings. Stop if the plan replaces your cluster, expands shared permissions, or destroys retained storage unexpectedly. Terraform state and saved plans can contain credentials; store them as secrets even when an output is marked sensitive. 4. **Apply the reviewed plan.** ```bash terraform apply pig.tfplan terraform output -json deployment_configuration > "$PIG_RELEASE_DIR/deployment-configuration.json" ``` The output file sits next to the verified release files. It contains database connection metadata, the Cloud Storage block, the ServiceAccount annotation, and pod labels. It contains no credential values. ## 3. Connect the infrastructure to PIG [Section titled “3. Connect the infrastructure to PIG”](#3-connect-the-infrastructure-to-pig) The `deployment-configuration.json` file in `$PIG_RELEASE_DIR` is the source of truth for the Kubernetes configuration in [Install with Helm](/docs/governance/deploy-the-worker/deploy-the-analyzer-worker). Each output goes to one destination: | Output | Destination | | ------------------------------ | -------------------------------------------------------------------- | | `postgres` connection metadata | The application connection string in `pig-credentials/postgres-dsn`. | | `storage` | The `gcs` block under `PIGDeployment.spec.storage`. | | `service_account_annotations` | Annotations on ServiceAccount `pig/pig-analyzer`. | | `pod_labels` | `PIGDeployment.spec.podLabels`. It is empty on Google Cloud. | For Google Cloud, the ServiceAccount annotation is `iam.gke.io/gcp-service-account`. Its value resembles `pig-analyzer@REPLACE_PROJECT_ID.iam.gserviceaccount.com`. Copy the identity from your output, not this illustrative value. The module binds the Kubernetes ServiceAccount to a Google service account with object access limited to the trace prefix. The analyzer authenticates to Cloud SQL with the database password in its connection string. It connects over the instance’s private IP, so the analyzer pod needs no database proxy. Build the connection string in your secret manager from the `postgres` output and the database password. Include both `host`, the name on the server certificate, and `hostaddr`, the private IP address, with `sslmode=verify-full`: ```text postgresql://USERNAME:URL_ENCODED_PASSWORD@HOST:5432/pig?hostaddr=HOSTADDR&sslmode=verify-full ``` Deliver the regional Cloud SQL CA bundle for your instance as ConfigMap `pig-postgres-ca` with key `ca.pem`. On GKE Standard, add this node selector under `spec` in the `PIGDeployment`, so the analyzer and its maintenance Jobs run on nodes with the GKE metadata server. Omit it on GKE Autopilot, which rejects it. ```yaml nodeSelector: iam.gke.io/gke-metadata-server-enabled: "true" ``` Replace the S3 block in the common Helm example with this block, using the provisioned location: ```yaml gcs: bucket: REPLACE_TRACE_BUCKET prefix: acme/traces ``` Choose the model separately. Select a supported endpoint from [model providers](/docs/governance/deploy-the-worker/model-providers). The Terraform module grants no model access. ## 4. Bootstrap and verify [Section titled “4. Bootstrap and verify”](#4-bootstrap-and-verify) In `$PIG_RELEASE_DIR`, where the verified chart and `deployment-configuration.json` are, continue with [Install with Helm](/docs/governance/deploy-the-worker/deploy-the-analyzer-worker) from [step 2](/docs/governance/deploy-the-worker/deploy-the-analyzer-worker#2-create-the-namespaces-and-analyzer-serviceaccount). Apply the ServiceAccount annotation, Secrets, CA ConfigMap, Cloud Storage block, and any node selector from this guide before you create the `PIGDeployment`. For the collector Ingress, use the **Ingress with a TLS Secret** values with your cluster’s ingress controller and certificate. Keep the Helm bootstrap outside Terraform reconciliation. Terraform must not manage the self-updating supervisor through a `helm_release` resource or import its generated workloads. Finish with [Verify your deployment](/docs/governance/deploy-the-worker/verify-your-deployment). Confirm native storage writes and reads, a successful analysis, and visible Promptless Dashboard status for one exact session. ## Maintain the infrastructure [Section titled “Maintain the infrastructure”](#maintain-the-infrastructure) Use Terraform for database resizing, IAM changes, networking, backup policy, and object retention. PIG’s stable application channel updates only the application, so review each Terraform module upgrade as its own plan. If PIG reports a blocked release that requires an infrastructure change, apply that change through Terraform. PIG resumes once its live checks and any required [release-specific confirmations](/docs/governance/deploy-the-worker/manage-updates-and-recovery#confirm-release-prerequisites) pass. Keep backups and trace retention coordinated, and follow [recovery guidance](/docs/governance/deploy-the-worker/manage-updates-and-recovery) before replacing storage. ## See also [Section titled “See also”](#see-also) * [Install with Helm](/docs/governance/deploy-the-worker/deploy-the-analyzer-worker), the common installation this guide continues into * [Object storage](/docs/governance/deploy-the-worker/object-storage), for trace retention and recovery on each storage backend * [GitOps ownership](/docs/governance/deploy-the-worker/gitops-ownership), for which controller owns each resource after bootstrap * [Updates and recovery](/docs/governance/deploy-the-worker/manage-updates-and-recovery), for blocked updates and storage recovery * [Workload Identity Federation for GKE](https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity), the Google Cloud guide to the workload identity this module configures # Install with Helm > Verify a published PIG release, bootstrap the supervisor and collector Ingress with Helm, create the PIGDeployment, and enable analysis on Kubernetes. ## Overview [Section titled “Overview”](#overview) This guide installs the PIG trace analyzer on an existing Kubernetes cluster. It is the default installation, and every cloud guide finishes with it. A one-time Helm bootstrap installs the supervisor and the HTTPS collector Ingress. A `PIGDeployment` resource then connects the analyzer to your database, trace bucket, and model. The supervisor installs the analyzer and keeps it updated from published releases. Use it once your database, trace storage, workload identity, and hostname are ready. If your operations team must apply every upgrade itself, use [manual Helm management](/docs/governance/deploy-the-worker/manual-helm) instead. The [installation path](/docs/governance/deploy-the-worker/plan-your-deployment#follow-the-installation-path) shows where this guide fits. The current stable release, PIG 0.3.6, targets AWS with EKS. Azure with AKS and Google Cloud with GKE are experimental. Every command and example on this page is for 0.3.6. ## Before you begin [Section titled “Before you begin”](#before-you-begin) * Complete [deployment planning](/docs/governance/deploy-the-worker/plan-your-deployment), including [analyzer registration](/docs/governance/deploy-the-worker/plan-your-deployment#register-an-analyzer). Keep the one-time analyzer credential in your secret manager. * Have a dedicated PostgreSQL 15–18 database, exactly one native object-storage location, an analyzer workload identity, and a hostname with a certificate. The [AWS](/docs/governance/deploy-the-worker/deploy-on-aws), [Azure](/docs/governance/deploy-the-worker/deploy-on-azure), and [Google Cloud](/docs/governance/deploy-the-worker/deploy-on-gcp) guides provision these with Terraform and save a `deployment-configuration.json` file used below. * Use Kubernetes 1.30 or later and `kubectl` with permission to create namespaces, custom resource definitions, and cluster-scoped RBAC. * Install Helm 3.8 or later, `curl`, `jq`, and `sha256sum`. On macOS, use `shasum -a 256` wherever this guide runs `sha256sum`. * Have an ingress controller in the cluster that can serve HTTPS for your hostname to every enrolled host. This guide uses namespace `pig` for the analyzer, `pig-system` for the supervisor, deployment name `acme`, and hostname `traces.acme.example`. Replace them consistently. The analyzer Service and the collector Ingress are both named after the deployment: `acme-analyzer`. To hand this installation to a coding agent, copy this prompt. [Set up PIG with a coding agent](/docs/governance/agent-setup-guide) covers the whole setup. Ask your agent: install PIG with Helm ```text Install the PIG trace analyzer on our Kubernetes cluster with the Helm bootstrap. Follow https://promptless.ai/docs/governance/deploy-the-worker/deploy-the-analyzer-worker.md and phase 5 of https://promptless.ai/docs/governance/agent-setup-guide.md Outcome: a verified release, a ready PIGDeployment, and HTTPS health and routing checks passing from the enrolled hosts' network. Inputs (discover these before you ask me): - Kubernetes context: [context name] - Deployment name and hostname: [for example, acme and traces.acme.example] - Ingress controller and certificate: [for example, ingress-nginx with a TLS Secret, or AWS Load Balancer Controller with an ACM certificate] - Storage and model settings: [Terraform output file, or where to find them] - Secret names: [secret-manager entries for the analyzer credential, database connection string, and model key] Show me the checksum results, the rendered chart, and the server-side dry run, and wait for my approval before `helm install` and `kubectl apply`. Report the deployment conditions, the health and routing checks, and anything still blocked. ``` ## Who owns each resource [Section titled “Who owns each resource”](#who-owns-each-resource) Each resource has one owner: * Terraform owns cloud infrastructure. * Your Kubernetes configuration owns the namespaces, ServiceAccount, Secrets, CA ConfigMap, certificates, and `PIGDeployment` spec. * The `pig-supervisor` Helm release owns the supervisor and the collector Ingress. * The supervisor owns the analyzer workloads it generates and its own updates. A second controller that reapplies the bootstrap chart or reconciles generated workloads undoes the supervisor’s updates. [GitOps ownership](/docs/governance/deploy-the-worker/gitops-ownership#resource-ownership) lists each resource and how to keep Flux and other controllers within these boundaries. ## Security posture [Section titled “Security posture”](#security-posture) The supervisor generates the analyzer Deployment and its maintenance Jobs, such as the migration Job, with a restricted security context. The `PIGDeployment` resource has no fields that change it. Each pod: * Runs as a non-root user, with the user ID, group ID, and filesystem group all set to `10001`. * Uses a read-only root filesystem, drops all Linux capabilities, and blocks privilege escalation. * Runs under the `RuntimeDefault` seccomp profile. * Mounts a writable `/tmp` backed by an ephemeral `emptyDir`, which gives the container scratch space without a persistent volume. The [manual chart](/docs/governance/deploy-the-worker/manual-helm) applies the same settings to its analyzer and migration Job, and its `values.yaml` has no keys that change them. ## 1. Select and verify a release [Section titled “1. Select and verify a release”](#1-select-and-verify-a-release) In an empty working directory, download the release files from the [`v0.3.6` release](https://github.com/Promptless/pig-deploy/releases/tag/v0.3.6) and the public stable catalog. Run the rest of this guide from this directory; `PIG_RELEASE_DIR` records it for the cloud guides. ```bash PIG_VERSION='0.3.6' PIG_RELEASE_DIR="$PWD" RELEASE_URL="https://github.com/Promptless/pig-deploy/releases/download/v${PIG_VERSION}" for file in release.json SHA256SUMS "pig-supervisor-${PIG_VERSION}.tgz" "pig-deploy-${PIG_VERSION}.tar.gz"; do curl --fail --silent --show-error --location --remote-name "${RELEASE_URL}/${file}" done curl --fail --silent --show-error --location --output stable.json \ https://raw.githubusercontent.com/Promptless/pig-deploy/main/catalog/stable.json ``` Check the downloaded archives and the release manifest: ```bash grep -E " (pig-supervisor|pig-deploy)-${PIG_VERSION}\.t" SHA256SUMS | sha256sum --check jq -r --arg v "$PIG_VERSION" '.releases[] | select(.version == $v) | .sha256' stable.json sha256sum release.json jq -r '.artifacts.supervisorChart.sha256' release.json ``` Both archives must report `OK`. The catalog digest must equal the `release.json` digest, and the manifest’s chart digest must equal the chart archive’s digest from `SHA256SUMS`. For 0.3.6, expect these values: | File | SHA-256 | | -------------------------- | ------------------------------------------------------------------ | | `release.json` | `a4eafe78f13c7748d446fa149f60a4071a92cfb276d3ca7a8e4c98cca32af977` | | `pig-supervisor-0.3.6.tgz` | `5fc16c87f3db452e6d831b7f31c75a61e5f79c9ac8483dda037e3e34b90bb74b` | | `pig-deploy-0.3.6.tar.gz` | `993bf8405b5972d8cc22d18fc0d79a371691cf9128c23ddd5fce747ad502cd43` | Stop if any value differs. Review the release requirements before you continue: ```bash jq '.requirements | {kubernetesMin, postgresMin, postgresMax, storageBackends, schemaTo}' release.json ``` Keep these files, your bootstrap values, and your `PIGDeployment` manifest with your recovery records. The `pig-deploy-0.3.6.tar.gz` archive contains the Terraform examples used by the cloud guides. ## 2. Create the namespaces and analyzer ServiceAccount [Section titled “2. Create the namespaces and analyzer ServiceAccount”](#2-create-the-namespaces-and-analyzer-serviceaccount) 1. **Confirm the cluster and create the namespaces.** ```bash kubectl config current-context kubectl create namespace pig --dry-run=client -o yaml | kubectl apply -f - kubectl create namespace pig-system --dry-run=client -o yaml | kubectl apply -f - ``` 2. **Create the analyzer ServiceAccount.** The analyzer and its maintenance Jobs share this account. Copy `service_account_annotations` from your Terraform output, such as `eks.amazonaws.com/role-arn` on AWS. analyzer-service-account.yaml ```yaml apiVersion: v1 kind: ServiceAccount metadata: name: pig-analyzer namespace: pig annotations: eks.amazonaws.com/role-arn: REPLACE_WITH_TERRAFORM_OUTPUT # From service_account_annotations ``` ```bash kubectl apply -f analyzer-service-account.yaml ``` Terraform owns the cloud role and its trust policy. Keep the ServiceAccount namespace and name that Terraform configured in that trust policy. ## 3. Deliver secrets and the database CA [Section titled “3. Deliver secrets and the database CA”](#3-deliver-secrets-and-the-database-ca) Create these objects in namespace `pig` before you create the `PIGDeployment`. Deliver Secret values through your secret manager, such as an External Secrets Operator resource. Keep values out of Git, Helm values, and command arguments. | Object | Key | Value | | --------------------------- | -------------------- | --------------------------------------------------------------------------------------------------- | | Secret `pig-credentials` | `install-token` | The analyzer credential from registration. | | Secret `pig-credentials` | `postgres-dsn` | The application connection string, with `sslmode=verify-full`. | | Secret `pig-credentials` | `model-api-key` | The model key for `authentication: api_key`. Omit it for Bedrock with `aws_sigv4`. | | ConfigMap `pig-postgres-ca` | `ca.pem` | The CA bundle that verifies your database certificate, such as the RDS regional bundle. | | Secret `pig-migration` | `postgres-dsn` | Optional. A schema-owner connection string used only by preflight and migration Jobs. | | Secret `pig-tls` | `tls.crt`, `tls.key` | Your hostname’s certificate and key, when your ingress controller reads certificates from a Secret. | If you deliver the Secret directly, write each value to a local file with owner-only permissions and create the Secret from the files: ```bash kubectl create secret generic pig-credentials --namespace pig \ --from-file=install-token=./install-token \ --from-file=postgres-dsn=./postgres-dsn \ --from-file=model-api-key=./model-api-key kubectl create configmap pig-postgres-ca --namespace pig --from-file=ca.pem=./ca.pem ``` Delete the local credential files afterward. The CA bundle is public and belongs in a ConfigMap. The supervisor mounts it at `/etc/pig/postgres-ca/ca.pem` and sets `PGSSLROOTCERT` for the analyzer and its Jobs. With one credential, the application role also owns the schema and runs migrations. To keep schema ownership away from the serving analyzer, deliver `pig-migration` and reference it in the `PIGDeployment`. The application role then needs data access only. [Separate the migration credential](/docs/governance/deploy-the-worker/postgresql#separate-the-migration-credential) shows the connection string format and the role grants. Confirm the keys without printing values: ```bash kubectl get secret pig-credentials --namespace pig -o json | jq '.data | keys' kubectl get configmap pig-postgres-ca --namespace pig -o json | jq '.data | keys' ``` ## 4. Bootstrap the supervisor and collector Ingress [Section titled “4. Bootstrap the supervisor and collector Ingress”](#4-bootstrap-the-supervisor-and-collector-ingress) The bootstrap values set the namespace the supervisor watches and configure the collector Ingress. `ingress.serviceName`, `ingress.hostname`, and `ingress.ingressClassName` are required, and the chart fails to render without them. Choose the values for your ingress controller: * Ingress with a TLS Secret For ingress-nginx and other controllers that read the certificate from Secret `pig-tls`: supervisor-values.yaml ```yaml watchNamespace: pig ingress: serviceName: acme-analyzer # Your PIGDeployment name plus -analyzer hostname: traces.acme.example ingressClassName: nginx tlsSecretName: pig-tls # A TLS Secret in namespace pig annotations: nginx.ingress.kubernetes.io/ssl-redirect: "true" nginx.ingress.kubernetes.io/proxy-body-size: "256m" ``` * AWS Application Load Balancer For the AWS Load Balancer Controller with an ACM certificate. [Deploy on AWS](/docs/governance/deploy-the-worker/deploy-on-aws#4-prepare-https-ingress) lists the prerequisites. supervisor-values.yaml ```yaml watchNamespace: pig ingress: serviceName: acme-analyzer # Your PIGDeployment name plus -analyzer hostname: traces.acme.example ingressClassName: alb annotations: alb.ingress.kubernetes.io/scheme: internet-facing alb.ingress.kubernetes.io/target-type: ip alb.ingress.kubernetes.io/certificate-arn: REPLACE_ACM_CERTIFICATE_ARN alb.ingress.kubernetes.io/listen-ports: '[{"HTTPS":443}]' alb.ingress.kubernetes.io/healthcheck-path: /healthz ``` Omit `tlsSecretName`; the load balancer uses the ACM certificate. Use `scheme: internal` only when every enrolled host can reach the private address. The Ingress exposes only the [five collector routes](/docs/governance/deploy-the-worker/networking-and-identity#route-collector-requests) and is created in `watchNamespace`. The `256m` request-body limit accepts the collector’s largest request with room to spare; [networking](/docs/governance/deploy-the-worker/networking-and-identity#set-request-limits-and-timeouts) explains the limits for other proxies. [Bootstrap chart values](/docs/governance/deploy-the-worker/configuration-reference#bootstrap-chart-values) lists every field. Lint and render the verified chart. Review the supervisor image digest, the custom resource definition, the RBAC, and the Ingress in the output: ```bash helm lint "./pig-supervisor-${PIG_VERSION}.tgz" --values supervisor-values.yaml helm template pig-supervisor "./pig-supervisor-${PIG_VERSION}.tgz" \ --namespace pig-system --values supervisor-values.yaml > rendered-supervisor.yaml ``` Then install it: ```bash helm install pig-supervisor "./pig-supervisor-${PIG_VERSION}.tgz" \ --namespace pig-system --values supervisor-values.yaml \ --wait --timeout 10m ``` The supervisor starts and waits for a `PIGDeployment`. The Ingress has no backend until the analyzer starts. Bootstrap once Keep this Helm release outside Terraform `helm_release` resources and continuous GitOps reconciliation. If Flux performs the bootstrap, suspend its HelmRelease before you create the `PIGDeployment`. For later Ingress changes, follow [change the collector ingress](/docs/governance/deploy-the-worker/gitops-ownership#change-the-collector-ingress). ## 5. Create the PIGDeployment [Section titled “5. Create the PIGDeployment”](#5-create-the-pigdeployment) Save the resource below. It uses S3 and OpenAI. Replace the storage block with the single block from `deployment_configuration.storage`, copy `pod_labels` into `spec.podLabels`, and set your [model settings](/docs/governance/deploy-the-worker/model-providers). pig-deployment.yaml ```yaml apiVersion: governance.promptless.ai/v1alpha1 kind: PIGDeployment metadata: name: acme # The analyzer Service and Ingress are named acme-analyzer. namespace: pig spec: release: channel: stable paused: false pinnedVersion: "" # Set to "0.3.6" to hold the release you verified. serviceAccountName: pig-analyzer podLabels: {} # Copy deployment_configuration.pod_labels from Terraform. hosted: installTokenSecretRef: name: pig-credentials key: install-token storage: postgres: dsnSecretRef: name: pig-credentials key: postgres-dsn # Optional schema-owner credential used only by preflight and migration Jobs. # migrationDsnSecretRef: # name: pig-migration # key: postgres-dsn caConfigMapRef: name: pig-postgres-ca key: ca.pem # Exactly one storage block, copied from deployment_configuration.storage. s3: region: us-west-2 bucket: acme-pig-traces # Your trace bucket prefix: acme/traces analysis: activationAt: "2026-10-15T00:00:00Z" # Sessions with activity at or after this time are eligible. quietWindowHours: 0.5 model: provider: openai authentication: api_key baseURL: https://api.openai.com/v1 name: REPLACE_MODEL_NAME apiKeySecretRef: name: pig-credentials key: model-api-key ``` Use a deployment name of at most 54 lowercase letters, digits, or hyphens that starts with a letter and ends with a letter or digit. It must match `ingress.serviceName` without the `-analyzer` suffix. The release policy controls every later update: * `channel: stable` with an empty `pinnedVersion` installs the highest stable release and follows each new one, including schema migrations. * `pinnedVersion` holds an exact published release, such as the `0.3.6` you verified. * `paused: true` stops release transitions. A pause before the first install blocks installation. [Updates and recovery](/docs/governance/deploy-the-worker/manage-updates-and-recovery) explains pausing, pinning, and blocked updates. Release 0.3.6 needs no release confirmation ConfigMap; add `spec.release.confirmation` only when a target release requires one. Validate the resource against the installed custom resource definition, then apply it through its owner: ```bash kubectl apply --dry-run=server -f pig-deployment.yaml kubectl apply -f pig-deployment.yaml kubectl get pigdeployment acme --namespace pig --watch ``` The supervisor checks PostgreSQL, TLS, and object read and write access, applies schema migrations, starts `acme-analyzer`, and verifies its connection to Promptless. When the installation completes, it reports `Ready=True`. A dependency failure reports `Blocked=True` with the Job to inspect: ```bash kubectl describe pigdeployment acme --namespace pig kubectl logs deployment/pig-supervisor --namespace pig-system --tail=100 ``` `Ready=True` means the workloads and dependency checks passed. The `Acceptance` condition stays `False` with reason `AwaitingCanonicalAcceptance` until a real session completes the [end-to-end verification](/docs/governance/deploy-the-worker/verify-your-deployment). ## 6. Point DNS at the ingress and check HTTPS [Section titled “6. Point DNS at the ingress and check HTTPS”](#6-point-dns-at-the-ingress-and-check-https) Read the address your ingress controller assigned to the Ingress: ```bash kubectl get ingress acme-analyzer --namespace pig \ -o jsonpath='{.status.loadBalancer.ingress[0]}{"\n"}' ``` Create or update the DNS record for `traces.acme.example` to point at that address. For an ALB, wait until its targets are healthy first. Then run these checks from the network your enrolled hosts use, not from inside the cluster: ```bash curl --fail --silent --show-error https://traces.acme.example/healthz curl --silent --output /dev/null --write-out '%{http_code}\n' \ https://traces.acme.example/v0/host-enrollment/policy ``` The health check returns `"status": "ok"` and the `deployment_instance_id` of this installation. The unauthenticated policy request returns `401` from the analyzer, which shows the route reaches it. A `404` means a proxy does not route that path, and a certificate error means the hostname and certificate do not match. Fix these before you enroll a host. Serve HTTPS directly at this hostname. Hosts use the address without a path, and cloud agents reject redirects. Cloud runners need to reach this address from their sandbox, and Claude Tag needs a public HTTPS endpoint; see [cloud agents](/docs/governance/deploy-the-worker/networking-and-identity#reach-the-analyzer-from-cloud-agents). ## 7. Select instruction repositories [Section titled “7. Select instruction repositories”](#7-select-instruction-repositories) After the analyzer first checks in, its row on the [Workers settings page](https://app.gopromptless.ai/pig/settings/workers) changes from **Awaiting connection** to **Healthy**. An organization administrator then chooses the repositories the analyzer reads, on the **Instruction repositories** card. Analysis reads every selected repository. 1. **Add a repository.** Choose it from **Select a repository** and select **Add**. The list shows repositories the connected GitHub App can access; grant the app access to add another. 2. **Optional. Set repository actions.** Turn on **Create Repo Issues** to open GitHub issues for the repository’s findings. Turn on **Propose Remediations** to let remediation open pull requests; it requires **Create Repo Issues**. 3. **Remove a repository** with **Remove** when the analyzer should stop reading it. Existing findings and pull requests remain. Each repository needs a `main` branch, and the GitHub App needs Contents read access to it. **Create Repo Issues** also needs Issues write access, and **Propose Remediations** needs Issues, Contents, and Pull requests write access. Members who are not administrators see the selected repositories as a read-only list. For how a finding maps to a repository and its GitHub issue, see [Understand findings](/docs/governance/findings-and-remediation/understand-findings). ## 8. Enable trace analysis [Section titled “8. Enable trace analysis”](#8-enable-trace-analysis) On the **Analyzers** card of the same page, confirm that your analyzer’s **Trace analyzer** switch is **On**. New analyzers start with it on. An organization administrator can set it to **Off** to stop analyses while uploads continue, and back to **On** to resume. Each change applies at the analyzer’s next check-in. Analysis runs only when all of these are true: * **Trace analyzer** is **On** for the analyzer. * At least one instruction repository is selected. * `spec.analysis.activationAt` is set, and a session has activity at or after that time. * The session has finished, or its quiet window has passed. Deployment checks pass while analysis is off or no repository is selected, so `Ready=True` alone does not show that analysis can run. When you switch analysis on, eligible stored sessions since `activationAt` become due for analysis. ## 9. Enroll a host and verify a session [Section titled “9. Enroll a host and verify a session”](#9-enroll-a-host-and-verify-a-session) 1. [Enable trace collection and enroll one pilot host](/docs/governance/get-started/enroll-your-hosts) with `https://traces.acme.example` as the analyzer address. 2. Run a short session that uses an installed hub skill in a selected repository. 3. [Verify that session end to end](/docs/governance/deploy-the-worker/verify-your-deployment). Check the enrolled host, the stored and readable trace object, a succeeded analysis, and its Dashboard acknowledgement. Zero findings is a valid result. ## See also [Section titled “See also”](#see-also) * [Verify your deployment](/docs/governance/deploy-the-worker/verify-your-deployment), for every check in the end-to-end verification * [Configuration reference](/docs/governance/deploy-the-worker/configuration-reference), for every `PIGDeployment` and bootstrap chart field * [Updates and recovery](/docs/governance/deploy-the-worker/manage-updates-and-recovery), for pause and pin controls, backups, and recovery * [Observability](/docs/governance/deploy-the-worker/observability), for ongoing monitoring and troubleshooting * [GitOps ownership](/docs/governance/deploy-the-worker/gitops-ownership), to manage the `PIGDeployment` and later Ingress changes through Flux or another controller # GitOps ownership > Keep Terraform, GitOps, and PIG from reconciling the same resources after the one-time bootstrap. ## Overview [Section titled “Overview”](#overview) Terraform prepares cloud infrastructure, and Helm bootstraps PIG once. After bootstrap, PIG owns its application releases, including supervisor updates. GitOps can continue to own your desired deployment configuration and secret delivery. Use this guide before you bootstrap PIG through a GitOps controller, and before you change the collector Ingress later. It shows which tool owns each resource and how to hand ownership to PIG, so that no controller reverts the supervisor’s self-updates. ## Resource ownership [Section titled “Resource ownership”](#resource-ownership) Each owner manages these resources: | Owner | Resources | | --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | Terraform | Cloud databases, storage, workload identity trust and grants, networking, backup and retention settings. | | Your Kubernetes configuration | Namespaces, the analyzer ServiceAccount and its identity annotations, `PIGDeployment.spec`, external Secret delivery, the database CA ConfigMap, and certificates. | | The `pig-supervisor` Helm release | The supervisor Deployment, its RBAC, and the HTTPS collector Ingress, configured through the chart’s `ingress` values. Its first install creates the PIG custom resource definition. | | The supervisor | Generated analyzer Deployment and Service, migration and verification Jobs, its own image updates, and additive custom resource definition updates within installed permissions. | The supervisor can’t widen its own permission grants. A release that needs new bootstrap permissions stays blocked until an administrator reviews and installs those grants. Cloud management permissions stay with Terraform. Don’t put the bootstrap in a Terraform `helm_release` resource, and don’t reconcile PIG-generated workloads through another controller. PIG’s release policy is the single owner of their versions. Keep the bootstrap chart and values for recovery, but don’t reapply them on a schedule. ## Bootstrap with Helm directly [Section titled “Bootstrap with Helm directly”](#bootstrap-with-helm-directly) Run the [Helm installation](/docs/governance/deploy-the-worker/deploy-the-analyzer-worker) once. Helm doesn’t reconcile resources continuously. After you create `PIGDeployment`, use its `release` fields for application updates, pauses, and pins. Run a later `helm upgrade` only to [change the collector ingress](#change-the-collector-ingress) or to follow a release’s documented procedure. Each time, carry forward the supervisor’s current image and release catalog. ## Bootstrap with Flux [Section titled “Bootstrap with Flux”](#bootstrap-with-flux) If Flux installs the bootstrap, hand ownership to PIG before you enable application updates. 1. Create an `OCIRepository` for `oci://ghcr.io/promptless/charts/pig-supervisor`. Pin it to the chart’s OCI digest from the release manifest, `artifacts.supervisorChart.ociDigest`. For 0.3.6, the digest is `sha256:ee04fc023c7a6a22fde882cdb1852646b08804fe822a246d4040c7afe73b09fb`. 2. Create a `HelmRelease` in `pig-system` with the same bootstrap values as the direct Helm guide, including `watchNamespace: pig` and the required `ingress` fields. 3. Keep `PIGDeployment` out of the reconciled path while Flux installs the chart. The supervisor waits for this resource before it starts release transitions. 4. Wait for the bootstrap HelmRelease to become ready: ```bash kubectl wait helmrelease/pig-supervisor --namespace pig-system \ --for=condition=ready --timeout=10m ``` 5. Commit `spec.suspend: true` on that HelmRelease in Git. Suspending only the OCIRepository leaves the installed release active; see Flux’s [HelmRelease suspend control](https://fluxcd.io/flux/components/helm/helmreleases/#suspend). 6. After Flux applies the change, confirm that the HelmRelease is suspended. The command prints `true`: ```bash kubectl get helmrelease pig-supervisor --namespace pig-system \ -o jsonpath='{.spec.suspend}{"\n"}' ``` 7. Add your `PIGDeployment` to the GitOps path that owns desired configuration. Keep its secret delivery and analyzer ServiceAccount in that path too. Keep the bootstrap HelmRelease suspended and present in Git. Deleting it can trigger a Helm uninstall, and resuming it can restore an older chart over PIG’s self-updates. Don’t reconcile the chart’s rendered resources separately through a Kustomization. The one exception is the collector Ingress, described in [Change the collector ingress](#change-the-collector-ingress). ## Bootstrap with other GitOps controllers [Section titled “Bootstrap with other GitOps controllers”](#bootstrap-with-other-gitops-controllers) Run a direct Helm bootstrap outside the controller’s managed application set. Let the controller manage only the customer-owned configuration in the [ownership table](#resource-ownership). Turning off automatic sync isn’t a durable ownership boundary while manual sync or pruning can still touch PIG’s generated resources. If your policy requires continuous Helm reconciliation, choose [manual Helm management](/docs/governance/deploy-the-worker/manual-helm). Your platform workflow then applies every release. ## Change the collector ingress [Section titled “Change the collector ingress”](#change-the-collector-ingress) The bootstrap release owns the collector Ingress, so hostname, class, TLS, and annotation changes go through Helm. These changes don’t change the analyzer’s registered configuration or trigger its revalidation. The supervisor may have updated its own image since bootstrap. Carry its current values into the upgrade so that the upgrade doesn’t revert a self-update. 1. Read the image the supervisor runs now: ```bash kubectl get deployment pig-supervisor --namespace pig-system \ -o jsonpath='{.spec.template.spec.containers[0].image}{"\n"}' ``` 2. In your bootstrap values, set `image.digest` and `releaseCatalogURL` to the values the supervisor runs now, and make your Ingress changes. 3. Render the [verified](/docs/governance/deploy-the-worker/deploy-the-analyzer-worker#1-select-and-verify-a-release) chart, where `PIG_VERSION` is the chart version you verified: ```bash helm template pig-supervisor "./pig-supervisor-${PIG_VERSION}.tgz" \ --namespace pig-system --values supervisor-values.yaml > rendered-supervisor.yaml ``` 4. Compare the rendered Ingress with the live object. 5. Upgrade the bootstrap release: ```bash helm upgrade pig-supervisor "./pig-supervisor-${PIG_VERSION}.tgz" \ --namespace pig-system --values supervisor-values.yaml --wait --timeout 5m ``` If Flux performed the bootstrap, keep its HelmRelease suspended. Either run the explicit upgrade above with current values, or manage the rendered Ingress directly in your GitOps repository. ## Change release policy and recover a cluster [Section titled “Change release policy and recover a cluster”](#change-release-policy-and-recover-a-cluster) Commit pause and pin changes to the GitOps source of `PIGDeployment.spec.release`. If Git still declares another value, your controller can revert a live patch. For cluster recovery, restore the same deployment identity and customer-owned configuration. Repeat the bootstrap handoff before you create the restored `PIGDeployment`. To reconnect retained storage safely, follow [Manage updates and recovery](/docs/governance/deploy-the-worker/manage-updates-and-recovery#the-cluster-or-supervisor-is-lost). ## See also [Section titled “See also”](#see-also) * [Deploy the analyzer worker](/docs/governance/deploy-the-worker/deploy-the-analyzer-worker), for the direct Helm bootstrap and its values * [Deployment configuration](/docs/governance/deploy-the-worker/configuration-reference#bootstrap-chart-values), for every bootstrap chart value * [Manage updates and recovery](/docs/governance/deploy-the-worker/manage-updates-and-recovery), for pausing, pinning, and recovering releases * [Manually manage the analyzer](/docs/governance/deploy-the-worker/manual-helm), for installations your platform workflow upgrades # Manage updates and recovery > Control automatic stable releases, resolve blocked updates, and recover application and storage state safely. ## Overview [Section titled “Overview”](#overview) By default, the trace analyzer updates automatically to every stable release. The supervisor installed with your deployment applies release changes, migrations, and its own updates. Use this guide to pause or pin those updates and to run the one-time upgrade handoffs that some releases need. It also covers resolving a blocked or failed update, and recovering or retiring a deployment without losing trace data. The `PIGDeployment` controls on this page apply to installations the supervisor manages. If you chose a [manually managed Helm installation](/docs/governance/deploy-the-worker/manual-helm), your operations team schedules and applies upgrades. ## What updates automatically [Section titled “What updates automatically”](#what-updates-automatically) The default release policy follows every stable release, including major versions and schema changes: ```yaml release: channel: stable paused: false pinnedVersion: "" ``` An update covers the analyzer, the supervisor, required database migrations, and generated Kubernetes application resources, within the permissions granted at installation. Each stable release includes a compatible transition for the installed version, Promptless, and customer data. On the way to the target release, the supervisor runs every required intermediate migration. Following the stable channel never authorizes the supervisor to erase data or modify shared infrastructure. Your team continues to maintain shared clusters, networking, ingress controllers, the bootstrap release’s collector Ingress, externally managed secrets, and backup policies. A new access requirement or a failed preflight blocks the update and names the action to take. After you resolve the blocker, the supervisor resumes the stable-release transition with no separate approval for each release. ## Upgrade an existing installation to 0.3.4 [Section titled “Upgrade an existing installation to 0.3.4”](#upgrade-an-existing-installation-to-034) PIG 0.3.4 moves the collector Ingress from `PIGDeployment.spec.endpoint` to the bootstrap chart’s [`ingress` values](/docs/governance/deploy-the-worker/configuration-reference#bootstrap-chart-values). It also replaces the supervisor’s runtime and removes its Ingress permissions. The analyzer is unchanged from 0.3.3: schema revision 4 and PostgreSQL 15–18. Installations bootstrapped with an earlier chart need a one-time operator handoff. The supervisor cannot apply this change to the shared custom resource definition (CRD) on its own. An installation following the stable channel reports `Blocked=True` with reason `CRDUpgradeUnsupported` until an operator completes the handoff. The handoff keeps the same Ingress object, so its hostname, certificate, and load balancer address stay in place. Run the handoff from a checkout of the [`v0.3.4` release](https://github.com/Promptless/pig-deploy/releases/tag/v0.3.4) with an explicit Kubernetes context. Follow its [`UPGRADING.md`](https://github.com/Promptless/pig-deploy/blob/v0.3.4/UPGRADING.md) for the exact commands. In outline: 1. Back up the CRD, every `PIGDeployment`, the existing Ingress, and the bootstrap Helm values. Record the supervisor’s running image digest and release catalog. 2. Wait for `status.phase: complete` with no maintenance Job running. Suspend GitOps reconciliation of the bootstrap release and `PIGDeployment`, then scale every supervisor that shares the CRD to zero. 3. Remove the whole `spec.endpoint` block from each `PIGDeployment` manifest. Copy its hostname, class, TLS Secret, and annotations into the bootstrap values as `ingress.hostname`, `ingress.ingressClassName`, `ingress.tlsSecretName`, and `ingress.annotations`, and set `ingress.serviceName` to the existing Ingress name, such as `acme-analyzer`. Set the 0.3.4 supervisor image digest. Render the chart and confirm the Ingress matches the saved object. 4. Apply the 0.3.4 CRD with server-side apply, then apply the updated `PIGDeployment`. Never delete or recreate the CRD or the `PIGDeployment`. 5. Generate the ownership patch with the release’s `scripts/ingress-handoff.py` and apply it to the existing Ingress. The patch transfers the Ingress from the `PIGDeployment` to Helm without changing its spec. 6. Run `helm upgrade` for the bootstrap release with the prepared values. Confirm the Ingress UID, hostname, certificate, and load balancer address match the backup. Then confirm HTTPS health and that the deployment returns to `Ready=True`, and resume GitOps reconciliation. Removing the endpoint settings changes the analyzer’s configuration once, so the supervisor revalidates it after the upgrade. Do not delete the Ingress or run `helm upgrade --force`, which can replace it. If the handoff stops before the Helm upgrade succeeds, keep the old supervisor stopped and repair forward from the saved objects. Do not restart the old supervisor against the updated CRD. ## Upgrade a 0.3.4 installation to 0.3.5 or later [Section titled “Upgrade a 0.3.4 installation to 0.3.5 or later”](#upgrade-a-034-installation-to-035-or-later) The supervisor sets the analyzer’s environment variables, so the two must use the same variable names. A 0.3.4 supervisor sets `INSTRUCTION_HUB_*` variables, and the analyzer in 0.3.5 and later reads `PIG_*` variables. The supervisor updates its own image only after it rolls out the new analyzer. A 0.3.4 installation therefore cannot reach 0.3.5 or later on its own. Replace the supervisor first with a one-time bootstrap upgrade. The `PIGDeployment`, Secrets, storage, and Ingress stay in place. Use the `pig-supervisor` chart for the highest version in the [stable catalog](https://github.com/Promptless/pig-deploy/blob/main/catalog/stable.json). An unpinned supervisor selects that release, so the bootstrap image matches the release it installs. The chart’s values are unchanged from 0.3.4, so you can reuse your current bootstrap values with the new supervisor image digest. 1. Set `PIG_VERSION` to that version. Download and verify its files. See [Select and verify a release](/docs/governance/deploy-the-worker/deploy-the-analyzer-worker#1-select-and-verify-a-release). Save the current `PIGDeployment`, Ingress, supervisor Deployment, and bootstrap Helm values. 2. Set `spec.release.paused` to `true`. Wait for `status.phase: complete` with no migration Job running. 3. Scale the supervisor Deployment to zero and wait for its Pod to terminate. 4. While the supervisor is stopped, apply a `PIGDeployment` with `channel: stable`, `paused: false`, and no `pinnedVersion`. 5. Upgrade the bootstrap release with the new chart: ```bash helm upgrade pig-supervisor "./pig-supervisor-${PIG_VERSION}.tgz" \ --namespace pig-system --values supervisor-values.yaml \ --wait --timeout 5m ``` 6. Confirm that the supervisor completes the transition. Check that `currentVersion` shows the new release and that the deployment reports `Ready=True` without `Blocked=True`. 7. Confirm that the Ingress UID, hostname, certificate, and load balancer address match the saved objects, then check HTTPS health and collector access. Pausing release adoption does not stop the 0.3.4 supervisor from reconciling the analyzer, so stop the supervisor before you change the release policy. If the `PIGDeployment` already shows a `targetVersion` of 0.3.5 or later, contact Promptless before you stop the supervisor. ## Keep cloud infrastructure in Terraform [Section titled “Keep cloud infrastructure in Terraform”](#keep-cloud-infrastructure-in-terraform) Your platform team owns database sizing, native object storage, IAM, networking, and backup and retention policy. The supervisor uses application data access and scoped Kubernetes permissions. It does not resize databases or mutate cloud infrastructure. If a release needs a cloud change, PIG reports `Blocked=True` with the unmet requirement and required operator action. Review and apply the change through Terraform, then let PIG rerun its checks. An unpaused deployment resumes its stable-release transition once the live checks and any required release confirmations pass. PIG checks dependencies through its application connections. It does not read Terraform state or keep a copy of provisioned capacity. Your platform team checks requirements PIG cannot verify directly, such as managed database disk headroom. Use the provider’s metrics to confirm that requirement for the target release. Connectivity alone does not prove sufficient capacity. A blocked target can coexist with a healthy installed version. Avoid broadening the supervisor’s permissions to bypass an infrastructure requirement. Keep the [bootstrap ownership handoff](/docs/governance/deploy-the-worker/gitops-ownership) in place while changing customer-owned infrastructure. ## Follow an update [Section titled “Follow an update”](#follow-an-update) The supervisor records the current release, target release, update stage, and a durable migration history. The update sequence is: 1. Resolve and verify the stable release artifacts and its supported upgrade path. 2. Check hosted compatibility, storage access, and model and repository requirements. Check observable capacity and require operator confirmation for release requirements that cannot be verified directly. 3. Require release-specific recovery confirmation before a destructive migration, then run the release’s coordinated schema migrations. Your backup workflow creates and retains the recovery points. 4. Roll out the analyzer and supervisor in the release’s declared order. 5. Verify health, storage access, and hosted synchronization before marking the target installed. An update completes while analysis is disabled or no instruction repositories are selected, so you can upgrade an installation without turning analysis on first. [Verifying a complete session](/docs/governance/deploy-the-worker/verify-your-deployment) still requires analysis enabled and at least one selected instruction repository. Some transitions can keep ingestion running while analysis pauses. A release that needs an ingestion interruption reports that state. Hosts can retry from their retained native ledgers, so do not delete those ledgers during recovery; successful retries depend on the source still being available. Inspect the status and events with: ```bash kubectl get pigdeployment acme --namespace pig \ -o jsonpath='{.status.currentVersion}{" -> "}{.status.targetVersion}{"\n"}' kubectl describe pigdeployment acme --namespace pig kubectl logs deployment/pig-supervisor --namespace pig-system --tail=100 ``` The `PIGDeployment` reports these conditions: | Condition | Meaning | Operator response | | --------------- | ------------------------------------------------ | ------------------------------------------------------------------- | | `Ready=True` | The current deployment passed supervisor checks. | Continue monitoring real ingestion and analysis. | | `Updating=True` | A release transition is in progress. | Review the stage and elapsed time; avoid competing manual upgrades. | | `Blocked=True` | A required operation cannot proceed. | Read the reason and resolve the reported dependency or permission. | An old deployment can remain ready while its target release is blocked. Use `currentVersion`, `targetVersion`, condition messages, and recent events together. Status never includes secret values or raw trace content. ## Confirm release prerequisites [Section titled “Confirm release prerequisites”](#confirm-release-prerequisites) Keep confirmations in a customer-owned ConfigMap in the deployment’s namespace. Reference its name from `spec.release.confirmation.configMapRef`. Your GitOps repository or backup workflow manages this object; the supervisor reads it without cloud-management permissions. Every confirmation identifies the deployment and exact target release using `deploymentUID` and `releaseDigest`. A confirmation for another deployment or release cannot authorize the transition. To collect the identifiers for a confirmation: 1. From a pinned checkout of [pig-deploy](https://github.com/Promptless/pig-deploy), inspect the target release: ```bash uv run --frozen pig-release-inspect --version REPLACE_WITH_TARGET_VERSION ``` The command validates the catalog and immutable release manifest, then prints `releaseDigest`, `capacityRequirementsDigest`, and the release requirements as JSON. 2. Copy the digests exactly, including the `sha256:` prefix. 3. Read `deploymentUID` from the Kubernetes object: ```bash kubectl get pigdeployment REPLACE_NAME -n REPLACE_NAMESPACE -o jsonpath='{.metadata.uid}' ``` 4. Record the capacity or recovery confirmation that the target release requires, as described in the next sections. The UID binds the confirmation to that Kubernetes object. Recreating the object requires a new confirmation, even if its name and Promptless installation are unchanged. ### Confirm capacity that PIG cannot inspect [Section titled “Confirm capacity that PIG cannot inspect”](#confirm-capacity-that-pig-cannot-inspect) When a target release declares operator capacity requirements, review each requirement against current cloud metrics and the capacity needed during migration. Apply any infrastructure change through Terraform first. Record `capacityConfirmedAt`, the target’s `capacityRequirementsDigest`, and `capacityEvidence` describing the check. PIG records this confirmation as an operator acknowledgement and still reruns its live dependency checks. Don’t copy Terraform outputs into a capacity ConfigMap, and don’t treat a successful Terraform apply as evidence of free space. ### Confirm recovery before a destructive migration [Section titled “Confirm recovery before a destructive migration”](#confirm-recovery-before-a-destructive-migration) Create and verify coordinated PostgreSQL and object-storage recovery points using your backup workflow. Record their identifiers as `postgresRecoveryPoint` and `objectRecoveryPoint`, with `confirmedAt`, for the exact target release. Check that the recovery points meet that release’s freshness requirements and remain available under your retention policy. The supervisor blocks a destructive migration until this confirmation passes. It checks the confirmation again before migration. Recording an identifier doesn’t create a backup or prove that a restore succeeds, so rehearse restoration separately. Capacity acknowledgement and recovery confirmation satisfy different prerequisites, even when they share a ConfigMap. ## Pause release adoption [Section titled “Pause release adoption”](#pause-release-adoption) In a GitOps deployment, commit this change to `spec.release` in the `PIGDeployment` manifest: ```yaml release: channel: stable paused: true pinnedVersion: "" ``` For an installation managed directly with `kubectl`, the equivalent command is: ```bash kubectl patch pigdeployment acme --namespace pig --type merge \ -p '{"spec":{"release":{"paused":true}}}' ``` A pause stops new release transitions, including supervisor updates. The installed service keeps running, refreshing credentials, and reporting status. A migration that is already running reaches a documented safe checkpoint before the pause takes effect. Don’t delete a migration Job to pause it. A pause applies only to analyzer and supervisor releases. Instruction Hub publishing and host plugin updates follow their own release workflow. Cloud charges continue, and queued traces stay queued. ## Pin a release and return to stable [Section titled “Pin a release and return to stable”](#pin-a-release-and-return-to-stable) Set `pinnedVersion` to an exact release identity provided by Promptless. The supervisor verifies the transition before applying it. `paused: true` takes precedence: a pin does not start an update while paused. ```yaml release: channel: stable paused: false pinnedVersion: "REPLACE_WITH_SUPPORTED_RELEASE" ``` Pinning the installed version holds it while your team investigates an issue. Choosing an earlier release requests a downgrade; it is allowed only when that release supports the current schema and hosted interface. A pin cannot force an incompatible database downgrade. To resume automatic stable updates, clear the pin and pause in your source manifest. For a directly managed installation: ```bash kubectl patch pigdeployment acme --namespace pig --type merge \ -p '{"spec":{"release":{"paused":false,"pinnedVersion":""}}}' ``` Do not patch a GitOps-managed object without updating its source; the GitOps controller can otherwise undo the change. Do not independently pin the supervisor Deployment image: the release policy coordinates supervisor and analyzer versions together. ## Recover from a blocked or failed update [Section titled “Recover from a blocked or failed update”](#recover-from-a-blocked-or-failed-update) ### A dependency or permission check fails [Section titled “A dependency or permission check fails”](#a-dependency-or-permission-check-fails) Keep the last healthy version running. Check the reported resource, action, and identity, then repair the underlying condition. Common causes include rotated tokens, unreachable databases, missing object-storage permissions, insufficient capacity, and unavailable model endpoints. If capacity or a cloud permission is required, review and apply the corresponding Terraform change. The supervisor retries recoverable failures and preserves its progress. Keep the same deployment ID, the `deployment_instance_id` that [`/healthz` returns](/docs/governance/deploy-the-worker/deploy-the-analyzer-worker#6-point-dns-at-the-ingress-and-check-https). Reinstalling under a different ID creates a second identity and leaves the existing deployment unrepaired. ### A migration fails [Section titled “A migration fails”](#a-migration-fails) Record the source and target releases and failed migration identifier. Preserve the database, objects, logs, and migration Job evidence. The supervisor blocks application code that requires the incomplete schema and prevents concurrent migration attempts. Retry only through the migration’s documented resumable path after fixing the cause. If the failure leaves the schema incompatible with the last application release, use a supported forward repair or a coordinated restoration. Rolling back a Deployment or Helm release does not reverse committed PostgreSQL changes. ### The application fails after migration [Section titled “The application fails after migration”](#the-application-fails-after-migration) Use the release’s declared rollback compatibility to decide whether the prior application can run against the new schema. The supervisor may revert application resources only when that compatibility is known. Otherwise, hold the deployment and apply a supported forward repair with the Promptless team. After recovery, repeat the [first-trace verification](/docs/governance/deploy-the-worker/verify-your-deployment), including completed analysis. A healthy controller doesn’t prove that the analyzer has recovered. ### The cluster or supervisor is lost [Section titled “The cluster or supervisor is lost”](#the-cluster-or-supervisor-is-lost) Restore the bootstrap configuration, including its `ingress` values, and original `PIGDeployment` specification into the recovery cluster. Re-establish analyzer workload identity bindings and Secret delivery. Reconnect the same PostgreSQL database and trace objects using the same deployment identity. Restore network paths and certificates before allowing hosts to upload again. Repeat the bootstrap ownership handoff before creating the restored `PIGDeployment`: for Flux, install the reviewed recovery bootstrap, then suspend its Helm release. The recovered supervisor checks storage access and application compatibility before resuming. Restore or replace cloud infrastructure through Terraform. If restoring storage from backups, use a coordinated recovery point for PostgreSQL and object storage. Preserve source watermarks and object references together. Do not run two active deployments against the same database during cutover. Confirm the supported recovery release with Promptless before allowing the supervisor to resume migrations. After an offline restore that leaves canonical trace objects behind the database, requeue them with the [`rebuild-canonical-objects` maintenance command](/docs/governance/deploy-the-worker/manual-helm#inspect-and-repair-worker-storage). Run it while the analyzer is stopped, after the immutable raw and context objects are in place. The analyzer then rewrites each canonical object in the background. ## Monitor ongoing operation [Section titled “Monitor ongoing operation”](#monitor-ongoing-operation) Alert on blocked updates, supervisor reconciliation failures, ingestion failures, growing analysis delay, unavailable model capacity, and backup failures. A normal release transition may temporarily delay analysis; a persistent backlog needs investigation even when `Ready=True`. Keep the deployment ID, current and target releases, update history, and support contact in your runbook. The [observability guide](/docs/governance/deploy-the-worker/observability) covers the current service’s logs and signals. ## Retire a deployment without erasing traces [Section titled “Retire a deployment without erasing traces”](#retire-a-deployment-without-erasing-traces) Removing the `PIGDeployment` cleans up its generated application resources. PostgreSQL, trace objects, external Secrets, backups, and the collector Ingress stay in place. 1. With Promptless, disable host enrollment and collection for the deployment. 2. Let accepted work finish, or record what remains queued. 3. Pause updates. 4. Remove the `PIGDeployment` through its owning GitOps repository or Kubernetes workflow. 5. After the supervisor finishes cleanup, uninstall the bootstrap release to remove the supervisor. Uninstalling it also removes the collector Ingress. 6. Revoke unused application credentials and remove the DNS records. Delete retained customer data only through your organization’s explicit retention and deletion procedure. Uninstalling PIG doesn’t grant permission to delete it. ## See also [Section titled “See also”](#see-also) * [Deployment configuration](/docs/governance/deploy-the-worker/configuration-reference#release-policy), for the `spec.release` fields * [GitOps ownership](/docs/governance/deploy-the-worker/gitops-ownership), for keeping controllers from reverting supervisor updates * [Observability](/docs/governance/deploy-the-worker/observability#symptom-an-upgrade-is-blocked-or-fails), for diagnosing a blocked or failed upgrade * [Verify your deployment](/docs/governance/deploy-the-worker/verify-your-deployment), for the complete-session checks to repeat after an update or recovery # Manually manage the analyzer > Deploy the current PIG trace analyzer into Kubernetes with Helm, then verify host enrollment, durable trace storage, and completed analysis. ## Overview [Section titled “Overview”](#overview) This guide installs the PIG trace analyzer with the `pig-trace-analyzer` Helm chart, without the self-updating supervisor. The analyzer receives traces from enrolled hosts, stores them in your PostgreSQL database and trace bucket, and analyzes sessions with your chosen model provider. Choose this installation when your operations team must schedule and apply every analyzer upgrade itself. The guide uses worker chart `0.3.6`, which pins its worker image by digest. For automatic updates with pause and version-pin controls, use the [default Helm installation](/docs/governance/deploy-the-worker/deploy-the-analyzer-worker) instead. The guide also covers upgrades, replacing an `instruction-hub-worker` release, and the worker’s storage maintenance commands. ## Before you begin [Section titled “Before you begin”](#before-you-begin) Complete the [deployment planning checklist](/docs/governance/deploy-the-worker/plan-your-deployment). You need: * An existing Kubernetes cluster, Helm 3, and `kubectl` configured for that cluster. * The public worker chart and an [analyzer credential from PIG Settings](/docs/governance/deploy-the-worker/plan-your-deployment#register-an-analyzer). Deliver the credential through the install-token Secret key. The analyzer discovers its installation identity and uses the hosted Promptless endpoint by default. Obtain the configuration hash for your manual deployment from Promptless. * A dedicated PostgreSQL database, version 15, 16, 17, or 18, with its trusted CA bundle. Its TLS connection string verifies the server hostname with `sslmode=verify-full`. The role that runs migrations needs table ownership and `CREATE` on the schema. You can optionally give migrations a [separate credential](/docs/governance/deploy-the-worker/postgresql#separate-the-migration-credential) from the analyzer’s data-access role. * An S3 bucket, Azure Blob container, or Google Cloud Storage bucket, with read and write access through workload identity. * An existing ServiceAccount named `pig-analyzer` in namespace `pig`, linked to that identity. Both the analyzer and migration Job use it. * A reachable HTTPS hostname, a certificate, and an existing ingress controller or equivalent route to the worker Service on port 8080. * Credentials for your analysis model. An organization administrator selects the instruction repositories the analyzer reads in [PIG Settings](/docs/governance/deploy-the-worker/deploy-the-analyzer-worker#7-select-instruction-repositories) after the analyzer registers. The complete example below uses Acme’s S3 on EKS. For AKS or GKE, substitute the native storage and identity settings in the [manual Helm reference](/docs/governance/deploy-the-worker/manual-helm-reference#native-storage-and-workload-identity). On GKE Standard, also set `nodeSelector` to `iam.gke.io/gke-metadata-server-enabled: "true"` in your values, so the analyzer and migration Job run on nodes with the GKE metadata server. The [cloud deployment guides](/docs/governance/deploy-the-worker/plan-your-deployment#choose-an-installation-path) cover the infrastructure requirements. Allow worker egress to PostgreSQL, your object store, Promptless, GitHub, and the model endpoint. Nodes also need container-registry access. See [networking and identity](/docs/governance/deploy-the-worker/networking-and-identity). ## Install the analyzer [Section titled “Install the analyzer”](#install-the-analyzer) Caution If an analyzer is already installed under another Helm release name, complete the [release replacement](#replace-an-instruction-hub-worker-release) first. Installing `pig-trace-analyzer` creates a separate release; it does not stop the existing analyzer. 1. **Prepare the namespace, identity, and secrets.** Confirm the cluster you intend to change: ```bash kubectl config current-context kubectl create namespace pig --dry-run=client -o yaml | kubectl apply -f - ``` Create the `pig-analyzer` ServiceAccount through your platform or GitOps workflow before installing Helm. For the EKS example, bind its namespace and name in the IAM trust policy and apply this manifest, replacing the role ARN: service-account.yaml ```yaml apiVersion: v1 kind: ServiceAccount metadata: name: pig-analyzer namespace: pig annotations: eks.amazonaws.com/role-arn: arn:aws:iam::123456789012:role/acme-pig-worker ``` Create a ConfigMap named `postgres-ca` in `pig` with your database provider’s trusted CA bundle under the key `ca.pem`. The chart mounts it in both the analyzer and migration Job. Use `sslmode=verify-full` in the PostgreSQL DSN. Create a Secret named `acme-pig-worker` in `pig` through your secret-management system. It must contain these keys: | Key | Value | | ------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `install-token` | The credential issued for this analyzer installation. This is separate from a host enrollment credential. | | `customer-postgres-dsn` | PostgreSQL connection string, including the TLS settings your database requires. | | `analysis-model-api-key` | API key for the model endpoint in the next step. | | `migration-postgres-dsn` | Optional. Connection string for a [separate migration credential](/docs/governance/deploy-the-worker/postgresql#separate-the-migration-credential). Add it and set `secrets.migrationPostgresDsnKey` to run migrations with a distinct role; omit both to migrate with `customer-postgres-dsn`. | For a manual pilot, run the following in Bash. It prompts without echoing credentials, creates the Secret, and removes its temporary file. Keep credentials out of committed manifests and values files. ```bash bash <<'BASH' set -eu umask 077 secret_file=$(mktemp) trap 'rm -f "$secret_file"' EXIT for key in install-token customer-postgres-dsn analysis-model-api-key; do read -r -s -p "$key: " secret_value /dev/tty printf '%s=%s\n' "$key" "$secret_value" >>"$secret_file" done unset secret_value kubectl --namespace pig create secret generic acme-pig-worker \ --from-env-file="$secret_file" --dry-run=client -o yaml | kubectl apply -f - BASH ``` The analyzer reads the selected instruction repositories with GitHub App tokens Promptless supplies, scoped to Contents read. Create Repo Issues and Propose Remediations use write access granted to the same GitHub App, which an administrator enables per repository in [PIG Settings](/docs/governance/deploy-the-worker/deploy-the-analyzer-worker#7-select-instruction-repositories). Confirm the connected GitHub App can access each repository you select. 2. **Configure the worker.** Save this as `values.yaml`. Replace every `REPLACE_` value and the hostname with your environment’s values. Choose a model name your provider account can use. values.yaml ```yaml secrets: existingSecretName: acme-pig-worker installTokenKey: install-token customerPostgresDsnKey: customer-postgres-dsn analysisModelApiKeyKey: analysis-model-api-key # migrationPostgresDsnKey: migration-postgres-dsn # optional: run migrations with a separate credential pig: configHash: REPLACE_CONFIG_HASH storageBackend: postgres_s3 postgresCaConfigMapName: postgres-ca postgresCaConfigMapKey: ca.pem traceObjectS3Bucket: REPLACE_GLOBALLY_UNIQUE_BUCKET traceObjectS3Prefix: acme/traces analysis: activationAt: "2026-09-14T00:00:00Z" quietWindowHours: 0.5 modelApi: provider: openai authentication: api_key baseUrl: https://api.openai.com/v1 model: REPLACE_MODEL_NAME serviceAccount: create: false name: pig-analyzer gateway: enabled: true className: nginx annotations: nginx.ingress.kubernetes.io/proxy-body-size: "256m" hosts: - host: traces.acme.example tls: - secretName: acme-pig-tls hosts: - traces.acme.example resources: requests: cpu: 500m memory: 1Gi limits: memory: 2Gi ``` Set `activationAt` to your chosen analysis start time; use a timezone-aware timestamp. The half-hour quiet window gives sessions time to finish before analysis. These resource values are a starting allocation: adjust them after measuring representative sessions. The example assumes an existing NGINX IngressClass named `nginx`, a TLS Secret named `acme-pig-tls` in `pig`, and DNS pointing to that ingress. Set `gateway.className` to your controller’s class. An enabled gateway requires `hosts` and `tls` and routes only the exact [collector paths](/docs/governance/deploy-the-worker/networking-and-identity#route-collector-requests). If your platform manages the route separately, set `gateway.enabled: false` and route HTTPS traffic to `pig-trace-analyzer` in `pig` on port 8080. The NGINX annotation accepts request bodies up to 256 MiB. The collector’s largest upload is 10 MiB encoded. Configure every ingress, load balancer, and proxy on the upload path to accept at least that. A smaller limit can return HTTP 413 while health checks pass. [Request limits and timeouts](/docs/governance/deploy-the-worker/networking-and-identity#set-request-limits-and-timeouts) explains both limits. For an ingestion-only pilot, leave `pig.analysis.activationAt` empty. The chart then omits the model settings from the worker. Complete all analysis settings before enabling analysis. See the [manual Helm reference](/docs/governance/deploy-the-worker/manual-helm-reference) for supported providers and value mappings. 3. **Render and install.** Download the pinned public worker chart, then render it to catch missing required values without changing the cluster: ```bash helm pull oci://ghcr.io/promptless/charts/pig-trace-analyzer \ --version 0.3.6 --untar helm lint ./pig-trace-analyzer --values values.yaml helm template pig-trace-analyzer ./pig-trace-analyzer \ --namespace pig --values values.yaml > rendered-worker.yaml ``` Review the image digest, ingress, service account, CA mount, and Secret references. The published chart supplies `image.digest`; when rendering from a source checkout, set it to the verified worker digest from the matching release. Then install: ```bash helm upgrade --install pig-trace-analyzer ./pig-trace-analyzer \ --namespace pig \ --values values.yaml \ --wait --timeout 20m ``` A pre-install or pre-upgrade Job applies database schema changes before the new worker starts. The Job runs once without retrying and stops after 15 minutes; a failed Job fails the Helm release. The analyzer validates the schema revision at startup and serves only when it matches; it applies no schema changes itself. Both workloads use the existing `pig-analyzer` ServiceAccount in this example. A ServiceAccount created by the worker chart is unavailable to its pre-install hook, so keep the account under your platform or GitOps workflow. Caution Back up your database before upgrades. A failed Helm release does not undo schema changes or restore trace objects. Follow the release’s recovery procedure with an image compatible with the current database schema. ## Upgrade a manual installation [Section titled “Upgrade a manual installation”](#upgrade-a-manual-installation) Every upgrade of this installation is an operator-controlled release, so record an owner for upgrades. Do not install a supervisor to manage the same workload without an ownership transfer. When you upgrade from chart `0.3.4`, rename the top-level `instructionHub` key in your values file to `pig` and keep its nested settings unchanged. The chart ignores values left under `instructionHub`, so rendering fails with `pig.configHash is required`. Review the target release’s database, storage, and schema requirements before each upgrade. Apply required infrastructure changes through your platform workflow and verify the recovery points for that exact release before a destructive migration. The manual chart does not enforce the supervisor’s confirmation ConfigMap. Schedule a maintenance window, and stop the running analyzer completely before you run `helm upgrade`. Some migrations, such as one that drops or renames a column, fail while an old-schema analyzer is still running or reconnecting. 1. Suspend GitOps reconciliation for the release, so it does not restart the old workload. 2. Scale the analyzer Deployment to zero replicas: ```bash kubectl --namespace pig scale deployment pig-trace-analyzer --replicas=0 ``` 3. Confirm that every analyzer pod has terminated. Helm runs the pre-upgrade migration Job before it updates the Deployment. The Deployment’s `Recreate` strategy alone does not stop the old analyzer from reaching the database during migration. 4. Install the pinned target chart with your reviewed values, as in [Install the analyzer](#install-the-analyzer). 5. Repeat the [complete-session verification](#verify-a-complete-session). If migration fails, preserve the Job logs and inspect the schema. Follow the release’s recovery procedure. Where the failure leaves the schema incompatible with the previous application release, use a supported forward repair or a coordinated restoration. Recover with a schema-compatible image rather than the previous one, which cannot run against the new schema. Rolling back a Deployment or Helm release does not reverse committed PostgreSQL changes. ## Replace an instruction-hub-worker release [Section titled “Replace an instruction-hub-worker release”](#replace-an-instruction-hub-worker-release) Use this procedure when the existing Helm release is named `instruction-hub-worker`. Substitute your actual namespace, release, and Deployment names if they differ. Keep the registered deployment identity, database, native object-storage location, and host credentials. 1. Suspend GitOps reconciliation and automated deployments for the existing release. Review the target release’s schema requirements and recovery procedure, and verify your database and object-storage recovery points. 2. Prepare the target values using the existing external Secret, ServiceAccount, CA ConfigMap, and TLS Secret. If the old release owns any of these resources, provision externally owned replacements before uninstalling it. Copy credential values through your secret-management workflow without printing them, update the values references, and verify workload-identity trust for the target ServiceAccount. 3. Stop incoming analyzer traffic and scale every existing analyzer Deployment to zero. For the default old release, run: ```bash kubectl --namespace pig scale deployment instruction-hub-worker --replicas=0 kubectl --namespace pig wait --for=delete pod \ -l app.kubernetes.io/instance=instruction-hub-worker,pod-template-hash \ --timeout=5m ``` Confirm all analyzer Deployment pods have terminated before proceeding. The selector excludes retained migration Job pods. 4. Remove the old Helm release while retaining its history: ```bash helm uninstall instruction-hub-worker --namespace pig \ --keep-history --wait --timeout 20m kubectl --namespace pig get deployment instruction-hub-worker --ignore-not-found ``` The Deployment lookup must return no object. Preserve the namespace, external credentials and identity resources, database, and object store. 5. Follow [Render and install](#install-the-analyzer) with the reviewed target chart and values. Update any external route or DNS alias after the new ingress exists, then [verify a complete session](#verify-a-complete-session). If replacement fails, keep the analyzer stopped and repair forward with an image compatible with the database’s current schema. Do not restart a schema-1 image after schema revision 2 has been applied. ## Inspect and repair worker storage [Section titled “Inspect and repair worker storage”](#inspect-and-repair-worker-storage) The worker image provides maintenance commands for schema and object-store operations. Each reads its configuration from the same environment as the analyzer, including the database credentials and `sslmode=verify-full`, and prints a JSON result. Run one in a one-off pod from the worker image, or with `kubectl exec` against a running analyzer pod. | Command | Use | | ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `pig-trace-analyzer db-status` | Report the schema revision, whether it matches the release, and a count of pending object writes and queued analyses. Read-only. | | `pig-trace-analyzer db-check` | Run the migration preflight (role permissions and schema layout) without applying changes. | | `pig-trace-analyzer migrate` | Apply schema migrations up to the current revision. The install and upgrade Jobs run this for you. | | `pig-trace-analyzer rebuild-canonical-objects` | Requeue every trace’s canonical object for a background rewrite. Run it only while the analyzer is stopped and after an offline restore has replaced the immutable raw and context objects. | Run `db-status` and `db-check` against a live deployment when you need them. Stop the analyzer before `rebuild-canonical-objects` so a running writer does not compete with the requeue. ## Verify a complete session [Section titled “Verify a complete session”](#verify-a-complete-session) Follow [Verify your deployment](/docs/governance/deploy-the-worker/verify-your-deployment). Use `deployment/pig-trace-analyzer` for analyzer log commands. The same enrollment, storage, analysis, and dashboard checks apply to this installation. ## Troubleshoot a manual installation [Section titled “Troubleshoot a manual installation”](#troubleshoot-a-manual-installation) Find the symptom, then run its check: | Symptom | Check and next action | | --------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `helm template` reports a missing value | Fill in the required deployment settings and all model settings when `activationAt` is set. | | Migration fails | Read `kubectl -n pig logs job/pig-trace-analyzer-migrate`. Check PostgreSQL reachability, TLS, schema permissions, and the migration service account. Successful hook Jobs are deleted automatically. | | Pod cannot start | Inspect pod events for missing Secret keys or image-pull failures, then worker logs for configuration validation errors. | | HTTPS fails | Check DNS, certificate coverage, IngressClass, and the route to Service port 8080. | | Host checks in but traces do not arrive | Check collector status, capture policy, and host-to-worker upload access. Preserve the host’s local collection state. | | Trace object remains pending or failed | Check workload identity, bucket or container permissions, encryption-key access, and `trace_object_last_error`. | | Analysis never starts | Confirm activation time, a complete canonical trace, the quiet window, model configuration, and selected instruction repositories with analysis enabled in PIG Settings. | | Analysis fails | Use `analysis_run_id` and `error_category` to investigate repository access, provider authentication, rate limits, and worker resources. | Do not delete database rows, the trace-object prefix, or collection watermarks to clear a stalled deployment. Preserve the evidence, fix the failing dependency, and use the [observability and recovery guidance](/docs/governance/deploy-the-worker/observability). ## See also [Section titled “See also”](#see-also) * [Manual Helm reference](/docs/governance/deploy-the-worker/manual-helm-reference), for every chart value, storage backend, and model provider mapping * [Understand findings](/docs/governance/findings-and-remediation/understand-findings), to review what analysis produces * [Observability](/docs/governance/deploy-the-worker/observability), for ongoing monitoring and recovery * [PostgreSQL](/docs/governance/deploy-the-worker/postgresql), for database roles, backups, and the separate migration credential # Manual Helm reference > Configure the current trace analyzer's deployment, storage, model, and secrets, and map Helm values to worker settings. This page describes the current worker chart, version `0.3.6`. Helm values become environment variables in the worker. Start with [Manually manage the analyzer](/docs/governance/deploy-the-worker/manual-helm) for a complete values file. Configuration scope This reference covers the worker Helm chart. The [automatic-update configuration](/docs/governance/deploy-the-worker/configuration-reference) uses `PIGDeployment` fields, which are not worker chart values. ## Deployment and storage [Section titled “Deployment and storage”](#deployment-and-storage) Unless noted, Helm keys in this table are under `pig`. Environment-variable suffixes have the prefix `PIG_`. | Helm key | Environment-variable suffix | Meaning | | --------------------- | --------------------------- | ---------------------------------------------------------------------------------------------- | | `runtimeBaseUrl` | `RUNTIME_BASE_URL` | Optional Promptless endpoint override; defaults to `https://api.gopromptless.ai`. | | `configHash` | `CONFIG_HASH` | Registered configuration hash from Promptless. Coordinate configuration changes with the team. | | `storageBackend` | `STORAGE_BACKEND` | `postgres_s3`, `postgres_azure_blob`, or `postgres_gcs`. | | `traceObjectS3Bucket` | `TRACE_OBJECT_S3_BUCKET` | S3 bucket for raw ranges and canonical trace objects. Required for `postgres_s3`. | | `traceObjectS3Prefix` | `TRACE_OBJECT_S3_PREFIX` | Object prefix; defaults to `trace-objects`. Acme uses `acme/traces`. | | `maxTraceBatchBytes` | `MAX_TRACE_BATCH_BYTES` | Maximum decoded trace-batch size, in bytes. Default `268435456` (256 MiB); must be positive. | | `logLevel` | `LOG_LEVEL` | `DEBUG`, `INFO`, `WARNING`, `ERROR`, or `CRITICAL`. Default `INFO`. | The install token and PostgreSQL DSN are also required. They come from Secret references, described below. Keep the database, bucket, and prefix stable across restarts and upgrades. Changing a storage location does not migrate existing data. The service listens on port 8080 by default. Use that value for `service.workerPort` and ingress routing in the current chart. The analysis repository mirror uses an ephemeral `emptyDir`; it can be rebuilt after a restart and does not require a persistent volume. Trace data and analysis state live in your object store and PostgreSQL. ## Native storage and workload identity [Section titled “Native storage and workload identity”](#native-storage-and-workload-identity) Select one backend. Keep the relevant values under `pig`: * AWS S3 ```yaml pig: storageBackend: postgres_s3 traceObjectS3Bucket: acme-pig-traces traceObjectS3Prefix: acme/traces ``` Grant the analyzer’s AWS identity access to the bucket and trace prefix. For EKS IRSA, annotate the existing ServiceAccount with `eks.amazonaws.com/role-arn` and bind its namespace and name in the role’s trust policy. * Azure Blob Storage ```yaml pig: storageBackend: postgres_azure_blob traceObjectAzureAccountUrl: https://REPLACE_STORAGE_ACCOUNT.blob.core.windows.net traceObjectAzureContainer: traces traceObjectPrefix: acme/traces podLabels: azure.workload.identity/use: "true" ``` Configure AKS workload identity and annotate the existing ServiceAccount with `azure.workload.identity/client-id`. Scope the Blob data role to the trace container. The chart applies `podLabels` to both the analyzer and migration Job. * Google Cloud Storage ```yaml pig: storageBackend: postgres_gcs traceObjectGcsBucket: acme-pig-traces traceObjectPrefix: acme/traces ``` Configure GKE Workload Identity Federation and grant the identity access to the trace bucket. If using IAM service account impersonation, annotate the existing Kubernetes ServiceAccount with `iam.gke.io/gcp-service-account` and configure its impersonation binding. The SDK for the selected backend discovers credentials through workload identity. The chart does not accept storage access keys or arbitrary `env` and `envFrom` values. | Helm key | Environment-variable suffix | | ---------------------------- | -------------------------------- | | `traceObjectAzureAccountUrl` | `TRACE_OBJECT_AZURE_ACCOUNT_URL` | | `traceObjectAzureContainer` | `TRACE_OBJECT_AZURE_CONTAINER` | | `traceObjectGcsBucket` | `TRACE_OBJECT_GCS_BUCKET` | | `traceObjectPrefix` | `TRACE_OBJECT_PREFIX` | These suffixes use the `PIG_` prefix. `traceObjectPrefix` defaults to `trace-objects` and applies to Azure and GCS. S3 uses `traceObjectS3Prefix`. ## Service account, database TLS, and image [Section titled “Service account, database TLS, and image”](#service-account-database-tls-and-image) The pre-install migration hook runs before Helm creates ordinary resources. Create its ServiceAccount, credential Secret, and CA ConfigMap in the release namespace before you install the chart. The analyzer and the migration Job both use the ServiceAccount named in `serviceAccount.name`. | Helm key | Default | Meaning | | ----------------------------- | --------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `serviceAccount.create` | `false` | Keep `false` while `migrationJob.enabled` is `true`. The chart fails to render when both are `true`. | | `serviceAccount.name` | `pig-analyzer` | Existing workload identity ServiceAccount for the analyzer and the migration Job. | | `migrationJob.enabled` | `true` | Runs schema migrations in a pre-install and pre-upgrade hook Job. | | `podLabels` | `{}` | Labels for the analyzer and migration Job pods, such as the Azure workload identity label. | | `nodeSelector` | `{}` | Node labels for the analyzer and migration Job pods. On GKE Standard with workload identity, set `iam.gke.io/gke-metadata-server-enabled: "true"`; omit it on Autopilot. | | `pig.postgresCaConfigMapName` | Empty | ConfigMap with the trusted database CA bundle. When set, both workloads mount it at `/etc/pig/postgres-ca/ca.pem` and set `PGSSLROOTCERT`. | | `pig.postgresCaConfigMapKey` | `ca.pem` | Key in that ConfigMap that holds the CA bundle. | | `image.repository` | `ghcr.io/promptless/pig-trace-analyzer` | Worker image repository. | | `image.digest` | Set by the published chart | Verified worker image digest, in the form `sha256:<64 lowercase hex characters>`. A source checkout requires the digest from the matching release. | For example, to use an existing `pig-analyzer` ServiceAccount and a `postgres-ca` ConfigMap: ```yaml serviceAccount: create: false name: pig-analyzer pig: postgresCaConfigMapName: postgres-ca postgresCaConfigMapKey: ca.pem ``` Use `sslmode=verify-full` in the DSN. See [PostgreSQL requirements](/docs/governance/deploy-the-worker/postgresql) for TLS and schema permissions. ## Health and readiness probes [Section titled “Health and readiness probes”](#health-and-readiness-probes) The chart configures these Kubernetes probes for the analyzer: | Probe | Path | Behavior | | --------- | ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Readiness | `/readyz` | Gates upload and analysis traffic on recent database and object-storage checks. A storage failure removes the analyzer from Service endpoints until storage recovers. | | Liveness | `/healthz` | Fails when the worker’s background tasks stop, or when a storage check or canonical-object repair makes no progress for 180 seconds. Kubernetes then restarts the analyzer. | | Startup | `/healthz` | Allows up to 180 seconds for storage to become ready before the liveness probe applies. | A database or object-storage outage that the analyzer detects makes it unready but keeps it live. The chart’s optional Ingress, enabled with `gateway.enabled`, exposes `/healthz` for load-balancer health checks; `/readyz` stays inside the cluster. The analyzer’s `terminationGracePeriodSeconds` is 120 seconds, so in-flight work settles during a rollout. ## Analysis activation [Section titled “Analysis activation”](#analysis-activation) All Helm keys below are under `pig.analysis`. The environment-variable suffixes have the prefix `PIG_ANALYSIS_`. | Helm key | Environment-variable suffix | Meaning | | ------------------ | --------------------------- | ---------------------------------------------------------------------------------------------------- | | `activationAt` | `ACTIVATION_AT` | Timezone-aware ISO timestamp for enabling analysis. Empty leaves trace analysis inactive. | | `quietWindowHours` | `QUIET_WINDOW_HOURS` | Positive quiet period before a session is eligible; default `0.5` hours. | | `mirrorRoot` | `MIRROR_ROOT` | Default `/var/lib/pig/analysis-mirrors`. Keep the default to use the chart’s mounted mirror storage. | When `activationAt` is nonempty, configure all model fields below. The worker validates those settings together and refuses partial analysis configuration. Changing the quiet window does not enable analysis by itself. An organization administrator selects the instruction repositories the analyzer reads in [PIG Settings](/docs/governance/deploy-the-worker/deploy-the-analyzer-worker#7-select-instruction-repositories). The analyzer receives GitHub App tokens scoped to Contents read for those repositories from Promptless. The analyzer reads GitHub repositories with a `main` branch; GitLab publishing support in the hub toolchain does not imply GitLab analyzer or remediation support. See [Supported agents and platforms](/docs/governance/reference/supported-agents) for the separate compatibility boundaries. ## Model provider [Section titled “Model provider”](#model-provider) These Helm keys are under `pig.analysis.modelApi`: | Helm key | Worker environment variable | Meaning | | ---------------- | ----------------------------------- | ------------------------------------------------------------------------------------------------ | | `provider` | `PIG_ANALYSIS_MODEL_PROVIDER` | `openai`, `azure_openai`, or `aws_bedrock`. | | `authentication` | `PIG_ANALYSIS_MODEL_AUTHENTICATION` | `api_key`, or `aws_sigv4` for Bedrock only. | | `baseUrl` | `PIG_ANALYSIS_MODEL_BASE_URL` | Supported HTTPS Responses API endpoint. | | `model` | `PIG_ANALYSIS_MODEL_NAME` | Model or deployment name available through that endpoint. Select it explicitly for your account. | | Provider | Accepted endpoint shape | Authentication | | -------------- | --------------------------------------------------------------------------------------------------- | --------------------- | | `openai` | `https://api.openai.com/v1` | API key. | | `azure_openai` | `https://RESOURCE.openai.azure.com/openai/v1` or `https://RESOURCE.services.ai.azure.com/openai/v1` | API key. | | `aws_bedrock` | `https://bedrock-mantle.REGION.api.aws/v1` or the same host with `/openai/v1` | API key or AWS SigV4. | Replace `RESOURCE` and `REGION`. URLs must not contain embedded credentials, an explicit port, query parameters, or a fragment. Ordinary Bedrock Runtime URLs and arbitrary OpenAI-compatible endpoints do not pass the current provider validation. GKE deployments can use one of the supported providers; there is no Vertex AI provider option. For `api_key`, supply `analysis-model-api-key` in the worker Secret. For `aws_sigv4`, select `aws_bedrock`, omit the model API key, and grant the worker’s AWS identity access to the selected model. S3 and model authorization are separate permissions even when they use one identity. The analyzer sends session content and relevant instruction context to this provider. Choose its region and data-handling terms accordingly; see [Trust and data model](/docs/governance/start-here/trust-and-data-model). ## Secret references [Section titled “Secret references”](#secret-references) Use `secrets.existingSecretName` to reference a Secret in the worker namespace. The chart defaults to these keys: | Helm mapping | Default Secret key | Worker environment variable | | --------------------------------- | ------------------------ | ---------------------------- | | `secrets.installTokenKey` | `install-token` | `PIG_INSTALL_TOKEN` | | `secrets.customerPostgresDsnKey` | `customer-postgres-dsn` | `PIG_CUSTOMER_POSTGRES_DSN` | | `secrets.analysisModelApiKeyKey` | `analysis-model-api-key` | `PIG_ANALYSIS_MODEL_API_KEY` | | `secrets.migrationPostgresDsnKey` | none (unset by default) | `PIG_MIGRATION_POSTGRES_DSN` | The model key is referenced when an activation time is configured with `api_key`. The analyzer receives GitHub App tokens for the selected instruction repositories from Promptless, so the worker Secret holds no repository credential. Set `secrets.migrationPostgresDsnKey` to run schema migrations with a [separate migration credential](/docs/governance/deploy-the-worker/postgresql#separate-the-migration-credential). The chart injects `PIG_MIGRATION_POSTGRES_DSN` into the migration Job only; the serving analyzer never receives it. Both credentials must reach the same database over `sslmode=verify-full`. Leaving this key unset runs migrations with `customer-postgres-dsn`. The chart also supports creating a Secret from values, but an existing Secret keeps credential values out of your GitOps configuration. Use your secret-management system to rotate credentials. Restart the worker after updating environment-backed Secret values so the process receives them. Sentry uses a separate Secret reference. See [Sentry error-reporting values](#sentry-error-reporting-values). ## Datadog tracing values [Section titled “Datadog tracing values”](#datadog-tracing-values) Use these values when your cluster already runs a Datadog Agent that accepts APM traffic. The Helm keys are under `observability.datadog`: | Helm key | Default | Meaning | | ---------- | ----------------------------------- | --------------------------------------------------------------------------------------------------- | | `enabled` | `false` | Turns on Datadog tracing and adds log-discovery annotations to the analyzer and migration Job pods. | | `env` | `local` | Sets `DD_ENV` and the `tags.datadoghq.com/env` label. | | `service` | `pig-trace-analyzer` | Sets `DD_SERVICE`, the `tags.datadoghq.com/service` label, and the service in log discovery. | | `agentUrl` | `http://datadog-agent.datadog:8126` | Sets `DD_TRACE_AGENT_URL`. Starts with `http://` or `https://`. | | `site` | `datadoghq.com` | Sets `DD_SITE`. | For example, with your installation’s Agent URL and site: observability-values.yaml ```yaml observability: environment: production datadog: enabled: true env: production service: acme-pig-worker agentUrl: http://datadog-agent.datadog:8126 site: datadoghq.com ``` When Datadog is enabled, the chart also sets `DD_TRACE_ENABLED`, `DD_TRACE_ANALYTICS_ENABLED`, and `DD_VERSION` on the analyzer and the migration Job. The chart sets only these `DD_*` variables. Configure the Agent’s container-log collection and network access separately. Analysis tracing can include LLM observability data. Review your telemetry collection and retention settings before enabling it for sensitive sessions. ## Sentry error-reporting values [Section titled “Sentry error-reporting values”](#sentry-error-reporting-values) The Helm keys are under `observability`: | Helm key | Default | Meaning | | --------------------------- | ------------ | ------------------------------------------------------------------------------------------- | | `environment` | `local` | Sets `SENTRY_ENVIRONMENT`. | | `sentry.enabled` | `false` | Turns on Sentry error reporting. | | `sentry.existingSecretName` | Empty | Secret in the release namespace that holds the Sentry DSN. Required when Sentry is enabled. | | `sentry.dsnKey` | `SENTRY_DSN` | Key in that Secret that holds the DSN. | Create the Secret with your secret-management system. For example, with a Secret named `acme-pig-sentry` that holds the DSN under `SENTRY_DSN`: sentry-values.yaml ```yaml observability: environment: production sentry: enabled: true existingSecretName: acme-pig-sentry dsnKey: SENTRY_DSN ``` The chart supplies `SENTRY_DSN`, `SENTRY_ENVIRONMENT`, and `SENTRY_RELEASE` to the analyzer and the migration Job. The worker reports errors to Sentry; Sentry performance tracing is off in the worker’s current setup. Note Opting into external telemetry adds another data destination. Logs and error reports can contain operational context. Apply your organization’s access and retention controls, and review the [data boundaries](/docs/governance/start-here/trust-and-data-model). ## Notes [Section titled “Notes”](#notes) ### Apply a configuration change [Section titled “Apply a configuration change”](#apply-a-configuration-change) Render the chart with your values and review the generated references and endpoints. Apply the change through the deployment’s owner: your Helm workflow or its GitOps controller. Don’t let a supervisor manage the same worker resources. [Manually manage the analyzer](/docs/governance/deploy-the-worker/manual-helm#install-the-analyzer) shows the render and install commands. After rollout, repeat the [complete-session verification](/docs/governance/deploy-the-worker/verify-your-deployment). Configuration validation and a healthy pod don’t prove that credentials can access the database, bucket, or model. # Model providers > Choose the analyzer model endpoint and authentication independently from your Kubernetes and storage provider. ## Overview [Section titled “Overview”](#overview) The trace analyzer sends each eligible session to a model endpoint in your provider account for analysis. Use this guide to choose that endpoint and set up its authentication before you write the `spec.analysis` settings for your deployment. For a manually managed installation, set the equivalent [worker chart values](/docs/governance/deploy-the-worker/manual-helm-reference#model-provider). Choose the provider independently from the cloud that hosts PIG. The analyzer can use the same supported provider as your agents. For example, an analyzer on GKE with Cloud Storage can use OpenAI or Azure OpenAI. Support for Anthropic’s Claude models is coming soon. ## Choose a supported endpoint [Section titled “Choose a supported endpoint”](#choose-a-supported-endpoint) The analyzer calls the provider’s Responses API. Set `provider`, `baseURL`, and `authentication` to one of these combinations: | Provider value | Responses API base URL | Authentication | | -------------- | --------------------------------------------------------------------------------------------------- | ------------------------ | | `openai` | `https://api.openai.com/v1` | `api_key` | | `azure_openai` | `https://RESOURCE.openai.azure.com/openai/v1` or `https://RESOURCE.services.ai.azure.com/openai/v1` | `api_key` | | `aws_bedrock` | `https://bedrock-mantle.REGION.api.aws/v1` or the same host with `/openai/v1` | `api_key` or `aws_sigv4` | Replace `RESOURCE` and `REGION` with your provider settings. Set `name` to a model available to your account through that endpoint. For Azure OpenAI, use the model deployment name. The analyzer accepts only these endpoint shapes. Each URL uses HTTPS, with no embedded credentials, explicit port, query parameters, or fragment. The analyzer rejects ordinary Bedrock Runtime URLs and other OpenAI-compatible endpoints. Vertex AI isn’t a supported provider, including for deployments on Google Cloud. ## Configure API key authentication [Section titled “Configure API key authentication”](#configure-api-key-authentication) Use API key authentication with any of the three providers. 1. Deliver the provider’s API key through your secret manager to a Kubernetes Secret in the deployment’s namespace. For example, use key `model-api-key` in Secret `pig-credentials`. 2. Set the model fields under `spec.analysis` and reference that Secret: ```yaml model: provider: openai authentication: api_key baseURL: https://api.openai.com/v1 name: REPLACE_MODEL_NAME apiKeySecretRef: name: pig-credentials key: model-api-key ``` ## Authenticate to Bedrock with AWS credentials [Section titled “Authenticate to Bedrock with AWS credentials”](#authenticate-to-bedrock-with-aws-credentials) Use AWS Signature Version 4 (SigV4) to authenticate to Bedrock with the analyzer’s AWS workload identity in place of an API key. 1. Grant the analyzer’s AWS identity access to the chosen Bedrock model. Storage permissions alone don’t authorize inference. 2. Set the model fields under `spec.analysis` with `provider: aws_bedrock` and `authentication: aws_sigv4`, and omit `apiKeySecretRef`: ```yaml model: provider: aws_bedrock authentication: aws_sigv4 baseURL: https://bedrock-mantle.REGION.api.aws/v1 name: REPLACE_MODEL_NAME ``` The analyzer signs each request with the AWS credentials available to its pod, such as its workload identity. It takes the signing region from the `baseURL` hostname. ## Plan access, quota, and data handling [Section titled “Plan access, quota, and data handling”](#plan-access-quota-and-data-handling) The analyzer sends session content and relevant instruction context to your selected model endpoint. Choose a region and provider policy that meet your requirements, as described in [Trust and data model](/docs/governance/start-here/trust-and-data-model). Reserve model quota for analysis alongside your agents’ traffic. Before you expand collection, monitor rate limits, latency, and analysis completion time. A larger cluster doesn’t add model quota. The model settings take effect together with the rest of `spec.analysis`, including the activation time and quiet window. After you set or change them, use a real session to [verify successful analysis](/docs/governance/deploy-the-worker/verify-your-deployment). ## See also [Section titled “See also”](#see-also) * [Deployment configuration](/docs/governance/deploy-the-worker/configuration-reference#analysis), for every `spec.analysis` field * [Compute and sizing](/docs/governance/deploy-the-worker/compute-and-sizing), for measuring model throttling during a pilot * [Networking and identity](/docs/governance/deploy-the-worker/networking-and-identity#allow-the-required-paths), for allowing the analyzer’s outbound connection to your model endpoint # Networking and identity > Configure trace upload ingress, private data access, outbound dependencies, and separate application identities. ## Overview [Section titled “Overview”](#overview) Enrolled hosts send traces to an HTTPS endpoint in your infrastructure. The analyzer then connects to your database, trace bucket, GitHub, model provider, and Promptless. Use this guide to set up network policy, ingress routing, and proxy limits for those connections, and to give each component its own identity. Return to it when uploads fail at a proxy or a cloud agent can’t reach the analyzer. Upload ingress **Enrolled hosts**Workstations, laptops, and agent hosts Session tracesthen **Trace analyzer**Your HTTPS endpoint · port 443 Connections initiated by the analyzer **Trace analyzer**Your cluster Trace objectsthen **Trace bucket**Your storage · HTTPS 443 Analysis statethen **PostgreSQL**Your database · TLS, usually TCP 5432 Findings, remediations, & analyzer statusthen **Promptless**Promptless cluster · HTTPS 443 Hub source & proposed updatesthen **Instruction Hub**GitHub repository and API · HTTPS 443 Trace digestthen **Model provider**Reuse the provider your agents use · HTTPS 443 Database and trace storage stay in your infrastructure. Arrows show who initiates each connection; requests and responses travel over that connection. The table below also covers release downloads and identity endpoints. ## Allow the required paths [Section titled “Allow the required paths”](#allow-the-required-paths) Allow these connections in your network policies and firewalls: | Source | Destination | Purpose | | ---------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------ | | Enrolled hosts | Analyzer ingress, HTTPS 443. | Enrollment, check-ins, and trace uploads. | | Analyzer and migration Jobs | Your PostgreSQL endpoint, normally TCP 5432. | Data access and schema migrations over TLS. | | Analyzer | Your trace storage endpoint, HTTPS 443. | Write raw uploads and read trace objects. | | Analyzer | Promptless endpoint, `https://api.gopromptless.ai` by default, HTTPS 443. | Policy, status, findings, and remediation synchronization. | | Analyzer | GitHub repositories and required GitHub API endpoints, HTTPS 443. | Read the selected instruction repositories and coordinate connected workflows. | | Analyzer | Your model endpoint, HTTPS 443. | Analyze sessions using your provider account. | | Supervisor and cluster nodes | Release metadata and artifact registries, HTTPS 443. | Resolve releases and pull images. | | Workloads using federation | Your cloud’s identity endpoints. | Obtain and refresh workload credentials. | Also allow cluster DNS and your platform’s required control-plane traffic. Apply network policies to migration Jobs as well as long-running pods. A private storage endpoint is reachable only with matching private DNS and routing. ## Route collector requests [Section titled “Route collector requests”](#route-collector-requests) The analyzer Service listens on port 8080. The bootstrap chart’s Ingress routes exactly these paths to it. Route the same paths through any HTTPS gateway or proxy in front of the Ingress: | Method | Exact path | Purpose | | ------ | ------------------------------- | ----------------------------------------------- | | GET | `/healthz` | Process health. | | GET | `/v0/host-enrollment/policy` | Collector policy for an enrolled host. | | POST | `/v0/host-enrollment/check-ins` | Host check-ins. | | POST | `/v0/cloud-enrollment/leases` | Cloud agent enrollment and lease renewal. | | POST | `/v0/traces/batches` | Trace uploads, with a `target` query parameter. | Keep other analyzer routes, such as `/readyz`, off the endpoint. Kubernetes Ingress routes by path only. If your policy requires method restrictions, apply them at a gateway. Enrolled hosts send their host credential in an `Authorization: Bearer` header. Cloud agents also send an `X-Promptless-Producer-Token` header. Forward both headers to the analyzer unchanged, and keep their values out of proxy logs. The analyzer checks these credentials itself. TLS and gateway access controls add a layer in front of that check. Hosts use the configured `https://` address without a path, and cloud agents reject redirects. Serve the collector routes over HTTPS at that hostname. If you expose plain HTTP, redirect it to HTTPS at the controller. ## Set request limits and timeouts [Section titled “Set request limits and timeouts”](#set-request-limits-and-timeouts) Every proxy and load balancer on the upload path must accept the collector’s requests: * **Request body.** Set each proxy’s limit to at least 10 MiB. The collector sends one compressed, base64-encoded source chunk per upload, with an encoded body of at most 10 MiB. The analyzer accepts encoded bodies up to twice its decoded trace-batch limit plus 64 KiB. With the default 256 MiB decoded limit, that’s about 512 MiB. The examples set `256m` for ingress-nginx, which sits between the 10 MiB minimum and the analyzer’s limit. AWS lists no request-body quota for Application Load Balancers with IP targets. * **Timeouts.** Keep read and idle timeouts at 10 seconds or more. The collector waits up to 10 seconds for each network read, and retries later from its local ledger when a request fails. The default 60-second proxy read timeout of ingress-nginx and the default 60-second idle timeout of an ALB both meet this. For ingress-nginx, set the limit in the bootstrap values: ```yaml ingress: annotations: nginx.ingress.kubernetes.io/proxy-body-size: "256m" ``` Use the equivalent setting for other controllers and for any gateway, CDN, or corporate proxy in front of them. A proxy with a limit below 10 MiB can reject uploads with HTTP 413 while `/healthz` still succeeds. ## Reach the analyzer from cloud agents [Section titled “Reach the analyzer from cloud agents”](#reach-the-analyzer-from-cloud-agents) A private endpoint works when every enrolled host can reach it, for example over your VPN. Cloud agents run in a provider’s sandbox and need an HTTPS endpoint reachable from that sandbox’s network. Claude Tag’s Agent Proxy blocks private IP ranges even when the destination hostname is allowed. A cluster Service or a VPN-only endpoint can’t serve Claude Tag. 1. For Claude Tag, expose the analyzer through a public HTTPS Ingress, such as an internet-facing ALB. 2. In the runner’s sandbox network policy, allow the exact analyzer hostname and the methods listed in [Route collector requests](#route-collector-requests). For Claude Tag, see [Claude Tag network access](https://claude.com/docs/claude-tag/admins/add-connections#restrict-by-path-or-method). 3. Get an authorized cloud enrollment credential from Promptless for the agent’s collector. Network access alone doesn’t enroll a cloud agent. 4. From the actual sandbox, verify the certificate, the health response, and a trace upload before you rely on collection. ## Separate identities by purpose [Section titled “Separate identities by purpose”](#separate-identities-by-purpose) Give each component its own credential or identity, scoped to one purpose: | Identity | Scope | | ----------------------------- | --------------------------------------------------------------------------------------------------------- | | Host enrollment credential | An individual enrolled host’s collection access. | | Deployment installation token | The analyzer installation’s connection to Promptless. | | Analyzer workload identity | Its configured trace objects and, if selected, authorized model access. | | PostgreSQL role | The dedicated PIG database and schema migrations. | | Instruction repository access | GitHub App tokens Promptless supplies for the selected instruction repositories, scoped to Contents read. | | Supervisor ServiceAccount | PIG application resources and its own updates within installed Kubernetes RBAC. | | Terraform execution identity | Reviewed cloud infrastructure changes made by your platform team. | Keep cloud management privileges with your Terraform workflow; the supervisor doesn’t need them. When the analyzer uses one workload identity for both storage and model access, grant each permission separately. Deliver application credentials through your secret manager, rotate them in place, and keep the Secret names that `PIGDeployment` references. Keep TLS certificate renewal in your existing certificate-management workflow. ## See also [Section titled “See also”](#see-also) * [Deploy the analyzer worker](/docs/governance/deploy-the-worker/deploy-the-analyzer-worker), for creating the collector Ingress and checking HTTPS * [Capture cloud agent traces](/docs/governance/get-started/capture-cloud-agent-traces), for enrolling cloud agents after the analyzer is reachable * [Object storage](/docs/governance/deploy-the-worker/object-storage) and [PostgreSQL](/docs/governance/deploy-the-worker/postgresql), for the data-access permissions behind the analyzer’s identities * [Observability](/docs/governance/deploy-the-worker/observability#symptom-a-host-cant-enroll-or-upload), for diagnosing hosts that can’t enroll or upload # Object storage > Configure native S3, Azure Blob Storage, or Google Cloud Storage for private trace objects and recoverable retention. ## Overview [Section titled “Overview”](#overview) The trace bucket holds raw uploads and canonical trace objects in your cloud account, and PostgreSQL stores their references and processing state. Use this guide before you deploy the analyzer to prepare private trace storage and scope the analyzer’s access to it. It also covers retention that keeps traces recoverable. Return to it before you change the storage location of an active deployment. Configure exactly one object-storage backend for each deployment. ## Choose a native backend [Section titled “Choose a native backend”](#choose-a-native-backend) Each platform’s native storage authenticates the analyzer through workload identity: | Platform | Storage | Workload authentication | | ------------ | ---------------------------------------------------- | ------------------------------------------------------------------- | | AWS | Amazon S3 bucket and prefix. | An IAM role bound to the analyzer’s Kubernetes ServiceAccount. | | Azure | Blob Storage account, private container, and prefix. | Microsoft Entra Workload ID bound to the analyzer’s ServiceAccount. | | Google Cloud | Cloud Storage bucket and prefix. | Workload Identity Federation for GKE. | The Terraform guides configure native storage in the same cloud as the cluster. Your analysis model is a separate choice; see [Model providers](/docs/governance/deploy-the-worker/model-providers). ## Configure the location [Section titled “Configure the location”](#configure-the-location) 1. Create private storage with public access disabled, encryption at rest, and HTTPS in transit. 2. Bind the storage data-access identity to the analyzer’s ServiceAccount, `pig-analyzer` in namespace `pig`. Keep storage credentials out of distributed host plugins. 3. Add one storage block under `spec.storage`, alongside `postgres`: Amazon S3 ```yaml s3: region: us-west-2 bucket: acme-pig-traces prefix: acme/traces ``` Azure Blob Storage ```yaml azureBlob: accountURL: https://acmepig.blob.core.windows.net container: traces prefix: acme/traces ``` Google Cloud Storage ```yaml gcs: bucket: acme-pig-traces prefix: acme/traces ``` ## Scope data access [Section titled “Scope data access”](#scope-data-access) The analyzer writes trace objects and reads them back. Scope its permissions to the deployment’s bucket or container and prefix where the provider supports it. Include the bucket metadata or listing permissions and the encryption-key access that your configuration requires. The cloud modules define the provider-specific grants; review them with the Terraform plan. Azure’s built-in Storage Blob Data Contributor role includes deletion. If your policy requires narrower access, use a custom role. See [Azure’s Blob data roles](https://learn.microsoft.com/en-us/azure/storage/blobs/assign-azure-role-data-access). Let the workload identity refresh its credentials, and don’t copy temporary tokens into Kubernetes Secrets. Application data access needs no permission to create buckets, resize databases, or change IAM. ## Set retention and recovery [Section titled “Set retention and recovery”](#set-retention-and-recovery) Set object retention, version recovery, and backup policies together with your PostgreSQL recovery policy. Retain an object while live rows, retained database backups, or a pending background write still reference it. An archive tier that requires restoration can prevent analysis from reading a trace. Changing the configured bucket, container, or prefix leaves existing objects where they are. Before you change it for an active deployment, plan a storage migration with Promptless. Preserve the raw and canonical objects that recovery and analysis need. During [deployment verification](/docs/governance/deploy-the-worker/verify-your-deployment), check one session’s recorded object location and confirm the object is readable. A successful upload request doesn’t prove durable storage. ## How the analyzer writes canonical objects [Section titled “How the analyzer writes canonical objects”](#how-the-analyzer-writes-canonical-objects) The analyzer writes each canonical trace object under the configured prefix, at a content-addressed key derived from the object’s contents. Newer content gets a new key, so a delayed upload never overwrites a newer canonical version. The analyzer records an uploaded object as the trace’s location only while it still matches the trace’s current content. Objects written by earlier releases stay readable at their original keys. The analyzer retries an interrupted or failed canonical write in the background, with a persisted backoff between attempts. A trace that stays pending or failed doesn’t hold back writes for other traces. Because keys depend on content, read the recorded object location during verification. Don’t derive a key from the session ID. To check storage access, the analyzer writes one small diagnostic object under `checks/` in the configured prefix at startup. Each later readiness check reads that object back. ## See also [Section titled “See also”](#see-also) * [Deployment configuration](/docs/governance/deploy-the-worker/configuration-reference#storage), for every `spec.storage` field * [PostgreSQL](/docs/governance/deploy-the-worker/postgresql#back-up-and-restore), for coordinating database backups with object retention * [Observability](/docs/governance/deploy-the-worker/observability#symptom-a-host-checks-in-but-its-traces-arent-stored), for traces that don’t reach storage # Observability and troubleshooting > Observe host uploads, durable trace storage, analysis, and hosted synchronization, and diagnose failures without losing trace data. Use this page to find the first PIG stage that stops making progress, and fix that stage without losing trace data. PIG runs as a flow: hosts upload sessions, the analyzer stores traces, analysis completes, and findings and status synchronize to the Promptless Dashboard. A healthy pod covers only part of that flow. Check the stages in order. The first stage without recent progress tells you which symptom to follow: | Stage | Evidence of progress | Investigate when | Start with | | ---------------------- | --------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | | Host collection | Recent successful collector status and host check-in. | An active pilot host stops checking in or uploading. | [A host can’t enroll or upload](#symptom-a-host-cant-enroll-or-upload) | | Durable storage | Recent `agent_traces.last_ingested_at`, a completed canonical object, and a readable object at the recorded location. | Storage errors appear, objects remain pending, or active hosts stop producing stored traces. | [Traces aren’t stored](#symptom-a-host-checks-in-but-its-traces-arent-stored) | | Analysis | `Trace analysis run succeeded` log entries, correlated by `trace_record_id` and `analysis_run_id`. | Failures repeat or eligible quiet sessions don’t complete. | [Analysis doesn’t complete](#symptom-traces-are-stored-but-analysis-doesnt-complete) | | Hosted synchronization | Deployment status and newly projected trace metadata or findings reach Promptless. | Local work completes but hosted state remains stale. | [The Dashboard is stale](#symptom-analysis-completes-but-the-dashboard-is-stale) | | Remediation | An outcome explaining a pull request, external owner, or missing evidence. | A finding has no visible progress after prerequisites are met. | [Remediation troubleshooting](/docs/governance/findings-and-remediation/remediate-findings#troubleshooting) | Set alert thresholds around your team’s working hours, expected trace volume, and quiet window. An idle host or a successful analysis with zero findings is normal. Establish a baseline with the [pilot-session checks](/docs/governance/deploy-the-worker/verify-your-deployment) before alerting. The analyzer writes structured JSON logs to container stdout, including the logs of its analysis processes. For retention or centralized search, forward them with your cluster’s log collector. To read recent logs for the deployment name used in the default Helm guide: ```bash kubectl --namespace pig get pods kubectl --namespace pig logs deployment/acme-analyzer --since=1h ``` Keep trace data while you recover Don’t clear host collection state, delete traces, or reset database tables to force a retry. A restart can rebuild the analyzer’s disposable repository mirror; keep the same registered deployment identity, PostgreSQL database, and trace prefix. ## Symptom: A host can’t enroll or upload [Section titled “Symptom: A host can’t enroll or upload”](#symptom-a-host-cant-enroll-or-upload) ### Cause: The host can’t reach or authenticate to the analyzer [Section titled “Cause: The host can’t reach or authenticate to the analyzer”](#cause-the-host-cant-reach-or-authenticate-to-the-analyzer) Enrollment and upload need the host credential, a registered hosted deployment, and a hostname that matches the TLS certificate. The host’s network must also reach the analyzer’s enrollment and upload routes. A passing `/healthz` check shows only that the health route is reachable. ### Solution: Check the host’s credential and network path [Section titled “Solution: Check the host’s credential and network path”](#solution-check-the-hosts-credential-and-network-path) 1. Check the host credential and the hosted deployment registration. 2. Confirm that the hostname matches the analyzer’s TLS certificate. 3. From the host’s network, confirm that enrollment and upload requests reach the analyzer. 4. Follow [host enrollment troubleshooting](/docs/governance/get-started/enroll-your-hosts#troubleshooting) for host-side checks. ## Symptom: A host checks in, but its traces aren’t stored [Section titled “Symptom: A host checks in, but its traces aren’t stored”](#symptom-a-host-checks-in-but-its-traces-arent-stored) ### Cause: The analyzer can’t write to PostgreSQL or object storage [Section titled “Cause: The analyzer can’t write to PostgreSQL or object storage”](#cause-the-analyzer-cant-write-to-postgresql-or-object-storage) The analyzer records each session in the `agent_traces` table and writes its canonical object to your object store. A database outage, or missing object-storage authorization, location, prefix, or encryption-key permission, leaves the object pending or failed. The analyzer retries a pending or failed canonical write in the background, with a persisted backoff capped at five minutes. A `write_failed` status that clears on its own needs no action. ### Solution: Restore storage access and confirm the backlog drains [Section titled “Solution: Restore storage access and confirm the backlog drains”](#solution-restore-storage-access-and-confirm-the-backlog-drains) 1. Find the session’s row in `agent_traces` and check its `trace_object_status` and `trace_object_last_error`. 2. Check PostgreSQL availability. 3. Check object-storage authorization, location, prefix, and encryption-key permissions. Keep the same bucket and database while you fix access. 4. Run `pig-trace-analyzer db-status` to see the number of pending objects and when the oldest was ingested. For how to run it, see the [worker maintenance commands](/docs/governance/deploy-the-worker/manual-helm#inspect-and-repair-worker-storage). 5. If the backlog grows, or stops draining after you restore access, contact Promptless support. ## Symptom: The analyzer pod isn’t ready or keeps restarting [Section titled “Symptom: The analyzer pod isn’t ready or keeps restarting”](#symptom-the-analyzer-pod-isnt-ready-or-keeps-restarting) ### Cause: A database or object-storage check fails [Section titled “Cause: A database or object-storage check fails”](#cause-a-database-or-object-storage-check-fails) The analyzer’s readiness endpoint, `/readyz`, gates upload and analysis traffic on recent database and object-storage checks. When a check fails, the analyzer becomes unready but stays live. The supervisor and the manual worker chart both set the analyzer’s Kubernetes readiness probe to `/readyz`. The Service and the collector Ingress then stop sending traffic to the pod until storage recovers. The collector Ingress exposes `/healthz` for load-balancer health checks; `/readyz` stays inside the cluster. ### Solution: Restore storage access [Section titled “Solution: Restore storage access”](#solution-restore-storage-access) 1. Run `kubectl --namespace pig get pods` and confirm that the analyzer pod is running but not ready. 2. Read the analyzer logs for the failing storage check. 3. Restore access as described in [A host checks in, but its traces aren’t stored](#symptom-a-host-checks-in-but-its-traces-arent-stored). ### Cause: The analyzer’s background tasks stopped [Section titled “Cause: The analyzer’s background tasks stopped”](#cause-the-analyzers-background-tasks-stopped) The liveness endpoint, `/healthz`, fails when the analyzer’s background tasks stop. It also fails when a storage check or canonical-object repair makes no progress for 180 seconds. Kubernetes then restarts the pod. ### Solution: Read the logs from before the restart [Section titled “Solution: Read the logs from before the restart”](#solution-read-the-logs-from-before-the-restart) 1. Inspect the previous container’s logs with `kubectl --namespace pig logs POD_NAME --previous`. 2. Send the relevant log lines to Promptless support. Leave out Secret contents and full session transcripts. ## Symptom: Traces are stored, but analysis doesn’t complete [Section titled “Symptom: Traces are stored, but analysis doesn’t complete”](#symptom-traces-are-stored-but-analysis-doesnt-complete) ### Cause: Analysis isn’t enabled, or the session isn’t eligible yet [Section titled “Cause: Analysis isn’t enabled, or the session isn’t eligible yet”](#cause-analysis-isnt-enabled-or-the-session-isnt-eligible-yet) The analyzer picks up a session only while analysis is enabled and after the session becomes eligible, for example once its quiet window passes. The repository and model settings must also be complete. ### Solution: Check the analysis configuration [Section titled “Solution: Check the analysis configuration”](#solution-check-the-analysis-configuration) 1. Confirm that analysis is enabled and that the session is eligible, for example that its quiet window has passed. 2. Confirm that the repository and model settings are complete. 3. Run `pig-trace-analyzer db-status` to see the number of queued analyses and when the oldest was queued. ### Cause: The analyzer can’t read the repository or call the model [Section titled “Cause: The analyzer can’t read the repository or call the model”](#cause-the-analyzer-cant-read-the-repository-or-call-the-model) Repository read access and model authorization are separate from object-storage access, and a working object store doesn’t establish either one. The worker retries transient failures during an analysis run. A run that reaches `failed` stays failed: an unchanged session revision doesn’t retry automatically after you fix the dependency. ### Solution: Fix the dependency and request re-analysis [Section titled “Solution: Fix the dependency and request re-analysis”](#solution-fix-the-dependency-and-request-re-analysis) 1. Find the run’s `Trace analysis run failed` log entry and read its `failure_category`. 2. Test repository read access and model authorization separately. 3. Fix the failing dependency. 4. Contact Promptless for supported re-analysis, with the run’s `analysis_run_id`. Keep the stored traces, and don’t run ad hoc backfill Jobs or edit analysis rows. ## Symptom: Analysis completes, but the Dashboard is stale [Section titled “Symptom: Analysis completes, but the Dashboard is stale”](#symptom-analysis-completes-but-the-dashboard-is-stale) ### Cause: The analyzer can’t synchronize with Promptless [Section titled “Cause: The analyzer can’t synchronize with Promptless”](#cause-the-analyzer-cant-synchronize-with-promptless) Synchronization needs outbound access to Promptless, a valid installation credential, and the registered configuration hash. Finding projection also needs a working hosted repository connection. ### Solution: Check the connection to Promptless [Section titled “Solution: Check the connection to Promptless”](#solution-check-the-connection-to-promptless) 1. Check outbound access from the analyzer to Promptless. 2. Check the installation credential. If you rotated it, confirm that the Secret contains the replacement and that the analyzer restarted after the change. 3. Check that the configuration hash matches the registered value. 4. Check the hosted repository connection. ### Cause: Promptless marked the analyzer stale [Section titled “Cause: Promptless marked the analyzer stale”](#cause-promptless-marked-the-analyzer-stale) Promptless marks a healthy analyzer stale when 15 minutes pass without a check-in. This threshold is fixed. An analyzer whose storage checks fail reports itself as stale when it checks in. A stale analyzer fails deployment verification and acceptance. ### Solution: Restore check-ins [Section titled “Solution: Restore check-ins”](#solution-restore-check-ins) 1. Confirm that the analyzer pod is ready. If it isn’t, follow [The analyzer pod isn’t ready or keeps restarting](#symptom-the-analyzer-pod-isnt-ready-or-keeps-restarting). 2. Follow [Check the connection to Promptless](#solution-check-the-connection-to-promptless). ### Cause: The run produced no findings [Section titled “Cause: The run produced no findings”](#cause-the-run-produced-no-findings) A run that completes with zero findings has nothing new to project, so no issue appears in the Dashboard. Check the run and deployment status before treating a missing issue as a failure. ## Symptom: An upgrade is blocked or fails [Section titled “Symptom: An upgrade is blocked or fails”](#symptom-an-upgrade-is-blocked-or-fails) ### Cause: The supervisor blocked or failed the release transition [Section titled “Cause: The supervisor blocked or failed the release transition”](#cause-the-supervisor-blocked-or-failed-the-release-transition) For deployments with automatic updates, the supervisor reports release and migration status on the `PIGDeployment`. A failed dependency check, permission check, or migration blocks the transition. ### Solution: Inspect the transition and fix the dependency [Section titled “Solution: Inspect the transition and fix the dependency”](#solution-inspect-the-transition-and-fix-the-dependency) 1. Inspect the current and target releases, conditions, and supervisor logs: ```bash kubectl describe pigdeployment acme --namespace pig kubectl logs deployment/pig-supervisor --namespace pig-system --since=1h kubectl get jobs --namespace pig ``` 2. Save the failed migration Job’s logs before retrying. 3. Resolve the reported dependency through its owner: Terraform for cloud resources, your secret manager for credentials, and PIG for application releases. 4. Read [updates and recovery](/docs/governance/deploy-the-worker/manage-updates-and-recovery#recover-from-a-blocked-or-failed-update) before choosing a rollback. ### Cause: The manual chart’s migration hook failed [Section titled “Cause: The manual chart’s migration hook failed”](#cause-the-manual-charts-migration-hook-failed) The manual worker chart runs schema migrations in a Helm hook Job. The chart removes a successful hook Job and replaces a failed one on the next attempt. ### Solution: Inspect the migration hook and release history [Section titled “Solution: Inspect the migration hook and release history”](#solution-inspect-the-migration-hook-and-release-history) 1. Inspect `job/pig-trace-analyzer-migrate` and its logs before retrying. 2. Review the release history with `helm history pig-trace-analyzer --namespace pig`. These names assume the release replacement is complete. For an existing installation, find its names with `helm list --namespace pig` and `kubectl get deployments,jobs --namespace pig`. Follow the [manual release replacement](/docs/governance/deploy-the-worker/manual-helm#replace-an-instruction-hub-worker-release) before installing under the new name. ## For more information [Section titled “For more information”](#for-more-information) * [Manage updates and recovery](/docs/governance/deploy-the-worker/manage-updates-and-recovery) covers the supervisor’s pause, blocked-upgrade, and recovery behavior. For Helm-managed releases, coordinate restoration and any compatible application rollback with Promptless. * Keep PostgreSQL backups and object-storage retention and version recovery under your organization’s recovery policy. Rehearse restoring them as a consistent set: restoring only the database or only the objects can leave records and content out of sync. * The [manual Helm reference](/docs/governance/deploy-the-worker/manual-helm-reference#datadog-tracing-values) lists the worker chart’s optional Datadog tracing and Sentry error-reporting values. These chart values aren’t `PIGDeployment` fields. * When you contact Promptless support, include the PIG release, the time window, and the analysis log identifiers `analysis_run_id`, `trace_record_id`, `analyzer_version`, and `repository_sha`. Each run’s final log entry also includes `successful_finding_write_count`, and a failed run’s entry includes `failure_category`. # Deploy trace analysis > Check the requirements for PIG trace analysis, choose an installation path, and register an analyzer to get the credential you install it with. ## Overview [Section titled “Overview”](#overview) The PIG trace analyzer runs in your infrastructure and analyzes agent sessions with your model provider. Session data stays in your PostgreSQL database and trace bucket. The Promptless Dashboard shows findings, remediations, analyzer status, and agent instruction health. Start here before you install anything. This page covers the requirements, the installation paths, and analyzer registration, which gives you the credential every installation path needs. After installation, the analyzer and its update controller, the supervisor, follow stable releases automatically. You can pause updates or pin a release. ## Check platform support [Section titled “Check platform support”](#check-platform-support) The current stable release, PIG 0.3.6, is published for AWS: an existing Amazon EKS cluster with Amazon RDS for PostgreSQL and Amazon S3. Its release record does not include live end-to-end acceptance on AWS, so complete [deployment verification](/docs/governance/deploy-the-worker/verify-your-deployment) before you rely on an installation. Azure with AKS and Google Cloud with GKE are experimental. Use them for evaluation. The 0.3.6 release requires: | Requirement | PIG 0.3.6 | | --------------- | --------------------------------------------------------------------------- | | Kubernetes | 1.30 or later. | | PostgreSQL | Major version 15, 16, 17, or 18, in a database dedicated to one deployment. | | Object storage | Exactly one of Amazon S3, Azure Blob Storage, or Google Cloud Storage. | | Database schema | Revision 5. | | Analyzer model | OpenAI, Azure OpenAI, or Amazon Bedrock through a Responses API endpoint. | ## Follow the installation path [Section titled “Follow the installation path”](#follow-the-installation-path) 1. Check the requirements in [Before you begin](#before-you-begin) and [register an analyzer](#register-an-analyzer). 2. Provision the database, trace bucket, workload identity, and network access with Terraform. Use the [AWS guide](/docs/governance/deploy-the-worker/deploy-on-aws). The [Azure](/docs/governance/deploy-the-worker/deploy-on-azure) and [Google Cloud](/docs/governance/deploy-the-worker/deploy-on-gcp) guides are experimental. Skip this step if you already have these resources. 3. [Install with Helm](/docs/governance/deploy-the-worker/deploy-the-analyzer-worker). The guide verifies the release, bootstraps the supervisor and collector Ingress, and creates the `PIGDeployment`. It ends with HTTPS checks, repository selection, and enabling analysis. 4. [Publish your Instruction Hub](/docs/governance/get-started/publish-and-install-plugins). Then [enable trace collection and enroll a pilot host](/docs/governance/get-started/enroll-your-hosts). 5. [Verify one session end to end](/docs/governance/deploy-the-worker/verify-your-deployment). Hand off operation with [updates and recovery](/docs/governance/deploy-the-worker/manage-updates-and-recovery). ## Choose an installation path [Section titled “Choose an installation path”](#choose-an-installation-path) [Kubernetes with Helm](/docs/governance/deploy-the-worker/deploy-the-analyzer-worker)Use an existing cluster, PostgreSQL database, and trace bucket. [AWS with Terraform](/docs/governance/deploy-the-worker/deploy-on-aws)Prepare RDS, S3, and workload identity for an existing EKS cluster. [Azure with Terraform (experimental)](/docs/governance/deploy-the-worker/deploy-on-azure)Prepare PostgreSQL, Blob Storage, and workload identity for an existing AKS cluster. [Google Cloud with Terraform (experimental)](/docs/governance/deploy-the-worker/deploy-on-gcp)Prepare Cloud SQL, Cloud Storage, and workload identity for an existing GKE cluster. Each cloud guide creates dedicated PIG infrastructure in your existing network, then continues with the same Helm installation. Choose [manual Helm management](/docs/governance/deploy-the-worker/manual-helm) instead when your team must schedule and apply every application upgrade itself. ## Before you begin [Section titled “Before you begin”](#before-you-begin) Every installation path needs these: | Requirement | What to prepare | | ------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Kubernetes | A cluster running Kubernetes 1.30 or later, `kubectl`, and Helm 3.8 or later. Permission to install namespaces, cluster-scoped RBAC, and the PIG custom resource definition. | | Compute | Capacity for one analyzer pod, the supervisor, and migration Jobs. Start with the [pilot sizing](/docs/governance/deploy-the-worker/compute-and-sizing). | | PostgreSQL | A dedicated PostgreSQL 15–18 database, schema-owner credentials, `sslmode=verify-full` TLS with its CA bundle, backups, and private connectivity from the analyzer and its Jobs. | | Trace bucket | Exactly one private S3 bucket, Azure Blob Storage container, or Google Cloud Storage bucket, with a dedicated prefix. | | Workload identity | A cloud identity for ServiceAccount `pig/pig-analyzer` that can read and write objects under that prefix, such as IAM roles for service accounts on EKS. | | HTTPS endpoint | A hostname, DNS record, certificate, and ingress controller reachable from every enrolled host and cloud runner. Claude Tag needs a public endpoint. Proxies must accept 10 MiB request bodies. | | Promptless registration | An organization admin account and an [analyzer credential](#register-an-analyzer) stored in your secret manager. | | Instruction repositories | GitHub repositories with a readable `main` branch, selected in PIG Settings and reachable through the connected GitHub App with Contents read access. | | Model access | A [supported Responses API endpoint](/docs/governance/deploy-the-worker/model-providers), a model available in your account, its authorization, and quota for analysis. | To have a coding agent check these requirements and recommend a path without changing anything, copy this prompt. [Set up PIG with a coding agent](/docs/governance/agent-setup-guide) covers the whole setup. Ask your agent: check deployment readiness ```text Check whether we are ready to deploy the PIG trace analyzer, and recommend an installation path. Follow https://promptless.ai/docs/governance/deploy-the-worker/plan-your-deployment.md and phase 1 of https://promptless.ai/docs/governance/agent-setup-guide.md Scope: read-only inspection. Do not create, change, or delete anything. Inputs (discover these before you ask me): - Cloud account and region: [for example, AWS account 123456789012, us-west-2] - Kubernetes context: [context name] - Instruction repositories: [GitHub repositories the analyzer should read] - Model provider: [OpenAI, Azure OpenAI, or AWS Bedrock] Report each "Before you begin" requirement as ready, missing, or unknown, with evidence. Recommend a supported path, say if it is experimental, and list the steps that need me or another admin. ``` Choose infrastructure regions that meet your data residency requirements. The model provider can run in a different cloud from your trace bucket. [Model providers](/docs/governance/deploy-the-worker/model-providers) lists the supported endpoints. ## Register an analyzer [Section titled “Register an analyzer”](#register-an-analyzer) Register the analyzer before you install it, so its credential is ready for the Kubernetes Secret. Registration creates the analyzer installation in Promptless. Workloads start in your cluster only when you install PIG. 1. As an organization admin, open the [Workers settings page](https://app.gopromptless.ai/pig/settings/workers) and select the organization that owns the analyzer. 2. On the **Add analyzer** card, enter an **Analyzer name**, such as `production-us-east-2`, and select **Add analyzer**. 3. In **Save analyzer credential**, select **Copy credential** and store the value in your secret manager. The credential is shown only once. 4. Select **Done**. The analyzer appears on the **Analyzers** card as **Awaiting connection** until it first checks in. During [installation](/docs/governance/deploy-the-worker/deploy-the-analyzer-worker#3-deliver-secrets-and-the-database-ca), you deliver the credential as key `install-token` of Secret `pig-credentials`. The analyzer uses the credential to discover its installation identity, and it connects to the Promptless hosted endpoint by default. After the analyzer checks in, an organization admin chooses the repositories it reads on the same Workers settings page, as described in [Select instruction repositories](/docs/governance/deploy-the-worker/deploy-the-analyzer-worker#7-select-instruction-repositories). ### Protect and rotate the credential [Section titled “Protect and rotate the credential”](#protect-and-rotate-the-credential) Keep the credential out of Git and chat. It grants access only to this analyzer installation, and all replicas of the installation share it. Prepare your database and model credentials separately. If you lose the credential, select **Rotate credential** on the same analyzer. Rotation revokes the previous credential immediately, so hosted access stops until you update your Secret and the analyzer restarts. The installation, its history, and enrolled hosts keep their identities, and you can rotate again if you lose the replacement. **Revoke credential** disables the credential and keeps the installation and its history. Set `spec.hosted.runtimeURL` only to connect to another Promptless environment, such as a dedicated deployment. The default is `https://api.gopromptless.ai`. This hosted endpoint is separate from the analyzer’s own HTTPS hostname, which you manage. ## Assign ownership [Section titled “Assign ownership”](#assign-ownership) | Owner | Maintains | | ------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------- | | Your platform team, using Terraform | Cloud databases and their capacity, trace storage, networking, IAM, encryption keys, backup and retention policies. | | Your Kubernetes configuration and secret manager | Namespaces, analyzer workload identity, desired `PIGDeployment` configuration, secret delivery, and certificates. | | PIG | Analyzer and supervisor application releases, generated workloads, and database schema migrations within the installed permissions. | Keep the one-time Helm bootstrap outside Terraform’s ongoing reconciliation. After bootstrap, PIG updates its own workloads. A second controller restoring the original chart would undo those updates. [GitOps ownership](/docs/governance/deploy-the-worker/gitops-ownership) explains the handoff. A release that needs more infrastructure capacity or access reports a blocked update. Your team reviews and applies the Terraform change; PIG resumes when its live checks and any required [release-specific confirmations](/docs/governance/deploy-the-worker/manage-updates-and-recovery#confirm-release-prerequisites) pass. PIG does not resize cloud databases or change IAM and backup policies. ## Plan for production [Section titled “Plan for production”](#plan-for-production) Before expanding beyond a pilot, measure [compute and capacity](/docs/governance/deploy-the-worker/compute-and-sizing), configure coordinated [database](/docs/governance/deploy-the-worker/postgresql) and [object-storage](/docs/governance/deploy-the-worker/object-storage) recovery, and confirm [network access](/docs/governance/deploy-the-worker/networking-and-identity). Finish installation by [verifying a complete session](/docs/governance/deploy-the-worker/verify-your-deployment). A ready pod or successful health check alone does not verify trace analysis. ## See also [Section titled “See also”](#see-also) * [Trust and data model](/docs/governance/start-here/trust-and-data-model), for what stays in your infrastructure and what reaches Promptless * [Set up PIG with a coding agent](/docs/governance/agent-setup-guide), to hand the whole setup to an agent in phases * [Set up your Instruction Hub](/docs/governance/get-started/set-up-your-instruction-hub), if you have not created the hub the analyzer reads * [Updates and recovery](/docs/governance/deploy-the-worker/manage-updates-and-recovery), for pause and pin controls after installation # PostgreSQL > Prepare private PostgreSQL connectivity, schema permissions, TLS, and recovery for trace analysis. ## Overview [Section titled “Overview”](#overview) PIG uses PostgreSQL for trace metadata, ingestion progress, analysis runs, and synchronization state. Before you install the analyzer, use this guide to prepare a dedicated database for each deployment. It covers connectivity, TLS verification, schema and data-access roles, and coordinated backups. Keep the database across application upgrades. ## Check the database requirements [Section titled “Check the database requirements”](#check-the-database-requirements) The database must meet these requirements: * PostgreSQL 15, 16, 17, or 18. The release’s preflight check blocks a database outside this range. * A role that can run the PIG schema migrations: ownership of the PIG tables and `CREATE` on the schema. The serving analyzer needs data access on those tables: `SELECT`, `INSERT`, `UPDATE`, `DELETE`, and temporary tables. One role can hold both, or you can [separate the migration credential](#separate-the-migration-credential) to keep schema ownership apart from data access. Neither role needs cloud administrator permissions. * Private network access from the analyzer and migration Jobs, normally on TCP 5432. * TLS, with the database certificate validated against your provider’s CA bundle. Every analyzer and migration connection requires `sslmode=verify-full`. * Automated backups, recovery retention, availability, and deletion protection, configured through your infrastructure workflow. The default configuration retains all trace data. The cloud guides use Amazon RDS for PostgreSQL, Azure Database for PostgreSQL Flexible Server, and Google Cloud SQL for PostgreSQL. A workload identity for the trace bucket doesn’t also authenticate the analyzer to the database. ## Deliver the connection string [Section titled “Deliver the connection string”](#deliver-the-connection-string) 1. Use your secret manager to deliver the connection string as key `postgres-dsn` in Secret `pig-credentials`, in namespace `pig`. URL-encode reserved characters in the username and password. For a database with a hostname-verifiable certificate: ```text postgresql://pig_analyzer:REPLACE_PASSWORD@REPLACE_DATABASE_HOST:5432/pig?sslmode=verify-full&sslrootcert=/etc/pig/postgres-ca/ca.pem ``` The analyzer rejects any `sslmode` other than `verify-full`, so fix certificate errors at the certificate. Cloud SQL CA modes and server certificates differ; follow the [Cloud SQL certificate guidance](https://cloud.google.com/sql/docs/postgres/authorize-ssl) for your instance. 2. Create ConfigMap `pig-postgres-ca` with key `ca.pem` from your provider’s CA bundle. 3. Reference the Secret and ConfigMap in `PIGDeployment`: ```yaml storage: postgres: dsnSecretRef: name: pig-credentials key: postgres-dsn caConfigMapRef: name: pig-postgres-ca key: ca.pem ``` The CA mounts at `/etc/pig/postgres-ca/ca.pem` in both the analyzer and migration containers. Omit `caConfigMapRef` only when the container’s trust store already validates the certificate and the DSN doesn’t reference this file. ## Plan migrations and connection capacity [Section titled “Plan migrations and connection capacity”](#plan-migrations-and-connection-capacity) PIG applies schema migrations as a distinct step of each application release, before the analyzer serves traffic. At startup, the analyzer checks the schema revision and serves only when it matches. The analyzer never changes the schema itself. Keep migration access available during upgrades. Each analyzer replica opens a connection pool of up to eight connections, and the migration step opens its own connections. Reserve database connections for the analyzer replicas, the migration step, and your own operational access. Terraform owns the database instance’s version, size, networking, and backups. PIG owns its application schema. Don’t manage PIG tables or run competing schema migrations from Terraform. ## Separate the migration credential [Section titled “Separate the migration credential”](#separate-the-migration-credential) Schema migrations and normal analyzer traffic can use one database role or two. With two roles, the serving analyzer can’t alter the schema: * The migration role owns the PIG tables and holds `CREATE` on the schema. The migration step uses it to apply schema changes. * The application role holds data access on those tables: `SELECT`, `INSERT`, `UPDATE`, `DELETE`, and temporary tables. The serving analyzer uses it. When you supply only the application credential, that single role runs migrations and serves traffic. To set up two roles for a new database named `pig`: 1. As a database administrator, connect to the `pig` database and create the roles and their grants: ```sql CREATE ROLE pig_migrator LOGIN; CREATE ROLE pig_app LOGIN; GRANT CONNECT ON DATABASE pig TO pig_migrator; GRANT CONNECT, TEMPORARY ON DATABASE pig TO pig_app; REVOKE CREATE ON SCHEMA public FROM PUBLIC; GRANT USAGE, CREATE ON SCHEMA public TO pig_migrator; GRANT USAGE ON SCHEMA public TO pig_app; ``` Migrations grant the application role data access to the PIG tables. They don’t create roles or transfer schema ownership. Keep the migration role out of the application role’s memberships, and keep the application role’s `TEMPORARY` permission. 2. Set both roles’ login passwords through your secret-management process. 3. Deliver the two connection strings: `pig-credentials/postgres-dsn` for `pig_app` and `pig-migration/postgres-dsn` for `pig_migrator`. Both use `sslmode=verify-full` and the same host and database. PIG confirms that both reach the same database before it migrates. 4. Pass the migration credential the way your installation path expects: * For a manual installation, set the [`secrets.migrationPostgresDsnKey` chart value](/docs/governance/deploy-the-worker/manual-helm-reference#secret-references). * For a supervisor-managed installation, set [`spec.storage.postgres.migrationDsnSecretRef`](/docs/governance/deploy-the-worker/configuration-reference#storage). The migration credential reaches only the preflight and migration Jobs. The serving analyzer never receives it. ## Back up and restore [Section titled “Back up and restore”](#back-up-and-restore) Set your recovery objectives before you choose backup retention. Record a recovery point that keeps database object references consistent with their trace objects. Set object lifecycle rules to retain the data your database backups need. Before a destructive migration, provide [recovery confirmation for the exact target release](/docs/governance/deploy-the-worker/manage-updates-and-recovery#confirm-recovery-before-a-destructive-migration). Your backup workflow creates the recovery points and supplies their identifiers; PIG doesn’t create cloud backups. Rehearse restoration with an isolated database and trace location. Never run two active deployments against one database during recovery. Before you restore production or change application versions, follow [Manage updates and recovery](/docs/governance/deploy-the-worker/manage-updates-and-recovery). ## See also [Section titled “See also”](#see-also) * [Deployment configuration](/docs/governance/deploy-the-worker/configuration-reference#storage), for the `spec.storage.postgres` fields * [Manual Helm reference](/docs/governance/deploy-the-worker/manual-helm-reference#secret-references), for the worker chart’s Secret references * [Object storage](/docs/governance/deploy-the-worker/object-storage#set-retention-and-recovery), for object retention that matches your database backups # Verify your deployment > Confirm host enrollment, durable trace objects, successful analysis, and visible dashboard status for one real session. ## Overview [Section titled “Overview”](#overview) Verify one real agent session from collection through completed analysis before you expand your rollout. A ready pod or a passing health check shows that the workloads started. This end-to-end check shows that the analyzer stored the session, analyzed it, and reported the result to Promptless. An analysis with zero findings is a successful result. Run it after a new installation, and again after a storage migration, recovery, or material identity change. Keep the session ID and analyzer installation name so you can correlate every check. **Host enrolled**Confirm the host and deployment identity then **Trace stored**Read the exact object using the analyzer identity`trace_object_status = written` then **Analysis completed**Find a succeeded run for that session`status = succeeded` then **Dashboard current**Confirm the session and analyzer status are visible Follow the same session through all four checks. Ready pods and upload acknowledgments alone do not prove success. A succeeded analysis can have zero findings. To have a coding agent run these checks for one session, copy this prompt. [Set up PIG with a coding agent](/docs/governance/agent-setup-guide) covers the whole setup. Ask your agent: verify one session end to end ```text Verify our PIG deployment end to end for one real session. Follow https://promptless.ai/docs/governance/deploy-the-worker/verify-your-deployment.md and phase 7 of https://promptless.ai/docs/governance/agent-setup-guide.md Scope: read-only checks of this session only. Do not copy session content into your report. Inputs (discover these before you ask me): - Kubernetes context, namespace, and deployment name: [for example, pig and acme] - Analyzer hostname: [for example, traces.acme.example] - Session: [agent source (claude, claude-desktop, codex, or cursor) and session ID, or "tell me when to run a test session"] Report each check (enrolled host, stored and readable trace, succeeded analysis of the current revision, Dashboard acknowledgement, and the Acceptance condition) as passed, failed, or not run, with its evidence. For a failure, name the first failing stage and the next action for me. ``` ## 1. Check the deployment and endpoint [Section titled “1. Check the deployment and endpoint”](#1-check-the-deployment-and-endpoint) For a supervisor-managed installation, check the deployment conditions, the analyzer logs, and the HTTPS endpoint: ```bash kubectl get pigdeployment acme --namespace pig \ -o jsonpath='{range .status.conditions[*]}{.type}={.status} {.reason}{"\n"}{end}' kubectl logs deployment/acme-analyzer --namespace pig --tail=100 curl --fail --silent --show-error https://traces.acme.example/healthz ``` Run the HTTPS check from the network your enrolled hosts use. Confirm the certificate, hostname, and routing, as in [Point DNS at the Ingress](/docs/governance/deploy-the-worker/deploy-the-analyzer-worker#6-point-dns-at-the-ingress-and-check-https). `Ready=True` means the workloads and dependency checks passed. It passes while analysis is off, so also confirm that instruction repositories are selected and [trace analysis is enabled](/docs/governance/deploy-the-worker/deploy-the-analyzer-worker#8-enable-trace-analysis). Deployment verification and acceptance require a healthy analyzer whose last check-in reached Promptless less than 15 minutes ago. A running pod can still appear stale if its check-ins stop reaching Promptless. The `Acceptance` condition reports `AwaitingCanonicalAcceptance` until the checks below pass for a real session. The supervisor then sets `Acceptance=True` with reason `CanonicalSuccess` for the installed release and configuration. Use this condition together with the per-session checks; neither replaces the other. For the manual worker chart, use `deployment/pig-trace-analyzer` in log commands and `helm status pig-trace-analyzer --namespace pig` for release status. These names assume the release replacement is complete. For an existing installation, find its names with `helm list --namespace pig` and `kubectl get deployments,jobs --namespace pig`. Follow the [manual release replacement](/docs/governance/deploy-the-worker/manual-helm#replace-an-instruction-hub-worker-release) before installing under the new name. ## 2. Enroll a host and create a session [Section titled “2. Enroll a host and create a session”](#2-enroll-a-host-and-create-a-session) 1. Follow [Enroll your hosts](/docs/governance/get-started/enroll-your-hosts) on one supported test device. Confirm that its analyzer address is `https://traces.acme.example`. 2. Start a new agent session after the configured analysis activation time. Use an installed Instruction Hub skill in a selected instruction repository and complete the session normally. 3. Confirm the collector uploaded the session with the runtime’s `collect` command, as in [Verify collection](/docs/governance/get-started/enroll-your-hosts). Record the agent source and exact session ID. Use `claude`, `claude-desktop`, `codex`, or `cursor` as the source in the queries below. Replace `REPLACE_SESSION_ID` with the recorded ID. ## 3. Verify the enrolled host and durable storage [Section titled “3. Verify the enrolled host and durable storage”](#3-verify-the-enrolled-host-and-durable-storage) Connect to the dedicated PIG database with a read-only session. Query only the pilot session: ```sql BEGIN READ ONLY; SELECT t.id AS trace_record_id, t.source, t.session_id, h.host_label, h.last_seen_at, t.trace_object_status, t.trace_object_uri, t.trace_object_last_error, t.last_ingested_at FROM agent_traces AS t JOIN agent_hosts AS h ON h.id = t.host_id WHERE t.source = 'codex' AND t.session_id = 'REPLACE_SESSION_ID'; COMMIT; ``` Confirm that `host_label` names the enrolled test device, `trace_object_status = 'written'`, and the ingestion timestamp matches your pilot. `trace_object_uri` records the canonical object location for every supported storage backend. Use the recorded canonical object location to inspect that exact object with your cloud’s storage tools. Do not infer its name from the session ID or select a nearby object by timestamp. Inspect the raw-object references too if upload reconstruction is under investigation. * S3 Confirm the recorded bucket and key with your normal S3 inspection tools. The recorded URI begins with `s3://`. * Azure Blob Storage Confirm the recorded account, container, and blob name in Azure Storage Explorer or your approved Blob inspection tool. * Google Cloud Storage Confirm the recorded bucket and object name in Cloud Storage or your approved storage inspection tool. The object must be readable through the analyzer’s workload identity. An administrator’s successful read alone does not verify the workload’s access. The supervisor’s acceptance check reads the object with that identity and compares it with the recorded revision. Do not copy session content into tickets or installation logs. ## 4. Confirm completed analysis [Section titled “4. Confirm completed analysis”](#4-confirm-completed-analysis) Allow the configured quiet window to pass after session activity stops. In analyzer logs, find `Trace analysis run succeeded` for the pilot’s `trace_record_id`. Keep its `analysis_run_id` and `repository_sha`. Then check that the run analyzed the current revision of the trace and that Promptless acknowledged it: ```sql BEGIN READ ONLY; SELECT r.id, r.status, r.error_category, r.repository_sha, r.successful_finding_write_count, r.completed_at, r.source_fingerprint = t.analysis_source_sha256 AS current_revision, t.projection_published_revision >= t.projection_revision AS hosted_acknowledged FROM agent_analysis_runs AS r JOIN agent_traces AS t ON t.id = r.agent_trace_id WHERE t.source = 'codex' AND t.session_id = 'REPLACE_SESSION_ID' ORDER BY r.queued_at DESC LIMIT 5; COMMIT; ``` At least one run must have `status = 'succeeded'` and `current_revision = true`, and `hosted_acknowledged` must be `true`. Zero in `successful_finding_write_count` is valid. A queued or failed run, or a succeeded run for an earlier revision, has not passed this check. ## 5. Check the Promptless Dashboard [Section titled “5. Check the Promptless Dashboard”](#5-check-the-promptless-dashboard) Open the [Traces page](https://app.gopromptless.ai/pig/traces) and search for the pilot’s session ID. Confirm that its card shows the enrolled host, your analyzer under **Worker**, and **Succeeded** for analysis. A run with no findings shows **No linked findings** and **Analysis completed with 0 successful finding writes.** If the run produced findings, open their evidence and check the host and installed instruction attribution. Confirm the connected hub’s issue workflow receives the finding where configured. On the [Workers settings page](https://app.gopromptless.ai/pig/settings/workers), confirm the analyzer shows **Healthy** with a recent **Last checked in** time. A local success with stale Dashboard status indicates a synchronization problem. Follow [observability and troubleshooting](/docs/governance/deploy-the-worker/observability) from the first failing stage. ## Record acceptance [Section titled “Record acceptance”](#record-acceptance) Keep the analyzer installation name, release, agent source, session ID, trace record ID, analysis run ID, and verification time in your deployment runbook. Record the outcome of all four checks for the same session: enrolled host, readable durable storage, succeeded analysis of the current revision, and Dashboard acknowledgement. Also record when the `Acceptance` condition became `True`. ## See also [Section titled “See also”](#see-also) * [Observability](/docs/governance/deploy-the-worker/observability), to troubleshoot from the first failing stage and monitor the deployment * [Updates and recovery](/docs/governance/deploy-the-worker/manage-updates-and-recovery), for pause and pin controls, backups, and recovery * [Understand findings](/docs/governance/findings-and-remediation/understand-findings), to review what the analysis produced * [Enroll your hosts](/docs/governance/get-started/enroll-your-hosts), to expand collection beyond the pilot host # Remediate findings > Turn supported findings into focused instruction changes, review remediation pull requests, and verify the next published release. ## Overview [Section titled “Overview”](#overview) Remediation turns a supported finding into a proposed response. When the Instruction Hub owns the cause, a remediation agent can prepare a focused pull request. Your team decides whether to merge it under the repository’s review and CI rules. This guide covers reviewing that pull request, publishing the fix, and measuring what it recovered. For Acme, a missing product-version check might need a small change to the documentation skill. An expired deployment credential belongs to an infrastructure owner, so it stays out of the skill. **Promptless Dashboard**Review the finding and evidence Finding & evidencethen **Remediation agent**Investigate and prepare a focused change in your cluster Pull requestthen **Instruction Hub**Your team reviews and merges; CI publishes Published pluginsthen **AI agent**Refresh plugins and verify the correction in a new session This path applies when the hub owns the problem. Other outcomes can record an external owner, request a decision, or explain why no change is proposed. ## Before you start [Section titled “Before you start”](#before-you-start) You need: * A high-confidence [finding](/docs/governance/findings-and-remediation/understand-findings). * A connected GitHub Instruction Hub. Remediation works only with GitHub repositories. Publishing plugins from GitLab is a separate toolchain capability. * **Propose Remediations** enabled in PIG Settings for the finding’s destination repository, which is the instruction repository chosen for its GitHub issue. * Working model access for the analyzer, and the repository connection Promptless needs to issue remediation credentials. * Someone authorized to review proposed changes. ## How remediation chooses a response [Section titled “How remediation chooses a response”](#how-remediation-chooses-a-response) The remediation agent reads the finding and its evidence, then inspects the relevant hub assets in an isolated checkout. It determines whether the hub can address the supported cause. | Outcome | What happens next | | ----------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | | A narrow hub bug has one clear correction | The agent prepares the focused change and checks it. | | The hub can address the problem, but the choice changes policy or capability | The workflow can ask for a decision in Slack before editing. Review the options and their tradeoffs. | | A tool, permission, credential, or instruction outside the hub owns the cause | The agent updates the finding notes with the external input and responsible owner. It does not invent a hub fix. | | The cause remains uncertain | The outcome explains the missing evidence and no pull request opens. | The agent receives a repository-scoped GitHub credential for the remediation task and uses the configured model. Isolation separates the checkout and the task’s execution. The task still uses model credentials and can read session evidence. ## Review a proposed change [Section titled “Review a proposed change”](#review-a-proposed-change) For a hub change, the agent works on a dedicated branch and runs relevant checks. It then opens a pull request against `main` in the finding’s destination repository. The workflow records the pull request against the finding. Follow repeated evidence and retried attempts through that recorded history, as part of the same fix. Review the pull request in this order: 1. **Match the change to the finding.** Confirm the proposed behavior addresses the observed failure and stays within the hub’s ownership. 2. **Check the scope.** Prefer a focused correction, simplification, or removal over an unrelated expansion of instructions. 3. **Exercise a representative task.** For Acme’s documentation example, try both the affected product version and a version that previously worked. 4. **Review validation results.** Require the hub’s validation and build checks, plus any repository-specific CI or evaluation you maintain. 5. **Approve and merge through your normal controls.** CODEOWNERS, required reviews, and branch protection remain yours to configure. A recorded pull request proves that a proposal exists. It doesn’t prove that the change fixes every affected session. PIG has no automatic behavior evaluation and doesn’t merge the proposal for you. Your team’s review and checks decide whether it merges. ## Publish and verify adoption [Section titled “Publish and verify adoption”](#publish-and-verify-adoption) After merge, use the hub’s [publish workflow](/docs/governance/get-started/publish-and-install-plugins) to release the updated plugin artifacts. A merged source change and a published release are separate checkpoints. Confirm that the release completed before you ask users to update. Refresh the plugin through the supported agent’s installation or update flow. Confirm the expected plugin version on a pilot host, then run a new representative session. For enrolled hosts, check collection and subsequent analysis as well. Adoption across the team depends on hosts refreshing their installed plugins. A successful release doesn’t mean every machine has the fix. Preserve the finding and release links so reviewers can relate later evidence to the version users actually ran. ## Measure what a fix recovered [Section titled “Measure what a fix recovered”](#measure-what-a-fix-recovered) Use the Instruction Hub in the [Promptless Dashboard](https://app.gopromptless.ai/pig/remediations) to follow proposed fixes and check whether a merged fix reduced wasted agent time and tokens. Two pages in its sidebar cover this: * **Fixes** lists every proposed fix and its pull request, whatever its status. * **Impact** lists each fix whose pull request has merged, newest first. Each row shows the pull request, the Instruction Hub, and when it merged. Select a fix’s title to open it on the **Fixes** page. PIG compares the 30 days before a fix merged with the 30 days after. When both windows have closed and each contains analyzed sessions, the fix shows the agent time and tokens it recovered per analyzed session. While the post-merge window is open, the fix is marked as collecting data. If either window closed without analyzed sessions, the fix is marked as needing more data. The windows group sessions by when the analyzer observed them. Sessions from hosts that haven’t installed the updated plugin yet count toward the post-merge window, so slow adoption lowers the measured recovery. ## Troubleshooting [Section titled “Troubleshooting”](#troubleshooting) | Situation | Next action | | ------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | | The finding is high confidence but has no pull request | Read its outcome and notes. It may need an external owner, a decision, or more ownership evidence. | | The workflow is waiting for a decision | Have the appropriate owner choose the intended behavior. Approve a policy change only when the owner wants it. | | Repository access fails | Ask the operator to check the hosted repository connection and remediation credential path. The analyzer’s clone token is a separate credential. | | CI rejects the proposal | Review the failure and update the branch through the normal repository workflow. Do not bypass required checks. | | The source change merged but users see old behavior | Confirm publication, the installed plugin version, and whether a conflicting local instruction still applies. | | The problem recurs after update | Compare new evidence with the release and installed version before concluding the fix failed or opening a duplicate change. | ## See also [Section titled “See also”](#see-also) * [Understand findings](/docs/governance/findings-and-remediation/understand-findings), to read a finding’s evidence and decide who owns it * [Publish and install plugins](/docs/governance/get-started/publish-and-install-plugins), to release the merged fix and refresh installed plugins * [Observability and troubleshooting](/docs/governance/deploy-the-worker/observability), to monitor continued analysis # Understand findings > Read instruction-governance findings, distinguish severity from confidence, and decide who owns the next action. A finding describes an instruction problem supported by evidence from real agent sessions. It helps your team decide what to change, why the change matters, and who should own it. For example, Acme’s documentation skill might tell an agent to verify every example but omit how to choose the correct product version. A finding can connect repeated incorrect examples to that missing guidance. A failed API request caused by an expired credential may instead belong to the team that manages the credential. Findings appear after an operator has [verified completed analysis](/docs/governance/deploy-the-worker/verify-your-deployment). To work with one, you need access to your connected Instruction Hub. You also need the finding’s GitHub issue or its page in the Promptless Dashboard. ## Use cases [Section titled “Use cases”](#use-cases) * A finding is high severity but low confidence, and you must decide whether to act now. [Read the evidence before choosing a fix](#read-the-evidence-before-choosing-a-fix) explains what each field measures. * A finding waits for a repository before Promptless opens its GitHub issue. [Follow the finding into your repository](#follow-the-finding-into-your-repository) explains how Promptless picks a destination and when an administrator chooses one. * A finding points at a failure the hub doesn’t own, such as an expired credential. [Decide the next action](#decide-the-next-action) helps you route it to the right owner. * An analysis run completes with zero findings. That is a valid result, and [Troubleshooting](#troubleshooting) lists what to confirm. ## Read the evidence before choosing a fix [Section titled “Read the evidence before choosing a fix”](#read-the-evidence-before-choosing-a-fix) Start with the summary, impact, and cited occurrences. Check that the described behavior happened and that the instruction failure explains it. A finding carries these fields: | Field | What it tells you | How to use it | | --------------------------------------------- | -------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | | Severity: `low`, `medium`, `high`, `critical` | How serious the observed problem is. | Prioritize the effect on users and your systems. | | Confidence: `low` or `high` | How strongly the evidence supports the finding. | Separate a suspected problem from one supported well enough for remediation. | | Instruction failure | The gap, conflict, or misleading guidance behind the behavior. | Locate the instruction that needs attention, or question whether the hub owns the cause. | | Evidence | Cited occurrences and a summary of what happened. | Compare the claim with the session details. | | Notes | Additional context, uncertainty, or an external owner. | Check whether action belongs outside the hub. | Severity and confidence answer different questions. A high-severity finding can still have low confidence and need more evidence. Later analysis can add occurrences to an existing finding and promote its confidence when the evidence supports that change. The analyzer cites evidence from a readable session digest. A `digest_range` identifies a location in that digest. It is unrelated to the cryptographic hashes that verify stored traces. ## Follow the finding into your repository [Section titled “Follow the finding into your repository”](#follow-the-finding-into-your-repository) PIG analyzes every instruction repository your organization selects in PIG Settings. Each finding records the instruction source it came from: the repository and the exact commit the analyzer read. The finding lists these sources under **Instruction sources**, each linked to that commit. The analyzer sends finding updates to Promptless. Promptless creates or updates a GitHub issue for the finding in its destination repository. The issue carries the finding’s title, impact, instruction failure, severity, confidence, and evidence. A destination repository must have **Create Repo Issues** enabled in PIG Settings. Promptless creates the issue automatically when the finding’s recorded sources resolve to one selected repository that has Create Repo Issues enabled. A finding needs a destination first in either of these cases: * Its sources span more than one selected repository. * It records no source, and your organization has more than one repository selected. Removing an instruction repository in PIG Settings stops future analysis and issue automation for that source. Findings already recorded against it keep their instruction sources, issues, and pull requests. As the analyzer processes more sessions, recurring evidence can update an existing finding and its issue. Use the finding identity and the linked issue to follow that history. Creating the issue is a separate step from analysis, so a completed run alone doesn’t prove that GitHub access works. Finding text and evidence summaries can include session details. Make sure the destination repository’s access matches your intended audience, as described in [Trust and data model](/docs/governance/start-here/trust-and-data-model). ### Choose a destination repository [Section titled “Choose a destination repository”](#choose-a-destination-repository) An organization administrator sets the destination once per finding, while the finding is open: 1. On the **Findings** page of the Promptless Dashboard, open the finding. 2. Select **Instruction sources and fix destination**. 3. Select a repository from the list. The list shows only repositories that have Create Repo Issues enabled. 4. Select **Use repository**. Promptless then creates the issue, and any proposed fix, in that repository. ## Decide the next action [Section titled “Decide the next action”](#decide-the-next-action) 1. **Confirm the observed problem.** Read the impact and evidence, including enough surrounding context to avoid correcting intentional behavior. 2. **Identify the owner.** Shared hub instructions, a repository-local instruction, a tool bug, and a missing permission have different owners. 3. **Check for an existing response.** Read the finding notes, linked pull request, and current hub instructions before proposing a duplicate fix. 4. **Review the remediation outcome.** High-confidence findings can enter the [remediation workflow](/docs/governance/findings-and-remediation/remediate-findings). That workflow may propose a hub change, ask for a policy decision, or identify an external action. The expected outcome is a clear owner and a justified next action. Not every finding needs a new instruction or a pull request. ## Troubleshooting [Section titled “Troubleshooting”](#troubleshooting) | Situation | What to check | | ---------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | The run succeeded, but no finding appeared | Zero findings is valid. Confirm the run belongs to the session you intended to analyze. | | A local finding has no GitHub issue | Ask the operator to check hosted synchronization and the repository connection. | | The finding asks you to select a repository for its GitHub issue | Its recorded sources map to more than one selected repository, or to none. An organization administrator opens the finding and, under **Instruction sources**, selects a repository that has Create Repo Issues enabled. | | Evidence seems inconsistent with the current hub | Compare the analyzed repository revision with the current instructions and the session’s installed plugin version. | | No remediation pull request opened | Check confidence, ownership notes, pending decisions, repository access, and the remediation outcome. | | Similar issues appear to overlap | Compare their failure mechanism and evidence before treating them as duplicates; different symptoms can have one cause, and similar symptoms can have different causes. | ## Related resources [Section titled “Related resources”](#related-resources) * [Remediate findings](/docs/governance/findings-and-remediation/remediate-findings), to review and ship a proposed fix * [Trust and data model](/docs/governance/start-here/trust-and-data-model), for who can see finding text and evidence * [Verify your deployment](/docs/governance/deploy-the-worker/verify-your-deployment), to confirm that analysis completed for a session # Capture traces from cloud agents > Create a cloud integration grant so Claude Code or Codex executions in cloud sandboxes, such as Claude Tag, enroll themselves and upload traces to your analyzer. ## Overview [Section titled “Overview”](#overview) Cloud agents run in short-lived sandboxes where no one can approve host enrollment in a browser. To analyze their sessions, an organization admin creates a cloud integration grant. Each execution then uses the grant to enroll itself and upload its native Claude Code or Codex traces to your analyzer. Use this setup for Claude Tag or for any cloud runner that can supply a secret to its sandbox. Traces from cloud executions appear in the trace feed with the integration that captured them. Trace bytes go only to your analyzer and your storage. Promptless holds the grant and execution metadata. For agents on people’s own machines, use [host enrollment](/docs/governance/get-started/enroll-your-hosts). ## Before you start [Section titled “Before you start”](#before-you-start) You need: * An analyzer that runs PIG 0.3.5 or later and is registered on the **Workers** settings page. To update a 0.3.4 installation, see [Upgrade a 0.3.4 installation to 0.3.5 or later](/docs/governance/deploy-the-worker/manage-updates-and-recovery#upgrade-a-034-installation-to-035-or-later). * An HTTPS address for the analyzer that the runner’s sandbox can reach, with no redirects. The bootstrap chart’s Ingress already routes the collector paths. If another gateway or proxy sits in front of it, [route the same paths](/docs/governance/deploy-the-worker/networking-and-identity#route-collector-requests). A cloud execution calls these three: * `POST /v0/cloud-enrollment/leases` * `GET /v0/host-enrollment/policy` * `POST /v0/traces/batches` The policy and upload requests carry a `target` query parameter, so allow it on those paths. * For Claude Tag, a public address. Tag’s Agent Proxy blocks private IP ranges even for allowed hosts, so a cluster Service or VPN-only endpoint can’t serve Tag. See [Reach the analyzer from cloud agents](/docs/governance/deploy-the-worker/networking-and-identity#reach-the-analyzer-from-cloud-agents). * The native source enabled in the analyzer’s host enrollment policy. Claude Code and Codex are enabled by default. Cloud uploads follow the same policy as enrolled hosts, and a grant can’t turn on a disabled source. * An organization admin account in Promptless. * For Claude Code, the `pig` CLI from the [toolchain setup](/docs/governance/get-started/set-up-your-instruction-hub) to build the capture plugin. * A POSIX sandbox with Python 3.9 or later available as `python3`. Note Cloud capture uploads the same session content as host enrollment, including prompts, responses, tool calls, and files present in the session. Review the [data boundaries](/docs/governance/start-here/trust-and-data-model) before you enable it. ## Set up cloud capture [Section titled “Set up cloud capture”](#set-up-cloud-capture) 1. **Create a grant** In the PIG sidebar, open **Settings → Cloud integrations**. Select the analyzer’s **Installation**, then fill in **Create grant**: | Field | What to enter | | ----------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | | **Integration name** | A name you recognize in the trace feed, such as `Engineering Tag`. | | **Provider** | `claude_tag` for Claude Tag. For another runner, a lowercase identifier of your choice, such as `ci_runner`. | | **Native source** | **Claude Code** or **Codex**, matching the transcripts the agent writes. | | **Expires at** | When the grant stops working, in your local time, up to 365 days ahead. | | **Execution limit** | Total executions the grant can enroll over its lifetime, from 1 to 100,000. Expired and revoked executions count toward the limit. | | **Execution lease (seconds)** | How long one enrollment stays valid between renewals, from 60 to 3,600. Collectors renew their lease while the grant is active. | Select **Create grant**. 2. **Save the token** The dialog shows the grant’s token once. The token starts with `plicg_`. Select **Copy token** and store it in your provider’s secret store before you select **Done**. Promptless keeps only a hash of the token and can’t show it again. Keep the token out of Git, the capture plugin, command-line arguments, and chat. If you lose it, revoke the grant and create a replacement. The dialog also shows the **Integration ID** and setup steps for this grant. To reopen them later without the token, select **Setup** on the grant’s row. 3. **Give the sandbox the token** How the collector receives the token depends on the provider: * **Claude Tag (`claude_tag`).** Add a [custom connector](https://claude.com/docs/claude-tag/admins/connections/custom) with the Bearer credential type and the token as its credential. Allow only your analyzer’s HTTPS host, and [restrict the credential](https://claude.com/docs/claude-tag/admins/add-connections#restrict-by-path-or-method) to the three collector paths and their methods. Tag’s Agent Proxy adds the `Authorization` header to the collector’s requests. Don’t also set a grant variable in the sandbox, or the collector stops with an error. * **Other runners.** In the runner’s secret settings, set exactly one of `PROMPTLESS_CLOUD_GRANT`, which holds the token, or `PROMPTLESS_CLOUD_GRANT_FILE`, which holds the path to a file that contains it. 4. **Install the collector** For Claude Code, build the capture plugin with the grant’s provider and Integration ID. Use `--transport proxy` for Claude Tag and `--transport secret` for other runners: ```bash pig cloud-bundle \ --worker-url https://traces.acme.example \ --provider claude_tag \ --integration-id YOUR_INTEGRATION_ID \ --transport proxy \ --output pig-cloud-capture.zip ``` Install `pig-cloud-capture.zip` as a plugin in the cloud runner. The ZIP contains the collector and its hooks, and no credentials. The plugin runs the collector on `SessionStart`, `UserPromptSubmit`, `Stop`, `SubagentStop`, and `SessionEnd`. Each run uploads the execution’s root transcript and its subagent transcripts. For Codex, or a runner that can’t install a Claude plugin, unzip the same bundle into the sandbox and run its collector directly. Replace the bundle’s `cloud-capture.json` with your values. The file takes exactly these five keys: cloud-capture.json ```json { "worker_url": "https://traces.acme.example", "provider": "ci_runner", "target": "codex", "transport": "secret", "integration_id": "YOUR_INTEGRATION_ID" } ``` Then have the runner call the collector from the unzipped directory before the sandbox exits. Pass the session ID, the path to the root `.jsonl` transcript, and the hook event as JSON on standard input: ```bash printf '%s\n' '{"session_id":"job-123","transcript_path":"/workspace/session.jsonl","hook_event_name":"Stop"}' | python3 runtime/promptless-host-runtime cloud-collect --config cloud-capture.json ``` The command waits about 30 seconds for the upload to finish, then prints its status. For Codex, the collector reads only the transcript file you pass. 5. **Verify capture** Run a short, non-sensitive task in the cloud runner. Then open the trace feed and set **Cloud integration** to your grant. A grant appears in that filter after it captures its first trace. Expand the trace to check its **Cloud provider**, **Integration**, and **Cloud execution** ID. Before you rely on capture for a provider, confirm the whole path: * A new execution enrolls under your grant. * Its main and subagent records arrive in full. * After you revoke the grant, later uploads fail. For Claude Tag, also confirm that your connector passes the collector’s `X-Promptless-Producer-Token` header through to the analyzer. Claude Tag capture hasn’t yet completed an end-to-end acceptance run, so this check is still open. ## How executions enroll [Section titled “How executions enroll”](#how-executions-enroll) Each execution enrolls on its own. Before its first upload, the collector creates a private execution credential and registers the execution with the analyzer. Promptless assigns it a lease and a host identity, `cloud-`. Policy and upload requests carry both the grant token and the execution credential, and the analyzer checks both with Promptless on each of those requests. The collector keeps its state under `~/.promptless/cloud/` in the sandbox, separate from any host enrollment on the same machine. When a hook runs again in the same execution, the collector renews the lease and keeps the same host identity. When an upload fails, the next hook retries it. Capture lasts only as long as the sandbox. If the sandbox shuts down before its last hook finishes, the records it didn’t upload are lost. Where your provider supports a teardown phase, keep the sandbox running until the final collector run finishes. The collector writes `status.json` next to its state with `drained` after a complete run, or `partial` when a transcript couldn’t be read or an upload failed. ## Find cloud traces [Section titled “Find cloud traces”](#find-cloud-traces) In the trace feed, use the **Cloud provider** and **Cloud integration** filters to show traces from one provider or one grant. A cloud trace is titled with its provider and integration name, such as **Claude Tag · Engineering Tag**. Its details show the provider, the integration, and the execution ID the runner supplied. Traces from enrolled hosts have no cloud details. The trace’s native source stays the agent that wrote it. A Claude Tag trace has the source `claude` and the provider `claude_tag`. The provider and integration record which grant captured the trace. They don’t prove that a particular provider ran it. ## Revoke access [Section titled “Revoke access”](#revoke-access) On **Settings → Cloud integrations**, each grant shows its status: **Active**, **Expired**, or **Revoked**. To stop a grant, select **Revoke** on its row and confirm. Revocation applies to the grant and all its executions on their next request. Traces already captured stay in the feed, along with their integration details. Revoking a grant is permanent. To restore capture, create a new grant and rebuild the plugin or update the runner’s configuration with the new Integration ID and token. ## Troubleshooting [Section titled “Troubleshooting”](#troubleshooting) | Symptom | What to check | | ------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | The page asks you to sign in with an admin account | Only organization admins can manage cloud grants. | | The page asks you to register an analyzer | Add an analyzer on the **Workers** settings page first. | | Grant creation couldn’t be confirmed | Select **Refresh grants**. Revoke any new grant whose token you didn’t save, then create a replacement. | | The collector can’t reach the analyzer | Allow the analyzer’s HTTPS host and the three collector paths in the sandbox’s network policy. The endpoint must answer without redirects. Claude Tag can’t reach a private address. | | Requests fail with `401` | Check that the grant is **Active** and that the token reaches the collector one way only. A duplicate `Authorization` or `X-Promptless-Producer-Token` header fails. In secret mode, set only one of the two grant variables. | | Requests fail with `503` | The analyzer couldn’t confirm the credentials or its host enrollment policy with Promptless, or isn’t ready. Check the analyzer’s connection to Promptless and its health, then retry. | | Enrollment returns `403` | The grant is expired, revoked, or used up, or it belongs to another installation or native source. Create a new grant. The host enrollment policy can also block the native source. Enable it there. | | Enrollment returns `409` | The execution’s local state changed, was copied from another execution, or the execution was revoked. Restore that execution’s own `~/.promptless/cloud/` state, or start a new execution. | | `status.json` reports `blocked` with reason `bootstrap_upgrade_required` | The host enrollment policy requires a newer collector than the bundle contains, so the collector uploads nothing. Update the `pig` CLI from the toolchain setup, rebuild the bundle, and reinstall it in the runner. | ## See also [Section titled “See also”](#see-also) * [Networking and identity](/docs/governance/deploy-the-worker/networking-and-identity#reach-the-analyzer-from-cloud-agents), to expose the collector paths to cloud runners * [The pig CLI reference](/docs/governance/reference/pig-cli-reference#pig-cloud-bundle), for every `pig cloud-bundle` option * [Trust and data model](/docs/governance/start-here/trust-and-data-model), for what cloud capture uploads and where it goes * [Understand findings](/docs/governance/findings-and-remediation/understand-findings), to act on the analysis of captured sessions # Enroll your hosts > Enable optional trace collection, authorize a Claude, Codex, or Cursor host, and verify that its sessions reach your trace analyzer. ## Overview [Section titled “Overview”](#overview) Host enrollment connects a person’s agent installation to your trace analyzer. Instructions work without enrollment. Enable collection when you want PIG to analyze how those instructions perform in real sessions. This guide continues the Acme example. It covers Claude Code, Codex, and Cursor, and the Claude collector can also discover Claude Desktop traces on the same machine. Gemini plugins don’t collect native traces. For agents that run in cloud sandboxes, such as Claude Tag, see [Capture traces from cloud agents](/docs/governance/get-started/capture-cloud-agent-traces). 1\. Authorize the host **Host runtime**Start enrollment from the installed plugin Enrollment requestthen **Promptless enrollment**An organization member approves in the browser Host credentialthen **Host runtime**Retrieve and store the credential locally 2\. Upload to your analyzer **Host trace collector**Authenticate with the host credential Session tracesthen **Trace analyzer**Receive uploads at your HTTPS endpoint Promptless authorizes enrollment. The host sends session traces directly to your analyzer using its own host credential. ## Before you start [Section titled “Before you start”](#before-you-start) You need: * An [installed analyzer](/docs/governance/deploy-the-worker/deploy-the-analyzer-worker) that passes its HTTPS checks from the host’s network. For Cursor, the analyzer must run release 0.3.3 or later. * The analyzer’s HTTPS address, without a path. Your operator provides it and confirms the analyzer’s organization. This guide uses `https://traces.acme.example`. * A published hub, with the `pig` plugin installed on the host. * Python 3.9 or later on the host. The generated launchers for Claude and Cursor also need Node.js, and the generated Codex hooks need a POSIX shell. * Network access from the host to the analyzer address and to the Promptless enrollment service. * A signed-in Promptless organization member to approve enrollment. Note Trace collection can include prompts, responses, tool calls, and code or documents present in sessions. On first discovery, the collector can upload existing session history as well as sessions started after enrollment. Review the [data boundaries](/docs/governance/start-here/trust-and-data-model), and agree on the pilot hosts and repositories before you enable collection. ## Enable collection and enroll a host [Section titled “Enable collection and enroll a host”](#enable-collection-and-enroll-a-host) To hand these steps to a coding agent on the pilot host, copy this prompt. You still approve the host in your browser. [Set up PIG with a coding agent](/docs/governance/agent-setup-guide) covers the whole setup. Ask your agent: enable collection and enroll this host ```text Enable PIG trace collection for our Instruction Hub and enroll this host. Follow https://promptless.ai/docs/governance/get-started/enroll-your-hosts.md and phase 6 of https://promptless.ai/docs/governance/agent-setup-guide.md Collection is approved for this host only. Inputs (discover these before you ask me): - Hub repository: [hub repository URL or local path] - Analyzer address: [for example, https://traces.acme.example] - Host family: [the --host value from the guide, for example codex or claude] Show me the hub.yaml diff and wait for my approval before you publish it. Tell me when to approve the host in my browser. Report the runtime status and anything still blocked. ``` 1. **Enable collection in the hub** In `hub.yaml`, change the existing setting: hub.yaml ```yaml trace_ingestion: enabled: true ``` Run `pig verify`, commit the change, and publish it through your hub’s CI. Then [update the installed plugins](/docs/governance/get-started/publish-and-install-plugins#keep-installations-current) on your pilot host. The compiler adds the host runtime and collection hooks only to the `pig` plugin for Claude, Codex, and Cursor. Other plugins, such as `docs` and `dev`, don’t receive them. The setting doesn’t provision an analyzer. When the setting is omitted or `false`, the build includes no runtime files or collection hooks. For Cursor, confirm that the [Workers settings page](https://app.gopromptless.ai/pig/settings/workers) shows **Cursor ingestion supported** for your analyzer. Analyzer releases 0.3.3 and later report Cursor support when they check in, and the default enrollment policy then includes Cursor. If a later check-in stops reporting support, the policy drops Cursor again. 2. **Set the analyzer address** Before the first session with collection enabled, set this variable in the environment that launches the agent: ```bash export PROMPTLESS_WORKER_BASE_URL="https://traces.acme.example" ``` For a terminal agent, launch it from that shell. For a desktop agent, set the variable through your organization’s desktop environment configuration, then restart the application. A variable exported in a separate terminal may not reach an application that is already running. The runtime has a built-in Promptless worker address. Without this variable, the host doesn’t use your analyzer. 3. **Approve the host** Start a new Claude Code, Codex, or Cursor session. The generated startup hook initializes the local runtime and starts enrollment when needed. In the browser, sign in to the correct Promptless organization and approve the host. Any signed-in organization member can approve, including members who aren’t administrators. The approval page is at `https://app.gopromptless.ai/pig/enroll`, separate from the analyzer URL. The runtime uses a local `127.0.0.1` callback during approval and retrieves a one-time host credential afterward. Enrollment records the approving user. If you need to start enrollment manually, find the installed `pig` plugin directory in your agent’s plugin installation details and substitute its absolute path: ```bash PIG_PLUGIN_ROOT="/absolute/path/to/installed/pig" python3 "$PIG_PLUGIN_ROOT/runtime/promptless-host-runtime" enroll --host codex ``` Use `--host claude` for Claude Code, `--host cursor` for Cursor, or `--host claude-desktop` for Claude Desktop. The runtime is bundled inside the plugin, so run it from the plugin directory. If the `runtime` directory is missing, check that you published and installed the release with trace ingestion enabled. The command opens the approval page in the host’s browser. If it prints `"status": "setup_pending"`, approve the host in the browser and run the same command again. The host must be able to open a local browser and receive the `127.0.0.1` callback. Approval links expire after 15 minutes. The host stores its `plihost_` credential locally with owner-only access. This credential is separate from the analyzer’s deployment credential. Do not copy host credentials between machines or into your hub. 4. **Verify collection and analysis** After manual enrollment, start a new session so the startup hook fetches the host’s configuration. To run that initialization yourself and check the result: ```bash python3 "$PIG_PLUGIN_ROOT/runtime/promptless-host-runtime" ensure --host codex python3 "$PIG_PLUGIN_ROOT/runtime/promptless-host-runtime" status --host codex ``` `status` reports local enrollment state only. Use the same host family as in enrollment. Run a small, non-sensitive task in a repository selected for analysis, then finish the session. To confirm the upload from the host, run a collection in the foreground: ```bash python3 "$PIG_PLUGIN_ROOT/runtime/promptless-host-runtime" collect --host codex --include-active ``` It prints `"status": "trace_upload_complete"` with a nonzero `batch_count` when the analyzer acknowledged the session’s data. `trace_upload_partial` means some data remains for a later retry. The operator should then verify all three outcomes: 1. **Enrollment.** The analyzer recognizes the host and accepts its check-in. 2. **Stored trace.** The native session has reached the analyzer and its raw data is stored in the configured trace bucket. 3. **Completed analysis.** After the configured quiet period, the session has a completed analysis run for the expected repository. A completed run can produce no findings, and that is a valid result. Pod readiness, enrollment, and an upload acknowledgment alone don’t show that analysis completed. Use the operator’s [deployment verification steps](/docs/governance/deploy-the-worker/verify-your-deployment) to inspect the server-side result. ## How collection continues [Section titled “How collection continues”](#how-collection-continues) Generated hooks run collection in the background at session startup and at supported terminal events, with no scheduled task. Claude Code also attempts to collect Claude Desktop traces it can discover locally. Installing a plugin only in another application doesn’t create a separate Claude Desktop collection schedule. The runtime tracks source progress locally and uploads incremental trace data. A connectivity problem can delay collection without interrupting the agent task. Keep the native session files and runtime state intact while troubleshooting so the collector can retry. See [Trace object and sources](/docs/governance/reference/trace-object-and-sources) for source details. ## Cursor collection [Section titled “Cursor collection”](#cursor-collection) With trace collection enabled, the Cursor `pig` plugin registers four lifecycle hooks: `sessionStart`, `stop`, `sessionEnd`, and `subagentStop`. Each hook has a 250 ms timeout and starts a background collector. The collector reads Cursor’s saved conversation data from its local session database in read-only mode. To avoid delaying Cursor’s own writes, it skips a database that does not use SQLite’s write-ahead log (WAL) mode. The collector covers Agent sessions and subagents in the Cursor desktop app. It does not collect from the Cursor CLI, Cloud Agents, or Tab completions, and it does not export binary images. If the analyzer or enrollment fails, Cursor keeps working, and a later hook retries the pending collection. Cursor’s hooks run the launcher with the `PATH` the Cursor app sees, so Node.js and Python must be on that `PATH`. The launcher looks for `python3` or `python`, and on Windows for `py -3` first. If it cannot find Python 3.9 or later, it records the problem in `~/.promptless/instruction-hub/cursor-launcher-status.json`. To enroll or collect manually, first set `CURSOR_PLUGIN_ROOT` to the installed plugin directory. The runtime reads the installed release from it. Then run the commands in steps 3 and 4 with `--host cursor`: ```bash export CURSOR_PLUGIN_ROOT="$PIG_PLUGIN_ROOT" python3 "$CURSOR_PLUGIN_ROOT/runtime/promptless-host-runtime" collect --host cursor --include-active ``` On Windows, set `$env:CURSOR_PLUGIN_ROOT` in PowerShell and run the runtime with `py -3` in place of `python3`. The adapter’s data format was checked against Cursor desktop 3.19.19, and synthetic tests cover the collector and analyzer contracts. End-to-end capture from the Cursor desktop app on macOS, Linux, and Windows has not yet been qualified. Enroll one pilot host per operating system and confirm a stored trace and a completed analysis for it before you enable Cursor collection more widely. ## Troubleshooting [Section titled “Troubleshooting”](#troubleshooting) | Symptom | What to check | | ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Nothing happens at session startup | Confirm the enabled release of `pig` is installed, hooks are allowed, and Python is available; Claude’s launcher also needs Node.js | | The wrong deployment appears during approval | Set `PROMPTLESS_WORKER_BASE_URL` in the agent’s process environment and restart it before retrying | | The browser cannot finish approval | Sign in to the correct organization; check access to Promptless, the analyzer, and the local loopback callback | | Host is enrolled but no trace appears | Complete a supported native session, run `collect --include-active`, and check its status, the diagnostics log, the collection policy, and access to the analyzer | | A Cursor host is enrolled but no trace appears | Confirm the Workers settings page shows **Cursor ingestion supported**, Node.js and Python are on the `PATH` Cursor sees, and `cursor-launcher-status.json` reports no missing Python | | Trace is stored but analysis does not complete | Ask the operator to check the selected instruction repositories, quiet-period eligibility, model configuration, and the analysis queue | | A collected repository is not analyzed | The current analyzer binds GitHub repositories by repository ID; GitLab publishing support does not imply GitLab analysis support | Local diagnostics are stored under `~/.promptless/instruction-hub/`, including `last-bootstrap-status.json` and `host-runtime-diagnostics.jsonl`. Review them for the failed stage before sharing a redacted excerpt with your operator. Enrollment state contains credentials and should not be pasted into a ticket. To clear local enrollment for one host family before approving it again: ```bash python3 "$PIG_PLUGIN_ROOT/runtime/promptless-host-runtime" reset --host codex --yes ``` Reset is a troubleshooting action. It doesn’t remove server-side traces or revoke the host for your organization. ## Stop or expand collection [Section titled “Stop or expand collection”](#stop-or-expand-collection) To remove generated collection hooks, set `trace_ingestion.enabled: false`, publish, and update the installed plugins on affected hosts. Hosts still running an older enabled release keep its hooks until they update. This configuration change doesn’t delete existing traces. After the pilot meets all three verification outcomes, enroll the next agreed group of hosts. ## See also [Section titled “See also”](#see-also) * [Understand findings](/docs/governance/findings-and-remediation/understand-findings), to turn analysis into reviewed instruction improvements * [Verify your deployment](/docs/governance/deploy-the-worker/verify-your-deployment), for the operator’s server-side checks * [Trace object and sources](/docs/governance/reference/trace-object-and-sources), for how each native source is read and uploaded * [Capture traces from cloud agents](/docs/governance/get-started/capture-cloud-agent-traces), for agents that run in cloud sandboxes # Migrate existing instructions > Consolidate scattered skills and agent instructions into a shared hub without losing repository-specific guidance. ## Overview [Section titled “Overview”](#overview) Move instructions into a hub when several people or repositories need the same guidance. A useful first migration gives one team a small, reviewed set of shared procedures and keeps the local context each project needs in that project. This guide builds your first hub from scattered instructions. You take an inventory, import one source at a time, and migrate what the scanner skips. Then you pilot the result and retire the duplicates. To hand the inventory and import to a coding agent, copy this prompt. [Set up PIG with a coding agent](/docs/governance/agent-setup-guide) covers the whole setup. Ask your agent: migrate existing instructions ```text Migrate our existing agent instructions into our Instruction Hub. Follow https://promptless.ai/docs/governance/get-started/migrate-existing-instructions.md and phase 2 of https://promptless.ai/docs/governance/agent-setup-guide.md Outcome: an inventory table of our instructions with a proposed decision for each, then the approved instructions imported on a migration branch that passes `pig validate` and `pig verify`. Scope: read the source repositories without editing them. Change only the hub. Inputs (discover these before you ask me): - Hub: [hub repository URL or local path] - Sources: [repositories or directories that hold our current instructions] Show me the inventory and wait for my decisions before you import anything. Flag conflicting instructions and possible secrets. Report what you imported, what needs manual migration, and what you left in place. ``` ## Before you start [Section titled “Before you start”](#before-you-start) You need: * A hub scaffold from [Set up your Instruction Hub](/docs/governance/get-started/set-up-your-instruction-hub), checked out locally with the `pig` toolchain installed. * Read access to each repository or directory that holds your current instructions. * The owners of those instructions, to decide what to share and to reconcile conflicts. Keep the original instructions in place until you have tested the published plugins. ## Inventory what you already use [Section titled “Inventory what you already use”](#inventory-what-you-already-use) List the source, owner, audience, and intended destination of each instruction. Include repository files, personal skills that teammates share, MCP configurations, and instructions copied into team documents. | Existing instruction | Decision | Destination in the Acme example | | ---------------------------------------------------- | ----------------------------------------- | ------------------------------------------------- | | Documentation review procedure used by several teams | Share and assign an owner | `assets/skills/review-docs/SKILL.md` in `docs` | | Bug investigation procedure | Share | `assets/skills/investigate-bug/SKILL.md` in `dev` | | Commands for testing one service | Keep local | That service’s `AGENTS.md` or equivalent | | Product terminology used across documentation | Share as reference material | The relevant skill’s `references/` directory | | A developer’s private API token in an MCP config | Replace with host-provided authentication | Reviewed config in `assets/mcps/` | | Two conflicting versions of the same procedure | Reconcile with their owners | One canonical skill | When only some paragraphs of a repository instruction file apply broadly, extract the reusable task into the hub. Keep paths, build commands, and local conventions in the project. ## Import one source at a time [Section titled “Import one source at a time”](#import-one-source-at-a-time) From your hub checkout, create a migration branch, scan one source, and review what changed: ```bash git switch -c migrate-instructions pig scan --hub . --source /path/to/acme-docs git status --short git diff ``` `pig scan` leaves the source repository unchanged. It handles each kind of source file as follows: | Source | What happens | | ------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------- | | Direct skill directories under `.agents/skills/`, `.claude/skills/`, and `.cursor/skills/` | Copies each skill and its supporting files into `assets/skills/` | | First root file found in `.mcp.json`, `mcp.json`, `mcp.yaml`, `mcp.yml` order | Copies it as the `repo-mcp` asset | | `.cursor/mcp.json` | Imports a Cursor-specific asset when it is not already covered by the root MCP configuration | | Root `AGENTS.md`, `CLAUDE.md`, and `GEMINI.md` | Records an inventory in `hub.repo-context.json`; does not copy or convert their instructions | | Other skill locations, rules, commands, agents, and hooks | Requires manual migration | `pig scan` adds each imported asset to `plugins/pig.yaml`. Move a reference into `plugins/docs.yaml` or `plugins/dev.yaml` when the instructions belong to that audience. Leave shared assets in `pig`, or include the same asset in several plugins. Caution Scan replaces an existing skill with the same generated ID, and MCP imports use fixed IDs such as `repo-mcp`. It also replaces the repository-context inventory with the latest scan. Review and commit each source separately; scanning several repositories at once can overwrite earlier imports. Before scanning another repository, give conflicting assets distinct IDs and update their plugin references. Skill IDs come from their directory names, normalized to lowercase letters, digits, and hyphens. To compare same-named skills, scan the second repository into a separate temporary hub. Copy only the reviewed result into the main migration branch. Use `git status` to find new files and `git diff` to see changes to tracked files. Inspect new skill directories and MCP configurations directly. Record the source repository names in your migration notes, because `hub.repo-context.json` holds only the most recent scan’s inventory. ## Migrate instructions the scanner does not import [Section titled “Migrate instructions the scanner does not import”](#migrate-instructions-the-scanner-does-not-import) For a skill stored under a different host directory, copy its complete directory into `assets/skills//`, keeping `SKILL.md` and any relative references together. Replace machine-specific paths and commands with instructions that the intended audience can use. Add `skill:` to the appropriate plugin. For a shared passage in `AGENTS.md` or `CLAUDE.md`, write a focused skill with a description that says when it applies. Keep the local instructions in the original repository file. The [setup guide](/docs/governance/get-started/set-up-your-instruction-hub) shows a starting format in its skill-authoring step. Rules, commands, agents, and hooks need explicit target support metadata. For example, a Cursor rule in `assets/rules/docs-style.mdc` can use this adjacent `docs-style.asset.yaml` file: ```yaml support: cursor: mode: native ``` Add `rule:docs-style` to its plugin. This declaration distributes the native rule to Cursor only. For guidance that must apply across agents, use a portable skill. Review [support modes](/docs/governance/reference/supported-agents#asset-support) before translating host-specific behavior. Review scripts before sharing them and replace embedded credentials with the host’s supported authentication mechanism. Check that supporting files contain no private material outside the intended audience. The toolchain rejects symlinks; copy the actual reviewed files instead. ## Validate and pilot the migration [Section titled “Validate and pilot the migration”](#validate-and-pilot-the-migration) Check the migrated hub: ```bash pig validate --hub . pig verify --hub . ``` Review the changes with the instruction owners, then [publish the hub and install the plugins](/docs/governance/get-started/publish-and-install-plugins) on a pilot machine. Try a representative task in each agent your team uses: 1. Confirm the intended plugin is installed and its skill is available. 2. Invoke the skill against a real draft or code change. 3. Check that its reference files and helper scripts work from the installed location. 4. Confirm the agent still reads the project’s local instructions. 5. Check for duplicate skills or conflicting rules from old installations. Treat compilation and host installation as separate checks. A portable source file can compile correctly and still assume a tool or permission that the receiving agent lacks. ## Retire the duplicate sources [Section titled “Retire the duplicate sources”](#retire-the-duplicate-sources) After the pilot succeeds, tell teammates which plugins to install and which earlier copies they replace. Remove only the shared instructions now delivered by those plugins. Retain project-specific files and any guidance the hub does not yet cover. Keep the migration commit and the original source history so you can restore the earlier files if the pilot exposes a gap. Make later changes in the hub through normal pull-request review, and keep no hand-maintained copies in projects. The migration is complete when teammates can install the published release, complete the intended tasks, and know where to propose the next instruction change. ## See also [Section titled “See also”](#see-also) * [Publish and install plugins](/docs/governance/get-started/publish-and-install-plugins), to release the migrated hub * [Supported agents](/docs/governance/reference/supported-agents#asset-support), for the support modes of rules, commands, agents, and hooks * [The pig CLI reference](/docs/governance/reference/pig-cli-reference), for every option of `pig scan` * [Deploy trace analysis](/docs/governance/deploy-the-worker/plan-your-deployment) and [Enroll your hosts](/docs/governance/get-started/enroll-your-hosts), to add optional trace collection later # Publish and install plugins > Publish an Acme Instruction Hub with GitHub or GitLab CI, install its plugins, and verify that your agents can use the instructions. ## Overview [Section titled “Overview”](#overview) Publishing makes a reviewed version of your hub available to your team. Installation gives each agent the plugins that person needs. Acme publishes `pig`, `docs`, and `dev`. A technical writer installs `pig` and `docs`, and a developer can also install `dev`. **Instruction Hub**Your team authors and reviews shared source Reviewed sourcethen **Publishing CI**The pig toolchain validates, builds, and publishes Published pluginsthen **AI agent**Install or refresh plugins, then reload Publishing and installation are separate steps. A released plugin reaches an agent when that host installs or refreshes it. This guide serves two readers: * A **publisher** sets up CI once so the hub compiles and releases. * An **installer** adds the published marketplace and installs plugins for their own agent. If you install from a hub someone else publishes, skip ahead to [Install the plugins](#install-the-plugins). ## Before you start [Section titled “Before you start”](#before-you-start) To publish, you need: * A [validated hub](/docs/governance/get-started/set-up-your-instruction-hub). * A GitHub or GitLab repository you can configure. * Permission for CI to write to that repository and push to its protected release branches. The examples use `acme/acme-instruction-hub` and a source branch named `main`. Replace the organization, repository, and branch with yours. To install, you need: * An agent that supports one of the [build targets](/docs/governance/reference/supported-agents). * Read access to the published hub. For a private hub, both CI and each person installing plugins need repository access. A successful CI build doesn’t grant that access to your teammates. ## Publish your hub [Section titled “Publish your hub”](#publish-your-hub) Publishing runs in CI. Set up the workflow for your Git provider, then push it. To hand publishing setup to a coding agent, copy this prompt. [Set up PIG with a coding agent](/docs/governance/agent-setup-guide) covers the whole setup. Ask your agent: configure hub publishing ```text Configure publishing for our Instruction Hub. Follow https://promptless.ai/docs/governance/get-started/publish-and-install-plugins.md and phase 3 of https://promptless.ai/docs/governance/agent-setup-guide.md Outcome: a successful publishing run, and a release/stable branch that holds hub.release.json and the generated plugins. Scope: CI configuration for the hub repository only. Inputs (discover these before you ask me): - Hub repository and source branch: [for example, acme/acme-instruction-hub, main] - Git provider: [GitHub or GitLab] Show me the diff and wait for my approval before you push. Tell me which repository settings I need to change. Report the run result, the published version, and anything still blocked. ``` * GitHub 1. **Create the two workflow files in your hub.** The check workflow validates and compiles pull requests. The publish workflow runs after a merge to `main` and serializes releases. .github/workflows/instruction-hub-check.yml ```yaml name: Check Instruction Hub on: pull_request: workflow_dispatch: permissions: contents: read jobs: instruction-hub: uses: Promptless/pig-toolchain/.github/workflows/pr-check.yml@main ``` .github/workflows/instruction-hub-publish.yml ```yaml name: Publish Instruction Hub on: push: branches: [main] workflow_dispatch: permissions: contents: write concurrency: group: instruction-hub-release cancel-in-progress: false jobs: instruction-hub: if: github.ref == 'refs/heads/main' uses: Promptless/pig-toolchain/.github/workflows/publish.yml@main with: source-branch: main ``` 2. **Commit the workflow files and push them.** Create an empty `acme/acme-instruction-hub` repository on GitHub first if you have not already. ```bash git add .github/workflows git commit -m "Add instruction hub publishing" git remote add origin https://github.com/acme/acme-instruction-hub.git git push -u origin main ``` If `origin` already exists, use that remote instead of adding it again. 3. **Inspect the run.** In **Actions**, open **Publish Instruction Hub** and check its result. The workflow uses the repository’s automatic `GITHUB_TOKEN`; this example needs no separate GitHub token. Repository permissions and branch rules must allow the workflow to update both `main` and `release/stable`. The workflows use the toolchain’s current `main` revision, which the CI logs record. If your organization reviews toolchain updates separately, pin both `uses` references to the same reviewed toolchain commit and update them together. If your hub lives below the repository root, set the `hub-root` input in both jobs. The default is `.`. To use a different release branch, set the publishing workflow’s `release-branch` input. Keep the concurrency group and `cancel-in-progress: false` so two runs do not publish overlapping releases. * GitLab 1. **Add the supported CI template to your hub’s `.gitlab-ci.yml`.** .gitlab-ci.yml ```yaml include: - remote: https://raw.githubusercontent.com/Promptless/pig-toolchain/main/templates/gitlab/instruction-hub.yml ``` Use a Linux runner that supports the template’s container image. If you already have custom stages, match the template jobs to those stages: .gitlab-ci.yml with existing stages ```yaml stages: [verify, publish] include: - remote: https://raw.githubusercontent.com/Promptless/pig-toolchain/main/templates/gitlab/instruction-hub.yml inputs: check-stage: verify publish-stage: publish release-branch: release/stable toolchain-ref: main ``` 2. **Allow the pipeline to push to your repository.** In the project settings, open **CI/CD → Job token permissions** and enable **Allow Git push requests to the repository**. The user who starts the pipeline must have permission to push to the source and release branches. Publishing uses `CI_JOB_TOKEN`, with no GitHub publishing credential. 3. **Push the configuration and inspect the jobs.** Open the validation and publishing jobs in **Build → Pipelines**. The template validates merge requests and publishes pushes to the default branch. A manually started pipeline on another branch validates without publishing. Git pushes made by the job token do not start another pipeline. For a reviewed toolchain pin, replace `main` in both the remote template URL and `toolchain-ref` with the same full toolchain commit. ## Verify the published release [Section titled “Verify the published release”](#verify-the-published-release) A successful first publication creates `release/stable`, publishes all three plugins, and updates the source branch’s marketplace pointers and version. Review those changes in your Git provider before asking the team to install. For later changes, the workflow compares the content with the previous release. Changed content normally advances the patch version, and unchanged content needs no new release. To choose a higher minor or major version, set it in the source configuration before you merge: ```bash pig set-version --hub . --version 0.2.0 pig verify --hub . ``` Commit the version change with the instructions. All plugins in the hub share that version. Don’t edit generated version fields by hand. Note Publishing checks that the source and previous release still match the revisions it started from. If either branch advances during the job, publication stops without overwriting either branch. Update from the latest source and rerun the workflow. Don’t bypass the check with a force push. ## Understand the release branches [Section titled “Understand the release branches”](#understand-the-release-branches) Keep authored instructions, `hub.yaml`, and `plugins/*.yaml` on `main`. The publishing workflow compiles every plugin in `stable_plugins` for each configured target and maintains a separate `release/stable` branch containing the generated output. | Output | Purpose | | ---------------------------- | ---------------------------------------------------------------- | | `dist///` | An installable Claude, Codex, Cursor plugin, or Gemini extension | | Target marketplace manifests | A catalog of the available plugins for Claude, Codex, and Cursor | | `hub.release.json` | Version and content identity of the compiled release | | `hub.stable.json` | Information about the published stable release | On the source branch, marketplace entries point to the generated plugins on `release/stable`. Add the source repository to an agent’s marketplace so the agent can follow those pointers. Gemini installs extension directories from `release/stable`. To inspect a local build, run `pig build`. For routine review, use `pig verify`, which compiles in a temporary directory and leaves the generated files in your checkout unchanged. Neither command publishes a release. ## Install the plugins [Section titled “Install the plugins”](#install-the-plugins) Follow the tab for the agent you use. Installing `pig` doesn’t turn on trace collection, because the default hub configuration has `trace_ingestion.enabled: false`. The commands below use the GitHub example URL `https://github.com/acme/acme-instruction-hub.git`. For a GitLab-hosted hub, substitute your full GitLab repository URL ending in `.git`. To have a coding agent install the plugins and check a skill, copy this prompt. The agent tells you which install steps you must run yourself. Ask your agent: install hub plugins ```text Install our Instruction Hub plugins in my agent and confirm that a skill works. Follow the section for my agent in https://promptless.ai/docs/governance/get-started/publish-and-install-plugins.md and phase 4 of https://promptless.ai/docs/governance/agent-setup-guide.md Inputs (discover these before you ask me): - Hub repository URL: [for example, https://github.com/acme/acme-instruction-hub.git] - Marketplace ID: [read it from hub.yaml if you can] - My agent: [Claude Code, Codex, Cursor, or Gemini CLI] - Plugins to install: [pig plus, for example, docs] For in-app or dashboard steps, give me the exact steps and wait for me. Report the installed plugins and versions and the skill check result. ``` * Claude Code 1. **Add the source repository.** Inside Claude Code, add the marketplace. These are Claude Code slash commands, not terminal commands. ```text /plugin marketplace add https://github.com/acme/acme-instruction-hub.git ``` 2. **Install the plugins.** Install `pig` and `docs`; developers can also run `/plugin install dev@acme-instruction-hub`. ```text /plugin install pig@acme-instruction-hub /plugin install docs@acme-instruction-hub ``` Use `/plugin` to review installed plugins and their scope. Choose user scope for personal use across projects, or the appropriate project scope for a repository. 3. **Reload and verify.** Run `/reload-plugins` or restart Claude Code, then try `/docs:review-docs` on a documentation change. See [Claude Code’s plugin installation guide](https://code.claude.com/docs/en/discover-plugins). * Codex These are terminal commands for the Codex CLI, not in-app commands. Flags like `--ref` and `--json` are shell arguments. If you are not comfortable with the command line, ask a teammate who is. 1. **Add the marketplace and install the plugins.** With a Codex CLI that supports plugins, run: ```bash codex plugin marketplace add https://github.com/acme/acme-instruction-hub.git --ref main codex plugin add pig@acme-instruction-hub codex plugin add docs@acme-instruction-hub codex plugin add dev@acme-instruction-hub codex plugin list --marketplace acme-instruction-hub --json ``` 2. **Review the installed plugins in the Codex app.** Open **Plugins**, find the installed Acme plugins, and review the skills. Where the task’s **Sources → Use plugins** control is available, select the relevant installed plugin. Availability and labels depend on the Codex surface and workspace settings; see [OpenAI’s plugin guide](https://help.openai.com/en/articles/20001256/). 3. **Verify in a task.** Start a task and ask Codex to use the Acme documentation review skill on a small change. Confirm that it can read the skill and any supporting files. A marketplace listing alone does not verify installation in the desktop app. * Cursor 1. **Import the marketplace (team administrator, once).** Your team administrator does this one time for a GitHub-hosted hub. Open **Dashboard → Plugins → Team Marketplaces → Add Marketplace** and use **Import from Repo** with the source repository. Review the imported `pig`, `docs`, and `dev` plugins and the marketplace access settings. 2. **Install the plugins you need (each developer).** Once the marketplace is imported, open **Customize**, find the Acme plugins, and install the ones you need. See [Cursor’s team marketplace guide](https://cursor.com/docs/plugins). 3. **Verify in a new agent task.** Invoke the documentation review skill and confirm that its instructions are available. Skills remain skills in the generated Cursor plugin; they are not converted into always-on rules. The toolchain also generates GitLab release references, but Cursor’s documented team import flow is for GitHub. Confirm that your Cursor installation supports your chosen GitLab import route before committing to that distribution path. Git access and a valid generated manifest are separate from successful marketplace import. * Gemini CLI This path uses `git` and the Gemini CLI in your terminal. If you are not comfortable with the command line, ask a teammate who is to install the extensions for you. 1. **Clone the release branch and install the extension directories.** ```bash git clone --branch release/stable --single-branch \ https://github.com/acme/acme-instruction-hub.git acme-instruction-hub-release gemini extensions install ./acme-instruction-hub-release/dist/gemini/pig gemini extensions install ./acme-instruction-hub-release/dist/gemini/docs gemini extensions install ./acme-instruction-hub-release/dist/gemini/dev gemini extensions list ``` 2. **Restart and verify.** Restart Gemini CLI and try the documentation review skill. Installing from a local directory copies that extension into Gemini’s installation; keeping the clone current alone does not update the installed extension. See the [Gemini CLI extension reference](https://geminicli.com/docs/extensions/reference/). ## Keep installations current [Section titled “Keep installations current”](#keep-installations-current) Publication and host installation are separate steps. An agent doesn’t necessarily refresh its installed plugins when it starts. Claude and Codex receive an `update-instruction-hub` skill in `pig`, even when trace ingestion is disabled. Ask the agent to use that skill to update the Acme Instruction Hub. It updates the marketplace and installed plugins and reloads them where the host supports it. Check the installed version afterward. In Claude Code, you can also manage updates through `/plugin`. In Codex, a marketplace refresh alone doesn’t prove that the installed plugins were updated. For Cursor, configure marketplace refresh with your team administrator, then verify the version on a developer’s host. For Gemini, update the release checkout and run `gemini extensions update docs` for each installed extension before restarting the CLI. ## Troubleshooting [Section titled “Troubleshooting”](#troubleshooting) | Symptom | What to check | | --------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | CI validates but cannot publish | Workflow write permissions, protected branch rules, and the GitLab job token push setting | | Publication stops after a newer commit | Update from the latest source and rerun; another source or release change made the run stale | | Marketplace is visible but installation fails | The user’s Git credentials must read the repository and its `release/stable` branch | | A plugin or skill is missing | With hub access, check `stable_plugins`, the plugin’s `includes`, target support, and the installed version. Without it, ask your hub’s publisher to confirm the plugin is in the release and supported for your agent | | Updated instructions are not used | Refresh installed plugins and reload the agent; check for older local copies of the same skill | Once an installed skill works in a real task, your hub is ready for team use. ## See also [Section titled “See also”](#see-also) * [Supported agents](/docs/governance/reference/supported-agents), for what each agent can install and which agents support trace collection * [The pig CLI reference](/docs/governance/reference/pig-cli-reference), for `pig verify`, `pig build`, and `pig set-version` * [Enroll your hosts](/docs/governance/get-started/enroll-your-hosts), to learn from agent sessions once your analyzer is available # Set up your Instruction Hub > Create a shared instruction repository, organize skills into plugins, and validate a first release for your team. ## Overview [Section titled “Overview”](#overview) An Instruction Hub is a Git repository that holds your team’s shared instructions and the plugins that distribute them. Authors edit ordinary Markdown and configuration files, review changes in pull requests, and publish a version that colleagues install in their agents. This guide creates an Acme hub with a documentation review skill and a bug investigation skill, then validates it as a first release. The hub works without trace analysis. If you already have instructions to consolidate, create the scaffold here, then follow [Migrate existing instructions](/docs/governance/get-started/migrate-existing-instructions). To hand this guide to a coding agent, copy this prompt. [Set up PIG with a coding agent](/docs/governance/agent-setup-guide) covers the whole setup. Ask your agent: create or adopt an Instruction Hub ```text Create or adopt our Instruction Hub. Follow https://promptless.ai/docs/governance/get-started/set-up-your-instruction-hub.md and phase 2 of https://promptless.ai/docs/governance/agent-setup-guide.md Outcome: a hub that passes `pig validate` and `pig verify`, committed on a local branch. Scope: hub source files only. Do not configure publishing or install plugins. Inputs (discover these before you ask me): - Hub repository: [existing hub URL or path, or "create a new hub"] - Organization name and marketplace ID: [for example, Acme and acme-instruction-hub] - First skills: [skills to write, or existing instructions to import] Ask me before you create a remote repository or push. Report the verified release ID, the files you changed, and anything left for me to do. ``` ## Before you start [Section titled “Before you start”](#before-you-start) You need: * Git and Python 3.11 or later. * Permission to create a repository on GitHub or GitLab. * A person to maintain the hub, and a reviewer for each instruction area. The examples use the organization `Acme`, the marketplace ID `acme-instruction-hub`, and the plugin IDs `pig`, `docs`, and `dev`. Replace the organization and repository URL with yours. ## Install the toolchain [Section titled “Install the toolchain”](#install-the-toolchain) Only people who edit or validate hub source need the `pig` toolchain. Installing a published plugin doesn’t need it. These are macOS and Linux shell commands. 1. Create a dedicated virtual environment and activate it. On Windows, activate it with its `Scripts/Activate.ps1` script. ```bash python3 -m venv ~/.venvs/pig source ~/.venvs/pig/bin/activate ``` 2. Install the toolchain from its public Git repository. ```bash python -m pip install "git+https://github.com/Promptless/pig-toolchain.git@main" ``` 3. Confirm the installation. The command prints the list of `pig` commands. ```bash pig --help ``` Activate this environment again each time you return to authoring. ## Create the hub [Section titled “Create the hub”](#create-the-hub) 1. **Create the repository** ```bash mkdir acme-instruction-hub cd acme-instruction-hub git init -b main pig init --hub . --org Acme \ --marketplace-id acme-instruction-hub \ --marketplace-name "Acme Instruction Hub" \ --version 0.1.0 ``` `--org` is required. Without `--marketplace-id` and `--marketplace-name`, `pig init` derives both from the organization name. The command writes `hub.yaml`, creates `plugins/pig.yaml`, and prepares the asset directories. Keep the `pig` plugin. The toolchain requires that literal ID and adds the hub’s update skill to its Claude and Codex versions. 2. **Write your first skills** A skill explains when to use a repeatable task, what to do, and what to return. Start with a small procedure that you can try against real work. Create the directories: ```bash mkdir -p assets/skills/review-docs assets/skills/investigate-bug ``` Save this as `assets/skills/review-docs/SKILL.md`: assets/skills/review-docs/SKILL.md ```markdown --- name: review-docs description: >- Use when reviewing a documentation draft or pull request for accuracy, missing steps, or clarity. Return findings with concrete corrections. --- # Review documentation ## Scope Review the files or change set the user names. Otherwise, inspect staged, unstaged, and untracked documentation changes. Read the repository's local instructions and identify the intended reader and the task they must complete. If no documentation is in scope, say so and stop. ## Review 1. Check factual claims, commands, configuration keys, and examples against the implementation or official documentation for the relevant version. Flag unsupported claims; do not make them sound more certain. 2. Walk through the reader's task. Check prerequisite access, step order, expected results, and recovery from likely errors. 3. Check whether the reader can find, understand, and use the information. Flag vague instructions, undefined terms, buried actions, and repetition. Keep technical terms the audience needs and drop stylistic preferences. 4. Run the repository's documented checks and preview the affected pages. Inspect navigation, links, code blocks, and callouts. Do not execute examples that change production data or infrastructure during a review. ## Return findings Put findings first, ordered by severity: critical issues block the task; important issues cause a wrong action or a material misunderstanding. Each finding needs a file:line location, the affected claim or passage, supporting evidence, the reader impact, and a concrete correction. State which checks ran and what remains unverified. If there are no findings, say so. Return the review without editing or publishing the draft. ``` Save a second skill as `assets/skills/investigate-bug/SKILL.md`: assets/skills/investigate-bug/SKILL.md ```markdown --- name: investigate-bug description: >- Use when a bug report, error, or failed request needs a diagnosis. Reproduce the failure, trace the relevant code and logs, and report the supported cause and a proposed fix. --- # Investigate a bug ## Scope Start with the reported failure and read the repository's local instructions. Keep production access read-only. Use the project's documented tooling for logs, traces, and database queries, scoped to the affected request or session. Do not retry production jobs, change data, or deploy a fix without approval. ## Investigate 1. Record expected and actual behavior, the environment and release, the failing input or request ID, and when the problem began. Ask for missing details only when they block the next useful check. 2. Reproduce the smallest failing case locally with the existing test or development setup. Record the command and observed result. If local reproduction is unavailable, anchor the investigation to a specific failed request and its logs; do not claim it was reproduced. 3. Trace the failing operation through the code for the affected release. Correlate logs and stored state by request or session ID and timestamp. Compare a successful case when available. Check recent changes when their timing could explain the failure. 4. State a candidate cause and the evidence that would confirm or disprove it. Run the smallest check that distinguishes it from other explanations. Separate the original failure from downstream errors; an error message or a nearby deployment alone does not establish the cause. 5. Identify the smallest fix and a regression test for the original failure. Keep diagnosis separate from implementation unless the user requested both. ## Report Lead with the cause and its decisive evidence, or state that the cause remains unconfirmed. Include the reproduction, affected behavior, relevant file:line locations and log references, and the proposed fix and regression test. Separate observed facts from hypotheses. Name any remaining uncertainty and the next check that would resolve it. Redact credentials and sensitive data. ``` Keep reusable reference material and helper scripts beside a skill in `references/` and `scripts/`. Use relative links inside the skill so those files remain usable after installation. Keep project-specific build commands and directory conventions in each project’s own instructions. 3. **Group skills into plugins** A plugin is the unit a teammate installs. Group instructions by the work people do, so a writer can install `docs` and a developer can install `dev`, or both. Create `plugins/docs.yaml`: plugins/docs.yaml ```yaml id: docs name: Acme Docs owners: - docs-team includes: - skill:review-docs ``` Create `plugins/dev.yaml`: plugins/dev.yaml ```yaml id: dev name: Acme Dev owners: - engineering includes: - skill:investigate-bug - skill:review-docs ``` The `owners` field records ownership; configure repository review rules separately if you want enforced approvals. An `includes` entry has the form `kind:id` and must name an asset that exists in the hub. Update `hub.yaml` to publish all three plugins: hub.yaml ```yaml org: Acme marketplace: id: acme-instruction-hub name: Acme Instruction Hub version: 0.1.0 stable_plugins: [pig, docs, dev] targets: [claude, codex, gemini, cursor] trace_ingestion: enabled: false ``` `marketplace.id` identifies the catalog, and each plugin has its own literal ID. The compiler adds no organization prefix. Choose stable names, because renaming an installed plugin creates a different identity. If your team installs plugins from several hubs, give your own plugins explicit IDs such as `acme-docs` so the names stay distinct. The required `pig` ID stays as it is. All generated plugins share `version`. Publishing advances it when the output changes, so you don’t need to change it for each edit. See [Publish and install plugins](/docs/governance/get-started/publish-and-install-plugins#verify-the-published-release). 4. **Check the layout** Compare your hub with this layout: ```text hub.yaml # Marketplace, version, plugins, and targets plugins/ pig.yaml # Required shared PIG plugin docs.yaml # Documentation team's selection dev.yaml # Development team's selection assets/ skills/review-docs/SKILL.md # Documentation accuracy and clarity review skills/investigate-bug/SKILL.md # Evidence-based bug diagnosis rules/ # Rules with target support metadata agents/ # Specialist agent definitions commands/ # Agent commands hooks/ # Lifecycle actions mcps/ # MCP server configuration ``` Skills are the simplest starting point. The toolchain also supports rules, agents, commands, hooks, and MCP configurations. Support for these differs by agent. Check [Supported agents](/docs/governance/reference/supported-agents) before you add an instruction that depends on a particular agent feature. 5. **Validate and save your work** ```bash pig validate --hub . pig verify --hub . git add hub.yaml plugins assets git commit -m "Create Acme Instruction Hub" ``` `validate` checks the source configuration, references, and asset declarations. `verify` also compiles every stable plugin for every configured target in a temporary directory. It prints a verified release ID and leaves generated files out of your source checkout. Note Validation catches several unsafe configuration patterns, including literal secrets in MCP settings and symlinks in assets. It is not a general secret scan. Review imported files, scripts, and examples before committing them. If validation reports a missing asset, check both the directory name and the plugin’s `includes` entry. If a target doesn’t support an asset, adapt its instructions to a portable skill or declare its target support explicitly. A successful build doesn’t prove that an agent follows the procedure. Test that after installation. ## See also [Section titled “See also”](#see-also) * [Publish and install plugins](/docs/governance/get-started/publish-and-install-plugins), to release the hub and install its plugins in your team’s agents * [Migrate existing instructions](/docs/governance/get-started/migrate-existing-instructions), to bring existing skills and agent configuration into the hub * [The pig CLI reference](/docs/governance/reference/pig-cli-reference), for every `pig` command and option * [Deploy trace analysis](/docs/governance/deploy-the-worker/plan-your-deployment) and [Enroll your hosts](/docs/governance/get-started/enroll-your-hosts), when you want feedback from real agent sessions # Frequently asked questions > Answers about Instruction Hub setup, migration, supported agents, trace data, deployments, updates, and reviewing improvements. This page answers questions about setting up an Instruction Hub, collecting agent sessions, deploying and updating the analyzer, and acting on findings. Each answer links to the page with the full procedure or explanation. ## Setting up an Instruction Hub [Section titled “Setting up an Instruction Hub”](#setting-up-an-instruction-hub) | Question | Answer | More information | | ----------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | | Can we use an Instruction Hub without deploying an analyzer? | Yes. Publish and install your instructions with `trace_ingestion.enabled: false`, the default. That workflow needs no worker, database, bucket, or model-provider credentials. | [Set up your Instruction Hub](/docs/governance/get-started/set-up-your-instruction-hub) | | Do we have to move every `AGENTS.md` or `CLAUDE.md` into the hub? | No. Move reusable instructions into shared hub assets, and keep repository-specific context beside the project it describes. `pig scan` records root context files in its inventory but doesn’t turn them into shared skills. | [Migrate existing instructions](/docs/governance/get-started/migrate-existing-instructions) | | What does `pig scan` import automatically? | Skills from `.agents/skills`, `.claude/skills`, and `.cursor/skills`, plus supported root or Cursor MCP configuration. Other layouts and asset kinds need a reviewed manual migration. Scan one source at a time and inspect the diff, because the scan can replace an existing asset with the same ID. | [Migrate existing instructions](/docs/governance/get-started/migrate-existing-instructions), for inventory, naming conflicts, and pilot rollout | | Why is the `pig` plugin required? | It’s the canonical home for the toolchain-managed update skill and the optional collection integration, and it can hold shared assets. Keep `pig` in `stable_plugins`, and organize other instructions into plugins such as Acme’s `docs` and `dev`. | [The required pig plugin](/docs/governance/start-here/key-concepts#the-required-pig-plugin) | | Can we publish from GitLab? | Yes. Hub publishing supports GitHub Actions and GitLab CI. Agent installation support varies, so test your team’s desktop importer, particularly Cursor with a GitLab repository. The analyzer’s hub binding and remediation require GitHub and a `main` branch. | [Publish and install plugins](/docs/governance/get-started/publish-and-install-plugins) | ## Agents and session data [Section titled “Agents and session data”](#agents-and-session-data) | Question | Answer | More information | | ---------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------ | | Which agents does PIG support? | The toolchain builds instructions for Claude, Codex, Cursor, and Gemini. Native trace collection is a separate capability: it supports Claude Code, Claude Desktop, Codex, and, with analyzer 0.3.3 or later, Cursor desktop sessions. Building a Gemini plugin doesn’t enable collection for Gemini. | [Supported agents](/docs/governance/reference/supported-agents) | | What leaves an enrolled host? | The collector uploads native session records and related collection metadata to your analyzer. Your configured model provider receives analysis input. Promptless receives trace status, findings, and evidence summaries, which can describe session details. | [Trust and data model](/docs/governance/start-here/trust-and-data-model) | | Does enrolling a host upload its old sessions? | It can. When a discovered native source has no acknowledged upload position, collection starts from the beginning and can upload existing session history. Later collection resumes from the position in the upload ledger. Agree on pilot hosts and repositories before enrollment, then verify a new session. | [Enroll your hosts](/docs/governance/get-started/enroll-your-hosts) | | Does disabling trace ingestion delete data? | No. A release published with trace ingestion disabled leaves out the managed collection hooks, and each host keeps its hooks until it refreshes its installed plugins. Stored traces, findings, and the analyzer deployment remain, so manage their retention separately. | [Trust and data model](/docs/governance/start-here/trust-and-data-model) | ## Deployment and updates [Section titled “Deployment and updates”](#deployment-and-updates) | Question | Answer | More information | | ------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | What does the analyzer need to run? | A Kubernetes deployment, PostgreSQL, native object storage, a Promptless deployment token, and network access between those systems. Analysis also needs a configured model provider and instruction repositories selected in PIG Settings. Each selected repository is a GitHub repository with a `main` branch. | [Plan your deployment](/docs/governance/deploy-the-worker/plan-your-deployment) | | Can we deploy on Azure or Google Cloud? | Azure and Google Cloud are experimental. The current stable release, PIG 0.3.6, targets only AWS (EKS). The Azure and Google Cloud guides are for evaluation. On every cloud, Terraform prepares the infrastructure before the common Helm bootstrap. | [AWS](/docs/governance/deploy-the-worker/deploy-on-aws), [Azure](/docs/governance/deploy-the-worker/deploy-on-azure), and [GCP](/docs/governance/deploy-the-worker/deploy-on-gcp) guides, for prerequisites and configuration | | Does the trace analyzer update automatically? | Yes. By default it updates to stable releases, and you can pause updates or pin a release. The supervisor coordinates application and schema updates. Operators apply required infrastructure changes, such as databases, storage, cloud identities, and networking, through Terraform. | [Manage updates and recovery](/docs/governance/deploy-the-worker/manage-updates-and-recovery) | | Can we schedule and apply every upgrade ourselves? | Yes. Choose manually managed Helm during installation. | [Manually managed Helm](/docs/governance/deploy-the-worker/manual-helm) | | Does a healthy pod mean analysis is working? | No. The health endpoint doesn’t cover the whole path. Verify that an enrolled host can upload, the trace is stored, and analysis completes. A completed analysis can produce no finding. | [Observability](/docs/governance/deploy-the-worker/observability) | | How do we verify plugin installation across our hosts? | Track rollout through your release and enrollment records, and run the plugin installation checks on each host. Enrollment and trace collection don’t prove that every plugin is installed and loaded. | [Publish and install plugins](/docs/governance/get-started/publish-and-install-plugins) | ## Findings and changes [Section titled “Findings and changes”](#findings-and-changes) | Question | Answer | More information | | ------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | | Does PIG merge instruction changes automatically? | The documented workflow produces a proposed pull request for your team to review. Apply your repository’s checks and merge controls before you publish a new hub release. | [Remediate findings](/docs/governance/findings-and-remediation/remediate-findings) | | Does every finding need an instruction change? | No. A finding can call for work on a tool, integration, or external system. Review the explanation and evidence before you decide who acts on it. | [Understand findings](/docs/governance/findings-and-remediation/understand-findings) | | Which systems use GitHub credentials? | Promptless gives the analyzer GitHub App tokens, scoped to Contents read, for the instruction repositories selected in PIG Settings. Promptless also uses the connected GitHub integration to coordinate issues, and provides repository-scoped credentials for remediation tasks. Operators don’t configure a GitHub token for the analyzer. | [Select instruction repositories](/docs/governance/deploy-the-worker/deploy-the-analyzer-worker#7-select-instruction-repositories) | ## Get support [Section titled “Get support”](#get-support) Email for setup or deployment help. Include these details: | Detail | What to send | | ------------------ | ------------------------------------------------------------------------ | | Affected component | The hub toolchain, an enrolled host, or the analyzer deployment | | Version | The deployment or hub version | | Failed step | The step that failed | | Diagnostics | Redacted diagnostics. Don’t send credentials or raw session transcripts. | # The pig CLI reference > Public pig commands for creating, importing, validating, compiling, versioning, and inspecting an Instruction Hub, and for packaging cloud trace capture. The `pig` CLI manages the source and generated plugins in an Instruction Hub. Install the toolchain with Python 3.11 or later using the [setup guide](/docs/governance/get-started/set-up-your-instruction-hub). The package exposes equivalent `pig` and `promptless-instruction-hub` commands. Run `pig --help` or `pig --help` to see the options your installed version accepts. Every command on this page except `pig status` and `pig cloud-bundle` takes `--hub PATH`, the hub’s root directory, which defaults to the current directory. | Command | Changes files? | Result | | -------------- | -------------------------- | ----------------------------------------------------------- | | `init` | Yes | Creates missing hub configuration and directories | | `scan` | Yes | Imports supported assets and replaces the context inventory | | `validate` | No | Checks source configuration and asset references | | `verify` | No changes to the hub | Validates and compiles a temporary release | | `build` | Yes, except with `--check` | Writes distribution files and manifests | | `set-version` | Yes | Updates the shared version in `hub.yaml` | | `status` | No | Reads local release metadata | | `cloud-bundle` | Yes, writes one new ZIP | Packages a cloud trace capture plugin for Claude Code | These commands do not install plugins into agents, enroll hosts, or deploy the analyzer. Publishing runs through [GitHub or GitLab CI](/docs/governance/get-started/publish-and-install-plugins); there is no public `pig publish` command. ## `pig init` [Section titled “pig init”](#pig-init) Create a hub with the mandatory `plugins/pig.yaml`, asset directories, and output directories. Existing files are preserved. The initial configuration includes all four targets and turns trace ingestion off. ```bash pig init --hub ./acme-instruction-hub \ --org Acme \ --marketplace-id acme-instruction-hub \ --marketplace-name "Acme Instruction Hub" \ --version 0.1.0 ``` | Option | Default | Meaning | | ------------------------- | ------------------------------------------------------------------- | ------------------------------------------ | | `--hub PATH` | Current directory | Hub to initialize | | `--org NAME` | Required | Name of the organization that owns the hub | | `--marketplace-id ID` | The organization name in kebab-case, followed by `-instruction-hub` | Stable marketplace identifier | | `--marketplace-name NAME` | The organization name followed by `Instruction Hub` | Marketplace display name | | `--version VERSION` | `0.1.0` | Initial shared plugin version | Use `marketplace.id` and `marketplace.name` in `hub.yaml` for marketplace identity. Each `plugins/*.yaml` file has its own literal `id` and display `name`; no organization prefix is added automatically. `version` applies to the whole hub, and `stable_plugins` selects which plugins to release. ## `pig scan` [Section titled “pig scan”](#pig-scan) Import reusable assets from one source directory into a hub: ```bash pig scan --hub ./acme-instruction-hub --source ./acme-docs ``` | Option | Default | Meaning | | --------------- | ----------------- | -------------------------------- | | `--hub PATH` | Current directory | Hub to import into | | `--source PATH` | Current directory | Repository to import assets from | Pass both paths when the source repository and the hub are different directories. The scanner handles each kind of source file as follows: | In the source repository | What `scan` does | | -------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ | | Skills directly under `.agents/skills/`, `.claude/skills/`, or `.cursor/skills/` | Imports each skill with its supporting files | | A root `.mcp.json`, `mcp.json`, `mcp.yaml`, or `mcp.yml` | Imports the first match as the MCP configuration | | `.cursor/mcp.json` | Imports it when the root MCP configuration doesn’t already cover it | | Root `AGENTS.md`, `CLAUDE.md`, and `GEMINI.md` | Records each file’s content identity and size in `hub.repo-context.json`, without converting it into shared instructions | | Other skill locations, rules, commands, hooks, and subagent definitions | Nothing. Migrate them by hand. | Imported assets are added to the `pig` plugin’s `includes` list. **Scan writes to the hub.** Reusing a skill ID replaces that destination skill directory; recognized MCP destinations and the context inventory can also be replaced. The command does not merge conflicting instructions or edit the source repository. Review each source’s import before scanning another. Follow [Migrate existing instructions](/docs/governance/get-started/migrate-existing-instructions) for a safe sequence. ## `pig validate` [Section titled “pig validate”](#pig-validate) Check source configuration, plugin definitions, referenced assets, target support declarations, file restrictions, and recognized MCP configuration constraints: ```bash pig validate --hub ./acme-instruction-hub ``` | Option | Default | Meaning | | ------------ | ----------------- | --------------- | | `--hub PATH` | Current directory | Hub to validate | A successful result reports the number of stable assets. It does not compile the plugins or prove that the instructions behave correctly in an agent. Checks reject disallowed symlinks and recognized literal-secret patterns; they are not a comprehensive secret scanner. Review imported credentials separately. ## `pig verify` [Section titled “pig verify”](#pig-verify) Validate the hub, compile all selected targets in a temporary directory, and report the resulting release identity: ```bash pig verify --hub ./acme-instruction-hub ``` | Option | Default | Meaning | | ------------ | ----------------- | ------------- | | `--hub PATH` | Current directory | Hub to verify | Use this before committing or reviewing instruction changes. It leaves the hub’s working files unchanged. A successful compile verifies generated structure, not marketplace authentication, desktop installation, or the quality of the agent’s work. ## `pig build` [Section titled “pig build”](#pig-build) Compile each plugin in `stable_plugins` for every target in `targets`: ```bash pig build --hub ./acme-instruction-hub ``` | Option | Default | Meaning | | ------------ | ----------------- | ------------------------------------------------------------------------------------ | | `--hub PATH` | Current directory | Hub to build | | `--check` | Off | Compare the existing generated output with a fresh compilation, without rewriting it | The output includes `dist///`, target marketplace manifests where supported, and release metadata. Keep authored changes in `assets/`, `plugins/`, and `hub.yaml`, because a later build can replace generated files. With `--check`, a stale or missing generated file fails the command: ```bash pig build --hub ./acme-instruction-hub --check ``` Use `--check` in a workflow that deliberately checks generated artifacts. For an authoring branch that leaves generated output to CI, use `pig verify`. ## `pig set-version` [Section titled “pig set-version”](#pig-set-version) Update `hub.yaml` to a chosen shared plugin version: ```bash pig set-version --hub ./acme-instruction-hub --version 0.2.0 pig verify --hub ./acme-instruction-hub ``` | Option | Default | Meaning | | ------------------- | ----------------- | ------------------------- | | `--hub PATH` | Current directory | Hub to update | | `--version VERSION` | Required | New shared plugin version | Commit the change through the normal review process. The command does not build or publish; publishing resolves the next release against the previous stable version and synchronizes generated versions. ## `pig status` [Section titled “pig status”](#pig-status) Print release metadata as JSON from a local manifest: ```bash pig status --manifest ./acme-instruction-hub/hub.release.json ``` | Option | Default | Meaning | | ----------------- | ------------------------------------------- | ------------------------ | | `--manifest PATH` | `hub.release.json` in the current directory | Release manifest to read | This command has no `--hub` option. Run a build or use a release checkout before reading its manifest. `pig status` does not query installed agents, host enrollment, or the analyzer. ## `pig cloud-bundle` [Section titled “pig cloud-bundle”](#pig-cloud-bundle) Package a Claude Code plugin that captures traces from cloud agent executions under a cloud integration grant: ```bash pig cloud-bundle \ --worker-url https://traces.acme.example \ --provider claude_tag \ --integration-id YOUR_INTEGRATION_ID \ --transport proxy \ --output pig-cloud-capture.zip ``` | Option | Default | Meaning | | --------------------- | -------- | -------------------------------------------------------------------------------------------- | | `--worker-url URL` | Required | The analyzer’s HTTPS origin, with no path, query, or credentials | | `--provider ID` | Required | The grant’s provider, such as `claude_tag` | | `--integration-id ID` | Required | The grant’s Integration ID from **Settings → Cloud integrations** | | `--transport MODE` | `secret` | `proxy` when the provider’s connection adds the token, `secret` when the sandbox supplies it | | `--output PATH` | Required | A new file ending in `.zip`; the command fails if the file exists | The ZIP holds public configuration, the collector, and its hooks. It contains no credentials. The command doesn’t need a hub, and it doesn’t create a grant or check that the analyzer is reachable. See [Capture traces from cloud agents](/docs/governance/get-started/capture-cloud-agent-traces). ## Diagnose a failed command [Section titled “Diagnose a failed command”](#diagnose-a-failed-command) A failed command prints an `error:` message. Read the file path and asset reference in it first. These are the common causes: | Cause | What to check | | ------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ | | A missing `skill:` reference | The plugin’s `includes` list and the skill directories under `assets/skills/` | | A duplicate plugin ID | The `id` in each `plugins/*.yaml` file. Every plugin needs its own. | | An unsupported asset conversion | The asset and target the message names | | Stale generated output with `build --check` | Run `pig build` and commit the generated files, or use `pig verify` on a branch that leaves generated output to CI | Correct the source files and rerun `pig validate` and `pig verify`. Once they pass, continue to [publishing and installation](/docs/governance/get-started/publish-and-install-plugins) and test one installed skill in a real task. # Supported agents > Compare plugin distribution, asset portability, native trace collection, and repository support in PIG. An agent can use your hub’s instructions without sending traces to PIG. Plugin distribution, native trace collection, and repository analysis have different support boundaries. ## Agent support [Section titled “Agent support”](#agent-support) | Agent | Generated instruction distribution | Native trace collection | | -------------- | ---------------------------------- | ---------------------------------------------------------------------------------------------------------- | | Claude Code | Claude plugin and marketplace | Yes, through the opt-in `pig` runtime and generated hooks | | Codex | Codex plugin and marketplace | Yes, through the opt-in `pig` runtime and generated hooks | | Cursor | Cursor plugin and marketplace | Desktop Agent sessions, through the opt-in `pig` runtime and generated hooks, with analyzer 0.3.3 or later | | Gemini CLI | Gemini extension | Not currently supported | | Claude Desktop | Not a separate compiler target | Its native traces can be discovered by the Claude collector on the same host | The `targets` entries in `hub.yaml` are `claude`, `codex`, `cursor`, and `gemini`. Include only the targets you distribute, or keep all four from `pig init`. Trace collection defaults to off. When enabled, the toolchain adds runtime files and collection hooks only to the literal `pig` plugin for Claude, Codex, and Cursor. Claude Code’s hook also attempts local Claude Desktop collection; this does not create a separate collection schedule inside Claude Desktop. The default enrollment policy includes Cursor once your analyzer reports Cursor support, which analyzer releases 0.3.3 and later do. See [host enrollment](/docs/governance/get-started/enroll-your-hosts) and its [Cursor collection](/docs/governance/get-started/enroll-your-hosts#cursor-collection) limits. Claude Code and Codex agents in cloud sandboxes, such as Claude Tag, can also send native traces. They enroll each execution with a cloud integration grant and need no `pig` plugin from your hub. See [Capture traces from cloud agents](/docs/governance/get-started/capture-cloud-agent-traces). ## Asset support [Section titled “Asset support”](#asset-support) The hub stores assets independently from plugins. A plugin’s `includes` references choose which assets it distributes. Asset metadata determines how each target receives them. | Asset | Default behavior | Authoring guidance | | --------------------------------------- | -------------------------------------------- | ------------------------------------------------------------------------------------------------------- | | Skills in `assets/skills//SKILL.md` | Agent Skills on all four targets | Prefer this format for shared, task-oriented guidance; include supporting files in the skill directory | | MCP configurations in `assets/mcps/` | Native MCP configuration on all four targets | Verify the server’s transport, command, credentials, and host-specific settings on every target you use | | Rules in `assets/rules/` | Unsupported until declared | Add explicit target support; do not assume a repository rule applies identically across agents | | Agent definitions in `assets/agents/` | Unsupported until declared | Declare native support or a supported conversion for each intended target | | Commands in `assets/commands/` | Unsupported until declared | Review the host’s invocation and file format | | Hooks in `assets/hooks/` | Unsupported until declared | Review event names, commands, and the host’s execution environment | Skills use `agent-skill` mode by default, including in Cursor. They do not become always-on Cursor rules. An explicit Cursor rule uses `.mdc` output when its support declaration selects that behavior. Place metadata for a directory asset in its `asset.yaml`. For a file asset, use a sibling named `.asset.yaml`. For example, a Cursor-only rule at `assets/rules/docs-style.md` can use: assets/rules/docs-style.asset.yaml ```yaml support: cursor: mode: native ``` Other targets retain the rule’s default unsupported status. To record a deliberate exclusion for a particular target, use `mode: unsupported` with a `reason`: ```yaml support: cursor: mode: native codex: mode: unsupported reason: This rule depends on Cursor file matching. ``` Support declarations describe the intended output; they do not make arbitrary host formats portable. Use `pig verify` to check the selected conversions, then install and exercise the asset on each target. A supported Markdown agent definition can be native on Claude and converted to an Agent Skill on Codex. That conversion does not preserve a separate subagent’s execution or model-selection behavior. ## Git provider support [Section titled “Git provider support”](#git-provider-support) | Capability | GitHub | GitLab | | ------------------------------------------------------- | ---------------------------------------------------------------- | -------------------------------------------------------------------------- | | Author and review hub source | Yes | Yes | | Validate and publish generated releases | Reusable GitHub Actions | GitLab CI template | | Distribute generated plugins | Supported, subject to the agent’s access and import requirements | Supported by the toolchain; the agent must support the chosen import route | | Bind repositories for trace analysis and finding issues | Yes | Not currently supported | Cursor’s documented team marketplace import flow uses GitHub. A generated GitLab marketplace and working Git credentials do not prove that a particular Cursor importer accepts it. Pilot that path before rolling it out. See [installation by agent](/docs/governance/get-started/publish-and-install-plugins#install-the-plugins). The current analyzer reads the GitHub repositories an administrator selects in PIG Settings. It uses their repository IDs to associate traces with repositories and manage findings. Publishing an Instruction Hub on GitLab does not by itself add GitLab repository analysis. Choose the hub’s Git provider separately from the repositories your analyzer can currently process. ## Verify your combination [Section titled “Verify your combination”](#verify-your-combination) Pilot each agent and plugin combination before you roll it out. For Acme, start with one writer and one developer using the `docs` and `dev` plugins. Run these checks on each agent during the pilot, and again after an asset’s target support changes: | Check | Confirm that | | ----------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Plugin installation | The agent lists the installed plugin. | | Skill loading | The agent loads the intended skill and its supporting files. | | Task behavior | The agent follows the skill on a representative task. | | Collection and analysis | When trace collection is enabled, the host is enrolled, a trace is stored, and an analysis run completes. The [deployment guide](/docs/governance/deploy-the-worker/deploy-the-analyzer-worker) covers these operator checks. | For the native session files the collector reads on each host, see [Trace object and sources](/docs/governance/reference/trace-object-and-sources). # Trace object and sources > Native trace discovery, reliable uploads, and the session records your analyzer stores for investigation and analysis. PIG reads native session files on an enrolled host and sends their contents to your analyzer. The analyzer stores the raw records and builds a canonical trace, a common representation of one agent session. The canonical trace lets analysis work across different native formats while the raw records keep the original evidence. ## Native sources [Section titled “Native sources”](#native-sources) The collector supports four source families. Startup and terminal hooks can supply a transcript path directly. Background catch-up also discovers files in the following locations: | Source | Host value | Default discovery locations | | -------------- | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | | Claude Code | `claude` | `~/.claude/projects/**/*.jsonl` | | Codex | `codex` | `sessions/**/*.jsonl` and `archived_sessions/**/*.jsonl` beneath `CODEX_HOME`, or `~/.codex` when unset | | Claude Desktop | `claude-desktop` | `**/audit.jsonl` beneath the two supported session directories in Claude’s application data | | Cursor | `cursor` | Desktop transcripts under `~/.cursor/projects/*/agent-transcripts/**/*.jsonl`, plus the Cursor session database (see platform paths below) | For Claude Desktop, the supported session directories are `local-agent-mode-sessions` and `claude-code-sessions`. Their parent application directory depends on the operating system: | Platform | Claude application directory | | -------- | ---------------------------------------------------------------------------------- | | macOS | `~/Library/Application Support/Claude/` | | Windows | `%APPDATA%/Claude/`, or `~/AppData/Roaming/Claude/` when `APPDATA` is unset | | Linux | `$XDG_CONFIG_HOME/Claude/`, or `~/.config/Claude/` when `XDG_CONFIG_HOME` is unset | For Cursor, the collector reads the desktop session database. Its default location depends on the operating system, and `PROMPTLESS_CURSOR_DATABASE` overrides it: | Platform | Cursor session database | | -------- | --------------------------------------------------------------------------------------------------------------------------------------- | | macOS | `~/Library/Application Support/Cursor/User/globalStorage/state.vscdb` | | Windows | `%APPDATA%/Cursor/User/globalStorage/state.vscdb`, or `~/AppData/Roaming/Cursor/User/globalStorage/state.vscdb` when `APPDATA` is unset | | Linux | `${XDG_CONFIG_HOME:-~/.config}/Cursor/User/globalStorage/state.vscdb` | The Cursor collector exports selected messages, tool arguments, saved tool results, and session identity from that database. It leaves out whole application rows and encryption metadata. Content that is missing, pruned, unsupported, interrupted, or oversized gets a capture marker, and transcript text serves as a degraded fallback. The collector writes what it captures to journals under `~/.promptless/instruction-hub/cursor/journals/` and uploads them with the same byte-range acknowledgments as other sources. It stops collecting at 128 MiB per journal, 1 GiB of journals in total, 4,096 journals, or 4,096 pending lifecycle notifications. It does not delete journals automatically. These are discovery paths implemented by the collector. They do not mean every agent application is available on every platform or writes every listed format. Claude Desktop collection depends on the audit files being present and readable. Claude Code’s generated hooks also attempt local Claude Desktop collection. Codex and Cursor use their own generated hooks. Gemini currently distributes instructions without native trace collection. See [Supported agents](/docs/governance/reference/supported-agents) for the distinction. ## Upload progress and retries [Section titled “Upload progress and retries”](#upload-progress-and-retries) The collector records each source’s progress in a local ledger at `~/.promptless/instruction-hub/host-runtime-ledger.json`. Each upload moves through these stages: | Stage | Behavior | | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | Read | The collector reads new byte ranges, compresses their contents with gzip, and base64-encodes them for transport. | | Send | The collector sends authenticated batches to the analyzer’s `POST /v0/traces/batches?target=` endpoint, where `` is a host value from [Native sources](#native-sources). | | Store | The worker validates the source and target, stores the native data, and returns acknowledged ranges. | | Advance progress | Only a matching acknowledgment advances the host’s recorded progress. | | Retry | A retry can resend a range whose response was lost. If the worker already accepted part of that range, the runtime checks the worker’s content proof before reconciling its offset. | When the collector first discovers a file, collection can begin at the file’s start, so first enrollment can upload existing history. Catch-up skips very recent files while they’re inside the collector’s idle grace period. A hook’s explicit transcript path takes priority. Don’t edit the ledger to force an upload, and don’t treat an HTTP success alone as evidence that analysis completed. Keep native files intact while you resolve an outage. File truncation, replaced content, malformed records, and oversized records each need accounting beyond advancing a byte counter. ## Stored trace records [Section titled “Stored trace records”](#stored-trace-records) The analyzer stores raw native artifacts in your trace bucket and maintains canonical session objects alongside them. PostgreSQL holds the associated metadata, ingestion progress, and analysis state. A canonical object uses `schema_version: 1` and contains these top-level fields: | Field | Meaning | | ------------------- | ---------------------------------------------------------------------------------------------------------------------------- | | `schema_version` | The canonical object format version | | `session` | Source and session identity, agent type, observed models, and optional repository or parent-agent context | | `lifecycle` | Session state and timestamps, with native event time separate from ingestion time | | `sources` | Source file identities, raw artifact references, observed offsets, ingestion counts, and skipped or truncated content counts | | `rollups` | Observed token usage, tool counts, compactions, and record accounting | | `context_artifacts` | Trace observations of instructions used, such as skill invocations or instruction-file references | | `preamble` | Events before the first turn | | `pending` | Events not yet attached to a turn | | `turns` | Ordered turns containing the session’s events | `context_artifacts` records what the trace reveals. It is separate from the instruction and repository snapshot prepared for analysis, described in [Trust and data model](/docs/governance/start-here/trust-and-data-model). Events have a `kind`, a global sequence number `seq`, and source evidence where available. The kinds are: | Kind | Content | | ------------------- | ------------------------------------------------------------ | | `user_message` | User input that opens a turn | | `assistant_message` | Assistant output, with its observed audience where available | | `reasoning` | Reasoning content exposed by the native trace | | `tool_call` | A tool invocation and its input | | `tool_result` | A tool’s output or error | | `compaction` | A compaction summary | | `session_event` | Session lifecycle or other agent machinery | | `other` | A record not represented by a more specific event kind | Sequence numbers are contiguous in document order. Native events carry a `src` reference identifying their source entry, record, and byte offset. When the canonical view truncates a payload inline, the original uploaded bytes remain in the referenced raw artifact. Unknown event kinds and malformed records are different cases; parse coverage records what could not be decoded or modeled. ## Use the records to investigate [Section titled “Use the records to investigate”](#use-the-records-to-investigate) To trace an Acme pilot session through the analyzer, run these checks in order: | Check | What it shows | | ------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Source and session ID | The session reached the analyzer. If it never arrives, start with the host’s [enrollment and collection checks](/docs/governance/get-started/enroll-your-hosts#troubleshooting). | | Raw artifacts | The native data is stored in your trace bucket. | | Ingestion and parse gaps | Which content the analyzer skipped, truncated, or couldn’t decode or model. | | Analysis run status | Whether analysis completed. A stored trace can still be waiting for the quiet period, repository resolution, or model access. | To investigate each stage, see [Observability](/docs/governance/deploy-the-worker/observability). # How it works > Understand PIG's components and dependencies, from publishing instructions to collecting traces and reviewing improvements. PIG connects publishing instructions with learning from sessions. You can publish instructions on their own. Adding trace analysis gives your team evidence about how those instructions perform in practice. This page explains the components, where they run, and what each one depends on. For individual terms, see [Key concepts](/docs/governance/start-here/key-concepts). ## Use cases [Section titled “Use cases”](#use-cases) * You want shared instructions now and analysis later. [Components every hub uses](#components-every-hub-uses) lists everything that publishing alone needs. * Your platform team asks what it must run. The component tables show which parts run in your Git provider, your cloud account, and Promptless, and what each one depends on. * A reviewer asks how a session becomes an instruction fix. [Learn from a session](#learn-from-a-session) follows one trace from the host to a reviewed pull request. * New instructions don’t appear after an analyzer update. [Keep the two update paths distinct](#keep-the-two-update-paths-distinct) explains why instruction releases and analyzer releases update separately. ## The components at a glance [Section titled “The components at a glance”](#the-components-at-a-glance) Scroll horizontally to view the architecture. ********************************************************** Instruction Hub Git repository Published plugins ### Host machineworkstation, laptop, agent host AI agent Trace collector hooks installed by Instruction Hub plugin Session Model provider Reuse the same model provider your agents use Trace digest Session traces Detected instruction issues & proposed updates ### Your cluster Trace analyzer Looks for agent errors, mistakes, inefficiency, misconfiguration, etc. Auto-updates on by default Trace objects Trace bucket Object storage: S3, GCS, etc. Analysis state PostgreSQL Findings, remediations, & analyzer status ### Promptless cluster Promptless Dashboard Review findings, remediations, analyzer status and agent instruction health 1. Instruction Hub → Published plugins → AI agent. 2. AI agent → Session → Model provider shared with the trace analyzer. 3. Host trace collector → Session traces → Trace analyzer. 4. Trace analyzer → Detected instruction issues and proposed updates → Instruction Hub. 5. Trace analyzer → Trace digest → Model provider shared with the AI agent. 6. Trace analyzer → Trace objects → Trace bucket. 7. Trace analyzer → Analysis state → PostgreSQL. 8. Trace analyzer → Findings, remediations, and analyzer status → Promptless Dashboard. Raw traces are stored in your trace bucket. Trace digests are sent to the model provider your agents use. ### Components every hub uses [Section titled “Components every hub uses”](#components-every-hub-uses) | Component | Where it runs | What it does | Depends on | | -------------------------------------------------------------------------------- | --------------------------------------- | ----------------------------------------------------------------------- | --------------------------------------------------------- | | Instruction Hub | Your Git repository | Holds instruction source, plugin definitions, and release configuration | Authors and reviewers | | [`pig` toolchain](https://github.com/Promptless/pig-toolchain) and publishing CI | An author’s machine and your CI runners | Validate source, build plugins, and publish releases | Hub source and repository publishing permissions | | Marketplace and released plugins | Your release repository | Make the compiled instructions available to agents | A successful publish and agent access to the repository | | Agent and host runtime | Each user’s workstation or agent host | Load installed instructions; optionally enroll and upload native traces | An installed plugin; analyzer connectivity for collection | ### Components used only for trace analysis [Section titled “Components used only for trace analysis”](#components-used-only-for-trace-analysis) | Component | Where it runs | What it does | Depends on | | -------------- | --------------------------------- | ----------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ | | Trace analyzer | Your Kubernetes cluster | Accept traces, reconstruct sessions, run analysis, and propose improvements | PostgreSQL, native object storage, Promptless, model access, and the selected instruction repositories | | Trace bucket | Your cloud account | Store raw trace chunks and reconstructed sessions | Private object storage and analyzer access | | PostgreSQL | Your cloud account | Store host identity, ingestion progress, and analysis state | Dedicated database and analyzer access | | Promptless | Promptless infrastructure | Manage enrollment and deployment coordination; record findings and coordinate GitHub issues and remediation | Your organization’s deployment and repository connections | | Model provider | Your configured provider endpoint | Process session and instruction context for analysis and remediation | Model access and configured credentials | The deployed trace analyzer service is named `pig-trace-analyzer`. Its analysis component is called the **Friction Analyzer**. The Friction Analyzer runs inside that service, so you deploy one analysis service. ## Publish an instruction [Section titled “Publish an instruction”](#publish-an-instruction) 1. **Author shared source** Acme keeps a `review-docs` skill in its Instruction Hub. The skill defines the review scope, accuracy and clarity checks, and the evidence each finding needs. Acme includes it in a `docs` plugin for writers and a `dev` plugin for developers. The skill is an **asset**, and the plugin is a named selection of assets. Updating the shared source changes both plugins on the next publish. Repository-specific facts, such as one project’s build command, stay in that project’s repository. 2. **Validate and build** The author runs `pig validate` to check the hub and `pig verify` to compile it in a temporary directory. CI runs the same checks on the pull request. These checks catch configuration and build errors. Reviewers still judge whether the instructions are correct and useful. The toolchain builds for the configured targets: Claude, Codex, Cursor, and Gemini. Different targets support different asset types and installation mechanisms. A successful build doesn’t prove that an agent has installed the plugin or can carry out every instruction in it. 3. **Publish and install** After review and merge, a GitHub or GitLab publishing pipeline builds the release output. It updates the release branch and marketplace pointers and records the hub version. Authors work with source on the default branch, and agents install the released output. Acme’s writers install the `docs` plugin and its developers install `dev`. Both install the required `pig` plugin. For Claude and Codex, it includes a managed skill that refreshes the marketplace and installed plugins. Each agent’s own installation and reload behavior still applies. See [Publish and install plugins](/docs/governance/get-started/publish-and-install-plugins) for CI configuration and the installation checks. ## Learn from a session [Section titled “Learn from a session”](#learn-from-a-session) 1. **Prepare the analyzer and enable collection** Your platform team deploys the analyzer and connects its database, bucket, and model provider. It configures a deployment with Promptless and makes the analyzer reachable from the hosts that upload traces. An organization administrator selects the instruction repositories the analyzer reads in PIG Settings. The hub owner then enables `trace_ingestion.enabled`, publishes a new release, and refreshes installed plugins. This adds the managed collection runtime to the Claude, Codex, and Cursor versions of the `pig` plugin. The setting doesn’t create infrastructure or enroll hosts. 2. **Enroll each host** A host opens the browser enrollment flow. A signed-in organization member approves it, and Promptless issues a credential for that host and deployment. The host uses that credential to authenticate to your analyzer. The collector reads supported native session logs: Claude Code, Claude Desktop, Codex, and Cursor. Cursor collection needs analyzer 0.3.3 or later. A Claude Desktop source must exist on the machine and be enrolled. Installing a Claude plugin alone doesn’t make Desktop traces available. Gemini plugin builds don’t include native trace collection. 3. **Collect and store the trace** As sessions run, the collector uploads new complete lines from native logs. Your analyzer stores raw chunks and reconstructed traces in your trace bucket, with host attribution, ingestion progress, and analysis state in PostgreSQL. The host retains its upload ledger and retries unacknowledged ranges on later collection passes. First collection can upload existing session history when a source has no acknowledged offset. Later collection resumes from the acknowledged position. For source and retry details, see [Trace object and sources](/docs/governance/reference/trace-object-and-sources). 4. **Analyze the session** The analyzer examines sessions after they finish or become quiet. It uses session evidence and instruction-hub context to investigate instruction failures. That work calls the model provider you configured. For example, an older release of Acme’s `review-docs` skill omits prerequisite checks. Agents following it repeatedly approve setup guides without checking required permissions. The analyzer can identify the missing instruction and cite the observed reviews. A completed analysis can also produce no finding, which doesn’t mean ingestion failed. 5. **Review and improve** The analyzer writes findings and evidence to Promptless. Promptless coordinates their GitHub issues and remediation state. When a finding warrants an instruction change, an isolated remediation task in the worker can prepare a pull request against the hub. Acme’s reviewer checks the evidence and the proposed instructions, runs the relevant checks, and merges an accepted fix. The hub’s publishing pipeline distributes a new release. Refreshing the installed plugins makes the correction available to the team’s agents. Each instruction repository the analyzer reads is a GitHub repository with a `main` branch. The analyzer receives GitHub App tokens from Promptless to read them. A GitLab-hosted hub can publish plugins, but analysis and remediation work only with GitHub repositories. ## Keep the two update paths distinct [Section titled “Keep the two update paths distinct”](#keep-the-two-update-paths-distinct) Instruction releases change the content your agents install. Hub owners publish them through Git, and agent users refresh their plugins. Analyzer releases change the service that collects and studies traces. The trace analyzer updates automatically to stable releases by default. You can pause updates or pin a release. See [Manage updates and recovery](/docs/governance/deploy-the-worker/manage-updates-and-recovery). ## Next steps [Section titled “Next steps”](#next-steps) * [Set up an Instruction Hub](/docs/governance/get-started/set-up-your-instruction-hub) to begin publishing. * [Migrate existing instructions](/docs/governance/get-started/migrate-existing-instructions) if your team already has shared guidance. * Review the [trust and data model](/docs/governance/start-here/trust-and-data-model), then [plan your deployment](/docs/governance/deploy-the-worker/plan-your-deployment) to add analysis. # Key concepts > Definitions and examples for Instruction Hubs, assets, plugins, marketplaces, releases, hosts, traces, findings, and the trace analyzer. Use this glossary while [setting up your hub](/docs/governance/get-started/set-up-your-instruction-hub) or [planning a deployment](/docs/governance/deploy-the-worker/plan-your-deployment). [How it works](/docs/governance/start-here/how-it-works) connects the terms into a complete workflow. ## Hub content [Section titled “Hub content”](#hub-content) Your team writes shared instructions in a hub and packages them into plugins that users install: | Term | Definition | | --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Instruction Hub | A Git repository containing the shared instructions your team maintains for AI agents. It holds authored assets, plugin definitions, and a `hub.yaml` configuration. | | Asset | One unit of source content or configuration in the hub, stored under `assets/`. | | Plugin | A named group of assets that a user installs. | | Marketplace | The catalog through which supported agents discover your released plugins. | ### Instruction Hub [Section titled “Instruction Hub”](#instruction-hub) A hub is the source of truth for shared guidance. Your team reviews changes in pull requests before publishing them. Keep project context in each repository’s `AGENTS.md` or `CLAUDE.md`, and move reusable procedures into shared assets. For example, Acme’s hub contains one documentation-review skill used by both its writers and developers. ### Assets [Section titled “Assets”](#assets) Plugin definitions refer to an asset by its kind and ID, such as `skill:review-docs`. A hub can contain these kinds of assets: | Kind | Purpose | Example | | --------- | --------------------------------------------------------- | ----------------------------------------- | | `skill` | A reusable procedure with a description of when to use it | Review a documentation change | | `rule` | Guidance that applies in a defined context | Follow the team’s API terminology | | `agent` | Instructions for a specialist role | Investigate a failed documentation build | | `command` | A named entry point for a task | Prepare release notes | | `hook` | An action tied to an agent lifecycle event | Run a check when a session ends | | `mcp` | Configuration for a Model Context Protocol server | Connect to a documentation search service | A skill normally contains `SKILL.md` and can include supporting references, templates, or scripts. Asset metadata describes target support. Native formats and supported conversions vary by agent, and a compiled asset can use only the tools and host features the target agent provides. See [Supported agents](/docs/governance/reference/supported-agents). ### Plugins [Section titled “Plugins”](#plugins) A plugin’s source definition lives in `plugins/.yaml`, and its compiled output lives in `dist///`. For example, `plugins/docs.yaml` can select the documentation skill: ```yaml id: docs name: Acme Docs includes: - skill:review-docs ``` Acme can also include that asset in `plugins/dev.yaml`. The two plugins serve different audiences and share the same authored procedure. The ID is the plugin’s literal identity: the toolchain uses `docs` exactly as written, without adding your organization or marketplace ID. Choose IDs deliberately, especially if users install plugins from several hubs. ### The required pig plugin [Section titled “The required pig plugin”](#the-required-pig-plugin) Every hub includes a plugin with the exact ID `pig`, listed in `stable_plugins`. It can contain shared instruction assets, including those added by `pig scan`. The toolchain adds the managed `update-instruction-hub` skill to this plugin for Claude and Codex. When trace ingestion is enabled, this same plugin receives the managed enrollment hooks and collection runtime. Plugins such as `docs` and `dev` don’t receive those managed hooks or the collection runtime. ### Marketplace [Section titled “Marketplace”](#marketplace) The marketplace’s identity belongs to the hub and is separate from individual plugin IDs. Acme’s `hub.yaml` could contain: ```yaml org: Acme marketplace: id: acme-instruction-hub name: Acme Instruction Hub version: 0.1.0 stable_plugins: [pig, docs, dev] targets: [claude, codex, cursor, gemini] trace_ingestion: enabled: false ``` The example assumes matching definitions for all three plugins. The generated catalog and installation process depend on the agent; Gemini uses extensions. See [Publish and install plugins](/docs/governance/get-started/publish-and-install-plugins). ## Builds, releases, and updates [Section titled “Builds, releases, and updates”](#builds-releases-and-updates) The `pig` toolchain compiles the hub into releases that agents install. The trace analyzer has its own releases: | Term | Definition | | ----------------- | ---------------------------------------------------------------------------------------------------------------- | | `pig` | The command-line tool that scaffolds, validates, scans, and compiles a hub. | | Target | An agent format the toolchain builds: `claude`, `codex`, `cursor`, or `gemini`. | | Hub release | The versioned result of compiling the selected plugins for the selected targets. | | Analyzer release | A version of the deployed analysis service. Hub releases and analyzer releases update independently. | | Automatic updates | By default, the trace analyzer updates automatically to stable releases. You can pause updates or pin a release. | ### The pig toolchain [Section titled “The pig toolchain”](#the-pig-toolchain) The `pig` Python package is `promptless-instruction-hub`, and the same CLI is also available under that longer command name. Authors run `pig` locally, and CI runs it when checking and publishing changes. `pig verify` checks a build in a temporary directory, and `pig build` writes generated output. The CI integration publishes releases. See the [CLI reference](/docs/governance/reference/pig-cli-reference). ### Targets and releases [Section titled “Targets and releases”](#targets-and-releases) `version` in `hub.yaml` is the hub’s semantic version. The release pipeline writes release metadata to `hub.release.json` and the stable pointer to `hub.stable.json`. A published release and an installed plugin are different states. Users must install or refresh the plugin before an agent can load the new content. ### Automatic updates [Section titled “Automatic updates”](#automatic-updates) Updates coordinate the analyzer, database migrations, and dedicated PIG resources within the permissions your platform team grants. Shared clusters and networking remain under your team’s control. See [Manage updates and recovery](/docs/governance/deploy-the-worker/manage-updates-and-recovery). ## Hosts and trace collection [Section titled “Hosts and trace collection”](#hosts-and-trace-collection) When trace ingestion is enabled, each enrolled host collects records of agent sessions for analysis: | Term | Definition | | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | | Host | An enrolled agent environment on a workstation or other machine. Its identity lets PIG attribute traces and collection status to the right source. | | Host runtime | The collector, `promptless-host-runtime`, that the Claude, Codex, and Cursor versions of the `pig` plugin include when `trace_ingestion.enabled` is `true`. | | Enrollment | The browser approval that associates a host with a Promptless organization and analyzer deployment. | | Host policy | The configuration that tells the collector which host types and collection settings are enabled. | | Session | A period of work recorded by an agent. | | Trace | PIG’s representation of a session, reconstructed from the agent’s native logs. It can include messages, tool activity, timestamps, and other source records. | | Canonical trace | A trace’s records organized into a common representation for analysis. | ### Hosts and the host runtime [Section titled “Hosts and the host runtime”](#hosts-and-the-host-runtime) Generated lifecycle hooks start collection work without blocking the agent session. Native trace sources are Claude Code, Claude Desktop, Codex, and Cursor. Cursor collection needs analyzer 0.3.3 or later. PIG distributes plugins to Gemini but doesn’t collect Gemini’s native traces. ### Enrollment and policy [Section titled “Enrollment and policy”](#enrollment-and-policy) A signed-in organization member approves each enrollment request. The host receives its own credential, which it uses for authenticated requests to the analyzer. Installing a plugin, enabling collection in `hub.yaml`, and enrolling a host are separate steps. See [Enroll your hosts](/docs/governance/get-started/enroll-your-hosts). ### Traces and sessions [Section titled “Traces and sessions”](#traces-and-sessions) Raw uploads preserve a trace’s original records. PostgreSQL records ingestion and analysis state, and your trace bucket holds raw chunks and trace objects. See [Trace object and sources](/docs/governance/reference/trace-object-and-sources). ## Analysis and remediation [Section titled “Analysis and remediation”](#analysis-and-remediation) The trace analyzer turns sessions into findings, and your team reviews the fixes: | Term | Definition | | ------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Trace analyzer | The customer-deployed `pig-trace-analyzer` service, also called the worker. It accepts authenticated uploads, stores trace data, runs analysis, and coordinates results with Promptless. | | Friction Analyzer | The analysis component inside the trace analyzer. It examines completed or quiet sessions using the configured model provider and Instruction Hub context. | | Finding | An instruction problem observed in session analysis. It includes an explanation, impact, confidence, and supporting evidence. | | Evidence occurrence | The connection between a finding and a particular session, including what happened there. | | Remediation | The work to address a finding. | | Promptless | The service that manages enrollment credentials and deployment coordination, stores findings, and coordinates their GitHub issues and remediation state. | ### The worker and Friction Analyzer [Section titled “The worker and Friction Analyzer”](#the-worker-and-friction-analyzer) The Friction Analyzer runs inside the trace analyzer, so you deploy only the trace analyzer. The service requires PostgreSQL and native object storage (S3, Azure Blob Storage, or Google Cloud Storage). Analysis also requires model configuration and a verified GitHub hub repository with a `main` branch. See [Plan your deployment](/docs/governance/deploy-the-worker/plan-your-deployment). ### Findings and evidence [Section titled “Findings and evidence”](#findings-and-evidence) Multiple sessions can support the same finding. Evidence helps a reviewer distinguish a recurring instruction problem from an isolated mistake. A session may complete analysis without producing a finding. See [Understand findings](/docs/governance/findings-and-remediation/understand-findings). ### Remediation [Section titled “Remediation”](#remediation) When an instruction change is appropriate, PIG can prepare a pull request against your hub. Your team reviews the proposed fix and uses its normal checks and merge controls before publishing it. Some findings need a change to a tool, integration, or external system outside the hub. See [Remediate findings](/docs/governance/findings-and-remediation/remediate-findings). ### Promptless [Section titled “Promptless”](#promptless) Promptless trace-status records exclude raw transcripts. Findings are a separate data flow and can describe session details. Analysis also sends session-derived input to your configured model provider. See [Trust and data model](/docs/governance/start-here/trust-and-data-model). # Trust and data model > Understand where PIG stores traces, what Promptless and your model provider receive, and which credentials connect each component. PIG stores raw traces and canonical trace objects in your infrastructure. Analysis sends session-derived input to the model provider you configure. Promptless receives trace status and findings, whose text can describe details from a session. Use this page to decide which hosts to enroll, where to run analysis, and who should have access to the resulting data. The [architecture overview](/docs/governance/start-here/how-it-works) shows how the components connect. ## Use cases [Section titled “Use cases”](#use-cases) * Your security team reviews PIG before any host uploads a session. [Where data goes](#where-data-goes) lists each kind of data and the system that receives it. * You choose pilot hosts and repositories. Transcripts can contain prompts, tool output, and file excerpts, so start with hosts whose work your organization approves for storage and analysis. * You decide who can read findings. Findings and their GitHub issues can describe session details, so match repository access to that audience. * You plan secrets for the deployment. [Credentials and access](#credentials-and-access) lists each credential, what uses it, and what it grants. ## Where data goes [Section titled “Where data goes”](#where-data-goes) | Data | Destination | Purpose | | -------------------------------------------------------- | ------------------------------------------------------- | ---------------------------------------------------------- | | Instruction assets and plugin definitions | Your Git repository and CI | Review and publish shared instructions | | Compiled plugins | Installed agent hosts | Make instructions available during agent work | | Native transcript records | Your analyzer and trace bucket | Preserve the source evidence for analysis | | Canonical traces and optional context snapshots | Your customer-owned storage | Reconstruct sessions and the context available to an agent | | Host attribution, ingestion progress, and analysis state | Your PostgreSQL database | Track uploads and coordinate processing | | Session and instruction context | Your configured model provider | Analyze behavior and prepare proposed improvements | | Trace identity, counts, and processing status | Promptless | Show collection and analysis progress | | Findings, evidence summaries, and remediation state | Promptless and connected GitHub issues or pull requests | Explain problems and review proposed changes | | Configured operational telemetry | Your selected observability systems | Diagnose deployment and analysis failures | A native transcript can contain prompts, tool arguments and outputs, file excerpts, and other content the agent records. Treat it according to the sensitivity of the work your agents perform. The collector uploads native records as the agent wrote them and doesn’t remove secrets from transcripts before upload. ## From hosts to your analyzer [Section titled “From hosts to your analyzer”](#from-hosts-to-your-analyzer) After you enable managed trace ingestion and enroll a host, its collector sends new complete records from supported session logs to your analyzer. Uploads use HTTPS and include source identity, offsets, checksums, and collector information so the analyzer can authenticate and reconcile them. Optional analysis-context snapshots describe what instructions, tools, or artifacts were available and which hub release was installed. The analyzer stores these with the session context in customer-owned storage. The collector keeps a local upload ledger that records acknowledged ranges. If an upload fails, the collector retries the unacknowledged ranges on a later collection pass. A newly discovered source can upload its existing session history from the beginning. Later collection resumes from the acknowledged position. Keep local transcripts until their uploads reach the analyzer, because the collector retries from them. Collection runs only for enabled, supported host sources. A new hub has `trace_ingestion.enabled` set to `false`. Turning the setting off, publishing, and refreshing installed plugins removes the managed hooks from those installations. Data already ingested and your deployed analyzer stay as they are. ## From the analyzer to Promptless [Section titled “From the analyzer to Promptless”](#from-the-analyzer-to-promptless) The analyzer sends a limited **trace-status projection**: identifiers, host attribution, timestamps, lifecycle and processing status, and event and turn counts. This projection excludes raw and canonical transcript content, prompts, tool activity, working directories, Git metadata, models, and source fingerprints. Findings are a separate flow. The analyzer writes their summaries, impact descriptions, explanations, and evidence occurrences to Promptless. A model writes these descriptions, and they can refer to session content. Connected GitHub issues and remediation pull requests also make that information available to people who can access the repository. ## From the analyzer to your model provider [Section titled “From the analyzer to your model provider”](#from-the-analyzer-to-your-model-provider) The analyzer sends session-derived input and relevant instruction context to the configured model endpoint. You choose the provider, endpoint, model, and authentication in the deployment configuration. Current providers are OpenAI, Azure OpenAI, and AWS Bedrock. Available authentication depends on the provider. Bedrock can use AWS identity, and API-key configurations need the provider’s key. Hosting the analyzer on Azure or GCP does not automatically select a model provider. Review the provider’s data-handling terms and your organization’s model-access policy for the work you plan to collect. See [Deployment configuration](/docs/governance/deploy-the-worker/configuration-reference) for the available settings. ## Credentials and access [Section titled “Credentials and access”](#credentials-and-access) | Credential or identity | Used by | Grants access to | | ---------------------------------- | ------------------------------------ | ------------------------------------------------------- | | Deployment install token, `plih_…` | Your analyzer | Promptless for the configured deployment | | Per-host credential, `plihost_…` | An enrolled host | Your analyzer’s authenticated host endpoints | | PostgreSQL credentials | Analyzer and migration job | The customer database and required schema operations | | Cloud workload identity | Analyzer | The configured trace bucket and authorized model access | | Model API key | Analyzer, for API-key authentication | The configured model endpoint | | Analysis repository token | Analyzer | Read access to each selected instruction repository | | Remediation repository token | An isolated remediation task | Repository-scoped operations to prepare its change | An organization member approves enrollment in Promptless. The host caches its own credential locally and sends it to your analyzer for authenticated requests. The analyzer validates the credential through Promptless using its hash, deployment identity, and host target. A credential for one host family or deployment cannot be substituted for another. Keep the deployment token in your cluster’s secret-management system, out of distributed plugins. Each host has its own credential, so the team shares no single secret. Repository credentials have distinct roles. When the analyzer requests its instruction sources, Promptless issues a GitHub App token that reads each selected repository. Promptless uses the connected GitHub integration for issues and supplies a repository-scoped token for an isolated remediation task. None of these tokens is part of an uploaded trace or a published plugin. ## Your operational responsibilities [Section titled “Your operational responsibilities”](#your-operational-responsibilities) Choose database and bucket access, encryption, retention, backup, and restore settings according to your requirements. Configure HTTPS for host-to-analyzer traffic and use the intended network access path, such as your organization’s VPN. Limit repository and observability access to the people who need the information they contain. Treat logs as another place where trace data can appear. The analyzer emits structured diagnostics that can include trace-related labels or analysis details. Apply your normal log access and retention controls when enabling an observability integration. Automatic updates maintain PIG application releases and schema migrations within the installed permissions. Your team owns cloud infrastructure, including database sizing, storage, IAM, and backups, through Terraform. See [GitOps ownership](/docs/governance/deploy-the-worker/gitops-ownership) for the permission and ownership model. ## Next steps [Section titled “Next steps”](#next-steps) Review [deployment planning](/docs/governance/deploy-the-worker/plan-your-deployment) with your platform team, then deploy the analyzer [with Helm](/docs/governance/deploy-the-worker/deploy-the-analyzer-worker) or a cloud recipe. Next, [enroll a pilot host](/docs/governance/get-started/enroll-your-hosts) and verify its collection path before expanding to more users. # Component fixtures > Internal fixture page that renders Starlight Asides, Cards, CardGrid, LinkCard, and Steps components to preview and verify how they appear. This hidden page renders the Starlight components and HTML patterns the docs use, with placeholder content. Use it to preview how they render on the site. Site search and the sitemap both exclude it. ## Fixtures [Section titled “Fixtures”](#fixtures) The page renders these fixtures, in this order: | Fixture | Renders | | --------- | ------------------------------------------------------------------ | | Asides | Five `