# Artifact kinds Source: https://docs.amplify.security/agents/artifact-kinds Define your own kinds of result, describe their shape, and change them safely once artifacts exist. ## What a kind is Every result an agent records is an [artifact](/workflows/artifacts#the-artifact-model) of some **kind**. Console ships its own kinds, prefixed `amplify:` — `amplify:finding`, `amplify:patch`, and others. Your organization can define its own, with plain names like `scan-report` or `dependency-inventory`. A kind's **schema** says what an artifact of that kind contains: its fields, their types, which ones are required. Console uses it in two places: * **When an agent records an artifact**, the agent is shown the schema and the artifact is checked against it. A result that doesn't fit is refused at the moment it's recorded, with the offending field named, so a bad result never lands. * **When you chain agents**, a step that [consumes](/agents/writing-an-agent#consumes) your kind can group its input by the fields the schema declares. Kinds belong to your organization. Any agent in the organization can produce or consume one once it exists. ## Creating a kind ### In chat or the CLI Ask for it. Describe what the kind should hold, and the agent drafts the schema and saves it: > Create a kind called `dependency-inventory` with a markdown report, a status that's one of clean, > outdated or vulnerable, and a list of packages with a name, a version and whether they're direct. Both [chat](/interactive/chat) and the [CLI](/interactive/cli) have the kind tools — `list_kinds`, `get_kind`, `create_kind` and `update_kind` — and use them the same way. When you ask for an agent that produces a new kind, the agent creates the kind first and then the agent. ### In an agent definition You can also declare a kind where it's produced: a `schema:` block on a `produces:` entry registers the kind when you save the agent. See [defining a kind inline](/agents/writing-an-agent#defining-a-kind-inline). ## The schema A schema is a list of fields, plus an optional description of what the kind is for: ```yaml theme={null} description: Third-party dependencies found in a repository, with their status. fields: report: type: string required: true description: Human-readable inventory, one section per manifest. file: { path: inventory.md, contentType: text/markdown } status: type: string required: true enum: [clean, outdated, vulnerable] packages: type: array items: type: object fields: name: { type: string, required: true } version: { type: string, required: true } direct: { type: boolean } ``` Each field takes: | Key | Applies to | What it does | | - | - | - | | `type` | Every field | One of `string`, `number` (any number), `integer` (whole numbers only), `boolean`, `object`, `array`. Required. | | `required` | Every field | `true` means every artifact of this kind must include the field. Leave it out for an optional field. | | `description` | Every field | Guidance for the agent filling the field in, up to 1,000 characters. | | `enum` | `string` | A closed list of allowed values. | | `fields` | `object` | The object's own fields. Required for an `object`. | | `items` | `array` | The shape of every element. Required for an `array`. | | `file` | Top-level `string` | Stores the field's content as a file instead of inline. See [file fields](#file-fields). | The kind-level `description` (beside `fields`, up to 1,000 characters) says what the kind is for. Agents see it when they choose which kind to record, and whenever you or an agent lists or reads your kinds. ### File fields A long document — a report, a diff, a generated config — is better stored as a file than as an inline value. Give a top-level `string` field a `file` route: ```yaml theme={null} report: type: string file: { path: inventory.md, contentType: text/markdown } ``` The artifact then carries `inventory.md` as a file, which you can open and download from the run. * `path` is a relative path: letters, digits, `.`, `_`, `-` and `/`, at most 128 characters. Two fields in one kind can't use the same path. * `contentType` must be a text format: any `text/*` type, or `application/json`, `application/yaml`, `application/xml`, `application/x-ndjson`, or a `+json`, `+xml` or `+yaml` type. Store the source, not a rendering. `text/html`, PDFs and images aren't accepted: an artifact holds the canonical content (`text/markdown`, say), and HTML or PDF versions are produced when you download it. ### Names and limits * **Kind names** are lowercase letters, digits and single hyphens, up to 64 characters — `scan-report`, not `Scan_Report`. Names containing `:` are reserved for Console's own kinds. * **Field names** are `snake_case`, starting with a letter, up to 64 characters. * **`kind`, `summary` and `finding_ids`** can't be used as top-level field names: every artifact already carries them. Use something like `report_summary` instead. * A schema can nest up to 8 levels deep, with up to 32 fields at any one level and 256 in total, and must be under 32 KB. * An organization can register up to 500 kinds. Kinds can't be deleted, so choose names you're happy to keep. ## Changing a kind A kind can change after artifacts exist. Each change you save becomes a new **version** of the kind; earlier versions are never edited or removed. * **Every artifact is stamped with the version it was recorded under**, and stays valid against that version for good. Changing a kind never reinterprets what's already been recorded. * **New work uses the latest version.** A workflow run uses the versions that are current when it starts, for every step — a change made mid-run applies from the next run. In chat and the CLI, a change you make takes effect from your next message. A CLI session doesn't see changes made elsewhere — by a teammate, or in chat — until you restart `console`. * **Saving an identical schema does nothing** — no new version. To change a kind, ask chat or the CLI. A `schema:` block in an agent definition only ever creates a kind; it never changes one. ### Compatible and breaking changes Console compares every change with the latest version and classifies it, at every level of nesting: | Change | Result | | - | - | | Add an optional field | Compatible | | Add a required field | Breaking — unless it sits inside an optional field you're adding in the same change | | Remove or rename a field | Breaking | | Change a field's type, including `integer` → `number` | Breaking | | Make a field required, or make a required field optional | Breaking | | Add values to an `enum`, or remove the `enum` | Compatible | | Remove values from an `enum`, or add an `enum` to a field that had none | Breaking | | Reorder an `enum`'s values | Compatible | | Change a description | Compatible | | Add, remove or change a field's `file` route | Breaking | Two of these surprise people: * **Making a required field optional is breaking.** More artifacts are valid, but anything relying on the field always being there loses that guarantee. * **`integer` → `number` is breaking** for the same reason: every old value still fits, but whole numbers are no longer guaranteed. **Compatible changes** are saved straight away. **Breaking changes need your confirmation.** Before saving one, chat or the CLI shows you what breaks and which of your agents depend on it — any agent whose `group-by` uses a field you're removing or retyping — and waits for you to say yes. Nothing is saved until you do — and if someone else changes the kind while you're deciding, you're shown the new comparison and asked again. > [!WARNING] > > An agent whose `group-by` names a field the latest version no longer has will stop working in workflows: > the next run fails before any step starts, with an error naming the agent, the field and the kind version. > Update that agent's `group-by` — or add the field back — to fix it. When you widen an `enum`, agents that branch on that field may now see a value they weren't written for. Check that they handle it. ### What a schema can't express These aren't supported, because Console can't reliably tell whether a change to them is safe: * **Either-or fields** — a field that can be one shape or another. * **Patterns** — regular expressions a string must match. * **Numeric ranges** — minimum and maximum values. * **Recursive shapes** — a field that contains its own type. * **Default values** — a value filled in when a field is missing. Describe a constraint like these in the field's `description` instead: the agent filling it in reads it. ## Hiding intermediate kinds Some kinds exist only to pass work between workflow steps: one step records hundreds of candidates, the next reads them all. Mark a kind like that **internal** to keep it out of the run's artifact list and artifact count: > Mark `dependency-candidate` as internal. Internal artifacts are still recorded and still delivered to every step that consumes the kind. You can open one by its ID, and list them by asking for that kind by name. Internal is a setting on the kind, not part of its schema: changing it doesn't create a version, and new versions keep it. Ask the same way to show the kind again. Every kind the `amplify-vulnerability-scanner` workflow records is internal from the start, verdicts included: its results are the findings. ## Next steps > **[Writing an agent](/agents/writing-an-agent#contracts-what-a-step-produces-and-consumes)** > > Declare what an agent produces and consumes. > **[What a run produces](/workflows/artifacts)** > > Artifacts, findings and patches. # Detections Source: https://docs.amplify.security/agents/detections Reusable rules that outlive any one conversation — OpenGrep patterns and natural-language policies. ## Why detections exist A finding describes one moment: this file, this commit, this vulnerability. A **detection** is the rule behind it, and it keeps checking forever. That is what makes the work compound. When an agent confirms a vulnerability, the durable value is the rule it leaves behind: one that catches the same mistake in every repository from then on, cheaply, with no agent needing to re-derive it. ## Detection types | Type | Format | What it's good at | | - | - | - | | **OpenGrep rule** | YAML | Structural patterns with a known shape — a dangerous API, a missing flag, a taint path from source to sink. Fast and deterministic. | | **Policy** | Natural language | Intent that resists pattern matching — "every endpoint that mutates data must check authorization", "no service may log request bodies". Evaluated by an agent. | | **CodeQL query** | QL | Deep dataflow queries. See the limitation below. | > [!WARNING] > > **CodeQL detections can be authored but are not yet executed.** Only OpenGrep and policy detections have > runtimes today; `detections-runner` stores other types and skips them with a note. The > `codeql-rule-creator` skill and the editor's CodeQL support exist so the rules are ready when execution > lands. ### OpenGrep rules OpenGrep rules support two modes: * **`search`** — match a pattern. Use `pattern`, `patterns`, `pattern-either`, or `pattern-regex`. * **`taint`** — track data flow. Declare `pattern-sources`, `pattern-sinks`, and optionally `pattern-sanitizers`; a match is a source reaching a sink with nothing neutralizing it in between. Taint mode is the one that matters most for security work: it encodes *reachability*, which is usually the question you actually care about. Rules carry a severity of `INFO`, `WARNING`, or `ERROR`, and OpenGrep filters by the rule's own `languages` field at run time — so an irrelevant rule exits cheaply rather than wasting a pass. ### Policy detections A policy is a security requirement written in plain language. At run time, `detections-runner` spawns a `policy-evaluator` per policy, bound to that detection so every finding links back to it. Policies are the right tool when the rule is about intent — business logic, authorization, data handling — where no pattern captures the requirement and a human reviewer would need to reason about the code. ## Fields that matter | Field | Values | What it does | | - | - | - | | **Severity** | `critical`, `high`, `medium`, `low` | How serious a match is. | | **Disposition** | `flag`, `escalate` | What should happen on a match — record it, or escalate it. | | **Tags** | free-form | Grouping and filtering. | | **Project** | optional | Scopes the detection to one repository. Unset means it applies organization-wide. | ## Where detections come from | Source | Meaning | | - | - | | `manual` | Authored by a person, or by an agent on request. | | `risk-register` | Compiled from your organization's risk register. | | `threat-model` | Compiled from a threat model. | Compiled detections keep provenance back to the upstream document, so a rule can be traced to the requirement that motivated it. ## Authoring a detection **In the web console.** Open **Detections** and create one. The editor syntax-highlights by type — YAML for policies, Markdown with YAML frontmatter for rule types — and labels the language in the header. Customer types the UI doesn't recognize still render with a generic label rather than breaking. **With an agent.** Often the better path, because agents can validate as they go: * `opengrep-rule-creator` writes and checks an OpenGrep rule. * `policy-detection-creator` turns a requirement into a stored policy. * `detection-author` reads a scan's findings and authors a detection for each — the automated version of the same loop. Ask in [chat](/interactive/chat): *"Write an OpenGrep rule that catches this pattern and save it."* ## Running detections Add [`detections-runner`](/agents/library#detections) as a workflow step. It lists every stored detection, triages which apply, and dispatches by type — OpenGrep rules directly, policies via one child evaluator each. Findings link back to the detection that produced them, so you can see which rules are earning their place. Its bias is deliberate: it dispatches when in doubt, because a detection that never ran is worse than a wasted pass. ## The compounding loop 1. An agent confirms a vulnerability in [chat](/interactive/chat) or a workflow run. 2. `detection-author` — or you — turns it into a detection. 3. A `detections-runner` workflow applies it on every pull request from then on. Step 3 is cheap and repeatable. That's the payoff for the reasoning spent in step 1. ## Next steps > **[Run them in a workflow](/workflows/create-a-workflow)** > > Add `detections-runner` to a chain. > **[Findings](/data/findings)** > > What a detection produces when it matches. # How agents work Source: https://docs.amplify.security/agents/how-agents-work What an agent is, how it runs, and how agents delegate to each other. ## What an agent is An agent is a participant in the harness: a model, a set of tools it may call, a budget, and a body of instructions. Give it a task and it works until the task is done or the budget runs out. An agent decides what to do next based on what it just learned. It reads a file, notices a suspicious call, traces the caller, runs a command to check a hypothesis, and either confirms or discards it. That loop — reason, act, observe, reason again — suits security work, where the question is usually reachability: can an attacker actually get there? ## How a run proceeds 1. **The agent receives a task.** In chat that's your message; in a workflow it's the task Console composes for that step. 2. **It reasons and calls tools.** Each call returns a result it reads before deciding the next step. 3. **It may load a skill** with `activate_skill` when it hits a task a documented procedure covers. 4. **It may delegate** with `spawn_agent`, handing focused work to a child and waiting for the summary. 5. **It records durable results** — findings, patches, detections — rather than only replying in prose. 6. **It stops** when the task is done, the budget is exhausted, or it's cancelled. Everything an agent does in step 2 is bounded by the [tool surface](/agents/tool-reference). ## Budgets Two ceilings keep a run from going forever, both settable per agent: * **`maxIterations`** — how many reasoning↔tool cycles it may take. * **`timeout`** — wall-clock milliseconds for the whole execution. For an orchestrator, `timeout` covers every child it spawns, so it must exceed the worst-case sum of their durations. Leave both unset unless the agent is genuinely an outlier. ## Delegation and agent trees An agent can spawn sub-agents, and those can spawn their own, forming a tree. This exists for two reasons: * **Focus.** A child starts with a clean context scoped to one job, so a broad scan doesn't drown in detail from the first file it opened. * **Parallelism.** Independent work runs concurrently — one evaluator per detection, one patch generator per file. A child returns a **summary**, not its full transcript. The parent sees the conclusion and quotes it forward. This is why an agent's `description` and its final summary both matter so much: they're the interface between agents. You can watch the tree live — as a nested view in the CLI, and in the web console's chat while a turn runs. ## Where agents come from | Source | Description | | - | - | | **Platform agents** | The library Console ships. See [the agent library](/agents/library). | | **Organization agents** | Agents your team writes, in the web console or the CLI. | Both appear together wherever agents are listed, and a workflow treats them identically. An organization agent whose `name` matches a platform agent **shadows** it — the supported way to customize built-in behavior. ## When to write your own Reach for a new agent when: * The task is a distinct job with its own output — "audit dependencies", "review IaC for public exposure". * You want different tool permissions, like a read-only reviewer that can't modify code. * You want a different model for cost or depth reasons. Prefer a [skill](/agents/skills) instead when you're capturing *how to do one thing well* and an existing agent could follow it. Skills are cheaper: no separate budget, no separate model, loaded only when relevant. ## Next steps > **[Write an agent](/agents/writing-an-agent)** > > The frontmatter reference. > **[Chain them](/workflows/agent-chain)** > > Sequence agents into a workflow. # The agent library Source: https://docs.amplify.security/agents/library The agents Console ships, what each is for, and which ones to put in a workflow. ## Using the library Console ships the agents below. They appear in the agent list and the [workflow agent picker](/workflows/create-a-workflow#agents) alongside anything your organization writes. They're also the best available examples of the format — if you're about to [write an agent](/agents/writing-an-agent), open one first and read how its frontmatter and instructions are put together. ## Scanning The vulnerability scanners share one approach: map the repository's security conventions, hunt for places the implementation diverges from that intent, then confirm candidates through analysis. They differ only in how broadly they hunt and how deeply they confirm. | Agent | Profile | Use when | | - | - | - | | `vulnerability-scanner-basic` | Pursues the top 6 candidates, caps at 6 findings, generic analysis only. | You want a fast signal — a pull request check where latency matters. | | `vulnerability-scanner-standard` | Pursues the top 10 candidates, caps at 10 findings, uses the class-specific skill library plus confirmation. | The default choice for most workflows. | | `vulnerability-scanner-comprehensive` | Pursues the top 40 candidates, caps at 40 findings, uses the full skill library and a more capable model. | Auditing a repository in depth, where thoroughness matters more than speed. | The caps are deliberate. A scanner that returns everything it half-suspects is noise; these stop at a defined budget so the results stay reviewable. ## Detections | Agent | What it does | | - | - | | `detections-runner` | Runs every [detection](/agents/detections) stored in your organization against the repository, dispatching by type — OpenGrep rules directly, policy detections via one child evaluator each. Findings are linked to the detection that produced them. | | `detection-author` | Reads findings from an earlier step and authors a reusable detection for each, choosing between an OpenGrep rule and a natural-language policy. | These two are the ends of a loop worth understanding: `detection-author` turns a one-time discovery into a permanent rule, and `detections-runner` is what applies every rule you've accumulated from then on. ## Patching | Agent | What it does | | - | - | | `patch-generator` | Generates a verified patch for one detection's findings in one file: edits the file, re-runs the detection to confirm the fix, captures the diff, and records it. | Add it as its own step after any agent that produces findings — `detections-runner`, a vulnerability scanner, or one of your own. It [consumes findings grouped by detection and file](/agents/writing-an-agent#group-by) by default, so it runs once per (detection, file) pair rather than once per individual match. > [!NOTE] > > Patch generation used to be a setting on `detections-runner` itself. It's its own step now — if your > workflow used the old setting, Console already added `patch-generator` as a step for you. ## Agents spawned by other agents These exist in the library but are normally driven by another agent rather than added directly as workflow steps: | Agent | Spawned by | Role | | - | - | - | | `policy-evaluator` | `detections-runner` | Evaluates one policy detection against the repository, bound to that detection so every finding links back to it. | | `policy-fix-verifier` | `patch-generator` | Independently judges whether a patched file still violates a policy. Deliberately read-only — it returns a verdict and cannot report findings or edit code. | You *can* name one as a workflow step, but they expect a briefing their usual parent provides, so they work best left to it. ## Common chains | Goal | Chain | | - | - | | Fastest signal | `vulnerability-scanner-basic` | | Balanced scan | `vulnerability-scanner-standard` | | Deepest audit | `vulnerability-scanner-comprehensive` | | Turn findings into permanent rules | `vulnerability-scanner-standard` → `detection-author` | | Apply everything you've already vetted | `detections-runner` | | Apply everything you've already vetted, and patch it | `detections-runner` → `patch-generator` | ## Next steps > **[Write your own](/agents/writing-an-agent)** > > Extend or shadow any of these. > **[Build a workflow](/workflows/create-a-workflow)** > > Put a chain to work. # Agents & detections Source: https://docs.amplify.security/agents/overview Console supplies the agentic loop; you supply the domain logic as agents, skills, and detections. ## What you author Console runs an agentic loop: a model reasons, calls tools, reads the results, and reasons again, inside an isolated environment with access to your code. Building that loop — the orchestration, the tool implementations, the sandboxing, the sub-agent delegation, the event streaming — is Console's job. Deciding *what the loop should do* is yours. Console exposes three authorable primitives for that, and everything else in the product is built on top of them. | Primitive | What it is | Format | Authored in | | - | - | - | - | | **[Agent](/agents/how-agents-work)** | A participant that reasons, calls tools, and can delegate | Markdown + YAML frontmatter | Web console, CLI | | **[Skill](/agents/skills)** | A procedure an agent loads on demand | Markdown + YAML frontmatter | CLI, API | | **[Detection](/agents/detections)** | A rule that can be run repeatedly against code | OpenGrep YAML, or a natural-language policy | Web console, CLI | Telling them apart is the most common early stumble: * An **agent** is *who* is working. It has its own model, tool permissions, and budget. * A **skill** is *how* to do one thing well. It has no budget of its own — an agent loads it when the task calls for it. * A **detection** is *what* to look for. It's the durable artifact: a finding describes one moment, a detection keeps checking forever. ## Yours are first-class Console ships a library of agents and skills to start from. Detections are yours to build up — nothing is prebuilt there. Anything you write sits alongside the built-ins with no second-class status — a workflow runs platform and organization agents identically, and both are picked from the same list by their stated `description`. An agent you write with the same name as a built-in one **shadows** it. That's the supported way to customize built-in behavior without breaking workflows that already reference that name. ## The tool surface is the ceiling An agent can only do what some tool lets it do. However you word its instructions, its real capabilities are the union of the tools it's allowed to call — reading and writing files, running commands, querying code structure, scanning, fetching a URL, reading your vendors' findings, recording results, and spawning sub-agents. This is the single most useful thing to internalize before writing an agent, because it tells you which tasks are achievable and which aren't. The full inventory is in the [tool reference](/agents/tool-reference). ## How the pieces run together A realistic chain uses all three primitives at once: 1. A **workflow** step spawns your **agent**. 2. The agent **activates a skill** for the vulnerability class it's investigating. 3. It runs stored **detections** against the repository. 4. It records **findings**, and optionally a patch. 5. A workflow **output** posts the result to the pull request. Each layer is replaceable independently. ## Next steps > **[Write an agent](/agents/writing-an-agent)** > > The frontmatter reference and the editor. > **[Tool reference](/agents/tool-reference)** > > Everything an agent can actually do. > **[The agent library](/agents/library)** > > What ships with Console. > **[Give it context](/data/overview)** > > Connect repositories and vendors. # Skills Source: https://docs.amplify.security/agents/skills Package a procedure an agent loads on demand — and when to write one instead of an agent. ## What a skill is A skill is a documented procedure an agent loads when it becomes relevant — a Markdown file with YAML frontmatter, same shape as an agent. A skill has no model and no budget of its own: an agent calls `activate_skill`, and the skill's instructions enter that agent's context and run on its budget. The reason skills exist is context economy. A comprehensive scanner might know how to analyze twenty vulnerability classes, but loading all twenty procedures up front would crowd out the code it's supposed to be reading. Instead it loads the SQL-injection procedure when it's looking at a query, and the SSRF procedure when it's looking at an outbound request. ## Skill or agent? | Write a **skill** when | Write an **agent** when | | - | - | | You're capturing *how to do one thing well* | You're defining *a job with its own output* | | An existing agent could follow your instructions | You need different tool permissions or a different model | | The procedure is only relevant sometimes | The work deserves its own budget and can be delegated to | | You want it available to many agents | You want to name it as a workflow step | When in doubt, start with a skill. It's cheaper — nothing to budget, nothing to orchestrate — and you can promote it to an agent later if it grows its own output. ## Frontmatter reference | Key | Required | Type | What it does | | - | - | - | - | | `name` | Yes | string | How the skill is activated and listed. | | `description` | Yes | string, ≤500 chars | When to use this skill. Agents read it to decide whether to activate. | | `allowed-tools` | No | string\[] | Tools the procedure expects. See the [tool reference](/agents/tool-reference). | | `license` | No | string | Optional license string. | | `compatibility` | No | object | `min-version` / `max-version` constraints. | | `metadata` | No | object | Free-form key/value data. | ```markdown theme={null} --- name: ssrf-analysis description: Confirms or rules out server-side request forgery where user input reaches an outbound HTTP call. Use when a request URL, host, or path is influenced by request data. allowed-tools: - shell - code_lineage - ripgrep_search --- # SSRF analysis ## Confirming 1. Identify the outbound call and the client library in use. 2. Trace the URL argument back to its source with `call_graph`. 3. Establish whether an attacker controls the scheme, host, or path — not merely the query string. 4. Check for an allow-list, a resolved-IP check, or a proxy that constrains the destination. ## Ruling out Discard the candidate when the host is a compile-time constant, or when the only attacker-controlled portion is a path segment appended to a fixed host with no traversal possible. ``` Like an agent's, the `description` is load-bearing: it's what an agent reads when deciding whether this skill applies. ## Built-in skills | Skill | What it does | | - | - | | `vulnerability-scan` | Uses natural-language policy descriptions to find vulnerabilities in application logic. | | `opengrep-rule-creator` | Authors OpenGrep rules for detecting a vulnerability or code pattern. | | `codeql-rule-creator` | Authors CodeQL queries for vulnerabilities, bug patterns, and code-quality issues. | | `policy-detection-creator` | Turns a security requirement into a stored natural-language [policy detection](/agents/detections). | | `skill-creator` | Turns a procedure — often a script you already have — into a skill and saves it to your organization. See [organization skills](#organization-skills). | | `agent-creator` | Authors, edits, and deletes agent definitions through the agent tools. | | `secrets-scan` | Finds leaked credentials in a repository with the `secrets_scan` [tool](/agents/tool-reference#scanning) and files one masked finding per secret. Works in chat against an attached workspace and as a workflow step. | | `sca-scan` | Finds known-vulnerable dependencies in a repository's lockfiles with the `sca_scan` [tool](/agents/tool-reference#scanning) and files one finding per vulnerable package, with the fixed version. Works in chat against an attached workspace and as a workflow step. | The scanner agents also draw on an internal library of class-specific analysis skills, which is what distinguishes the `standard` and `comprehensive` [profiles](/agents/library#scanning) from `basic`. ## Where to author a skill > [!WARNING] > > Skills are authored in the **CLI** — as files on disk, or saved to your organization by asking the CLI to > create one. Unlike agents and detections, there is no skill editor in the web console today. A skill lives in one of two places, and each is loaded by something different: * **Local files** on your machine are loaded by your own CLI sessions. * **Organization skills** are loaded by cloud runs — workflow steps, and agents that chat dispatches to run against a repository. ### Local files In the CLI, a skill is a file on disk: ``` ~/.amplify/skills//SKILL.md # available in every session ./skills//SKILL.md # project-local ``` Override those locations with `AMPLIFY_SKILLS_DIR`. Skills load at startup, so restart the CLI after adding one. A skill directory can hold supporting files — reference documents, example rules, helper scripts — next to `SKILL.md`, and the instructions can point the agent at them. Local files never leave your machine: cloud runs don't see them. ### Organization skills To make a skill available to cloud runs, save it to your organization from the CLI while [signed in](/install-console#sign-in). The built-in `skill-creator` skill guides the flow — ask for it directly: > I have `check.py`. Write a skill so the agent can run it, and save it to the organization. The agent reads the script, confirms the name is free with `list_skills`, drafts `SKILL.md`, bundles the script under `scripts/`, and calls `create_skill`. There is no local target for `create_skill`; local skills stay plain files, as above. Bundled files are read from your machine when the skill is created. The CLI refuses files that look like credentials or configuration — dot-files and dot-directories, keys, keychains, shell histories, system directories — and each file must be UTF-8 text of at most 1 MiB. Files inside your local skill directories (`~/.amplify/skills`, `./skills`, or anything in `AMPLIFY_SKILLS_DIR`) are allowed, so a local skill can be saved to your organization as-is; a dot-file or key inside one of those directories is still refused. When a cloud run activates the skill, the runtime tells the agent the skill's directory, so `SKILL.md` should refer to bundled files by a path relative to the skill root — `python3 scripts/check.py` — and invoke scripts through their interpreter rather than executing them directly. The skill's name is its frontmatter `name`: kebab-case, 1–64 characters. It must not reuse the name of a skill Amplify already provides (the server refuses those) or of a skill your organization already has. Organization skills can't be edited after creation today; `list_skills` from the CLI shows what's saved. Your interactive CLI sessions don't load organization skills, and neither does the chat agent you talk to directly or the sub-agents it spawns beside itself — only workflow steps, and agents that chat dispatches to run against a repository. ## Using skills in the CLI `/skills` lists the catalog: every skill this session can activate, built-in and local. Activation isn't a command — the agent calls `activate_skill` itself when a skill's `description` matches the task at hand. To test a skill you're writing, edit the file, restart, and give the agent a task the description should trigger. If you want a specific procedure followed, ask for it by name. Once authenticated, the agent can also call `list_skills` to show your organization's saved skills beside the session's own. ## Next steps > **[Detections](/agents/detections)** > > Turn a procedure's results into a permanent rule. > **[The CLI](/interactive/cli)** > > Where skills are authored. # Tool reference Source: https://docs.amplify.security/agents/tool-reference Every tool an agent can call — the real ceiling on what any agent you write can do. ## Why this page matters An agent's capabilities are exactly the tools it can call. Instructions describe intent; tools determine what's possible. Before writing an agent, check that the work you have in mind maps onto something here — otherwise the agent will try, fail, and narrate the failure. Use these names in an agent's [`allowed-tools`](/agents/writing-an-agent#frontmatter-reference). Omitting `allowed-tools` inherits the default set rather than granting everything. > [!NOTE] > > Availability differs slightly by surface. Tools that operate on a cloned target repository or on your > organization's connections are available to cloud agents; the CLI runs against your working directory > instead. ## Reading and searching code | Tool | What it does | | - | - | | `shell` | Runs a shell command in the agent's environment. The general-purpose escape hatch — reading files, running builds, invoking any CLI. Output is truncated past a limit, and a blocked-pattern list rejects dangerous commands. | | `ripgrep_search` | Fast regex or literal search across the repository, returning file, line number, and matching text. `.gitignore`-aware. The right choice for plain search, and the fallback for languages without a tree-sitter grammar. | | `read_pdf` | Extracts text from a PDF — useful for threat models, policy documents, and vendor reports. | ## Understanding code structure `code_lineage` provides three structural operations backed by tree-sitter. Coverage is limited to languages with a grammar; on anything else, use `ripgrep_search`. | Operation | What it does | | - | - | | `find_symbol` | Finds where a function, method, or class is defined and every place it's referenced. | | `call_graph` | Traces callers or callees of a symbol to a bounded depth (1–3). `direction='callers'` finds what invokes it; `callees` finds what it invokes. Computed on demand — no persistent index. | | `ast_query` | Runs a tree-sitter S-expression query against one file and returns captured nodes with line ranges. For precise structural search, like every call expression in a file. | This is how an agent traces taint: find the sink, walk callers back toward a source, and confirm nothing on the path neutralizes the input. ## Scanning | Tool | What it does | | - | - | | `opengrep_scan` | Runs OpenGrep static rules over the repository for a fast first pass, returning matches for the agent to triage. Defaults to the broad `auto` ruleset. **Does not** record findings — it produces candidates. | | `run_opengrep_detection` | Runs one *stored* OpenGrep [detection](/agents/detections) and emits matches as findings linked to that detection. Refuses non-OpenGrep detections. | | `check_opengrep_rule` | Re-runs a stored detection's rule against a single file, read-only. Zero matches means a fix worked. This is the verification half of patch generation. | | `secrets_scan` | Runs a deterministic secrets scanner over the checkout and files one **masked** finding per leaked credential (API keys, tokens, private keys). In chat it scans an attached workspace; in a worker, the run's checkout. Takes no options. Driven by the `secrets-scan` [skill](/agents/skills#built-in-skills). | | `sca_scan` | Runs a deterministic software-composition-analysis scanner over the checkout's dependency lockfiles and files one finding per known-vulnerable package, anchored at the package's lockfile entry, with the fixed version as the remediation. Defaults to high and critical severities; `minSeverity` and `ignoreUnfixed` narrow or widen it. The vulnerability database is fetched at scan time. Driven by the `sca-scan` [skill](/agents/skills#built-in-skills). | ## Reading the outside world | Tool | What it does | | - | - | | `web_fetch` | Fetches a URL and extracts its text. Accepts custom headers and an extraction mode. | > [!NOTE] > > `web_fetch` performs **reads only** — it takes a URL, headers, and an extraction mode, with no request > method or body. There is no general-purpose tool for writing to a third-party API. Agents write to other > systems only through [integration tools](#integrations) for connected apps and through > [workflow outputs](/workflows/outputs). ## Your vendors' data | Tool | What it does | | - | - | | `list_leen_connections` | Lists the vendor connections configured for your organization, returning each connection's id and vendor. The discovery step before either query below. | | `get_leen_vulnerability_findings` | Queries normalized vulnerability findings from a connected vendor. Filters by severity, state, and whether a fix is available; paginates with a cursor. | | `get_leen_vulnerability_finding` | Fetches one vendor finding in full. | These three are the entire vendor-data surface today, and they are scoped to **vulnerability findings**. See [what agents can read](/data/what-agents-can-read) for what that covers and what it doesn't. ## Integrations When an organization admin [connects a third-party app](/integrations/connecting), its tools join this list for every agent in the organization. Most are named `_`, and each app's page lists them in full: | App | Tools | Examples | | - | - | - | | [Slack](/integrations/slack) | 4 | `slack_post_message`, `slack_read_thread` | | [Atlassian](/integrations/atlassian) | 36 | `Jira_CreateIssue`, `Jira_SearchIssuesWithoutJql`, `Confluence_CreatePage` | | [Linear](/integrations/linear) | 20 | `Linear_CreateIssue`, `Linear_TransitionIssueState` | | [Notion](/integrations/notion) | 10 | `Notion_SearchByTitle`, `Notion_AppendContentToEndOfPage` | | [Asana](/integrations/asana) | 8 | `Asana_CreateTask`, `AsanaApi_AddTaskComment` | | [Google Docs](/integrations/google) | 11 | `GoogleDocs_GetDocumentAsDocmd`, `GoogleDocs_CommentOnDocument` | None of these delete, remove, or archive anything. If an app isn't connected, its tools are absent rather than failing. See [using integration tools in an agent](/integrations/using-in-agents) for how to grant them and add a Slack or Jira step to a workflow. ## Projects | Tool | What it does | | - | - | | `list_projects` | Lists the repositories connected to your organization, with ids, `owner/repo` names, and clone URLs. | | `clone_project` | Clones a repository into the workspace so the agent can read and search it. | ## Recording results | Tool | What it does | | - | - | | `report_finding` | Records a confirmed vulnerability, with evidence. This is what makes a result durable rather than conversational. | | `list_findings` | Lists findings already recorded. | | `report_patch` | Attaches a verified remediation patch (a unified diff) to the finding(s) it fixes. Call it only after editing the file **and** confirming the fix. It stores the patch; it does not verify. | | `emit_artifact` | Records a result of a kind your agent declares in [`produces:`](/agents/writing-an-agent#contracts-what-a-step-produces-and-consumes) — Console's own kinds or one you've defined yourself. Rejects `amplify:finding`: findings always go through `report_finding` instead. | | `list_artifacts` | Lists recorded artifacts, newest first, optionally filtered by kind, project, or one workflow run (`workflow_run_id`; a step is told its own run's id). Returns one page of up to 100 with `total` and `has_more`; while `has_more` is true, call again with `offset` set to the previous `offset + count` to read the rest. A run-scoped list leaves out a finding's `amplify:reasoning` and `amplify:patch` companions unless you ask for that kind by name. | | `get_artifact` | Fetches one artifact's full content by id. | ## Detections | Tool | What it does | | - | - | | `create_detection` | Stores a new detection. | | `list_detections` | Lists stored detections with id, name, description, and type. | | `get_detection` | Fetches one detection, including its rule body. | | `delete_detection` | Removes a detection. | ## Coordination | Tool | What it does | | - | - | | `spawn_agent` | Spawns a sub-agent on a focused task and returns its summary. How a broad job fans out without one agent losing the thread. | | `spawn_multiple_agents` | Spawns several sub-agents. Used to run one child per item — a policy evaluator per detection, for instance. | | `fan_out_agent` | Dispatches one agent to run against one or more of your projects, each in its own isolated cloud sandbox with a fresh checkout, and returns a summary when every run settles. How a chat reaches other projects' code and [organization skills](/agents/skills#organization-skills). | | `activate_skill` | Loads a [skill](/agents/skills) into the agent's context on demand. | | `add_todo`, `start_todo`, `complete_todo`, `clear_todos` | Maintains the agent's plan as a visible todo list you can watch while it works. | ## Managing agents | Tool | What it does | | - | - | | `create_agent`, `get_agent`, `list_agents`, `update_agent`, `delete_agent` | Lets an agent read and write agent definitions — so an agent can help you author another one. | ## Managing artifact kinds | Tool | What it does | | - | - | | `list_kinds`, `get_kind` | Lists your organization's [artifact kinds](/agents/artifact-kinds) and Console's own, or reads one kind with every version of its schema. | | `create_kind` | Creates a kind from a schema. | | `update_kind` | Saves a new version of a kind. A breaking change is held until you confirm it: the agent shows you what breaks and which agents depend on it, and only saves once you say yes. | These are available in [chat](/interactive/chat) and the [CLI](/interactive/cli), where they let the agent create and change kinds for you. ## Managing skills | Tool | What it does | | - | - | | `create_skill` | Saves a new [skill](/agents/skills) to your organization from a full `SKILL.md` plus any bundled files, which the CLI reads from your machine. The frontmatter `name` must be free. | | `list_skills` | Lists the skills this CLI session can activate — labelled `builtin` or `local` — beside the skills saved to your organization. | Both are **CLI-only** and work while signed in. They're how the built-in `skill-creator` skill does its work; see [organization skills](/agents/skills#organization-skills). ## Next steps > **[Write an agent](/agents/writing-an-agent)** > > Put these names in `allowed-tools`. > **[Skills](/agents/skills)** > > Package a procedure an agent can load on demand. # Writing an agent Source: https://docs.amplify.security/agents/writing-an-agent The AGENT.md format — YAML frontmatter plus a Markdown body — and every field it accepts. ## The format An agent is a Markdown document with two parts: 1. **YAML frontmatter** — the machine-readable declaration: name, model, tool permissions, budgets. 2. **A Markdown body** — the agent's instructions. This becomes its system prompt. ```markdown theme={null} --- name: dependency-auditor description: Audits third-party dependencies for known-vulnerable versions and unmaintained packages, and reports each one as a finding. model: anthropic/claude-sonnet-4-6 allowed-tools: - shell - ripgrep_search - web_fetch - report_finding --- You audit third-party dependencies. ## Workflow 1. Locate every manifest and lockfile in the repository. 2. For each direct dependency, determine the resolved version. 3. Flag versions with known advisories, and packages with no release in over two years. 4. Report each one with `report_finding`, citing the manifest path and the resolved version. ## Rules - Report the resolved version from the lockfile, never the range from the manifest. - Do not report transitive dependencies unless the advisory is critical. ``` That's the entire contract. No build step, no registration. ## Frontmatter reference | Key | Required | Type | What it does | | - | - | - | - | | `name` | Yes | string | How the agent is referenced — by workflow steps and by `spawn_agent`. Must be unique. | | `description` | Yes | string, ≤500 chars | What this agent does. **Load-bearing** — see below. | | `model` | No | string | Which model to run. Omit to inherit the default. | | `allowed-tools` | No | string\[] | Restricts the agent to these tools. Omit to inherit. | | `maxIterations` | No | positive int | Budget of reasoning↔tool cycles before the agent is stopped. | | `timeout` | No | positive int (ms) | Wall-clock limit for one execution. | | `produces` | No | list | The kinds of result this agent's step may record. See [contracts](#contracts-what-a-step-produces-and-consumes) below. | | `consumes` | No | list | The kinds this agent's step reads, and how. See [contracts](#contracts-what-a-step-produces-and-consumes) below. | | `mutates-worktree` | No | boolean | Declares that this agent edits files in the repository. See below. | ### Why the description matters Two audiences read `description`, and neither is your agent itself: * **You, choosing agents for a workflow** — the [workflow editor](/workflows/create-a-workflow#agents) and the [agent library](/agents/library) show it as the one-line summary of what an agent does. * **Other agents, deciding whether to delegate to it** — an agent choosing a sub-agent to spawn sees only its name and description, so those two lines are the entire interface it has to go on. Write it as an external, precise statement of the job and its output — not a note to yourself: ```yaml theme={null} # Good — states the job and the output description: Audits third-party dependencies for known-vulnerable versions and unmaintained packages, and reports each one as a finding. # Too vague to be useful to anyone deciding whether to use this agent description: Dependency helper. ``` ### `allowed-tools` restricts, it doesn't grant Listing a tool doesn't create capability that doesn't exist — it narrows the agent to a subset of what the harness already offers. See the [tool reference](/agents/tool-reference) for valid names. Restricting tools is a real design technique, not just hygiene. An agent that shouldn't modify code should not be given `shell`, and a verifier that must stay honest should not be given the ability to report findings. Console's own `policy-fix-verifier` works this way: it is deliberately read-only so its verdict can't be self-serving. ### Budgets: `maxIterations` and `timeout` Both are ceilings, not targets. Leave them unset unless the agent is an outlier. * Raise `maxIterations` for agents that legitimately need many tool calls — a broad scan across a large repository. * Raise `timeout` for **orchestrators**, whose wall clock includes every child they spawn. Set it above the worst-case sum of the children's durations. ## Contracts: what a step produces and consumes When you chain agents into a [workflow](/workflows/create-a-workflow), Console needs to know which step's output feeds which step's input, so it can run steps that don't depend on each other together, wait for the ones that do, and skip a step that has nothing to work on. You declare that with `produces` and `consumes`. ### `produces` The kinds of result this agent's step may record: ```yaml theme={null} produces: - kind: amplify:finding ``` `produces` is a *may*, never a promise — an agent that looked thoroughly and found nothing has still done its job, and nothing checks that a declared kind was actually emitted. A kind is either one of Console's own (prefixed `amplify:`, like `amplify:finding` or `amplify:patch`) or one your organization defines. See [artifact kinds](/agents/artifact-kinds). ### `consumes` The kinds this agent's step reads, and how it wants them delivered: ```yaml theme={null} consumes: - kind: amplify:finding mode: each ``` | Field | Required | What it does | | - | - | - | | `kind` | Yes | The kind this step reads. | | `mode` | No | `each` or `all`. Defaults to `all`. | | `group-by` | No | Only with `mode: each`. See below. | **`mode: all`** (the default) runs your agent once, with everything matching that kind from earlier in the chain — including an empty set. Use this for a step whose job is to summarize or report on the whole run: "no issues found" is itself a result worth producing, so it needs to run even when there's nothing to say. **`mode: each`** runs a separate copy of your agent per item (or per group, if you set `group-by`). Zero items means the step doesn't run at all — it's recorded as [skipped](/workflows/running#run-statuses), not as having run and found nothing. Use this when your agent's job only makes sense one item at a time, like generating a fix for a single bug. > [!NOTE] > > A step can only consume a kind that an earlier step in the same workflow actually produces. Console checks > this when you save the workflow, not when it runs. ### `group-by` For a `mode: each` step, `group-by` controls what counts as "one item." By default every result is its own item; naming fields under `group-by` batches results that share the same values into a single item instead. `patch-generator`, Console's built-in patching agent, is the canonical example — one patch should fix every match of the same underlying issue in the same file, not one patch per individual match: ```yaml theme={null} consumes: - kind: amplify:finding mode: each group-by: [detection_id, properties.filePath] ``` Names in `group-by` come from the kind you're consuming — never from anything about how Console stores it: * **A field the kind itself declares**, including one nested inside another declared field, like `properties.filePath` above. * **A documented attribute of that kind.** `amplify:finding` additionally exposes `detection_id` and `severity` this way. * **`id`** — every item is its own group, overriding any default grouping. `amplify:finding` already groups by detection and file when you set no `group-by` of your own, so write `group-by: [id]` explicitly if you want one child per finding instead. To group by a kind's fields, the kind must already exist when you save the agent — Console checks every name against it and rejects the save otherwise, telling you to create the kind first. A kind declared inline in the same agent counts. An empty `group-by: []` isn't allowed: grouping by nothing means everything is one group, which is what `mode: all` already means. Console rejects it and suggests `[id]` if that's what you meant. > [!NOTE] > > A result your grouping can't place — a finding with no detection behind it, say — is left out of that > step, with the reason recorded on the step. It still reaches any other step consuming the same kind with > `mode: all`. ### `mutates-worktree` Set this to `true` if your agent edits files in the repository: ```yaml theme={null} mutates-worktree: true ``` This states a fact, not a scheduling request. Console uses it to make sure two steps that both edit the checkout never run at the same time and clobber each other's changes. Leave it unset (the default) for an agent that only reads. ### Defining a kind inline The usual way to create a kind is to ask chat or the CLI — see [artifact kinds](/agents/artifact-kinds). As a shorthand, if `produces` names a kind that doesn't exist yet in your organization, attach a `schema:` block and Console registers it when you save the agent: ```yaml theme={null} produces: - kind: scan-report schema: fields: verdict: type: string enum: [clean, issues-found] total_findings: type: integer ``` The block uses the same [schema language](/agents/artifact-kinds#the-schema) as everywhere else. An inline block creates a kind; it never changes one. Once the kind exists, saving the agent checks the block against the kind's versions: | The block matches | On save | | - | - | | The latest version | Nothing happens to the kind. | | An older version | The agent saves, with a warning that the block is stale — the kind has moved on. Remove the block; runs use the kind's latest version either way. | | No version | The save is rejected. To change the kind, ask chat or the CLI — see [changing a kind](/agents/artifact-kinds#changing-a-kind). | Once a kind exists, you can drop the `schema:` block and just name the kind under `produces`. > [!NOTE] > > Names starting with `amplify:` are reserved for Console's own kinds. You can *consume* `amplify:finding` > or `amplify:patch` in your own agents, but you can't register a `schema:` under that prefix. ## Writing one in the web console Open **Agents** and create an agent. The editor is a Markdown editor with: * **Frontmatter linting** — malformed YAML is flagged as you type. * **A model picker** — selecting a model rewrites the `model:` line in place, so what you see in the frontmatter is always what will run. * **Folders** — organize agents as the list grows. Your organization's agents appear in the [workflow agent picker](/workflows/create-a-workflow#agents) next to the built-in ones. ## Writing one in the CLI The CLI loads agent definitions from the filesystem, so an agent is just a file: ``` ~/.amplify/agents//AGENT.md # available in every session ./agents//AGENT.md # project-local ``` Override those locations with `AMPLIFY_AGENTS_DIR`. Definitions load at startup, so restart the CLI after adding one. ## Shadowing a built-in agent Give your agent the same `name` as one Console ships and yours takes precedence. This is the supported way to change built-in behavior — a workflow step referencing that name keeps working and picks up your version. > [!TIP] > > Start by copying the built-in agent you want to change, editing the body, and keeping the name. You > inherit a working structure and only change what you meant to. ## Next steps > **[Tool reference](/agents/tool-reference)** > > Valid `allowed-tools` values and what each does. > **[The agent library](/agents/library)** > > Built-in agents worth reading as examples. # Billing Source: https://docs.amplify.security/console/billing How to add credit, set a payment method, turn on auto-recharge, and see what your organization has used — the Billing and Credits and Usage & Invoices tabs. ## Where billing lives Click **Organization** in the sidebar. Two tabs cover billing: * **Billing and Credits** — your credit balance, payment method, and automatic credit purchasing. * **Usage & Invoices** — dashboards for invoices, usage, and credits. > [!WARNING] > > Both tabs are for organization **Admin**s only. Other members see *Unavailable* in place of the balance > and payment method, and cannot open the dashboards. See [what needs an admin](/console/organization#what-needs-an-organization-admin). ## Billing and Credits The tab is three rows. ### Payment Method The card or Link account on file for the organization, or *No payment method on file*. Click the edit icon next to it to open the billing portal, where you add or replace the payment method and billing address. Console never shows or stores card details itself — the portal does. ### Credit Balance Your current balance in USD. A purchase that is still settling shows underneath as *pending payment* until it lands. To add credit, click **Add credit**, pick **$100**, **$500**, or **\$1,000**, or enter a custom amount, and click **Purchase**. The dialog shows what you'll be charged for the credit before you confirm. The charge goes to the organization's default payment method. **Add credit** is disabled when a purchase can't be collected, with the reason underneath: * *A payment method is required to purchase credits* — click **Add payment method** to open the portal. * *A billing address is required to purchase credits* — click **Add address**; tax can't be calculated without one. ### Automatic Credit Purchasing Auto-recharge keeps the balance from running dry: when it drops below a threshold you set, Console charges the default payment method and adds a fixed amount of credit. The row shows the rule in force — *When below $X, purchase $Y* — or *Off*. To turn it on, click the edit icon on the row and fill in: * **Recharge when balance drops below (USD)** — the threshold, at least **\$500**. * **Amount of credit to add (USD)** — the recharge, which must be greater than the threshold so the balance lands back above it. Click **Save**. To change the rule later, edit it the same way; **Turn off** inside the dialog removes it. > [!NOTE] > > Auto-recharge needs a payment method on file with a billing address. Until there is one, the row reads > *Off* and the edit icon explains what's missing. ## Usage and invoices **Usage & Invoices** holds three dashboards, switched with the buttons at the top: | Dashboard | Shows | | - | - | | **Invoices** | Your invoices | | **Usage** | How much credit your organization has consumed over time — the place to see what you've used this month | | **Commits & Credits** | Credit purchases and commitments | The dashboards are embedded from Console's billing provider and load on demand; if one fails to load, click **Try again**. ## Next steps > **[Organization](/console/organization)** > > Members, roles, and what needs an admin. > **[Profile](/console/profile)** > > Your account and API keys. # Organization Source: https://docs.amplify.security/console/organization How to invite and remove teammates, which actions need an organization admin, and how organizations are chosen — the Organization page. ## The Organization page Click **Organization** in the sidebar. The page has five tabs: | Tab | What it holds | | - | - | | **General** | The organization's name and settings | | **Members** | Who belongs to the organization, and invitations | | **API keys** | API keys owned by the organization rather than by a person | | **Billing and Credits** | Credit balance, payment method, and automatic credit purchasing — see [Billing](/console/billing) | | **Usage & Invoices** | The usage, invoice, and credit dashboards — see [Billing](/console/billing#usage-and-invoices) | ## Members **Members** lists everyone in the organization with their role. * **Invite a teammate.** An admin opens **Organization**, chooses **Members**, and invites them by email address, choosing the role they'll have. The invitation is pending until they accept it from the email they receive; once they sign in, they're a member and can use everything the role allows. * **Change a role or remove a member.** For an admin, each member row has a menu to change their role or remove them from the organization. A member who is not an admin sees the list read-only. > [!NOTE] > > A teammate who is not yet invited can't get in. On the web, Clerk sends them to the choose-organization > step until an invitation arrives. In the CLI, `console setup` stops with *This account is not a member > of any organization* — once they accept the invitation, they run `console setup` again. ## What needs an organization admin Most of Console is open to every member: chat, projects, agents, detections, workflows, runs, findings, source-control connections, and vendor connectors. Managing the organization itself and a few other actions require the organization **Admin** role: | Action | Where | | - | - | | Inviting a teammate | **Organization** → **Members** → **Invite** | | Changing a member's role, or removing a member | The member's row on **Organization** → **Members** | | Editing the organization — its name and settings | **Organization** → **General** | | Connecting an app under **Agent Tools** — Slack, Atlassian, Linear, Notion, Asana, Google — and disconnecting one | **Connections** → **Add connection**; non-admins see the apps marked *Admin only* | | Choosing which files an app may read, for apps that grant access per file | The app's card on **Connections** | | Adding credit, changing the payment method, and turning automatic credit purchasing on or off | **Organization** → **Billing and Credits** | | Reading the credit balance, payment method, and the usage and invoice dashboards | **Organization** → **Billing and Credits** and **Usage & Invoices** — non-admins see *Unavailable* | See [connecting an app](/integrations/connecting) and [Billing](/console/billing). ## Organization API keys The **API keys** tab holds keys that belong to the organization rather than to one person. The keys the CLI signs in with are personal — create those under [Profile → API keys](/console/profile#api-keys). ## Working in more than one organization The web console works in one organization at a time — every page shows that organization's projects, findings, and settings. There is no organization switcher in the web console today. The CLI can switch: `/context ` changes the organization a session works against. See [the CLI](/interactive/cli#slash-commands). ## Next steps > **[Billing](/console/billing)** > > Credits, payment method, auto-recharge, and usage. > **[Connect an app](/integrations/connecting)** > > The admin-only flow for Slack, Jira, Linear, Notion, Asana, and Google Docs. # Profile Source: https://docs.amplify.security/console/profile Where your account settings, API keys, and theme live — the Profile page and the bottom of the sidebar. ## The Profile page Click **Profile** at the bottom of the sidebar. It opens your own account — not the organization's — with sections for your account details, security, and **API keys**. * **Account** — your name, profile picture, and email addresses. Sign-in is by a code emailed to you, so the email address on file is how you get in. * **Security** — the devices you're signed in on, with the option to sign out of another one. ## API keys An API key signs in to Console as you, without a browser. The CLI uses one when you choose **Paste an API key** at setup, and reads one from `AMPLIFY_API_KEY` in CI. Open **Profile** and choose **API keys** — or go straight to [console.amplify.security/console/profile/api-keys](https://console.amplify.security/console/profile/api-keys). Create a key, give it a name you'll recognize later, and copy it: the key is shown once. Revoke a key from the same list when a machine no longer needs it, and anything still using it stops working immediately. > [!TIP] > > On a machine with a browser, the CLI's **Sign in with your browser** needs no key at all. Keep API keys > for CI and headless machines. A key is personal: it carries your identity and your organizations. Keys owned by an organization rather than a person live on the [Organization page](/console/organization#organization-api-keys). See [Installation](/install-console#sign-in) for the CLI setup and [the CLI](/interactive/cli) for what it can do once signed in. ## Appearance The theme switcher is not on the Profile page — it's the **Theme** entry at the bottom of the sidebar, just above **Profile**. Click it and pick one: | Theme | | | - | - | | **Light** | The default | | **Dark** | | | **System** | Follows your operating system's light or dark setting | | **Light Fog**, **Sandstone**, **Midnight**, **Terminal** | Additional palettes | The choice is remembered by your browser, so it applies to this browser only and doesn't follow you to another device. ## Signing out **Sign Out** is the last entry in the sidebar. It ends your session and returns you to the sign-in page. ## Next steps > **[Install the CLI](/install-console)** > > Sign in with your browser or paste an API key. > **[Organization](/console/organization)** > > Members, roles, and billing. # Connections Source: https://docs.amplify.security/data/connections Connect your source control provider and the security and IT vendors you already run. ## Three kinds of connection The **Connections** page handles three different jobs behind one interface: | Kind | What it enables | | - | - | | **Source control** | Cloning repositories, pull request triggers, review comments, merge gates | | **Vendor connectors** | Reading signal from the security and IT tools you already run | | **Integrations** | Letting agents act in Slack, Jira, Confluence, Linear, Notion, Asana, and Google Docs | Source control is what makes Console able to *act* on your code. Vendor connectors are what let it reason about findings your existing stack has already produced. Integrations are what let it put results where your team works. This page covers the first two; integrations have [their own section](/integrations/overview). ## Source control ### GitHub Open **Connections**, click **Add connection**, and choose **GitHub** under **Source Code Management**. Console sends you to GitHub to install the Console GitHub App for your organization, where you'll need to grant access to every repository or pick a subset, and brings you back to Connections once it's installed. The repositories you grant become [projects](/data/projects). If you aren't an order or App admin of the GitHub organization, you'll see **Request** instead of **Install**. If you click **Request**, the connection will then show **Awaiting GitHub owner approval** until an owner approves, then complete installation on its own. To change which repositories Console can reach later, click **Manage** on the GitHub connection's card. The App is what powers: * Cloning repositories into sandboxes * [Pull request triggers](/workflows/triggers#pull-request-triggers) firing on open, reopen, and new commits * [Review comments](/workflows/outputs#comment-on-triggering-pull-request) * [Merge gates](/workflows/outputs#gate-merging-on-security-review) as required checks * Opening a pull request from a [finding's suggested fix](/data/findings#accepting-a-fix) ### GitLab Connect a GitLab instance by providing its host URL, the project, and a personal access token. > [!NOTE] > > GitLab supports cloning and merge request comments. **Merge blocking is not supported yet** — a > [merge gate](/workflows/outputs#gitlab) on a GitLab run is recorded as skipped. ## Vendor connectors Console connects to the security and IT tools you already run, so agents can reason about the findings already sitting in them. Open **Connections**, add a connection, and search the connector catalog. Connectors are grouped by category: | Category | Covers | | - | - | | **EDR** | Endpoint detection and response | | **AppSec** | Application security scanners — SAST, SCA, and similar | | **VMS** | Vulnerability management | | **CSPM** | Cloud security posture management | | **IDP** | Identity providers | | **GRC** | Governance, risk, and compliance | | **TPRM** | Third-party risk management | | **ITSM** | IT service management and ticketing | The catalog is searchable by vendor name or slug, and a connector spanning more than one category appears under each — AWS Inspector shows up under both AppSec and VMS, for instance. Completing a connection walks you through that vendor's own authorization flow. Console stores the resulting connection and never handles the underlying vendor API key directly — requests are brokered server-side. > [!WARNING] > > Connecting a vendor and *reading from it* are two different things. A connection can be established for any > connector in the catalog, but what an agent can query through it today is scoped to **vulnerability > findings**. An agent can read your Snyk or Semgrep backlog through a vendor connector; it cannot read > Cloudflare configuration through one. > > Read [what agents can read](/data/what-agents-can-read) before designing a workflow around a connection. > [!NOTE] > > Jira appears in the vendor catalog under ITSM, but reading and filing Jira issues is an > [integration](/integrations/atlassian), not a vendor connector. Connect Atlassian from the **Agent Tools** > section of the dialog for that. ## Integrations Integrations connect the third-party apps your team works in, so agents can post to Slack, file Jira or Linear issues, and read and write Confluence, Notion, and Google Docs. They live in the **Agent Tools** section of the Add Connection dialog. An organization admin connects each app once, as a bot account you own, and every agent in the organization gets that app's tools. Slack is installed as the Amplify Console app instead, which also lets your team chat with the agent from Slack. See [Integrations](/integrations/overview) for what each app exposes, and [connecting an app](/integrations/connecting) for the flow. ## Which connections do you need? | If you want to | You need | | - | - | | Ask an agent about your code | A source-control connection | | Run workflows on pull requests | GitHub | | Block merges on security review | GitHub | | Triage an existing scanner backlog against real code | An AppSec or VMS connector | | Have agents post results to Slack, or file them in Jira or Linear | The matching [integration](/integrations/overview) | | Just use the CLI on local code | Nothing — the CLI reads your working directory | ## Troubleshooting **A repository isn't available as a project.** The GitHub App installation probably doesn't include it. Adjust the installation's repository access. **An output shows Failed on a run.** Confirm the App is still installed for that repository and has permission to write checks and pull request comments. See [checking delivery](/workflows/outputs#checking-delivery). **The connector catalog is empty or won't load.** The catalog is fetched when you open the dialog, so a transient upstream failure shows there without affecting the rest of the page. Retry. ## Next steps > **[What agents can read](/data/what-agents-can-read)** > > The exact vendor-data surface today. > **[Projects](/data/projects)** > > Turn a connection into analyzable code. > **[Integrations](/integrations/overview)** > > Let agents act in Slack, Jira, Linear, Notion, and more. # Findings Source: https://docs.amplify.security/data/findings Confirmed issues with the agent’s reasoning, the affected code, and often a ready-to-merge fix. ## What a finding is A finding is a vulnerability an agent has confirmed and recorded. It's the durable output of agent work — what survives after the conversation or run is over. Every finding carries: * **Where** — the affected file, and the symbol it's anchored to * **What** — the vulnerability, its classification, and severity * **Why** — the agent's reasoning for believing it's genuinely exploitable * **The fix** — a suggested patch, when one was generated * **Provenance** — the run that produced it, and the [detection](/agents/detections) behind it if there was one The reasoning is the part worth reading: it lays out why the agent believes an attacker can reach the code, which is what makes the finding triageable. ## Where findings come from | Source | How | | - | - | | **Workflow runs** | A scanner or detections step confirms an issue and calls `report_finding` | | **Chat** | An agent investigating on your behalf records what it confirms | | **Detections** | A stored rule matches, and the finding links back to the rule | | **The CLI** | Local scans record findings, and sync to your organization when authenticated | ## Deduplication Findings are deduplicated per project by identity. The same issue rediscovered on a later run updates the existing finding rather than creating a second one, so a long-lived issue doesn't inflate your counts and run history stays readable. Findings are anchored to a **symbol** rather than only a line number, so a finding survives edits that shift line numbers around it. ## Saved views The **Findings** page filters by **Source**, **Project**, **Severity**, **Location**, and **Description**. A combination you keep coming back to can be saved so you don't rebuild it each time. 1. On **Findings**, click **Show filters** and set the filters you want. 2. Click **Save view** at the right end of the filter bar — it's enabled once at least one filter is set — and give the view a name. Names must be unique among your saved views. 3. To apply it later, open the **Views** menu next to it and click the view's name. The filters are restored and the filter bar opens. Hover a view in the **Views** menu for its menu: **Rename** gives it a new name, **Delete** removes it after a confirmation. > [!NOTE] > > Saved views are stored in your browser, per organization and per person. They are not shared with > teammates and don't follow you to another browser or device. Findings is the only page with saved views > today — **Projects** and **Runs** have filters, but no **Save view**. ## Closing the loop Two actions on a finding detail page turn a report into progress. ### Accepting a fix When a finding has a generated patch, the suggested fix section can open a pull request with that patch applied. You review it like any other pull request. > [!NOTE] > > Accepting a fix opens pull requests through the GitHub API, so it requires a GitHub-connected project. > Other providers can't do this yet, and the action is unavailable when a project has no code host connected. Patches aren't guesses. The agent that generated one edited the file, re-ran the detection to confirm the match was gone, and captured the resulting diff — for policy detections, an independent read-only verifier judged the result. You're reviewing a change that has already been checked, not a proposal. ### Starting a chat **Start a chat** opens a session with the finding's context already loaded — the affected code, the agent's reasoning, and the generated patch if there is one. You type your question in the same step. Use it to ask the things a report can't anticipate: *is this actually reachable in production?*, *what else in this codebase has the same problem?*, *why is this the right fix?* The session is titled after the finding's file and line, so it's easy to find later. > [!NOTE] > > This also requires a project connected to a code host — the agent needs to load the code to answer. ## From finding to detection The highest-leverage move on a finding is turning it into a rule. A finding is one instance; a [detection](/agents/detections) catches the whole class from then on, in every repository, without an agent re-deriving it. Ask in chat, or add [`detection-author`](/agents/library#detections) as a workflow step to do it automatically for every finding a scan produces. ## Delivering findings automatically Findings don't have to be pulled — a workflow can push them where your team already works: * [Comment on the triggering pull request](/workflows/outputs#comment-on-triggering-pull-request), with links back to the full finding. * [Gate merging](/workflows/outputs#gate-merging-on-security-review) until review passes or a human approves. ## Next steps > **[Turn findings into rules](/agents/detections)** > > Catch the class, not the instance. > **[Deliver them automatically](/workflows/outputs)** > > Comments and merge gates. # Data & connections Source: https://docs.amplify.security/data/overview Agents are only as good as what they can see — your repositories, and the security tools you already run. ## Why this comes first An agent that can't see your environment is guessing. Console's agents don't answer from a static index or a model's memory of open-source code — they read your actual files, run commands against your actual repository, and query the findings your existing tools have already produced. That means the quality of everything downstream depends on what you've connected. ## Two kinds of data | Kind | What it gives the agent | Set up in | | - | - | - | | **[Projects](/data/projects)** | Your code. The repositories Console clones and reads. | Projects | | **[Connections](/data/connections)** | Your source control provider, and signal from the security and IT vendors you already run. | Connections | | **[Integrations](/integrations/overview)** | The apps your team works in — Slack, Jira, Confluence, Linear, Notion, Asana, Google Docs — which agents can read and write. | Connections | Projects are what an agent reads *from disk*. Connections are what it queries *over the network* — including the pull request events that let a workflow fire on its own. Integrations are how it puts results back where your team will see them. > [!NOTE] > > These are prerequisites, not optional extras. Chat can't analyze a repository that isn't connected, and > a workflow has nothing to run against without at least one project. ## Two ways to direct it Once the data is connected, Console gives you two ways to put it to work — one interactive, one declarative: * **[Chat](/interactive/chat)** — point an agent at something and ask. Best when you don't yet know what you're looking for, or when the question is a one-off. * **[Workflows](/workflows/overview)** — declare the repositories, the agent chain, and where results go, then let it run unattended. Best when the task is worth repeating. The usual progression is to explore a question in chat, and once the approach works, promote it to a workflow. ## What accumulates As agents work, results collect in your organization rather than evaporating with the conversation: * **[Findings](/data/findings)** — confirmed issues, each with the agent's reasoning, the affected code, and often a suggested fix. * **[Detections](/agents/detections)** — the rules you've built up, which later runs apply automatically. Both become inputs in their own right. A finding can seed a new chat; detections turn a one-time discovery into a permanent check. ## Next steps > **[Connect a repository](/data/projects)** > > Give agents code to read. > **[Connect your vendors](/data/connections)** > > Source control, plus the security stack you already run. > **[What agents can read](/data/what-agents-can-read)** > > Exactly what a vendor connection exposes today. > **[Integrations](/integrations/overview)** > > Let agents act in Slack, Jira, Linear, Notion, and more. > **[Findings](/data/findings)** > > Where confirmed results land. # Projects Source: https://docs.amplify.security/data/projects Connect the repositories Console clones, reads, and analyzes. ## What a project is A project is a repository Console can reach. It carries a name in `owner/repo` form, a clone URL, and the source-control connection that authorizes access. Projects are the unit of targeting everywhere else in the product: * **Chat** clones a project on demand so an agent can read its code. * **Manual workflow runs** ask which projects to run against. * **Pull request triggers** watch a set of projects. * **Findings** are recorded against a project, and deduplicated within it. ## Connecting a repository Projects come from a source-control [connection](/data/connections). Add a GitHub or GitLab connection from **Connections**—for GitHub, granting access to all repositories or your desired subset—and the repositories become available as projects. See [Connections](/data/connections#source-control) for both flows. > [!NOTE] > > Access is inherited from the connection. If a repository isn't showing up, the usual cause is that the > GitHub App installation doesn't include it — adjust the installation's repository access rather than > looking for a per-project setting. ## How code reaches an agent Console never analyzes code in place. Each run gets an isolated sandbox and clones the repository into it, which is why an agent can run builds and execute commands without touching anything of yours. What gets cloned depends on how the run started: | Run type | Cloned | | - | - | | Chat | The project you're asking about | | Manual workflow run | Each selected project, at its default branch — or at a [git ref](/workflows/running#run-a-workflow-manually) you pin | | Pull request run | The pull request's **head** — the proposed code, not the base branch | Agents can also discover and clone projects themselves through `list_projects` and `clone_project`, which is how a chat session pulls in a repository mid-conversation. ## Local code and the CLI The CLI is the exception: it runs against **the directory you started it in**, with no project or clone involved. That makes it the right tool for code you're actively editing, including uncommitted changes that don't exist in any repository yet. Projects still matter to the CLI when it's authenticated, since detections and findings sync to your organization. See [The CLI](/interactive/cli). ## Findings are scoped per project Findings are deduplicated within a project by identity, so the same issue rediscovered on a later run updates the existing finding instead of creating a second one. Run history stays readable and a recurring issue doesn't inflate your counts. ## Next steps > **[Connections](/data/connections)** > > Set up source control and vendor connectors. > **[Ask about your code](/interactive/chat)** > > Start a chat against a connected project. # What agents can read Source: https://docs.amplify.security/data/what-agents-can-read Exactly what a vendor connection exposes to an agent today — and what it does not. ## The short version Once a vendor is connected, an agent can do two things: **discover your connections**, and **query normalized vulnerability findings** from them. That's the whole vendor-connector surface today. It's genuinely useful — it's what lets an agent triage an existing scanner backlog against your real code — but it is narrower than the [connector catalog](/data/connections#vendor-connectors), so it is worth being precise before you design a workflow around it. > [!NOTE] > > This page is about **vendor connectors** — the security scanners in the catalog. The apps your team works > in are a separate thing: through [integration tools](/integrations/overview), agents can read *and write* Slack, > Jira, Confluence, Linear, Notion, Asana, and Google Docs. ## What an agent can do | Capability | Tool | | - | - | | List the connections configured for your organization | `list_leen_connections` | | Query vulnerability findings from a connection, with filters and pagination | `get_leen_vulnerability_findings` | | Fetch one vendor finding in full | `get_leen_vulnerability_finding` | An agent discovers connections first, then queries the one it wants — the same order you'd use by hand. ### What a vendor finding carries Findings are **normalized**, so the shape is the same whether they came from Snyk, Semgrep, or an EDR: | Field | Notes | | - | - | | `title`, `description` | What the vendor reported | | `severity` | `CRITICAL`, `HIGH`, `MEDIUM`, `LOW`, `INFO` | | `state` | `OPEN`, `CLOSED`, `REOPENED`, `IGNORED` | | `type` | The finding's classification | | `has_fix` | Whether a fix is available | | `remediation` | The vendor's suggested remediation | | `first_seen`, `last_seen` | Timestamps | | `product` | The product the finding belongs to | | `vulnerabilities` | Associated CVE knowledge-base entries | Filter by severity and state, restrict to findings that do or don't have a fix, and page through large result sets with a cursor. Heavier vendor-specific payloads are deliberately dropped — they'd crowd an agent's context without improving its reasoning. ## What an agent cannot do > [!WARNING] > > The vendor surface is scoped to **vulnerability findings**. Connecting a vendor from another category > makes the connection available, but does not give agents a way to read that vendor's other data. Concretely, through a vendor connector an agent **cannot**: * Read cloud or CSPM configuration state * Read identity provider users, groups, or policies * Read GRC controls or evidence * Write anything back to the vendor — update a finding's state, comment, or close it There is also no general-purpose outbound write tool. `web_fetch` performs reads only, with no request method or body, so an agent cannot use it to POST to a vendor API. Writes to other systems happen only through [integration tools](/integrations/overview) — a fixed set of tools per connected app, with nothing destructive in it — and through [workflow outputs](/workflows/outputs), which deliver to pull requests and GitHub checks. ## What this is good for The one thing this surface does well is worth building on, because nothing else in your stack does it: **deciding which of your existing findings actually matter.** A scanner tells you a vulnerable function exists in a dependency. It usually can't tell you whether your code ever calls it. An agent with both your vendor findings *and* your source can: ``` Pull the open CRITICAL and HIGH findings from our Snyk connection. For each one, trace whether the vulnerable code path is actually reachable from an entrypoint in this repository. Report the reachable ones as findings and tell me which are noise. ``` That turns a backlog of hundreds into a list of the few that are real — using the vendor for breadth and the harness for judgment. Other things this supports well: * **Cross-referencing tools.** Ask whether two scanners agree, and where they disagree and why. * **Explaining a finding in context.** Take a terse vendor finding and have an agent explain what it means in your codebase specifically. * **Prioritizing by real exposure** rather than by CVSS alone, by checking what's actually deployed and reachable. ## Using it in a workflow Because these are ordinary tools, an agent you write can use them in any workflow step. Grant the tools in [`allowed-tools`](/agents/writing-an-agent#allowed-tools-restricts-it-doesnt-grant) and describe the job: ```markdown theme={null} --- name: backlog-triage description: Triages open vendor vulnerability findings against this repository's code and reports which are genuinely reachable. allowed-tools: - shell - ripgrep_search - code_lineage - list_leen_connections - get_leen_vulnerability_findings - report_finding --- You triage an existing scanner backlog against real code. 1. Call `list_leen_connections` to find the available connections. 2. Query open findings at CRITICAL and HIGH severity. 3. For each, locate the affected package or symbol in this repository and use `call_graph` to determine whether it is reachable from an entrypoint. 4. Report only the reachable ones with `report_finding`, citing the call path. ``` ## Next steps > **[Connect a vendor](/data/connections)** > > Browse the connector catalog. > **[Write an agent](/agents/writing-an-agent)** > > Grant these tools and put them to work. > **[Integrations](/integrations/overview)** > > Read and write the apps your team works in. # Installation Source: https://docs.amplify.security/install-console Install Console on Linux or macOS. ## Prerequisites * Linux or macOS (x86\_64 or arm64) * `curl` available in your `PATH` ## Install Open a terminal and run the following command to launch the installer: ```bash theme={null} curl -sSf https://get-console.amplify.security | bash ``` The installer will download the latest release of Console from GitHub, verify its integrity, install it under your current user at `~/.local/bin/console` (or under a separately configured XDG path), and update your `PATH` if necessary in your shell's rc file. > [!TIP] > > To install a specific version, pass the version tag as an argument: > > `curl -sSf https://get-console.amplify.security | bash -s -- v1.2.3` After installation, open a new terminal session (or `source` your shell's rc file) so that the updated `PATH` takes effect. ## Sign in Start Console: ```bash theme={null} console ``` The first launch walks you through setup. Choose **Sign in with your browser**: Console shows a short code and opens the Amplify sign-in page, where you confirm the code with the account you use for the web interface. Then pick a default organization if you belong to more than one, and confirm the scanner tools are installed. Your session stays valid indefinitely. If you would rather use an API key (for example on a machine with no browser), choose **Paste an API key** instead and paste one created at [Profile > API keys](https://console.amplify.security/console/profile/api-keys) in the web interface. Console stores the sign-in in `~/.amplify/credentials.json` (readable only by you) and your settings in `~/.amplify/config.json`. Run `console setup` at any time to repeat the setup, `console login` to sign in again or switch accounts, `console logout` to forget the stored sign-in, and `console config` to see the settings in effect. > [!NOTE] > > The local scan tools use `opengrep` and `ripgrep` (`rg`), which are not bundled with Console. Setup > reports either one as *not found on PATH*. To install them: > > `brew install opengrep ripgrep # macOS; Linux: your package manager, or opengrep's release installer` ## Connect GitHub To let Console reach your organization's repositories on GitHub, connect GitHub from the web interface: open **Connections**, click **Add connection**, and choose **GitHub**. See [Connections](/data/connections#github) for the full flow. ## Start a session Once you are signed in, change to a directory containing one of your projects and start Console: ```bash theme={null} cd ~/src/hello-world console ``` This opens an interactive chat session with the AI agent. Try asking it one of the following: * Find and resolve any vectors for XSRF/XSS attacks within this project. * Are there any exposed service endpoints in this project that shouldn't be? or anything else may be relevant for your project. ## Automation For CI or scripts, set `AMPLIFY_API_KEY` in the environment instead of running setup; Console uses it as-is and never prompts. `console -p ""` runs a single prompt and exits, and fails with a clear message when no sign-in is available. ## Troubleshooting **The sign-in code expired before it was confirmed**, or **The sign-in was denied in the browser.** The browser step didn't complete. Choose **Sign in with your browser** again and confirm the code. **This account is not a member of any organization.** Accept the invitation in the web interface, then run `console setup`. **Your sign-in is no longer valid**, or **Your sign-in has expired.** The stored sign-in can't be renewed. Run `console login` to sign in again. **Could not reach ...**, or **Check your network ... then try again.** Console needs a connection to Amplify. Check your network or proxy settings, then retry. **Sign-in rejected by ...** Run `console login` to sign in again. If `AMPLIFY_API_KEY` is set in your shell, Console uses that key — check that it is valid, or unset it. # Asana Source: https://docs.amplify.security/integrations/asana Agents create, read, and comment on Asana tasks in the workspaces the bot account belongs to. ## What it's for Tracking findings as Asana tasks. A workflow step creates a task per confirmed finding in the project your team triages from; a chat agent checks whether a finding is already tracked and adds what it learned as a comment. ## Before you connect 1. Create the bot Asana account and invite it to the workspaces and projects agents should reach. See [the bot account](/integrations/connecting#the-bot-account). A guest or project-limited member is usually right. 2. Sign your browser into the bot account, then follow [the connect flow](/integrations/connecting#connecting). The authorization screen asks for Asana's standard access, which grants what the bot account itself can do. ## What agents can do | Tool | What it does | | - | - | | `Asana_ListWorkspaces` | Lists the workspaces the bot account can see. | | `Asana_ListProjects` | Lists projects. | | `Asana_GetProjectById` | Returns one project. | | `Asana_GetTasksWithoutId` | Searches for tasks. | | `Asana_GetTaskById` | Returns one task. | | `Asana_CreateTask` | Creates a task in a project, workspace, or under a parent task. | | `AsanaApi_AddTaskComment` | Comments on a task. | | `AsanaApi_GetUserDetails` | Looks up a user. | A task created without an assignee is assigned to the bot account — that's Asana's default for the authenticated user, and agents are told about it. If you want tasks unassigned or assigned to someone specific, say so in the agent's instructions. ## What agents can't do * Update a task's fields, or mark it complete * Delete tasks, projects, or comments * Reach a workspace or project the bot account isn't a member of ## Example Ask in chat, with Asana connected: ``` Search the "Security backlog" project for a task about finding #9. If there isn't one, create it with the finding's title, assign it to nobody, and put the explanation and a link back here in the description. ``` ## Revoking fully Disconnecting in Console deletes Amplify's stored authorization. To remove Asana's side of the grant too, sign in as the bot account and remove the Amplify app under **Asana Settings → Apps**. # Atlassian Source: https://docs.amplify.security/integrations/atlassian One connection for Jira and Confluence — agents file and update issues, and read and write pages, on the site you choose. ## What it's for Tracking findings as Jira issues and writing them up in Confluence. A workflow step files one issue per confirmed finding and skips duplicates; a chat agent checks whether a finding is already tracked, comments on the issue with what it learned, or drafts a review page in the space your team reads. One Atlassian connection covers both products. The bot account's product access decides which of the two agents can actually reach. ## Before you connect 1. Create the bot Atlassian account. See [the bot account](/integrations/connecting#the-bot-account). 2. Give it product access to **both Jira and Confluence** on the site agents should use, and add it to the projects and spaces they should work in. 3. Sign your browser into the bot account, then follow [the connect flow](/integrations/connecting#connecting). During authorization, Atlassian asks you to **choose a site** — pick the one from step 2. > [!WARNING] > > Atlassian fixes what the connection can reach at the moment you approve it. The bot account must already > have Confluence access on the site *before* you authorize — if you grant Confluence later, agents' Confluence > tools fail with "no authorized Atlassian clouds" until an admin disconnects and reconnects. Atlassian labels Amplify Console an **unreviewed integration** on the consent screen. That's expected for an app shared by link rather than listed in the Marketplace. The authorization screen asks for: read and write Jira work items, read Jira users, manage Jira configuration, and read, search, and write Confluence pages and spaces. The Jira configuration scope is required by Atlassian for the issue-creation tools; a bot account without Jira admin rights still authorizes normally, and admin-only operations simply aren't available to it. ## What agents can do ### Jira | Tool | What it does | | - | - | | `Jira_WhoAmI` | Returns the bot account's profile. Agents call it first to establish which site they're on. | | `Jira_GetAvailableAtlassianClouds` | Lists the Atlassian sites the connection can reach. | | `Jira_ListProjects` | Browses the projects the bot account can see. | | `Jira_SearchProjects` | Returns project details, searchable by name or key. | | `Jira_GetProjectById` | Returns one project by id or key. | | `Jira_ListIssueTypesByProject` | Lists the issue types a project accepts. | | `Jira_GetIssueTypeById` | Returns one issue type. | | `Jira_SearchIssuesWithoutJql` | Searches issues with plain parameters — project, status, assignee, text. The preferred search. | | `Jira_SearchIssuesWithJql` | Searches issues with a JQL query. | | `Jira_ListIssues` | Lists the issues in a project. | | `Jira_GetIssueById` | Returns one issue in full. | | `Jira_GetIssueComments` | Reads an issue's comments. | | `Jira_GetCommentById` | Returns one comment. | | `Jira_AddCommentToIssue` | Comments on an issue. | | `Jira_CreateIssue` | Creates an issue. Accepts project, issue type, priority, and assignee by name rather than id. | | `Jira_UpdateIssue` | Updates an issue's summary, description, assignee, priority, or labels. | | `Jira_ListLabels` | Lists the labels in use on the site. | | `Jira_AddLabelsToIssue` | Adds labels to an issue. | | `Jira_GetTransitionsAvailableForIssue` | Lists the status transitions an issue currently allows. | | `Jira_GetTransitionByStatusName` | Finds a transition by the name of its target status. | | `Jira_GetTransitionById` | Returns one transition. | | `Jira_TransitionIssueToNewStatus` | Moves an issue to a new status. | | `Jira_ListPrioritiesAvailableToAProject` | Lists the priorities a project accepts. | | `Jira_GetPriorityById` | Returns one priority. | | `Jira_GetUsersWithoutId` | Finds users by display name or email, for assigning. | Agents are instructed to create issues only for findings you asked to track, never in bulk, and to check a project's issue types before filing. Status changes go through the transition tools, not through `Jira_UpdateIssue`. ### Confluence | Tool | What it does | | - | - | | `Confluence_WhoAmI` | Returns the bot account's profile. Agents call it first to establish which site they're on. | | `Confluence_GetAvailableAtlassianClouds` | Lists the Atlassian sites the connection can reach. | | `Confluence_ListSpaces` | Lists the spaces the bot account can see. | | `Confluence_GetSpace` | Returns one space by id or key. | | `Confluence_ListDirectChildren` | Lists the pages directly under a page or space. | | `Confluence_SearchContent` | Searches page content. | | `Confluence_GetPage` | Reads one page by id or title. | | `Confluence_GetPagesById` | Reads several pages in one call. | | `Confluence_ListPages` | Lists pages, with their content. | | `Confluence_CreatePage` | Creates a page at the root of a space. | | `Confluence_UpdatePageContent` | Replaces a page's body. Agents are instructed to read the page first and preserve what they weren't asked to change. | ## What agents can't do * Delete issues, pages, or comments, or remove labels from an issue (labels are removed by updating the issue's label list) * Attach files to issues * Create or manage sprints or boards * Comment on Confluence pages, or rename them * Reach a site other than the one chosen at authorization, or a project or space the bot account can't see ## Example A filing step that runs once per finding: ```markdown theme={null} --- name: jira-issue-filer description: Files one Jira issue in the SEC project for each confirmed finding, unless an open issue for the same finding already exists. allowed-tools: - list_findings - Jira_ListIssueTypesByProject - Jira_SearchIssuesWithoutJql - Jira_CreateIssue consumes: - kind: amplify:finding mode: each group-by: [id] --- Search the SEC project for an open issue mentioning this finding's id; if one exists, stop. Otherwise create a Bug titled `[Amplify] ` whose description carries the severity, file and line, explanation, and a link back to the finding. Do not assign it or change its status. ``` See [using integration tools in an agent](/integrations/using-in-agents#one-issue-per-finding) for why `group-by: [id]` is there. ## Revoking fully Disconnecting in Console deletes Amplify's stored authorization. To remove Atlassian's side of the grant too, sign in as the bot account at **id.atlassian.com → Connected apps** and revoke Amplify Console. # Connecting an app Source: https://docs.amplify.security/integrations/connecting Set up a bot account, authorize it from the Connections page, and revoke it when you need to. ## Before you start Connecting an app requires an **organization admin**. Other members see the apps on the Connections page but can't connect or disconnect them. > [!NOTE] > > Slack doesn't use a bot account or this flow. You install the Amplify Console app into your workspace > instead. See [Slack](/integrations/slack#installing). You also need a bot account in the app. Read the next section before you click anything — signing in with the wrong account is the most common mistake in this flow, and it's the one that's hardest to notice. ## The bot account Agents act in each app through a dedicated account that your team owns — the same idea as a service account. Amplify never sees its credentials; you hold them. 1. **Create the account in your own domain**, for example `amplify-agent@yourcompany.com`, and sign it up for the app. 2. **Give it exactly the access agents should have.** Add it to the Jira projects agents may file into, the Notion pages they may read, the Asana projects they may work in. Its permissions in the app are the ceiling on what agents can do. A guest or project-limited member is usually right, and in many apps doesn't consume a paid seat. 3. **Name it clearly.** A display name like "Amplify Agent" and a recognizable avatar, because every issue, message, and page agents create is attributed to this account. 4. **Sign your browser into the bot account before connecting.** The authorization step grants access for whichever account the browser is signed into. If that's your personal account, agents will act as *you*. > [!WARNING] > > Authorize from the bot account, not your own. Open a private window, sign into the app as the bot, and > run the connect flow from there. Each app has its own prerequisites on top of these — Atlassian needs both Jira and Confluence access on the account *before* you authorize, Notion asks you to pick pages during consent. They're on each app's page. ## Connecting 1. Open **Connections** and click **Add connection**. 2. Expand **Agent Tools** — the dialog's name for the integrations section — and choose the app. 3. Read the steps shown — they're the app-specific version of the bot-account checklist above — then click **Start connection**. 4. Click **Approve in \**. The app's authorization page opens in a new tab, signed in as whichever account that browser holds. Approve it. 5. Partway through, you'll briefly see a Console page reading **Confirming your authorization...** before being returned to the app. That's expected. 6. Back on the Connections page, the app's card reads **Waiting for authorization** until the flow completes, then switches to **Connected as** the bot account's name and email. The card shows who authorized the connection and when. From this point, every agent in your organization has that app's tools. > [!TIP] > > If the card stays on *Waiting for authorization*, the approval tab was probably closed before finishing. > Click **Add connection** and start the same app again — it restarts the flow cleanly. ## Reconnecting Connecting an app that's already connected simply starts a fresh authorization. Do this when: * The card reads **Authorization lost**. Someone revoked the app from the bot account, or the account was deactivated. * You want to switch to a different bot account. * The app's page tells you to. Atlassian, for instance, fixes the products the connection can reach at the moment of consent, so granting the bot Confluence access later means reconnecting. ## Disconnecting Click the trash icon on the app's card and confirm. Agents lose that app's tools on their next run or chat turn. > [!WARNING] > > Disconnecting deletes the authorization Amplify holds, but the app keeps its side of the grant. To revoke > fully, also remove Amplify Console from the bot account inside the app. The confirmation dialog tells you > where, and so does each app's page. ## Troubleshooting **Agents can't see something the bot can.** Most often the connection was authorized from the wrong account — check the *Connected as* line on the card. Otherwise it's the app-specific scoping: Notion agents see only pages shared with the connection, Atlassian agents see only the one site chosen at consent. Each app's page has the details. **The card reads Authorization lost.** The app revoked the grant — usually because someone removed Amplify Console from the bot account's authorized apps, or the account was deactivated. Reconnect from **Add connection**. **Approve in \ opens a page for the wrong account.** The browser is signed into your personal account. Close the tab, sign that browser out of the app (or use a private window signed in as the bot), then start the connection again. **The app says Amplify Console needs admin approval.** Google Workspace organizations that restrict third-party apps require an admin to approve the app once before any account can authorize it. Have an admin of that app approve Amplify Console, then reconnect. For Slack's approval step, see [Slack](/integrations/slack#before-you-install). ## Next steps > **[Use integration tools in an agent](/integrations/using-in-agents)** > > Grant tools by name and add a delivery step to a workflow. > **[Integrations overview](/integrations/overview)** > > Which apps you can connect and what agents can do in each. # Google Docs Source: https://docs.amplify.security/integrations/google Agents search, read, create, edit, and comment on Google Docs that you share with a bot account or grant through Choose files. ## What it's for Reading the documents your team writes — design docs, security reviews, policies — and producing new ones. A chat agent reads the design doc for the service under review; a workflow step writes a scan report as a new document, or comments on an existing one with what it found. ## What agents can see Google Docs has two layers of access, and it helps to know both before you connect: | If you… | Agents can… | | - | - | | **Share a document with the bot account** | Open it by id or URL — read it, edit it, append to it | | **Also grant it through Choose files** | Find it in searches and comment on it | Documents agents *create* are owned by the bot account and are searchable automatically. Documents you merely share with the bot are reachable when an agent is given the link, but don't appear in searches until an admin picks them with **Choose files** on the connection's card. ## Before you connect 1. Create the bot Google account. See [the bot account](/integrations/connecting#the-bot-account). 2. Share any existing documents agents should work on with it. 3. Sign your browser into the bot account, then follow [the connect flow](/integrations/connecting#connecting). 4. Optionally, click **Choose files** on the connected card and pick the documents agents should be able to search. The picker grants access for whichever Google account the browser is signed into, so do this from the bot account too. The authorization screen asks for access to Google Docs, to the Drive files the app creates or you pick, and to the bot account's name and email. ## What agents can do | Tool | What it does | | - | - | | `GoogleDocs_WhoAmI` | Returns the bot account's name, email, and profile picture. | | `GoogleDocs_SearchDocuments` | Searches for documents, returning metadata only. Covers documents agents created plus those granted through Choose files. | | `GoogleDocs_SearchAndRetrieveDocuments` | Searches and returns matching documents with their body content. | | `GoogleDocs_GetDocumentMetadata` | Returns a document's metadata, including its tab structure. | | `GoogleDocs_GetDocumentAsDocmd` | Reads a document by id as annotated Markdown. Works for any document shared with the bot account. | | `GoogleDocs_CreateBlankDocument` | Creates an empty document with a title. | | `GoogleDocs_CreateDocumentFromText` | Creates a document from text or Markdown. | | `GoogleDocs_EditDocument` | Makes structured edits to a document. | | `GoogleDocs_InsertTextAtEndOfDocument` | Appends text to a document. | | `GoogleDocs_CommentOnDocument` | Comments on a document. | | `GoogleDocs_ListDocumentComments` | Lists a document's comments and replies. | When a document isn't found, agents are instructed to treat that as "not shared with the bot account" and ask you for the link or to share it, rather than concluding the document doesn't exist. ## What agents can't do * Delete documents, or move them between folders * Work with Sheets, Slides, or any Drive file that isn't a Google Doc * Find a document in search that was shared with the bot but never picked with Choose files ## Example Ask in chat, with Google Docs connected: ``` Here's our API design doc: . Compare the authentication section against the middleware in this repository and leave a comment on each claim in the doc that the code doesn't back up. ``` ## Revoking fully Disconnecting in Console deletes Amplify's stored authorization. To remove Google's side of the grant too, sign in as the bot account and remove Amplify Console under **Google Account → Security → Third-party apps & services**. # Linear Source: https://docs.amplify.security/integrations/linear Agents create, update, comment on, and transition Linear issues in every team the bot account belongs to. ## What it's for Tracking findings as Linear issues. A workflow step files an issue per confirmed finding in the right team; a chat agent checks whether something is already tracked, adds what it learned as a comment, or moves an issue to the next state once a fix is verified. ## Before you connect 1. Create the bot Linear user. See [the bot account](/integrations/connecting#the-bot-account). 2. Add it to every team agents should file into. Linear has no picker at authorization — the connection reaches **every team the bot account belongs to**, so team membership is the only scoping lever. 3. Sign your browser into the bot account, then follow [the connect flow](/integrations/connecting#connecting). The authorization screen asks for read and write access to the bot account's workspace, plus permission to create comments. ## What agents can do | Tool | What it does | | - | - | | `Linear_WhoAmI` | Returns the bot account's profile and team memberships. | | `Linear_ListTeams` | Lists teams, optionally filtered by keyword. | | `Linear_GetTeam` | Returns one team in detail. | | `Linear_ListProjects` | Lists projects, filterable by keyword, status, team, or creation date. | | `Linear_GetProject` | Returns one project in detail. | | `Linear_GetProjectDescription` | Returns a project's full description, paginated. | | `Linear_ListIssues` | Lists issues, filterable by keyword and other criteria. | | `Linear_GetIssue` | Returns one issue in detail. | | `Linear_ListComments` | Reads an issue's comments. | | `Linear_ListLabels` | Lists the workspace's labels. | | `Linear_ListWorkflowStates` | Lists the workflow states available in the workspace. | | `Linear_ListCycles` | Lists cycles, filterable by team and status. | | `Linear_GetCycle` | Returns one cycle in detail. | | `Linear_CreateIssue` | Creates an issue. Team, assignee, labels, state, project, cycle, and parent are validated first, with suggestions if one isn't found. | | `Linear_UpdateIssue` | Updates an issue's title, description, assignee, labels, priority, or estimate. | | `Linear_TransitionIssueState` | Moves an issue to a new workflow state. | | `Linear_AddComment` | Comments on an issue. | | `Linear_ReplyToComment` | Replies to an existing comment. | | `Linear_CreateIssueRelation` | Relates two issues — blocks, duplicates, related. | | `Linear_CreateLabel` | Creates a label and optionally applies it. | Agents are instructed to create issues only for findings you asked to track, never in bulk. Status changes go through `Linear_TransitionIssueState`, not `Linear_UpdateIssue`. An issue created without an assignee is assigned to the bot account, which is Linear's behavior for the authenticated user. ## What agents can't do * Delete, archive, or trash anything * Create or edit projects, initiatives, documents, milestones, or project statuses * Attach files or manage subscriptions * Reach a team the bot account isn't a member of ## Example Ask in chat, with Linear connected: ``` Is finding #17 already tracked in the Platform team? Search open issues for the file path. If not, create one labeled "security" with the finding's summary and a link back here, and leave it in Triage. ``` For a workflow step that files one issue per finding, adapt the [Jira example](/integrations/using-in-agents#one-issue-per-finding): swap the tools for `Linear_ListTeams`, `Linear_ListIssues`, and `Linear_CreateIssue`, and name the team instead of a project key. ## Revoking fully Disconnecting in Console deletes Amplify's stored authorization. To remove Linear's side of the grant too, sign in as the bot account and revoke Amplify Console under **Settings → Security & access → Authorized applications**. # Notion Source: https://docs.amplify.security/integrations/notion Agents search, read, create, and append to the Notion pages you share with the connection. ## What it's for Reading the context your team keeps in Notion — threat models, runbooks, architecture notes — and writing up what agents find. A chat agent reads the design doc for the service it's analyzing; a workflow step appends a run summary to a standing status page or creates a review page under the parent you name. ## What agents can see A Notion connection sees **only the pages and databases you share with it**. You choose them in the page picker during authorization, and you can share more at any time from a page's **••• → Connections** menu. Nothing else in the workspace exists as far as agents are concerned — a freshly connected Notion with nothing shared looks empty to them. Sharing a page shares its children too, so sharing a top-level "Engineering" page is the usual shortcut. ## Before you connect 1. Create the bot Notion account and invite it to the workspace(s) agents should work in. See [the bot account](/integrations/connecting#the-bot-account). 2. Sign your browser into the bot account, then follow [the connect flow](/integrations/connecting#connecting). 3. In Notion's authorization page, **select the pages and databases** agents may use before approving. The connection asks Notion for these capabilities: read content, insert content, read and insert comments, and read user information without email addresses. It does not ask to update or delete existing content. ## What agents can do | Tool | What it does | | - | - | | `Notion_WhoAmI` | Returns the bot account's profile and workspace. | | `Notion_SearchByTitle` | Searches pages and databases by title. Titles only — not page content. | | `Notion_GetWorkspaceStructure` | Returns up to 100 recently edited pages and databases as a tree. | | `Notion_GetObjectMetadata` | Returns a page's or database's metadata by title or id. | | `Notion_GetObjectLocation` | Returns the breadcrumb path to a page or database. | | `Notion_ListChildObjects` | Lists the pages and databases directly under a page. | | `Notion_GetPageContentById` | Reads a page as Markdown, by id. | | `Notion_GetPageContentByTitle` | Reads a page as Markdown, by title. | | `Notion_CreatePage` | Creates a page under a parent page, named by title. | | `Notion_AppendContentToEndOfPage` | Appends Markdown to the end of a page. | When a page isn't found, agents are instructed to treat that as "not shared with the connection" and ask you to share it, rather than concluding the page doesn't exist. ## What agents can't do * Edit or delete existing content — only append to a page or create a new one * Query a database by property (filter rows by status, owner, date). Database rows are pages and are found by title only * Comment on pages * Reach any page that hasn't been shared with the connection ## Example Ask in chat, with Notion connected: ``` Read the "Payments service threat model" page and check whether the trust boundaries it describes match what you see in this repository's request handlers. Append a dated "Verified against code" section to the page with any differences you found. ``` ## Revoking fully Disconnecting in Console deletes Amplify's stored authorization. To remove Notion's side of the grant too, sign in as the bot account and remove Amplify Console under **Settings → Connections**. # Integrations Source: https://docs.amplify.security/integrations/overview Give agents tools in the third-party apps your team already uses — Slack, Jira, Confluence, Linear, Notion, Asana, and Google Docs. ## What integrations are An integration gives Console's agents a set of tools in one third-party app your team uses. Once an organization admin installs Slack, every agent in your organization can post to Slack. Connect Jira, and agents can file and update issues. Connect Confluence, and they can write up what they found. These are separate from the built-in tools every agent already has for reading code, scanning, and recording findings — those are in the [tool reference](/agents/tool-reference). Integration tools exist only for apps an admin has connected. These are the apps you can connect today: | App | What agents can do | Tools | | - | - | - | | [Slack](/integrations/slack) | Chat with the agent from Slack; post messages and replies, and react, as the Amplify Console bot | 4 | | [Atlassian](/integrations/atlassian) | Create, search, comment on, and transition Jira issues; read and write Confluence pages | 36 | | [Linear](/integrations/linear) | Create, update, comment on, and transition issues | 20 | | [Notion](/integrations/notion) | Search, read, create, and append to pages | 10 | | [Asana](/integrations/asana) | Create, read, and comment on tasks | 8 | | [Google Docs](/integrations/google) | Search, read, create, edit, and comment on documents | 11 | Each app's page lists every tool by name, what it needs before you connect, and what it can't do. > [!NOTE] > > Integrations are a different thing from the [vendor connectors](/data/connections#vendor-connectors) on the > same Connections page. Vendor connectors let agents *read findings* from security scanners. Integrations let > agents *act* in your team's collaboration and tracking apps. ## How it works **One connection per app, per organization.** An organization admin connects the app once, and the connection is shared by everyone in the organization. There is nothing to configure per agent or per workflow — once an app is connected, its tools are offered to every agent that runs, in [chat](/interactive/chat) and in [workflows](/workflows/overview) alike. **Agents act as a bot account you own.** You create a dedicated account for Amplify in the app — an `amplify-agent@yourcompany.com`, say — and authorize *that* account when you connect. Everything agents do is attributed to it, and its permissions in the app bound what agents can reach. See [the bot account](/integrations/connecting#the-bot-account) for how to set one up. **Slack works differently.** You install the Amplify Console app into your Slack workspace instead of authorizing an account. Agents act in Slack as the app's own bot user, and your team can also chat with the agent from Slack. See [Slack](/integrations/slack). **Tools are named after the app.** Integration tools are named `_` — `Jira_CreateIssue`, `Linear_CreateIssue`, `Notion_SearchByTitle`. Slack's tools are the exception, named `slack_`, such as `slack_post_message`. That's the name you use in an agent's [`allowed-tools`](/agents/writing-an-agent#allowed-tools-restricts-it-doesnt-grant). See [using integration tools in an agent](/integrations/using-in-agents). **Nothing destructive is exposed.** No integration tool deletes, removes, archives, or trashes anything, in any app. The toolset for each app is a fixed, curated allowlist — agents cannot reach an app's other API surface, and Console's own tools can't be used to call the app's API directly either. ## What agents see An agent only ever sees the tools for apps that are connected. There is no "connect Slack" prompt in the middle of a run — if Slack isn't connected, the Slack tools simply aren't there, and an agent asked to post to Slack will say it has no way to. If a connection stops working mid-run, the agent is told and moves on rather than stalling: | State | What the agent gets | What you see | | - | - | - | | App not connected | The app's tools are absent | Nothing on the Connections page for that app | | Authorization revoked in the app | Every call to that app's tools returns an error telling the agent to continue without them | The app's card reads **Authorization lost — reconnect from Add Connection** | | App or broker temporarily unreachable | Each call returns a "temporarily unavailable" error; the run completes | Nothing — the connection stays Connected | Each tool call is given 60 seconds, and a result longer than 16,000 characters is truncated with a note saying so. ## Where integrations are available | Surface | Available | | - | - | | Chat in the web console | Yes | | Workflows | Yes | | The CLI | No — the CLI runs against your local working directory and has no organization connections | ## Next steps > **[Connect an app](/integrations/connecting)** > > The bot account, the connect flow, and disconnecting. > **[Use integration tools in an agent](/integrations/using-in-agents)** > > Grant tools, and add a Slack or Jira step to a workflow. # Slack Source: https://docs.amplify.security/integrations/slack Install the Amplify Console app in Slack so your team can chat with the agent in DMs and channels, post workflow results to a channel, and let agents post as the Amplify Console bot. ## What it's for Bringing Amplify Console to where your team already talks. With the app installed: * **People chat with the agent from Slack.** A direct message to Amplify Console gets the same agent you use in [chat](/interactive/chat) in the web console, with the same tools and the same access to your organization's projects and findings. * **The agent answers @-mentions** in channels an admin chooses, replying in a thread the channel can see. * **Workflows post their results to a channel** through the **Post to Slack** [output](/workflows/outputs#post-to-slack). * **Agents can post, reply, and react in Slack** as the Amplify Console bot, in chat and in workflow steps. Everything the app does in Slack appears as **Amplify Console**, the app's own bot user. There is no Slack account for you to create or manage. ## Before you install * **A Console organization admin installs it.** Installing starts from the Connections page, which only admins can change. * **The installer must be allowed to add apps to the Slack workspace.** If your workspace requires admin approval for apps, the install pauses on a Slack approval request. A Slack admin can approve it from **Admin → Apps → Requests to install**, or pre-approve it ahead of time with an app-approval rule for app ID `A0C28V9SYJK` (Amplify Console). * **Slack's agent experience needs a paid Slack plan.** Slack offers the agent experience, where people open a conversation with Amplify Console, on its Pro, Business+, and Enterprise plans. A Slack admin can also turn it off for an app. > [!NOTE] > > Amplify Console is not yet listed in the Slack Marketplace. Install it from the Connections page in Console, > as described below. ## Installing 1. On **Connections**, click **Add connection**. 2. Expand **Agent Tools** and choose **Slack**. 3. Click **Add to Slack**. Slack's authorization page opens for the workspace your browser is signed into. 4. Review the permissions and approve. Slack returns you to **Connections**, where the workspace now has a card. The person who installed the app gets a welcome message from Amplify Console in Slack. One Console organization can install the app into more than one Slack workspace. Each workspace gets its own card. An Enterprise Grid installation shows one card listing each workspace it covers and its status. ## Who can talk to the agent A person in Slack can use the agent only if their Slack account's email address matches the email of an Amplify Console account that is a member of the organization that installed the app. The email must be confirmed in Slack. Anyone else who messages or mentions the agent gets one reply asking them to sign in to Amplify Console with that Slack email address, and nothing else happens. Slack guests can't use agents at all. The agent acts as the matched Console member. It sees what that member could see in Console, and the conversation is saved under the account of the person who started it. ## Direct messages Open **Amplify Console** from the Agents surface in Slack and send a message. The agent shows that it's working, streams its answer into the conversation, and ends with an **Open in Console** link to the same conversation in the web console. * **Each thread is one conversation.** Replies in the same thread continue it; a new thread starts a new one. * **One message at a time.** If you send another message in the thread while the agent is still answering, it asks you to send it again once it has answered. * **Long answers continue in a second message** in the same thread. * **You can stop a reply.** Use Slack's stop control while the agent is working. The reply ends with *Stopped.* * **Titles stay in sync.** The agent names the conversation after your first message. Renaming it in Slack renames it in Console. * **Suggested prompts** appear when you open the agent. They are a fixed set built into the app. * **Send questions as text.** The agent can't read files or attachments yet. A message with only a file gets a reply asking for the question as text. ## Channel @-mentions The agent answers @-mentions only in channels an organization admin has chosen. Until an admin chooses some, it ignores mentions everywhere. To choose channels, on **Connections**, click **Channels** on the Slack workspace's card. In the **Slack channels** dialog, select the channels and click **Save**. Only public channels are listed. The Amplify Console bot joins each channel you add. Choosing channels requires an organization admin. When someone in a chosen channel mentions **@Amplify Console**: * The agent replies in a thread under the mention, addressed to the person who asked. * **The reply is visible to everyone in the channel.** The agent says less about sensitive findings there and offers to continue in a direct message for the detail. * The agent answers from the text of the mention. It doesn't read the rest of the channel or the thread, so put what it needs in the message. * **Every follow-up needs a fresh @-mention.** A reply in the thread that doesn't mention the agent doesn't reach it. A follow-up that does continues the same conversation. * **Anyone in your organization can join in.** Another person who mentions the agent in the same thread continues the same conversation. The agent knows which person sent each message and addresses people by name when it matters. * **Each message shows who sent it.** In Console, every message is labeled with its sender's Console name, or their email address if they haven't set a name, and everyone in the conversation sees it. Messages sent from Console appear in the channel with the sender's name. * The same identity rule applies: only people who match a Console member of your organization get an answer. ### Continuing a channel conversation in Console A channel conversation is shared with your organization, because everyone in the channel can already read it. Anyone in your organization whose Slack account matches their Console account can open it from the thread's **Open in Console** link and carry on from there: * **Messages sent from Console appear in the thread.** The agent posts them as *Name* (from Console), followed by its answer, so the people in the channel see the whole conversation. * **The person who started the conversation owns it.** Others can read it, send messages, and stop a reply. Only the owner can rename, archive, or delete it, or change its model. If the owner deletes it, the next mention in the thread starts a new conversation. * **Shared conversations are marked in your chat list** as **Shared · Slack**, with the owner's name. You can leave a shared conversation from its page; mentioning the agent in the thread again brings it back. * **Only the thread's Open in Console link adds you.** That link, or a copy of it someone sends you, adds you to the conversation when your Slack account in that workspace matches your Console account. A plain Console link to the conversation opens nothing. Direct messages stay private: a conversation in a direct message with Amplify Console belongs only to the person who started it, and no one else can open or continue it. ## Posting workflow results to a channel Add a **Post to Slack** output to a workflow to post a summary of every completed run to a channel: the workflow's name and the run's summary, counts by severity, up to five top findings, and an **Open run** button. If the run failed, the message says so. In the workflow editor's **Output** section, add a **Post to Slack** output, pick the **Workspace** and **Channel**, and click **Add output**. Only public channels are listed. See [outputs](/workflows/outputs#post-to-slack) for how outputs are dispatched and how to check delivery. ## What agents can do in Slack Once a workspace is installed, every agent in your organization gets these tools, in chat and in workflow steps. Everything they post appears as **Amplify Console**. | Tool | What it does | | - | - | | `slack_post_message` | Posts a message to a channel or conversation, optionally as a reply in a thread. | | `slack_read_thread` | Reads a thread in a direct-message conversation with Amplify Console. | | `slack_get_permalink` | Returns a permanent link to a message. | | `slack_add_reaction` | Adds an emoji reaction to a message. | Each tool takes the Slack workspace ID and the channel ID, not the channel's name. In a workflow step, put both IDs in the agent's instructions. Agents can post to any public channel without inviting the bot. To post in a private channel, invite **@Amplify Console** to it first. When you're talking to the agent in Slack, it posts somewhere other than your conversation only when you explicitly ask it to. ## What agents can't do * Read channel history or channel threads. `slack_read_thread` reads direct-message threads only. * Edit or delete messages, or remove reactions * Create channels, invite or remove members, or change any workspace or channel setting * Read files or attachments, or fetch links shared in a message * Answer @-mentions in channels an admin hasn't chosen, or in private channels * Answer a channel thread reply that doesn't @-mention it ## What Amplify stores * **Conversations are kept as Console chat transcripts.** Each Slack conversation with the agent is saved as a chat session owned by the person who started it, with every message and the agent's replies. They can reopen it in Console. A channel conversation can also be opened by anyone in your organization who joins it (see [Continuing a channel conversation in Console](#continuing-a-channel-conversation-in-console)); a direct-message conversation only by its owner. * **Other Slack content is processed, not kept.** Message text is used to answer, and Amplify stores only the identifiers that link a Slack thread to its Console conversation (workspace, channel, and thread), plus the Slack and Console identities of the people in a shared conversation and which of them sent each message. * **Answers are generated by AI and can be wrong.** Every reply ends with a note that it was generated by an Amplify Console agent. ## Disconnecting On **Connections**, click **Disconnect** on the Slack workspace's card and confirm. Disconnecting requires an organization admin. Amplify revokes its Slack token, which deactivates the Amplify Console bot, the agent stops responding in that workspace, and open conversations are closed. The transcripts already saved in Console are kept. > [!WARNING] > > Disconnecting doesn't remove the app from Slack. Amplify Console stays in the workspace's app list, inactive, > until a Slack admin removes it under **Manage apps → Amplify Console → Remove**. A Slack admin can also start there. Removing the app in Slack stops the agent too, and the workspace's card disappears from **Connections**. # Using integration tools in an agent Source: https://docs.amplify.security/integrations/using-in-agents How integration tools reach an agent, how to name them in allowed-tools, and how to add a Slack or Jira step to a workflow. ## Nothing to enable Once an app is [connected](/integrations/connecting), its tools are offered to every agent in your organization automatically. An agent that doesn't set [`allowed-tools`](/agents/writing-an-agent#allowed-tools-restricts-it-doesnt-grant) already has them; an agent that does needs to list the ones it should use. That's true in chat, too. Ask an agent to "post a summary of this to #security" and, with Slack installed, it can. ## Naming tools in `allowed-tools` Integration tools follow the pattern `_`, and the name must match exactly: ```yaml theme={null} allowed-tools: - Jira_CreateIssue - Jira_ListIssueTypesByProject - slack_post_message ``` * **No wildcards.** `Jira_*` matches nothing. List each tool. * **Case matters.** `Jira_CreateIssue`, not `jira_createissue`. * **The app prefix is the toolkit's name, not always the app's.** Asana's comment tool is `AsanaApi_…`, Google's are all `GoogleDocs_…`. Slack's tools are lowercase, such as `slack_post_message`. Each app's page has the exact list. > [!NOTE] > > Slack's earlier tools, such as `SlackApi_SendSlackMessage` and `Slack_GetThreadMessages`, are no longer > available. An agent that lists them in `allowed-tools` should list the [Slack tools](/integrations/slack#what-agents-can-do-in-slack) > instead. Listing an integration tool doesn't connect the app. If the app isn't connected when the agent runs, the tool is absent and the agent works without it. ## Prompting The tools carry their own guardrails, baked into the descriptions agents read: create an issue only when asked and never in bulk, read a page before replacing its content. You don't need to repeat those. What your agent's instructions should add is the *where* and *what*: * **Name the destination.** The Jira project key, the Slack channel, the Confluence space, the Notion parent page. Agents can discover some of these — `Jira_ListProjects`, for instance — but an agent told "the SEC project" doesn't have to guess. Slack has no channel lookup tool, so give a Slack step the workspace ID and the channel ID. * **Say what one item looks like.** A title format, which fields to fill, what to link back to. Console's findings have ids and URLs; ask for them in the issue body so the two stay connected. * **Say what to do with nothing.** Post "no issues found", or post nothing? An agent will pick one if you don't. ## Adding a delivery step to a workflow The natural place for integration tools in a [workflow](/workflows/overview) is a final step that takes what earlier steps produced and puts it where your team will see it. Console's built-in [outputs](/workflows/outputs) deliver to the triggering pull request; a step with integration tools can deliver anywhere an app is connected. Such a step [consumes](/agents/writing-an-agent#consumes) findings, and the `mode` you choose decides its shape. ### One message per run > [!TIP] > > For a standard run summary in Slack, you don't need a step: add the > [**Post to Slack** output](/workflows/outputs#post-to-slack) to the workflow. Write a step like the one below > when you want to control what the message says. A summary step consumes with `mode: all`. It runs exactly once, with every finding from earlier in the chain — including none — so it can say "clean" as readily as it can list problems: ```markdown theme={null} --- name: slack-run-summary description: Posts one message to the team's security channel summarizing a workflow run's confirmed findings, or reporting that there were none. allowed-tools: - list_findings - slack_post_message consumes: - kind: amplify:finding mode: all --- You report the outcome of a security workflow run to the team. 1. Review the findings this run produced. Group them by severity. 2. Post exactly one message to the `#security-reports` channel (workspace `T0123ABCD`, channel `C0123456789`). Lead with the count by severity, then one line per finding: severity, title, and a link. 3. If there are no findings, post a single line saying the run found nothing. 4. Never post anywhere else, and never send direct messages. ``` ### One issue per finding A filing step consumes with `mode: each`. It runs once per finding, and if there are none it's recorded as [skipped](/workflows/running#run-statuses) rather than running with nothing to file: ```markdown theme={null} --- name: jira-issue-filer description: Files one Jira issue in the SEC project for each confirmed finding, unless an open issue for the same finding already exists. allowed-tools: - list_findings - Jira_ListIssueTypesByProject - Jira_SearchIssuesWithoutJql - Jira_CreateIssue consumes: - kind: amplify:finding mode: each group-by: [id] --- You track one confirmed security finding as a Jira issue. 1. Search the SEC project for an open issue whose summary contains this finding's id. If one exists, stop — do not file a duplicate. 2. Create a Bug in the SEC project. Summary: `[Amplify] `. Description: the finding's severity, affected file and line, the agent's explanation, and a link back to the finding in Console. 3. Do not assign the issue or change its status. ``` `group-by: [id]` matters here. `amplify:finding` groups by detection and file by default, which is right for patching but would file one issue for several findings. See [`group-by`](/agents/writing-an-agent#group-by). > [!TIP] > > To make what the step did visible on the run page, have it record an artifact. Declare a kind of your own > in `produces:`, add `emit_artifact` to `allowed-tools`, and ask the agent to record each issue's key and > URL: > > ```yaml theme={null} > produces: > - kind: jira-issue > schema: > fields: > key: > type: string > required: true > url: > type: string > ``` > > See [defining a kind inline](/agents/writing-an-agent#defining-a-kind-inline), or > [artifact kinds](/agents/artifact-kinds) for creating one from chat or the CLI. ### Putting them in a chain Add the delivery step **after** the steps that produce findings. A step can only consume a kind an earlier step in the chain produces, and Console checks that when you save the workflow: | Goal | Chain | | - | - | | Scan a pull request and tell the channel | `vulnerability-scanner-standard` → `slack-run-summary` | | Apply your detections and track each hit | `detections-runner` → `jira-issue-filer` | | Both | `detections-runner` → `jira-issue-filer` → `slack-run-summary` | Two delivery steps that don't depend on each other may run at the same time. That's fine for these — they write to different apps — but if ordering matters, have the later one consume something the earlier one produces. ## In chat Everything above applies to chat, minus the contracts. With an app connected you can ask directly: ``` Search Jira for open issues in SEC mentioning "SQL injection" and tell me which ones overlap with the findings from this session. ``` ``` Write up finding #42 as a Confluence page under the Security Reviews space. Include the affected code and the suggested fix. ``` ``` Post a summary of what you found to #security-reports, one message. ``` You can also have this conversation in Slack itself, by messaging the agent there. See [Slack](/integrations/slack#direct-messages). The agent uses the connected app's tools the same way it uses any other tool, and each call appears in the session's tool trail so you can see exactly what it read and wrote. ## Next steps > **[Slack](/integrations/slack)** > > Chatting with the agent, posting, and channel mentions. > **[Atlassian](/integrations/atlassian)** > > Jira issues and Confluence pages. > **[Writing an agent](/agents/writing-an-agent)** > > The AGENT.md format, `consumes`, and `produces`. > **[Tool reference](/agents/tool-reference)** > > Everything else an agent can call. # Chat Source: https://docs.amplify.security/interactive/chat Direct an agent by hand — and promote what works into a workflow. ## What chat is for Chat is the interactive way to use the harness. You give an agent a task, watch it work, and redirect it as it goes. It's the right mode when you don't yet know what you're looking for. The agent doesn't answer from an index — it investigates: reads files, runs commands, traces call paths, and follows the code until it can answer. In a session an agent can: * **Explore your codebase** — read, search, and trace how data flows through the application * **Run commands** in its sandbox to test its own hypotheses * **Load [skills](/agents/skills)** for specialized procedures * **Delegate to sub-agents**, so a broad question can fan out without losing the thread * **Track its plan** as a running todo list you can watch * **Record [findings](/data/findings)** and write patches for what it confirms Ask open-ended questions — *"are there any exposed endpoints in this service that shouldn't be?"* — or point it at something specific and ask it to dig in. ## Watching it work A session shows you what the agent is doing as it works: * **Tool calls** appear as they run, with a status dot and the command or arguments, so you can see the reasoning path. * **The todo list** shows the plan and what's done, and disappears once everything completes. * **The sub-agent tree** appears when the agent delegates, showing which children are running. * **The Tools panel** on the right lists every tool call in the session; click one to jump to it in the transcript. When an agent reaches a wrong conclusion, the tool trail usually shows exactly where it went sideways. ## Sessions Chats persist to your organization, so work doesn't evaporate when you close the tab. | Action | Notes | | - | - | | The **+** next to **Chats** | Starts a fresh session | | **Rename** | Sessions title themselves from your first message | | **Archive** | Keeps the session read-only; unarchive to continue | | **Delete** | Permanent, with a confirmation | A session survives a page reload mid-turn — reconnecting picks the running turn back up rather than losing it. ## Choosing a model The model picker in the header sets the model for the session, and you can switch **mid-conversation**. Switching carries your context forward: Console summarizes the conversation so far and hands that summary to the new model, marking the switch point in the transcript. If a turn is in flight, you'll be asked to confirm, since switching cancels it. Use a faster model to explore, then switch to a more capable one for the hard part. ## Cancelling a turn Press Escape while a turn is running. The agent stops and the transcript notes the interruption, so you can redirect without starting over. Anything already recorded — findings, patches — stays. ## Starting from a finding The fastest way into a productive session is from a [finding](/data/findings). **Start a chat** on any finding opens a session with the affected code, the agent's reasoning, and any generated patch already loaded, and you type your question in the same step. ## Promote it to a workflow Chat is exploratory by design. Once you've asked the same question a third time, it belongs in a [workflow](/workflows/overview): | In chat | As a workflow | | - | - | | You pick the repository each time | The trigger names the repositories | | You type the task | The workflow's description and agent chain encode it | | You read the answer | [Outputs](/workflows/outputs) deliver it where your team works | | Runs when you remember | Runs whenever its trigger fires | The translation is usually direct: the prompt you refined becomes the workflow description, and the agents you found useful become the chain. ## Next steps > **[The CLI](/interactive/cli)** > > Same agents, against your local working directory. > **[Build a workflow](/workflows/create-a-workflow)** > > Automate what worked in chat. # The CLI Source: https://docs.amplify.security/interactive/cli Run the same agents in your terminal, against the code you have checked out right now. ## Why use the CLI The CLI runs the same agents as the web console, with one important difference: it works on **the directory you started it in**, on your machine. That makes it the right tool for code you're actively editing. An agent can look at uncommitted changes, work-in-progress branches, and files that exist nowhere but your laptop — none of which a cloud sandbox can reach. See [Installation](/install-console) to get set up. ## Web console vs. CLI The agents' capabilities are the same. What differs is where they run and what they can reach. | | Web console | CLI | | - | - | - | | Runs in | An isolated cloud sandbox | Your own machine | | Code it analyzes | Clones connected projects on demand | The directory you started it in | | Uncommitted changes | Not visible | Visible | | Chat history | Saved to your organization; resume, rename, archive | Not persisted between sessions | | Choosing a model | Model picker | `/model` | | Slash commands | Not available | `/help`, `/model`, `/skills`, `/agents`, `/context`, `/clear`, `/logout`, `/quit` | | One-shot prompts | Not available | `console --prompt "..."` | | Authoring skills | Not available | Files on disk, or ask the CLI to create one and save it to your organization | | Starting from a finding | Yes | No | ## Starting a session ```bash theme={null} cd ~/src/hello-world console ``` Ask it something: * *Find and resolve any vectors for XSRF/XSS attacks within this project.* * *Are there any exposed service endpoints in this project that shouldn't be?* The footer shows the organization you're connected to and the active model. Signing in happens once, on first launch — see [Installation](/install-console). ## One-shot prompts Run a single prompt and exit — useful in scripts, git hooks, and CI: ```bash theme={null} console --prompt "Scan this project for vulnerabilities" ``` It prints the agent's final answer and exits. Also `--version`. ## Slash commands | Command | Aliases | What it does | | - | - | - | | `/help` | `/?` | Lists all commands | | `/model` | | Opens the model picker | | `/skills` | | Lists available skills | | `/agents` | | Browse, run, edit, and create agents | | `/context ` | | Switches organization | | `/clear` | | Clears the conversation | | `/logout` | | Signs out and exits (the next launch signs in again) | | `/quit` | `/q`, `/exit` | Exits | Type `/` to get an autocomplete dropdown rather than memorizing them. ### The model picker `/model` opens a tabbed picker: * **Popular** — a curated shortlist. Works even if the model catalog is unreachable. * **Browse** — grouped by provider; drill into one to see its models. * **Search** — substring match across the full catalog, with pricing and context length per model. Switching models mid-session carries your context forward via a summary, the same as the web console, and the transcript notes the switch. ## Authoring skills and agents The CLI is where [skills](/agents/skills) are authored. It loads both skills and agents from the filesystem: ``` ~/.amplify/skills//SKILL.md # available in every session ~/.amplify/agents//AGENT.md ./skills//SKILL.md # project-local ./agents//AGENT.md ``` Override with `AMPLIFY_SKILLS_DIR` and `AMPLIFY_AGENTS_DIR`. Both load at startup, so restart after adding one. The loop is quick: write the file, restart, then give the agent a task that should trigger it — the agent activates a skill itself when its description matches. Files on disk are loaded only by your CLI sessions. To make a skill available to cloud runs — workflow steps, and agents that chat dispatches to run against a repository — ask the CLI, while signed in, to create it and save it to your organization; the built-in `skill-creator` skill handles the flow, bundling any script you point it at. See [organization skills](/agents/skills#organization-skills). ## Signing in and settings The CLI always works against your organization: detections, findings and artifacts write through to it, so work done locally shows up for your team. Your sign-in (the browser sign-in's tokens, or an API key) lives in `~/.amplify/credentials.json` and your settings in `~/.amplify/config.json`. * **`console login`** — signs in again. * **`console logout`** — forgets the stored sign-in. * **`console setup`** — repeats the first-launch setup. * **`console config`** — prints the settings in effect. If a sign-in is rejected, the CLI exits with the reason; run `console login` to sign in again. ## Cancelling and exiting Ctrl+C cancels a running turn and leaves the session open so you can redirect. Pressing it again when nothing is running exits. ## What the CLI doesn't do * **No persistent chat history.** Sessions aren't saved; `/clear` is final and there's no resuming a past conversation. Findings and detections do persist. * **No input history recall.** Arrow keys don't walk previous messages. * **No workflows.** Workflows are a cloud feature — the CLI runs agents interactively, one session at a time. * **No organization skills.** The CLI can list the skills saved to your organization with `list_skills`, but it doesn't load or activate them — they run in cloud runs. The CLI activates only the skill files on disk. ## Next steps > **[Write a skill](/agents/skills)** > > The CLI is where skills are authored. > **[Install the CLI](/install-console)** > > Setup and signing in. # Introduction Source: https://docs.amplify.security/introduction Amplify Console is an AI harness for security — you define the agents, give them context, and automate them as workflows. ## What is Console? Console is Amplify Security's AI harness for security work. It supplies the machinery — LLM orchestration, tool execution, isolated sandboxes, sub-agent delegation — and you supply the domain logic: the agents that reason, the skills they follow, and the detections they enforce. Teams get the most out of Console by writing their own agents and detections — encoding the security questions that matter for their codebase and their stack, then pointing those agents at them. > [!NOTE] > > Access to Console is set up for each organization. Contact > [support@amplify.security](mailto:support@amplify.security) to get started. ## Three ideas Everything in Console fits into one of three layers, and they build on each other in this order. > **[Agents & detections](/agents/overview)** > > The agents, skills, and detections that do the work. All of them are yours to write. > **[Data & connections](/data/overview)** > > Repositories and vendor connections, so agents reason about your actual environment. > **[Workflows](/workflows/overview)** > > Chain agents into automation that runs on every pull request and produces real artifacts. ### 1. Agents and detections An **agent** is a Markdown file with YAML frontmatter: the frontmatter declares its name, model, and which tools it may use, and the body is its instructions. That's the whole format — you write an agent in a text editor, and it runs. Agents delegate to sub-agents, load **skills** for specialized procedures, and run **detections** — reusable rules that outlive any single conversation. Console ships a library of agents and skills to start from; detections are yours to build up as you go. Anything you write sits alongside the built-ins as an equal. ### 2. Data and connections An agent with nothing to look at is just a chatbot. Console draws on two sources: * **Projects** — the repositories it clones and reads. * **Connections** — your source control provider, plus the security and IT vendors you already run, added from the [connector catalog](/data/connections#vendor-connectors). * **Integrations** — the apps your team works in, like Slack, Jira, and Notion, which agents can [read and write](/integrations/overview) once an admin connects them. You put that to work two ways: interactively in **chat**, or declaratively in a **workflow**. ### 3. Workflows Workflows are where it comes together. A workflow chains agents into an ordered sequence, fires on the **triggers** you configure, and routes whatever it produces to the **outputs** you attach. Run one on demand, or let events in your connected systems start it for you. ## Two interfaces The same agents run in both places. What differs is where they run and what code they can reach. | | Web console | CLI | | - | - | - | | Runs in | An isolated cloud sandbox | Your own machine | | Code it analyzes | Clones your connected projects on demand | The directory you started it in | | Best for | Team work, automation, anything shared | Code you're editing right now, including uncommitted changes | See [Chat](/interactive/chat) and [The CLI](/interactive/cli) for the differences in detail. ## Get started > **[Quickstart](/quickstart)** > > Connect a repository, ask an agent a question, and build your first workflow. > **[Install the CLI](/install-console)** > > Run Console in your terminal on Linux or macOS. # Quickstart Source: https://docs.amplify.security/quickstart Connect a repository, ask an agent a question, and turn the answer into automation. This walks through all three layers of Console in one pass: connect your **data**, use an **agent** interactively, then automate it as a **workflow**. Budget about twenty minutes. ## 1. Connect a repository Sign in to the web console and open **Connections**. Click **Add connection**, choose **GitHub**, and install the Console GitHub App for your organization, granting access to at least one repository you're comfortable experimenting on. The repositories you grant appear under **Projects**, and will be the code agents can read. > [!TIP] > > Pick a real repository rather than an empty one. Agents reason about actual code, so a repository > with real application logic gives you a far better sense of what Console does. ## 2. Ask an agent something Open **Console** in the sidebar and start a new chat. Ask a question about the repository you just connected: > Look at this repository and tell me where user input reaches a database query without parameterization. Watch what happens. The agent clones the repository, reads files, searches, and traces call paths — and you see each tool call as it runs. It decides what to look at next based on what it just found. Try following up. *Is that actually reachable from an HTTP handler?* The agent goes back to the code to answer. If it confirms something, it records a [finding](/data/findings) — durable, with its reasoning attached. ## 3. Write an agent The built-in library covers a lot, but Console is most useful when the agents are yours. Open **Agents** and create one: ```markdown theme={null} --- name: secrets-auditor description: Finds credentials, API keys, and tokens committed to the repository, and reports each one as a finding with the file and line. model: anthropic/claude-sonnet-4-6 allowed-tools: - shell - ripgrep_search - report_finding --- You audit a repository for committed secrets. 1. Search for common credential patterns — API keys, private keys, connection strings, bearer tokens. 2. For each candidate, read the surrounding code to judge whether it's a real credential or a placeholder, test fixture, or example. 3. Report only real credentials with `report_finding`, citing file and line. Do not report obvious placeholders (`xxx`, `changeme`, `example.com`), values clearly loaded from the environment, or anything under a fixtures directory. ``` Save it. That's a working agent — YAML frontmatter declaring its name, model, and tools, plus instructions as the body. See [writing an agent](/agents/writing-an-agent) for every field. ## 4. Automate it Open **Workflows** and click **New workflow**. | Field | What to enter | | - | - | | **Name** | `Secrets check` | | **Description** | `Audit pull requests for committed credentials and comment on anything found.` | | **Triggers** | Add **On pull requests**, and select your repository | | **Agents** | Add `secrets-auditor` | | **Output** | Add **Comment on triggering pull request** | Click **Save**. The description is just a summary for your own reference — the agent you wrote in step 3 already carries its own instructions, and those are what actually run. See [create a workflow](/workflows/create-a-workflow#description). ## 5. Run it Click **Run workflow**, select your repository, and leave the git ref empty to use the default branch. Console provisions a sandbox, clones the repository, and runs your agent. Click **View runs** to watch the chain: each step shows status and duration as it completes, and the run page lists findings and output deliveries when it's done. Your pull request trigger is live too — open a pull request in that repository and the workflow fires on its own, against the pull request's head. > [!NOTE] > > The **Comment on triggering pull request** output only acts on pull-request runs, so it's skipped on the > manual run you just did. Open a pull request to see it deliver. ## What you just built * **Data** — a connected repository agents can read * **An agent** — your own, defined in YAML frontmatter and Markdown * **Workflow** — that agent running automatically on every pull request, reporting to your team Each layer is replaceable independently. Swap the agent, add a step, change where results go — the rest keeps working. ## Where to go next > **[Agents & detections](/agents/overview)** > > Skills, detections, and the full tool surface. > **[Triage an existing backlog](/data/what-agents-can-read)** > > Connect a scanner and find what's actually reachable. > **[Gate merges on review](/workflows/outputs#gate-merging-on-security-review)** > > Block merging until security review passes. > **[Install the CLI](/install-console)** > > Run the same agents on local, uncommitted code. # Console pages Source: https://docs.amplify.security/reference/console-pages Where each part of Amplify Console lives and what you do there — every sidebar item, plus the controls that are not pages. ## The sidebar Every page in the web console is reached from the sidebar on the left. The main section lists the pages below, top to bottom; a second section at the bottom holds **Install CLI**, **Theme**, **Profile**, and **Sign Out**. | Sidebar item | What the page is for | Main actions | Docs | | - | - | - | - | | **Console** | Chat with an agent about your code. Your sessions are listed on the left; the conversation is in the middle. | The **+** next to **Chats** starts a session; type a task and send it; pick a model in the header; **Rename**, **Archive**, **Unarchive**, or **Delete** a session from its menu; Escape cancels a running turn | [Chat](/interactive/chat) | | **Projects** | The repositories Console can clone and read — one row per repository granted through a source-control connection. | **Show filters** (by **Name** or **Repo URL**) | [Projects](/data/projects) | | **Detections** | The stored rules — OpenGrep rules and policies — that agents run against code. | Open a detection to read it; **Edit** and **Save** its name, description, type, and body. **Create new detection** is not yet available here (the button says *Coming soon*) — ask an agent to write one instead | [Detections](/agents/detections) | | **Findings** | Every vulnerability an agent has confirmed in your organization, with its reasoning and any generated patch. | **Show filters** (by **Source**, **Project**, **Severity**, **Location**, **Description**); **Save view** and **Views** on the filter bar; open a finding to accept its fix as a pull request or **Start a chat** | [Findings](/data/findings) | | **Agents** | The agent definitions your organization has written, alongside the built-in library. | **New agent**; edit an agent in the Markdown editor with its model picker; **Duplicate** or delete an agent; create, rename, and delete folders and move agents between them; **Share** copies the agent's link | [Writing an agent](/agents/writing-an-agent) | | **Workflows** | The automations that chain agents, fire on triggers, and deliver results. | **New workflow**; open a workflow to **Edit**, **Delete**, **Run workflow**, or **View runs**; the **Runs in the last:** selector sets how far back each row's run summary looks | [Create a workflow](/workflows/create-a-workflow) | | **Runs** | Every workflow run in your organization, newest first. | **Show filters** (by **Status** or **Workflow**); open a run to see its step chain, findings, and output deliveries, and to **Cancel** it | [Running a workflow](/workflows/running) | | **Connections** | Your source-control provider, vendor connectors, and the apps agents can act in. | **Add connection** — install the GitHub App, connect GitLab, pick a vendor connector, or connect an app from **Agent Tools** (organization admins only) | [Connections](/data/connections) | | **Organization** | Organization settings: members, API keys, billing, and usage. | Invite and remove members on **Members**; manage credits, payment method, and auto-recharge on **Billing and Credits**; read the **Usage & Invoices** dashboards | [Organization](/console/organization) | | **Profile** | Your own account — reached from the bottom section of the sidebar, not from a user menu. | Update your account details; create and revoke personal **API keys** for the CLI | [Profile](/console/profile) | ## Controls that are not pages | Control | Where it is | What it does | Docs | | - | - | - | - | | **Model picker** | The **Console** page header, once a chat session is open | Sets the model for the session; switching mid-conversation carries the context forward as a summary | [Choosing a model](/interactive/chat#choosing-a-model) | | **Save view** and **Views** | The filter bar on **Findings** (open it with **Show filters**) | **Save view** names the current filters; **Views** lists, applies, renames, and deletes your saved views. Findings is the only page with saved views today | [Saved views](/data/findings#saved-views) | | **Show filters** | The header of **Projects**, **Findings**, and **Runs** | Opens the filter bar for that list | — | | **Workspaces** and **Artifacts** | The right-hand panel on the **Console** page, shown once a session has either | The repositories the agent has attached to the session, and the artifacts it has produced — click one to open it | [Artifacts](/workflows/artifacts) | | **Theme** | The bottom section of the sidebar | A menu of **Light**, **Dark**, **System**, **Light Fog**, **Sandstone**, **Midnight**, and **Terminal**; remembered by your browser | [Appearance](/console/profile#appearance) | | **Install CLI** | The bottom section of the sidebar, and the **Console** page header | Opens the CLI installation guide in a new tab | [Installation](/install-console) | | **Sign Out** | The bottom section of the sidebar | Signs you out and returns to the sign-in page | — | # The agent chain Source: https://docs.amplify.security/workflows/agent-chain How workflow steps depend on each other, pass results forward, and how to order them. ## How the chain runs The agents you add to a workflow form a chain, and what each one **[produces and consumes](/agents/writing-an-agent#contracts-what-a-step-produces-and-consumes)** decides how it actually runs: 1. A step becomes eligible to run once every step it depends on has **settled** — either finished normally or been legitimately [skipped](/workflows/running#run-statuses). A step with nothing it depends on is eligible immediately. 2. **Steps with no dependency between them may run at the same time.** The order you drag them into sets which *earlier* steps a later one is allowed to draw on — a step can only consume a kind an earlier step in the list produces — but it doesn't by itself force one step to wait for another that it doesn't actually need. 3. **Two steps that both edit the repository never run at the same time**, whether or not they depend on each other — they'd be racing on the same checkout. This is `mutates-worktree` on the agent, not something you configure per workflow. 4. Each step is told what triggered the run (for a pull-request run: the PR number, head and base commits, the diff) and reads the actual results earlier steps recorded of the kinds it consumes — not a text summary of what an earlier step said it did. 5. **If a step fails, nothing that depends on it runs, and the run ends in error.** Workflow steps do not retry by default. > [!NOTE] > > A step whose input turns out to be empty runs **zero times** and is recorded as **skipped** — a distinct > outcome from *failed* and from *ran and found nothing*. See [run statuses](/workflows/running#run-statuses). ## Passing results between steps You don't wire inputs and outputs together by hand. What flows from one step to the next is exactly what the consuming agent's `consumes` names — the actual results (findings, patches, or a kind of your own) that an earlier step's `produces` recorded, not a prose account of what happened. What this does **not** do is let you transform or filter results between steps. If you need different handling, that belongs inside an agent, not between them. ## Choosing agents Any agent can be a step — Console's or your own. Your organization's agents appear in the picker alongside the built-in ones, and Console treats them identically. * For what ships with Console and what each is for, see [the agent library](/agents/library). * To write your own, see [writing an agent](/agents/writing-an-agent). A few agents in the library are designed to be spawned *by* other agents rather than used as steps directly — [noted here](/agents/library#agents-spawned-by-other-agents). ## Ordering The rules of thumb: * **Broad before narrow.** Discover first, then act on what was discovered. * **Declare what a step actually needs.** Two steps that don't consume each other's output can run concurrently; a step only waits on the steps its `consumes` names. * **Expensive before dependent.** If a step fails, nothing depending on it runs — so put the step most likely to fail where it costs least. * **One step is a valid chain.** A single scanner plus an [output](/workflows/outputs) is a complete, useful workflow. Don't add steps for symmetry. ## Common chains | Goal | Chain | | - | - | | Fastest signal | `vulnerability-scanner-basic` | | Balanced scan | `vulnerability-scanner-standard` | | Deepest audit | `vulnerability-scanner-comprehensive` | | Turn findings into permanent rules | `vulnerability-scanner-standard` → `detection-author` | | Apply everything you've already vetted | `detections-runner` | | Apply everything you've already vetted, and patch it | `detections-runner` → `patch-generator` | ## Editing a chain In the workflow editor the chain is drawn left to right as pills with arrows: * **Add** with the **+** button, which searches the agent library. * **Reorder** by dragging a pill. * **Remove** via the grip icon on a pill. Between 1 and 20 steps. ## Next steps > **[The agent library](/agents/library)** > > What's available to chain. > **[Configure outputs](/workflows/outputs)** > > Deliver what the chain produces. # What a run produces Source: https://docs.amplify.security/workflows/artifacts Findings, patches, and the artifact model behind them. ## Two kinds of result A workflow run produces results in two places, and it's worth keeping them straight: | Result | Where it lives | Durable? | | - | - | - | | **Findings and patches** | Your organization, attached to the project and the run | Yes — they outlive the run | | **Output deliveries** | The pull request, as comments or a check | Yes, but they're a *copy* delivered elsewhere | The run itself is a record — status, per-step timings, which agents ran. The *results* are what the agents recorded while running. ## Findings The primary output. When an agent confirms a vulnerability it records a [finding](/data/findings) with the affected file and symbol, its reasoning, and provenance back to the run and the detection that produced it. Findings are deduplicated per project, so a recurring issue updates in place rather than accumulating duplicates across runs. ## Patches When patch generation is part of the chain, an agent that fixes a finding records the resulting diff against that finding. Patches are verified before they're recorded, not proposed speculatively: the agent edits the file, re-runs the detection to confirm the match is gone — for policy detections, an independent read-only verifier judges the result — and only then captures the diff. That's why a finding's suggested fix can [open a pull request](/data/findings#accepting-a-fix) directly. ## The artifact model Underneath findings and patches, Console stores results as **artifacts**. An artifact has: * A **kind** — what type of thing it is * A **summary** — a short description * **Files** — one or more, each with a path, a content type, and its contents * **Subjects** — optionally, the findings the artifact addresses This model is deliberately open-ended: an artifact is *a set of files an agent produced, with provenance and optional linkage to the findings it relates to*. Nothing about it is specific to security. A risk assessment, a compliance report, a threat model, a generated test suite are all describable in the same shape. Console ships several kinds of its own — findings and patches among them — and your organization can define its own. See [artifact kinds](/agents/artifact-kinds) for how to create one and describe its shape. > [!NOTE] > > A kind can change over time: each change becomes a new version, and every artifact is stamped with the > version it was recorded under, so changing a kind never reinterprets artifacts you've already recorded. > Changes that could break the agents relying on a kind need your confirmation first. See > [changing a kind](/agents/artifact-kinds#changing-a-kind). ## Getting results out Recording a result and delivering it are different steps. A run's results sit in Console until an [output](/workflows/outputs) pushes them somewhere: | Output | Delivers | | - | - | | Comment on triggering pull request | Findings as review comments, with links back to the full finding | | Gate merging on security review | A required check reflecting the run's verdict | Both act on the pull request that triggered the run, so they're skipped on manual runs. Those two are the only Console-managed destinations. To deliver anywhere else, add a **step** rather than an output: an agent at the end of the chain that consumes the run's findings and posts them through a connected app's [integration tools](/integrations/overview) — a Slack summary, one Jira issue per finding, a Confluence write-up. See [adding a delivery step](/integrations/using-in-agents#adding-a-delivery-step-to-a-workflow). > [!NOTE] > > There's no delivery to arbitrary webhooks and no general outbound-write tool — `web_fetch` performs reads > only. Delivery goes through the outputs above or through an app your organization has connected. ## Inspecting a run's results Open the run from **Runs** or from **View runs** on the workflow. You'll see the step chain with per-step status and duration, the findings the run produced, and each output with its delivery status. See [running a workflow](/workflows/running#follow-a-run). ## Next steps > **[Findings](/data/findings)** > > Review results and accept fixes. > **[Outputs](/workflows/outputs)** > > Deliver results to pull requests. # Create a workflow Source: https://docs.amplify.security/workflows/create-a-workflow Build a workflow section by section, and what each part of the editor is for. ## Before you start You need at least one **connected repository**. Workflows run against the projects Console has access to through your source control provider — if the Projects page is empty, connect a repository first. You do not need to create any agents. Console ships a library of agents that covers scanning, detection authoring, patching, and review. See [the agent library](/agents/library) for the catalog. ## Create it From **Workflows**, click **New workflow**. You land in the editor with an empty draft and four sections to fill in, top to bottom. Nothing is saved until you click **Save**. > [!TIP] > > Click **Save** at any point to see what's still missing — incomplete fields highlight in red with a > message explaining what's required. Nothing is submitted until the draft is valid. ## Name The field at the top of the editor. It identifies the workflow in lists, run history, and — if you add a [merge gate](/workflows/outputs#gate-merging-on-security-review) — in the GitHub check that appears on pull requests. * Required, and must be unique within your organization. * Choose something durable. Once a workflow has a **merge gate** output, its name is locked, because the check name customers pin in branch protection is derived from it. Renaming would silently stop the check from reporting and leave pull requests waiting forever. To rename, remove the merge gate output, save, then rename. ## Description A short statement of what the whole workflow is for — shown in the workflow list and in run history so your team can tell workflows apart at a glance. It doesn't shape what any step does. Each agent in the chain already carries its own instructions, and runs the same way whether it's the only step or one of many — write the description for the humans who'll read the workflow list, not as an instruction to the chain: **Good:** > Scans pull requests for injection and access-control vulnerabilities, patches anything confirmed > exploitable, and posts the result as a review comment. **Too vague to tell apart from your other workflows:** > Security workflow. > [!NOTE] > > If you want a step to behave differently, change that agent or its own `description` — see > [writing an agent](/agents/writing-an-agent). The workflow description is documentation, not an > instruction. ## Triggers *Optional.* When the workflow should fire on its own. You can save a workflow with no triggers at all and still run it by hand whenever you like — every workflow supports manual runs. Add a trigger only when you want it to fire automatically. Click **Add trigger** and pick a type: * **On pull requests** — fires when a pull request in the repositories you choose is opened, reopened, or updated with new commits. Optionally restrict it to specific base branches. * **Scheduled** — fires at fixed times from a cron expression and a timezone, against the repositories you choose. A workflow scoped to the whole organization has no repositories to choose; its scheduled runs cover the organization. A trigger must name at least one repository, or the workflow won't save — the one exception is a scheduled trigger on an organization-scoped workflow, which has none to name. **On pull requests** needs a repository-scoped workflow; an organization-scoped workflow can only use **Scheduled**. The editor marks the pull-request option *Repositories only* for an organization-scoped workflow — an organization run clones no repository, so there is no pull request to fire on. See [Triggers](/workflows/triggers) for the full details. ## Agents *Required.* The ordered chain of agents that does the actual work. Click the **+** button to search the agent library and add an agent. Each one becomes a step, drawn as a pill with an arrow to the next — the chain reads left to right. * **At least one** agent, **at most twenty**. * **Reorder** by dragging a pill. * **Remove** a step by clicking the grip icon on its pill and choosing *Remove from chain*. The order you drag steps into sets which *earlier* steps a later one can draw on — see [the agent chain](/workflows/agent-chain) for how that actually determines when each step runs. If any step fails, nothing depending on it runs and the run ends in error. See [the agent library](/agents/library) for which agents to use. ## Output *Optional.* Where the results go when a run completes. Click **Add output** and choose a destination: * **Comment on triggering pull request** — posts review comments on the pull or merge request that fired the run. * **Gate merging on security review** — adds a required check that blocks merging until the agent's verdict passes or a human approves the pull request. You can add one of each, but not two of the same type — an already-added destination shows as *Already added* in the picker. Both destinations describe a *triggering pull request*, so they only do something on runs that a pull request started. On a manual run they're skipped. See [Outputs](/workflows/outputs). ## Save Click **Save**. Console creates the workflow, then applies your triggers and outputs. If a trigger or output can't be applied, the workflow is still created — you'll land on its detail page with a banner explaining what didn't stick, and you can finish wiring it up there. Clicking **Cancel** with unsaved changes asks you to confirm before discarding. ## Edit or delete later Open a workflow from the **Workflows** list to see it in read-only form, then click **Edit**. The same four sections become editable, with **Save**, **Cancel**, and **Delete** in the header. Editing a workflow does not affect runs already in flight — each run uses the definition as it was when it fired. ## Requirements at a glance | Field | Rule | | - | - | | Name | Required, unique, non-blank. Locked while a merge gate output exists. | | Description | Required, non-blank. | | Agents | At least 1, at most 20. | | Triggers | Optional. **On pull requests** or **Scheduled**. Any trigger you add must name at least one repository (except a scheduled trigger on an organization-scoped workflow). An organization-scoped workflow can only use **Scheduled**. | | Outputs | Optional. One per destination type. | ## Next steps > **[Run your workflow](/workflows/running)** > > Fire it manually and watch the run. > **[Pick the right agents](/agents/library)** > > The agent catalog and common chains. # Outputs Source: https://docs.amplify.security/workflows/outputs Post workflow results back to a pull request or to a Slack channel, and block merging until security review passes. ## What an output does An output is a destination for a run's results. When a run completes, Console dispatches every output you've configured. Outputs are optional — without one, a run still records its findings in Console; it just doesn't push them anywhere. Add them from the **Output** section of the workflow editor. You can add one of each destination type, but not two of the same kind. The pull request comment and the merge gate act on *the pull request that triggered the run*, so they only do something for runs a pull request started. On a manual run they're recorded as skipped. **Post to Slack** posts to a channel you choose, so it runs for every completed run, including manual and scheduled ones. ## Comment on triggering pull request Posts the run's findings as review comments on the pull or merge request that fired the workflow, with links back to the full finding in Console. This works for both GitHub pull requests and GitLab merge requests. Use it when you want the agent's results to show up where reviewers already are, without changing whether the pull request can merge. ## Gate merging on security review Adds a **required check** to the pull request that blocks merging until the security review passes or a human signs off. This is the output to use when you want the workflow to have teeth. ### The check The check is named: ``` Console / ``` Its details link points at the run in Console, so anyone looking at a blocked pull request can click through to what the agent actually found. > [!WARNING] > > Because the check name is derived from the workflow name, Console **locks the workflow name** while a > merge gate output exists. If you rename it, the check reports under a new name, and any branch > protection rule pinned to the old name waits forever for a check that will never arrive. To rename: > remove the merge gate output, save, rename, then add the gate back. ### How the gate decides | Outcome | Check result | What it means | | - | - | - | | Agent's verdict is **pass** | Passing | Security review passed. Merging is unblocked. | | Agent's verdict is **fail** | Failing | Review failed. Push a commit addressing the findings. | | Agent asks for **human review** | Action required | The agent isn't confident enough to decide. A human approval releases it. | | **No verdict recorded** | Action required | The gate fails safe. A human approval releases it. | | The run **errored** | Failing | Merging stays blocked — a broken run is never treated as a pass. | The gate fails closed by design. A workflow whose agents don't report a gate verdict will block every pull request pending human review, rather than waving them through. > [!NOTE] > > For the gate to pass on its own, your chain needs an agent that records a gate verdict. If none does, > the gate still works — it just always routes to human approval instead of ever passing automatically. ### Human approval Approving the pull request releases a gate that's waiting on human review, and the check flips to passing. This also works retroactively: if someone approved the pull request before the gate finished posting, Console resolves the gate as approved rather than leaving an already-approved pull request stuck. By default, later requesting changes on a pull request whose gate was already approved does not re-block it. ### Requiring the check in GitHub Adding the output makes the check *report*. It doesn't make it *required* — that's a GitHub branch protection setting you control: 1. In GitHub, go to **Settings → Branches** (or **Rules → Rulesets**) for the repository. 2. Edit the rule protecting your target branch, e.g. `main`. 3. Enable **Require status checks to pass before merging**. 4. Search for `Console / ` and add it. > [!TIP] > > Let the workflow run on one pull request first. GitHub only offers a check in that search box once it > has seen it report at least once. Until you complete this step the check appears on pull requests as information only, and merging isn't actually blocked. ### GitLab Merge blocking isn't supported for GitLab merge requests yet. A merge gate on a GitLab run is recorded as skipped. Use **Comment on triggering pull request** for GitLab in the meantime. ## Post to Slack Posts one message summarizing the run to a Slack channel: the workflow's name and the run's summary, counts by severity, up to five top findings with links, and an **Open run** button. If the run failed, the message says so. It needs the [Slack app](/integrations/slack) installed for your organization. When you add it, pick the **Workspace** and the **Channel**, then click **Add output**. Only public channels are listed. Console checks that the workspace is still connected to your organization when you save. The message is posted as **Amplify Console**. The bot posts to any public channel without being invited. If delivery fails, for example because the channel was archived, the output shows **Failed** on the run's detail page. ## Delivering anywhere else The other outputs go to the triggering pull request or to Slack. To put results in Jira, Linear, Confluence, Notion, Asana, or Google Docs, or to write your own Slack message, add a final **step** to the chain instead: an agent that consumes the run's findings and posts them through that app's [integration tools](/integrations/overview). Unlike the pull request outputs, such a step runs on manual runs too. Two ready-made shapes — one summary message per run, and one issue per finding — are in [adding a delivery step](/integrations/using-in-agents#adding-a-delivery-step-to-a-workflow). ## Checking delivery Every run's detail page lists the outputs it dispatched and whether each was delivered: | Status | Meaning | | - | - | | **Sent** | Delivered successfully. | | **Failed** | Delivery failed — for example, Console lacks permission on the repository. | | **Skipped** | Not applicable to this run, such as a pull request comment on a manually-fired run. | | **Pending** | Delivery hasn't completed yet. | If an output shows **Failed**, check that the Console GitHub App is still installed for the repository and has permission to write checks and pull request comments. ## Next steps > **[Run and monitor](/workflows/running)** > > Fire a run and confirm your outputs delivered. > **[Configure triggers](/workflows/triggers)** > > Outputs need a pull-request run to act on. # Workflows Source: https://docs.amplify.security/workflows/overview Chain agents into repeatable automation that fires on a trigger and routes its results wherever you need them. ## What is a workflow? A workflow is a saved sequence of agents that Console runs against your repositories. Where chat is a conversation you drive turn by turn, a workflow is the same agents running unattended: you define the sequence once, and Console executes it whenever a trigger fires or you run it by hand. Workflows are where the other two layers pay off. [Agents, skills, and detections](/agents/overview) do the work; [your repositories and connections](/data/overview) give them something real to reason about. A workflow puts those to work on a schedule, with no one in the loop, and delivers the result to where your team already works. A typical workflow scans a repository for vulnerabilities, hands what it found to a second agent that authors reusable detections or generates patches, and routes the result to whichever outputs you have attached. ## Anatomy of a workflow Every workflow is made of four parts. Only the first two are required. | Part | Required | What it does | | - | - | - | | **Name** | Yes | Identifies the workflow. Must be unique in your organization. | | **Description** | Yes | A short summary of the workflow's purpose, shown in the workflow list and run history. | | **Agents** | Yes | The ordered chain of agents to run. At least one, at most twenty. | | **Triggers** | No | When the workflow fires automatically. Manual runs are always available without a trigger. | | **Outputs** | No | Where the results go when the run finishes. Attach as many destinations as you need. | > [!NOTE] > > The description documents the workflow for your team — it doesn't shape what any step does. Each agent > already carries its own instructions, which is what actually runs. See > [Create a workflow](/workflows/create-a-workflow#description). ## What happens during a run When a workflow fires, Console does the following for **each** repository you targeted: 1. **Creates a run.** Every run gets its own record, visible under [Runs](/workflows/running). 2. **Snapshots the definition.** The run captures the workflow's name, description, and steps as they are at that moment. Editing the workflow later never changes a run that is already in flight. 3. **Provisions an isolated sandbox** and clones the repository into it. For pull-request runs, it clones the pull request's head — not the default branch. 4. **Runs the chain.** Each step runs once the steps it actually depends on have finished (or been legitimately skipped) — independent steps can run at the same time; see [the agent chain](/workflows/agent-chain) for exactly how steps depend on each other. 5. **Stops on failure.** If a step fails, nothing depending on it runs, and the run ends in error. 6. **Records findings** from the run, and **dispatches your outputs** once the run completes. Targeting three repositories produces three independent runs — one per repository — not one run that loops. Each gets its own sandbox, and one failing does not stop the others. ## Where workflows live * **Workflows** — the list of workflows in your organization, with a run count for the last 7, 30, or 90 days. This is where you create, edit, and manually fire them. * **Runs** — the execution history for every workflow, including per-step status, findings, and whether each output was delivered. ## Next steps > **[Create a workflow](/workflows/create-a-workflow)** > > Walk through the editor section by section. > **[Build the agent chain](/workflows/agent-chain)** > > How steps depend on each other and how to order them. > **[Configure triggers](/workflows/triggers)** > > Decide what starts a run, and when. > **[Configure outputs](/workflows/outputs)** > > Route results to where your team works. > **[Run and monitor](/workflows/running)** > > Fire a workflow and read its run history. # Running a workflow Source: https://docs.amplify.security/workflows/running Fire a workflow manually, then follow the run through to its results. ## Run a workflow manually Open the workflow from the **Workflows** list and click **Run workflow**. In the dialog: 1. **Repositories** — select one or more connected repositories to run against. The button stays disabled until you pick at least one. 2. **Git ref** *(optional)* — a branch, tag, or commit. It's applied to **every** selected repository, so leave it empty unless they share the ref you want. Empty means each repository's own default branch. 3. Click **Run workflow**. Console fires immediately and starts one run per repository. > [!NOTE] > > Firing a workflow manually cancels any earlier **manual** runs of that workflow still pending or > running. It does not touch runs started by a pull request. See > [superseding in-flight runs](/workflows/triggers#superseding-in-flight-runs). ## Run it automatically Add a [pull request trigger](/workflows/triggers#pull-request-triggers) and Console fires the workflow whenever a pull request in the selected repositories is opened, reopened, or updated with new commits. Automatic runs always use the pull request's head commit. ## Follow a run From a workflow, click **View runs**. From anywhere, the **Runs** page lists every run in your organization; filter it by **status** or by **workflow name**. Open a run to see: * **The chain** — each step drawn in order with its agent name, how long it took, and its status icon. Steps light up as they complete, so you can watch progress on a running workflow. A step that fanned out into more than one agent run shows the count (`×3`); hover a **Skipped** step to see why, in the run's own words — for example, no findings had been produced yet, or none matched what that step groups by. * **Findings** — what the run confirmed, linked through to the full finding. * **Outputs** — each configured destination and whether it was delivered. See [checking delivery](/workflows/outputs#checking-delivery). * **Go to workflow** — jump back to the definition that produced this run. A run page refreshes itself while the run is active, so you can leave it open. ## Run statuses | Status | Meaning | | - | - | | **Pending** | Queued. Console is provisioning a sandbox and cloning the repository. | | **Running** | The agent chain is executing. | | **Completed** | Every step finished — or was legitimately skipped — and outputs were dispatched. | | **Error** | A step failed. Nothing depending on it ran. | | **Cancelled** | Cancelled by you, or superseded by a newer run from the same trigger. | > [!NOTE] > > An individual step can also show **Skipped** — its input was empty, or nothing in it matched what the > step [groups by](/agents/writing-an-agent#group-by). A skipped step is not a failure: the run around it > still completes normally. It's a separate, distinct outcome from a step that ran and simply found > nothing to report. ## Cancel a run Open the run and click **Cancel**. Console stops the agent chain and tears down the sandbox. Cancelling doesn't undo anything already done — findings recorded before the cancellation stay, and any output already delivered stays delivered. If a [merge gate](/workflows/outputs#gate-merging-on-security-review) was posted, a cancelled run leaves it blocking rather than passing. ## Reading a failed run A run ending in **Error** has a step with the error icon — that's where something failed. Any step that depended on it never ran at all; an independent step elsewhere in the chain may have already finished before the failure landed, and keeps its own result. Common causes: * **The repository couldn't be cloned.** Usually a permissions problem — confirm the Console GitHub App is still installed for that repository, or that a `Git ref` you pinned actually exists. * **A step exceeded its time budget.** Long chains against large repositories can run out of budget. Splitting a broad scan into a narrower profile (see [scanning agents](/agents/library#scanning)) usually resolves it. * **A step named an agent that no longer exists.** If you deleted an agent your workflow references, edit the workflow and repair the chain. Because Console snapshots the workflow definition when a run fires, fixing the workflow doesn't repair an existing failed run — edit the workflow, then fire it again. ## Run history at a glance The **Workflows** list shows a run count per workflow, and you can switch the window between **7d**, **30d**, and **90d** to see how often each one has been firing. ## Next steps > **[Configure outputs](/workflows/outputs)** > > Push results to pull requests automatically. > **[Tune the agent chain](/workflows/agent-chain)** > > Adjust scan depth and sequencing. # Triggers Source: https://docs.amplify.security/workflows/triggers Fire a workflow on demand, automatically when a pull request opens, or on a schedule. ## What a trigger does A trigger decides **when** a workflow fires and **which repositories** it fires against. Triggers are optional: every workflow can always be run by hand, so add a trigger only when you want Console to fire it without you. Manage triggers in the **Triggers** section of the workflow editor. Click **Add trigger**, pick a type, and choose its repositories. ## Manual runs Every workflow supports manual runs. There's nothing to configure and nothing appears in the Triggers section — it's always available. With a manual run you choose the repositories at the moment you fire it, and you can optionally pin a specific branch, tag, or commit. See [Running a workflow](/workflows/running). ## Pull request triggers Select **On pull requests** to fire the workflow automatically against pull and merge requests. ### When it fires Despite the name, this trigger fires on more than just opening a pull request. It fires when a pull request is: * **Opened** * **Reopened** * **Updated with new commits** An update supersedes the earlier run — Console cancels the in-flight run and starts a fresh one at the new head commit, so a [merge gate](/workflows/outputs#gate-merging-on-security-review) re-evaluates against the code that's actually there now, instead of staying stuck on a verdict for a commit nobody is merging. ### Repositories Choose one or more connected repositories to watch. A trigger with no repositories won't save. Pull-request runs always clone **the pull request's head** — the proposed code, not the base branch. You cannot pin a branch or commit on a pull request trigger, because the head is what's under review. ### Base branch filter By default the workflow fires on pull requests targeting **any** branch. Add one or more base branches to narrow it to pull requests aimed at those branches specifically — a common choice is to gate only what's merging into `main`. Matching is exact. A pull request whose base branch isn't in your list is skipped before Console provisions anything, so filtered-out pull requests cost you nothing. ### Draft pull requests Draft pull requests are always skipped. Work in progress doesn't warrant a run, and the workflow will fire once the pull request is marked ready. ### Requirements Pull request triggers depend on Console receiving events from your source control provider, which means the repository must be connected and the Console GitHub App installed for it. See [Connections](/data/connections#github). The workflow must be scoped to repositories: an organization-scoped workflow clones no repository, so the editor marks **On pull requests** *Repositories only* for it, and it can only use **Scheduled**. ## One run per repository A trigger that names three repositories produces **three runs** when it fires — one per repository, each in its own sandbox. Runs from the same firing are grouped, so you can see them together in the run history, but they succeed or fail independently. ## Superseding in-flight runs When a workflow fires again from the same trigger, Console cancels any of that trigger's runs that are still pending or running before starting the new ones. This keeps a rapidly-updated pull request from stacking up parallel sandboxes for commits that are already stale, and it means the verdict on a pull request always reflects its latest commit. It applies to manual runs too: firing a workflow manually while an earlier manual run is still going replaces it. > [!NOTE] > > Cancellation is scoped to the trigger. A manual run does not cancel a pull-request run of the same > workflow, and vice versa. Scheduled triggers are the exception: a scheduled occurrence never cancels > anything — see [Overlapping runs](#overlapping-runs). ## Scheduled triggers Select **Scheduled** to fire the workflow at fixed times — nightly, every weekday morning, on the first of the month — with nobody in the loop. A scheduled trigger is a cron expression, a timezone, and the repositories to run against. ### Writing the schedule The schedule is a standard five-field cron expression, read left to right as **minute hour day-of-month month day-of-week**: | Field | Values | Also accepts | | - | - | - | | Minute | `0`–`59` | A single number only (see [Limits](#limits)) | | Hour | `0`–`23` | | | Day of month | `1`–`31` | | | Month | `1`–`12` | `JAN`–`DEC` | | Day of week | `0`–`6`, Sunday = `0` | `SUN`–`SAT`; `7` also means Sunday | In every field but the minute you can combine values the usual ways: | Form | Meaning | Example | | - | - | - | | `*` | every value | `0 * * * *` — every hour, on the hour | | `a,b,c` | a list | `0 9 * * 1,3,5` — Monday, Wednesday and Friday at 09:00 | | `a-b` | a range | `0 9 * * 1-5` — weekdays at 09:00 | | `*/n` | every *n*-th value | `0 */6 * * *` — every six hours | | `a-b/n` | every *n*-th value within a range | `0 8-18/2 * * 1-5` — every two hours during the working day, weekdays | Names are case-insensitive, so `mon-fri` and `MON-FRI` are the same. Some more examples: | Schedule | Expression | | - | - | | Every hour, fifteen minutes past | `15 * * * *` | | Every night at 02:30 | `30 2 * * *` | | Weekdays at 09:00 | `0 9 * * 1-5` | | Sundays at 06:00 | `0 6 * * 0` | | The 1st and 15th of the month at 07:00 | `0 7 1,15 * *` | | The first day of each quarter at 08:00 | `0 8 1 1,4,7,10 *` | The editor previews the next few times a schedule will fire as you type, on the schedule's own clock, and hovering the schedule on a saved trigger shows the same preview. > [!TIP] > > The editor's presets fill in the four most common schedules; edit the expression afterwards if one is > close but not quite right. ### Timezone Every schedule runs on the wall clock of the timezone you pick, which defaults to your own. `0 9 * * 1-5` in `America/Denver` fires at 09:00 Denver time year-round and follows its daylight-saving changes; pick `UTC` for a schedule that must not shift. Timezones are the standard IANA names (`Europe/Berlin`, `Asia/Tokyo`, `UTC`). ### Repositories For a workflow scoped to a project, choose one or more connected repositories, exactly as for a pull-request trigger. A trigger with no repositories won't save. Each repository is cloned at its own **default branch**; a scheduled trigger cannot pin a branch or commit. For a workflow scoped to the whole organization, there is nothing to choose: the run covers the organization. ### Overlapping runs Scheduled triggers do not supersede their own runs. If a repository's previous scheduled run is still pending or running when the next occurrence comes due, that occurrence is **skipped** for that repository and nothing is cancelled; the other repositories on the trigger fire as normal. A workflow that takes longer than the gap between occurrences therefore runs back-to-back rather than piling up sandboxes. ### Stopping and attribution Deleting the trigger — or the workflow — ends the schedule. A trigger that is turned off fires nothing, and no missed occurrences are made up when it is turned back on. Runs from a scheduled trigger are attributed to the person who created the trigger, and the run history labels them as scheduled with the time they were due. ### Limits * **At most once per hour.** The minute field must be a single number — `15 * * * *` fires every hour at :15, while `*/15 * * * *` and `0,30 * * * *` are rejected. * **One day field at a time.** Restrict the day of month *or* the day of week, not both. The other must be `*`. * **No extended syntax.** `L`, `W`, `#`, `?`, a sixth (seconds) field and shorthands such as `@daily` are not supported. * **Up to 25 scheduled triggers per organization**, across all workflows. The editor rejects an expression that breaks one of these rules and says which. ## Next steps > **[Configure outputs](/workflows/outputs)** > > Decide what a triggered run posts back. > **[Run and monitor](/workflows/running)** > > Fire a run and follow it through.