[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-aws-scanning-with-aws-security-agent":3,"mdc-2xham6-key":35,"related-org-aws-scanning-with-aws-security-agent":3725,"related-repo-aws-scanning-with-aws-security-agent":3894},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":24,"repoUrl":25,"updatedAt":26,"license":27,"forks":28,"topics":29,"repo":30,"sourceUrl":33,"mdContent":34},"scanning-with-aws-security-agent","run AWS Security Agent workspace scans","Run an AWS Security Agent scan on the workspace — uploads the source to AWS, scans it with the managed Security Agent service, and returns ranked, verified findings with code locations and remediations. Use when the user asks to scan code, find vulnerabilities, run a security scan or review, check security issues, check scan status, show findings, list recent scans, or stop a scan.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"aws","AWS (Amazon)","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Faws.png",[12,16,18,21],{"name":13,"slug":14,"type":15},"Security","security","tag",{"name":17,"slug":8,"type":15},"AWS",{"name":19,"slug":20,"type":15},"Code Analysis","code-analysis",{"name":22,"slug":23,"type":15},"Debugging","debugging",1822,"https:\u002F\u002Fgithub.com\u002Faws\u002Fagent-toolkit-for-aws","2026-07-12T08:44:02.585044",null,157,[],{"repoUrl":25,"stars":24,"forks":28,"topics":31,"description":32},[],"Official, AWS-supported MCP servers, skills, and plugins to help AI agents build on AWS","https:\u002F\u002Fgithub.com\u002Faws\u002Fagent-toolkit-for-aws\u002Ftree\u002FHEAD\u002Fplugins\u002Faws-agents-for-devsecops\u002Fskills\u002Fscanning-with-aws-security-agent","---\nname: scanning-with-aws-security-agent\ndescription: Run an AWS Security Agent scan on the workspace — uploads the source to AWS, scans it with the managed Security Agent service, and returns ranked, verified findings with code locations and remediations. Use when the user asks to scan code, find vulnerabilities, run a security scan or review, check security issues, check scan status, show findings, list recent scans, or stop a scan.\n---\n\n# AWS Security Agent — Code Scans\n\nThis skill handles full repository scans. Setup (agent space, role, bucket) is handled by the **`setup-security-agent`** skill — if `.security-agent\u002Fconfig.json` is missing, the scan workflow auto-runs setup inline first.\n\n---\n\n## Action mapping\n\n| User intent | Workflow |\n|-------------|----------|\n| Direct scan request (\"scan my code\", \"find vulnerabilities\") | Full Scan |\n| Scan status check (\"how's the scan\", \"progress\") | Status workflow |\n| View findings (\"what did it find\", \"show results\") | Findings workflow |\n| List scans (\"recent scans\", \"show my scans\") | Read `.security-agent\u002Fscans.json` |\n| Stop a scan | `aws securityagent stop-code-review-job` |\n\n### Rules for proactive suggestions\n\n- Always ask before running — never auto-trigger scans\n- Single-line suggestions, not multi-paragraph pitches\n- If the user declines, do not bring it up again in the same session\n\n---\n\n## Local state\n\nRead `.security-agent\u002Fconfig.json` for `agent_space_id` and `region`. If `config.json` is missing, tell the user one line — \"First scan in this workspace — running setup first.\" — and run the **`setup-security-agent`** workflow inline (steps from that skill's SKILL.md) before continuing. First-time scans should \"just work.\"\n\nTrack scans in `.security-agent\u002Fscans.json` (keep last 50 entries). The per-workspace CodeReview ID is stored in `config.json → code_reviews[\u003Cabs_path>]` so subsequent scans reuse the same CodeReview.\n\n### Resolving the values you need\n\nThe CLI examples below use placeholders. Resolve them at the start of every scan:\n\n| Placeholder | How to resolve |\n|-------------|----------------|\n| `\u003Cid>` (agent space) | `config.agent_space_id` |\n| `\u003Cregion>` | `config.region` (default `us-east-1`) |\n| `\u003Caccount>` | `aws sts get-caller-identity --query Account --output text` (cache for the rest of the turn) |\n| `\u003Crole-arn>` | `arn:aws:iam::\u003Caccount>:role\u002FSecurityAgentScanRole` |\n| `\u003Cbucket>` | `security-agent-scans-\u003Caccount>-\u003Cregion>` |\n| `\u003Ccr-id>` | `code_review_id` from `config.json → code_reviews[\u003Cabs_path>]` |\n| `\u003Cjob_id>` | `codeReviewJobId` returned by `start-code-review-job` |\n| `\u003CWORKSPACE_ID>` | `printf '%s' \"$(pwd)\" \\| md5sum \\| cut -c1-12` |\n\nThese are derived rather than stored in config so they can never drift out of sync with reality.\n\n---\n\n## Pre-scan checks\n\n1. **Read `config.json`.** If missing → run the `setup-security-agent` workflow inline first, then continue.\n2. **Verify agent space still exists:**\n\n   ```bash\n   aws securityagent batch-get-agent-spaces --agent-space-ids \u003Cid>\n   ```\n\n   If response shows it doesn't exist, clear `agent_space_id` from `config.json` and run `setup-security-agent` again.\n3. **Resolve account, role ARN, and bucket name** from the table above.\n4. **Generate workspace ID:**\n\n   ```bash\n   WORKSPACE_ID=$(printf '%s' \"$(pwd)\" | md5sum | cut -c1-12)\n   ```\n\n---\n\n## Workflow: Full Scan (~45 min)\n\nFor scanning only changed code, use the `diff-scanning-with-aws-security-agent` skill instead. For threat modeling specs, use `threat-modeling-with-aws-security-agent`.\n\n1. Run pre-scan checks above.\n2. **Zip the workspace.** Exclude common build\u002Fcache directories. Honor `.gitignore`. Bail if zip > 2 GB.\n\n   ```bash\n   cd \u003Cabsolute-workspace-path>\n   zip -r \u002Ftmp\u002Fsource.zip . \\\n     -x \".git\u002F*\" \\\n     -x \".security-agent\u002F*\" \\\n     -x \"node_modules\u002F*\" \\\n     -x \"__pycache__\u002F*\" \\\n     -x \".venv\u002F*\" -x \"venv\u002F*\" \\\n     -x \"dist\u002F*\" -x \"build\u002F*\" -x \"target\u002F*\" \\\n     -x \".mypy_cache\u002F*\" -x \".pytest_cache\u002F*\" -x \".tox\u002F*\" \\\n     -x \".next\u002F*\" -x \"cdk.out\u002F*\" \\\n     -x \".DS_Store\" -x \"Thumbs.db\" \\\n     -x \"*.pyc\" -x \"*.pyo\"\n   ZIP_BYTES=$(stat -f%z \u002Ftmp\u002Fsource.zip 2>\u002Fdev\u002Fnull || stat -c%s \u002Ftmp\u002Fsource.zip)\n   if [ \"$ZIP_BYTES\" -gt 2147483648 ]; then echo \"Zip too large (>2GB)\"; exit 1; fi\n   ```\n\n3. **Upload** to the per-workspace stable key (overwrites any prior upload):\n\n   ```bash\n   aws s3 cp \u002Ftmp\u002Fsource.zip s3:\u002F\u002F\u003Cbucket>\u002Fsecurity-scans\u002Fsource\u002F\u003CWORKSPACE_ID>\u002Fsource.zip\n   ```\n\n4. **Get or create the per-workspace CodeReview.** Look up `config.json → code_reviews[\u003Cabs_path>]`.\n   - If present, use that `code_review_id`.\n   - If absent, create:\n\n     ```bash\n     aws securityagent create-code-review --agent-space-id \u003Cid> --title \u003Ctitle> \\\n       --service-role \u003Crole-arn> \\\n       --assets sourceCode=[{s3Location=s3:\u002F\u002F\u003Cbucket>\u002Fsecurity-scans\u002Fsource\u002F\u003CWORKSPACE_ID>\u002Fsource.zip}]\n     ```\n\n     Capture `codeReviewId` and persist to `config.json → code_reviews[\u003Cabs_path>]`.\n   - Title default: `pre-cr-\u003Cgit-branch>` (use `git rev-parse --abbrev-ref HEAD`). Replace any spaces with hyphens.\n5. **Start the job:**\n\n   ```bash\n   aws securityagent start-code-review-job --agent-space-id \u003Cid> --code-review-id \u003Ccr-id>\n   ```\n\n   - **If the response is `ResourceNotFoundException`**: the CodeReview was deleted externally. Recreate it (step 4) and retry.\n6. Capture `codeReviewJobId`. Generate a local `scan_id` like `scan-\u003C8-hex>`. Append to `scans.json`:\n\n   ```json\n   {\n     \"scan_id\": \"scan-...\",\n     \"code_review_id\": \"cr-...\",\n     \"job_id\": \"cj-...\",\n     \"agent_space_id\": \"as-...\",\n     \"scan_type\": \"FULL\",\n     \"title\": \"pre-cr-main\",\n     \"path\": \"\u002Fabs\u002Fpath\",\n     \"started_at\": \"2026-06-01T20:00:00Z\",\n     \"status\": \"IN_PROGRESS\"\n   }\n   ```\n\n7. Tell user: \"Full scan started (scan_id: {id}). Takes ~45 minutes. I'll check every 5 minutes — say 'stop polling' to opt out.\"\n8. Run the **Polling Loop** below with `sleep 300` between checks.\n\n---\n\n## Polling Loop\n\nAfter starting a scan:\n\n1. `sleep 300` (5 minutes). Do **not** poll faster than this.\n2. Call status:\n\n   ```bash\n   aws securityagent batch-get-code-review-jobs --agent-space-id \u003Cid> --code-review-job-ids \u003Cjob_id>\n   ```\n\n3. Compare `status` to last seen status. Only respond to the user when status CHANGES (e.g., `IN_PROGRESS` → `COMPLETED`) or on terminal state (`COMPLETED`, `FAILED`, `STOPPED`).\n4. Do not report \"still in progress\" multiple times — that's noise.\n5. If user says \"stop polling\" or \"check later\" → stop the loop and tell them: \"Say 'scan status' or 'show findings' anytime.\"\n6. On `COMPLETED` → run the **Findings** workflow.\n7. On `FAILED` → fetch the job's error info (`statusReason` if present), tell the user, write a brief failure note to `.security-agent\u002Ffindings-{scan_id}.md`.\n\n---\n\n## Workflow: Status check (ad-hoc)\n\nUser says \"scan status\" \u002F \"how's the scan\":\n\n1. If user names a `scan_id`, use it. Otherwise use the most recent entry in `scans.json`.\n2. Call `batch-get-code-review-jobs` once.\n3. Update `scans.json` status field.\n4. Report: status + elapsed time + current step (if any).\n\n---\n\n## Workflow: Findings\n\nAfter a scan completes (or on user request):\n\n### 1. Fetch findings (paginate)\n\n```bash\naws securityagent list-findings --agent-space-id \u003Cid> --code-review-job-id \u003Cjob-id>\n```\n\nIf `nextToken` is returned, call again with `--next-token \u003Ctoken>` until exhausted.\n\n### 2. Enrich with full details\n\n```bash\naws securityagent batch-get-findings --agent-space-id \u003Cid> --finding-ids \u003Cid1> \u003Cid2> ...\n```\n\n### 3. Filter (optional)\n\nIf the user asked for a minimum severity (e.g., \"high and above\"), filter to that level:\n\n- Severity order: CRITICAL > HIGH > MEDIUM > LOW > INFORMATIONAL.\n\n### 4. Concise summary in chat\n\nGroup by severity. File path + line for each:\n\n```\n🟣 CRITICAL: {name}\n   File: {filePath}:{lineStart}\n   {description}\n\n🔴 HIGH: {name}\n   File: {filePath}:{lineStart}\n   {description}\n\n🟡 MEDIUM: {name}\n   File: {filePath}:{lineStart}\n   {description}\n\n🟢 LOW: {name}\n   File: {filePath}:{lineStart}\n   {description}\n```\n\n### 5. Detailed report file\n\nWrite to `.security-agent\u002Ffindings-{scan_id}.md`. Include EVERY field returned (findingId, name, description, riskLevel, riskType, confidence, status, codeLocations with filePath\u002FlineStart\u002FlineEnd, and remediationCode if present).\n\n```markdown\n# Security Scan Report — {scan_id}\n\n**Scan type**: FULL\n**Title**: {title}\n**Started**: {started_at}\n**Total findings**: {count}\n\n## Summary\n| Severity | Count |\n|----------|-------|\n| CRITICAL | N |\n| HIGH | N |\n| MEDIUM | N |\n| LOW | N |\n\n## Findings\n\n### 🟣 CRITICAL: {name}\n- **ID**: {findingId}\n- **Risk type**: {riskType}\n- **Confidence**: {confidence}\n- **Status**: {status}\n- **Location**: `{filePath}:{lineStart}-{lineEnd}`\n\n**Description**: {description}\n\n**Remediation**:\n{remediationCode or remediation guidance from description}\n\n(repeat for every finding)\n```\n\nTell user: \"Full details written to `.security-agent\u002Ffindings-{scan_id}.md`\"\n\n### 6. Follow-ups\n\nAsk:\n\n- \"Would you like to focus on the critical\u002Fhigh findings first?\"\n- \"Should I explain any of these in more detail?\"\n- \"Want me to fix these issues?\"\n\nFor fixes: read the finding's description and code location, then synthesize and apply the fix via the Edit tool.\n\n---\n\n## Workflow: Stop a scan\n\nUser says \"stop the scan\":\n\n```bash\naws securityagent stop-code-review-job --agent-space-id \u003Cid> --code-review-job-id \u003Cjob_id>\n```\n\nUpdate `scans.json` status to `STOPPED`.\n\n---\n\n## Workflow: List recent scans\n\nUser asks \"show my recent scans\" \u002F \"list scans\":\n\nRead `.security-agent\u002Fscans.json`. Show in a compact table:\n\n| scan_id | type | title | status | started |\n|---------|------|-------|--------|---------|\n| scan-abc | FULL | pre-cr-main | COMPLETED | 2h ago |\n| scan-def | FULL | pre-cr-feature-x | FAILED | 1d ago |\n\n---\n\n## Rules\n\n- Always run pre-scan checks (config exists + agent space verified) before any scan\n- Scan APIs return immediately — poll status every 5 minutes\n- Use the most recent scan in `scans.json` if the user doesn't name one\n- Title must not contain spaces — use hyphens. Default to git branch name.\n- Don't dump raw JSON — format with severity icons + file locations\n- On `ResourceNotFoundException` from `start-code-review-job`, recreate the CodeReview and retry once\n\n---\n\n## Troubleshooting\n\n- **\"Not configured\" \u002F `config.json` missing** → run `setup-security-agent` skill first\n- **`AccessDenied` on `s3 cp`** → bucket not registered on agent space, or trust policy wrong. Re-run setup.\n- **`ResourceNotFoundException` on agent space** → it was deleted. Re-run setup.\n- **Scan stuck in PREFLIGHT for >10 min** → backend issue, not client. Show `batch-get-code-review-jobs` output and tell user to escalate.\n- **Code too large (zip > 2 GB)** → run on a subdirectory instead.\n",{"data":36,"body":37},{"name":4,"description":6},{"type":38,"children":39},"root",[40,49,76,80,87,190,197,217,220,226,271,291,297,302,521,526,529,535,759,762,768,788,2241,2244,2249,2254,2448,2451,2457,2462,2513,2516,2522,2527,2533,2598,2619,2625,2705,2711,2716,2724,2730,2735,2745,2751,2763,3309,3320,3326,3331,3349,3354,3357,3363,3368,3431,3448,3451,3457,3462,3473,3558,3561,3567,3619,3622,3628,3719],{"type":41,"tag":42,"props":43,"children":45},"element","h1",{"id":44},"aws-security-agent-code-scans",[46],{"type":47,"value":48},"text","AWS Security Agent — Code Scans",{"type":41,"tag":50,"props":51,"children":52},"p",{},[53,55,66,68,74],{"type":47,"value":54},"This skill handles full repository scans. Setup (agent space, role, bucket) is handled by the ",{"type":41,"tag":56,"props":57,"children":58},"strong",{},[59],{"type":41,"tag":60,"props":61,"children":63},"code",{"className":62},[],[64],{"type":47,"value":65},"setup-security-agent",{"type":47,"value":67}," skill — if ",{"type":41,"tag":60,"props":69,"children":71},{"className":70},[],[72],{"type":47,"value":73},".security-agent\u002Fconfig.json",{"type":47,"value":75}," is missing, the scan workflow auto-runs setup inline first.",{"type":41,"tag":77,"props":78,"children":79},"hr",{},[],{"type":41,"tag":81,"props":82,"children":84},"h2",{"id":83},"action-mapping",[85],{"type":47,"value":86},"Action mapping",{"type":41,"tag":88,"props":89,"children":90},"table",{},[91,110],{"type":41,"tag":92,"props":93,"children":94},"thead",{},[95],{"type":41,"tag":96,"props":97,"children":98},"tr",{},[99,105],{"type":41,"tag":100,"props":101,"children":102},"th",{},[103],{"type":47,"value":104},"User intent",{"type":41,"tag":100,"props":106,"children":107},{},[108],{"type":47,"value":109},"Workflow",{"type":41,"tag":111,"props":112,"children":113},"tbody",{},[114,128,141,154,173],{"type":41,"tag":96,"props":115,"children":116},{},[117,123],{"type":41,"tag":118,"props":119,"children":120},"td",{},[121],{"type":47,"value":122},"Direct scan request (\"scan my code\", \"find vulnerabilities\")",{"type":41,"tag":118,"props":124,"children":125},{},[126],{"type":47,"value":127},"Full Scan",{"type":41,"tag":96,"props":129,"children":130},{},[131,136],{"type":41,"tag":118,"props":132,"children":133},{},[134],{"type":47,"value":135},"Scan status check (\"how's the scan\", \"progress\")",{"type":41,"tag":118,"props":137,"children":138},{},[139],{"type":47,"value":140},"Status workflow",{"type":41,"tag":96,"props":142,"children":143},{},[144,149],{"type":41,"tag":118,"props":145,"children":146},{},[147],{"type":47,"value":148},"View findings (\"what did it find\", \"show results\")",{"type":41,"tag":118,"props":150,"children":151},{},[152],{"type":47,"value":153},"Findings workflow",{"type":41,"tag":96,"props":155,"children":156},{},[157,162],{"type":41,"tag":118,"props":158,"children":159},{},[160],{"type":47,"value":161},"List scans (\"recent scans\", \"show my scans\")",{"type":41,"tag":118,"props":163,"children":164},{},[165,167],{"type":47,"value":166},"Read ",{"type":41,"tag":60,"props":168,"children":170},{"className":169},[],[171],{"type":47,"value":172},".security-agent\u002Fscans.json",{"type":41,"tag":96,"props":174,"children":175},{},[176,181],{"type":41,"tag":118,"props":177,"children":178},{},[179],{"type":47,"value":180},"Stop a scan",{"type":41,"tag":118,"props":182,"children":183},{},[184],{"type":41,"tag":60,"props":185,"children":187},{"className":186},[],[188],{"type":47,"value":189},"aws securityagent stop-code-review-job",{"type":41,"tag":191,"props":192,"children":194},"h3",{"id":193},"rules-for-proactive-suggestions",[195],{"type":47,"value":196},"Rules for proactive suggestions",{"type":41,"tag":198,"props":199,"children":200},"ul",{},[201,207,212],{"type":41,"tag":202,"props":203,"children":204},"li",{},[205],{"type":47,"value":206},"Always ask before running — never auto-trigger scans",{"type":41,"tag":202,"props":208,"children":209},{},[210],{"type":47,"value":211},"Single-line suggestions, not multi-paragraph pitches",{"type":41,"tag":202,"props":213,"children":214},{},[215],{"type":47,"value":216},"If the user declines, do not bring it up again in the same session",{"type":41,"tag":77,"props":218,"children":219},{},[],{"type":41,"tag":81,"props":221,"children":223},{"id":222},"local-state",[224],{"type":47,"value":225},"Local state",{"type":41,"tag":50,"props":227,"children":228},{},[229,230,235,237,243,245,251,253,259,261,269],{"type":47,"value":166},{"type":41,"tag":60,"props":231,"children":233},{"className":232},[],[234],{"type":47,"value":73},{"type":47,"value":236}," for ",{"type":41,"tag":60,"props":238,"children":240},{"className":239},[],[241],{"type":47,"value":242},"agent_space_id",{"type":47,"value":244}," and ",{"type":41,"tag":60,"props":246,"children":248},{"className":247},[],[249],{"type":47,"value":250},"region",{"type":47,"value":252},". If ",{"type":41,"tag":60,"props":254,"children":256},{"className":255},[],[257],{"type":47,"value":258},"config.json",{"type":47,"value":260}," is missing, tell the user one line — \"First scan in this workspace — running setup first.\" — and run the ",{"type":41,"tag":56,"props":262,"children":263},{},[264],{"type":41,"tag":60,"props":265,"children":267},{"className":266},[],[268],{"type":47,"value":65},{"type":47,"value":270}," workflow inline (steps from that skill's SKILL.md) before continuing. First-time scans should \"just work.\"",{"type":41,"tag":50,"props":272,"children":273},{},[274,276,281,283,289],{"type":47,"value":275},"Track scans in ",{"type":41,"tag":60,"props":277,"children":279},{"className":278},[],[280],{"type":47,"value":172},{"type":47,"value":282}," (keep last 50 entries). The per-workspace CodeReview ID is stored in ",{"type":41,"tag":60,"props":284,"children":286},{"className":285},[],[287],{"type":47,"value":288},"config.json → code_reviews[\u003Cabs_path>]",{"type":47,"value":290}," so subsequent scans reuse the same CodeReview.",{"type":41,"tag":191,"props":292,"children":294},{"id":293},"resolving-the-values-you-need",[295],{"type":47,"value":296},"Resolving the values you need",{"type":41,"tag":50,"props":298,"children":299},{},[300],{"type":47,"value":301},"The CLI examples below use placeholders. Resolve them at the start of every scan:",{"type":41,"tag":88,"props":303,"children":304},{},[305,321],{"type":41,"tag":92,"props":306,"children":307},{},[308],{"type":41,"tag":96,"props":309,"children":310},{},[311,316],{"type":41,"tag":100,"props":312,"children":313},{},[314],{"type":47,"value":315},"Placeholder",{"type":41,"tag":100,"props":317,"children":318},{},[319],{"type":47,"value":320},"How to resolve",{"type":41,"tag":111,"props":322,"children":323},{},[324,347,378,401,422,443,471,500],{"type":41,"tag":96,"props":325,"children":326},{},[327,338],{"type":41,"tag":118,"props":328,"children":329},{},[330,336],{"type":41,"tag":60,"props":331,"children":333},{"className":332},[],[334],{"type":47,"value":335},"\u003Cid>",{"type":47,"value":337}," (agent space)",{"type":41,"tag":118,"props":339,"children":340},{},[341],{"type":41,"tag":60,"props":342,"children":344},{"className":343},[],[345],{"type":47,"value":346},"config.agent_space_id",{"type":41,"tag":96,"props":348,"children":349},{},[350,359],{"type":41,"tag":118,"props":351,"children":352},{},[353],{"type":41,"tag":60,"props":354,"children":356},{"className":355},[],[357],{"type":47,"value":358},"\u003Cregion>",{"type":41,"tag":118,"props":360,"children":361},{},[362,368,370,376],{"type":41,"tag":60,"props":363,"children":365},{"className":364},[],[366],{"type":47,"value":367},"config.region",{"type":47,"value":369}," (default ",{"type":41,"tag":60,"props":371,"children":373},{"className":372},[],[374],{"type":47,"value":375},"us-east-1",{"type":47,"value":377},")",{"type":41,"tag":96,"props":379,"children":380},{},[381,390],{"type":41,"tag":118,"props":382,"children":383},{},[384],{"type":41,"tag":60,"props":385,"children":387},{"className":386},[],[388],{"type":47,"value":389},"\u003Caccount>",{"type":41,"tag":118,"props":391,"children":392},{},[393,399],{"type":41,"tag":60,"props":394,"children":396},{"className":395},[],[397],{"type":47,"value":398},"aws sts get-caller-identity --query Account --output text",{"type":47,"value":400}," (cache for the rest of the turn)",{"type":41,"tag":96,"props":402,"children":403},{},[404,413],{"type":41,"tag":118,"props":405,"children":406},{},[407],{"type":41,"tag":60,"props":408,"children":410},{"className":409},[],[411],{"type":47,"value":412},"\u003Crole-arn>",{"type":41,"tag":118,"props":414,"children":415},{},[416],{"type":41,"tag":60,"props":417,"children":419},{"className":418},[],[420],{"type":47,"value":421},"arn:aws:iam::\u003Caccount>:role\u002FSecurityAgentScanRole",{"type":41,"tag":96,"props":423,"children":424},{},[425,434],{"type":41,"tag":118,"props":426,"children":427},{},[428],{"type":41,"tag":60,"props":429,"children":431},{"className":430},[],[432],{"type":47,"value":433},"\u003Cbucket>",{"type":41,"tag":118,"props":435,"children":436},{},[437],{"type":41,"tag":60,"props":438,"children":440},{"className":439},[],[441],{"type":47,"value":442},"security-agent-scans-\u003Caccount>-\u003Cregion>",{"type":41,"tag":96,"props":444,"children":445},{},[446,455],{"type":41,"tag":118,"props":447,"children":448},{},[449],{"type":41,"tag":60,"props":450,"children":452},{"className":451},[],[453],{"type":47,"value":454},"\u003Ccr-id>",{"type":41,"tag":118,"props":456,"children":457},{},[458,464,466],{"type":41,"tag":60,"props":459,"children":461},{"className":460},[],[462],{"type":47,"value":463},"code_review_id",{"type":47,"value":465}," from ",{"type":41,"tag":60,"props":467,"children":469},{"className":468},[],[470],{"type":47,"value":288},{"type":41,"tag":96,"props":472,"children":473},{},[474,483],{"type":41,"tag":118,"props":475,"children":476},{},[477],{"type":41,"tag":60,"props":478,"children":480},{"className":479},[],[481],{"type":47,"value":482},"\u003Cjob_id>",{"type":41,"tag":118,"props":484,"children":485},{},[486,492,494],{"type":41,"tag":60,"props":487,"children":489},{"className":488},[],[490],{"type":47,"value":491},"codeReviewJobId",{"type":47,"value":493}," returned by ",{"type":41,"tag":60,"props":495,"children":497},{"className":496},[],[498],{"type":47,"value":499},"start-code-review-job",{"type":41,"tag":96,"props":501,"children":502},{},[503,512],{"type":41,"tag":118,"props":504,"children":505},{},[506],{"type":41,"tag":60,"props":507,"children":509},{"className":508},[],[510],{"type":47,"value":511},"\u003CWORKSPACE_ID>",{"type":41,"tag":118,"props":513,"children":514},{},[515],{"type":41,"tag":60,"props":516,"children":518},{"className":517},[],[519],{"type":47,"value":520},"printf '%s' \"$(pwd)\" | md5sum | cut -c1-12",{"type":41,"tag":50,"props":522,"children":523},{},[524],{"type":47,"value":525},"These are derived rather than stored in config so they can never drift out of sync with reality.",{"type":41,"tag":77,"props":527,"children":528},{},[],{"type":41,"tag":81,"props":530,"children":532},{"id":531},"pre-scan-checks",[533],{"type":47,"value":534},"Pre-scan checks",{"type":41,"tag":536,"props":537,"children":538},"ol",{},[539,562,656,666],{"type":41,"tag":202,"props":540,"children":541},{},[542,553,555,560],{"type":41,"tag":56,"props":543,"children":544},{},[545,546,551],{"type":47,"value":166},{"type":41,"tag":60,"props":547,"children":549},{"className":548},[],[550],{"type":47,"value":258},{"type":47,"value":552},".",{"type":47,"value":554}," If missing → run the ",{"type":41,"tag":60,"props":556,"children":558},{"className":557},[],[559],{"type":47,"value":65},{"type":47,"value":561}," workflow inline first, then continue.",{"type":41,"tag":202,"props":563,"children":564},{},[565,570,630,634,636,641,642,647,649,654],{"type":41,"tag":56,"props":566,"children":567},{},[568],{"type":47,"value":569},"Verify agent space still exists:",{"type":41,"tag":571,"props":572,"children":577},"pre",{"className":573,"code":574,"language":575,"meta":576,"style":576},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","aws securityagent batch-get-agent-spaces --agent-space-ids \u003Cid>\n","bash","",[578],{"type":41,"tag":60,"props":579,"children":580},{"__ignoreMap":576},[581],{"type":41,"tag":582,"props":583,"children":586},"span",{"class":584,"line":585},"line",1,[587,592,598,603,608,614,619,625],{"type":41,"tag":582,"props":588,"children":590},{"style":589},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[591],{"type":47,"value":8},{"type":41,"tag":582,"props":593,"children":595},{"style":594},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[596],{"type":47,"value":597}," securityagent",{"type":41,"tag":582,"props":599,"children":600},{"style":594},[601],{"type":47,"value":602}," batch-get-agent-spaces",{"type":41,"tag":582,"props":604,"children":605},{"style":594},[606],{"type":47,"value":607}," --agent-space-ids",{"type":41,"tag":582,"props":609,"children":611},{"style":610},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[612],{"type":47,"value":613}," \u003C",{"type":41,"tag":582,"props":615,"children":616},{"style":594},[617],{"type":47,"value":618},"i",{"type":41,"tag":582,"props":620,"children":622},{"style":621},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[623],{"type":47,"value":624},"d",{"type":41,"tag":582,"props":626,"children":627},{"style":610},[628],{"type":47,"value":629},">\n",{"type":41,"tag":631,"props":632,"children":633},"br",{},[],{"type":47,"value":635},"If response shows it doesn't exist, clear ",{"type":41,"tag":60,"props":637,"children":639},{"className":638},[],[640],{"type":47,"value":242},{"type":47,"value":465},{"type":41,"tag":60,"props":643,"children":645},{"className":644},[],[646],{"type":47,"value":258},{"type":47,"value":648}," and run ",{"type":41,"tag":60,"props":650,"children":652},{"className":651},[],[653],{"type":47,"value":65},{"type":47,"value":655}," again.",{"type":41,"tag":202,"props":657,"children":658},{},[659,664],{"type":41,"tag":56,"props":660,"children":661},{},[662],{"type":47,"value":663},"Resolve account, role ARN, and bucket name",{"type":47,"value":665}," from the table above.",{"type":41,"tag":202,"props":667,"children":668},{},[669,674],{"type":41,"tag":56,"props":670,"children":671},{},[672],{"type":47,"value":673},"Generate workspace ID:",{"type":41,"tag":571,"props":675,"children":677},{"className":573,"code":676,"language":575,"meta":576,"style":576},"WORKSPACE_ID=$(printf '%s' \"$(pwd)\" | md5sum | cut -c1-12)\n",[678],{"type":41,"tag":60,"props":679,"children":680},{"__ignoreMap":576},[681],{"type":41,"tag":582,"props":682,"children":683},{"class":584,"line":585},[684,689,694,700,705,710,715,720,725,730,735,740,744,749,754],{"type":41,"tag":582,"props":685,"children":686},{"style":621},[687],{"type":47,"value":688},"WORKSPACE_ID",{"type":41,"tag":582,"props":690,"children":691},{"style":610},[692],{"type":47,"value":693},"=$(",{"type":41,"tag":582,"props":695,"children":697},{"style":696},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[698],{"type":47,"value":699},"printf",{"type":41,"tag":582,"props":701,"children":702},{"style":610},[703],{"type":47,"value":704}," '",{"type":41,"tag":582,"props":706,"children":707},{"style":594},[708],{"type":47,"value":709},"%s",{"type":41,"tag":582,"props":711,"children":712},{"style":610},[713],{"type":47,"value":714},"'",{"type":41,"tag":582,"props":716,"children":717},{"style":610},[718],{"type":47,"value":719}," \"$(",{"type":41,"tag":582,"props":721,"children":722},{"style":696},[723],{"type":47,"value":724},"pwd",{"type":41,"tag":582,"props":726,"children":727},{"style":610},[728],{"type":47,"value":729},")\"",{"type":41,"tag":582,"props":731,"children":732},{"style":610},[733],{"type":47,"value":734}," |",{"type":41,"tag":582,"props":736,"children":737},{"style":589},[738],{"type":47,"value":739}," md5sum",{"type":41,"tag":582,"props":741,"children":742},{"style":610},[743],{"type":47,"value":734},{"type":41,"tag":582,"props":745,"children":746},{"style":589},[747],{"type":47,"value":748}," cut",{"type":41,"tag":582,"props":750,"children":751},{"style":594},[752],{"type":47,"value":753}," -c1-12",{"type":41,"tag":582,"props":755,"children":756},{"style":610},[757],{"type":47,"value":758},")\n",{"type":41,"tag":77,"props":760,"children":761},{},[],{"type":41,"tag":81,"props":763,"children":765},{"id":764},"workflow-full-scan-45-min",[766],{"type":47,"value":767},"Workflow: Full Scan (~45 min)",{"type":41,"tag":50,"props":769,"children":770},{},[771,773,779,781,787],{"type":47,"value":772},"For scanning only changed code, use the ",{"type":41,"tag":60,"props":774,"children":776},{"className":775},[],[777],{"type":47,"value":778},"diff-scanning-with-aws-security-agent",{"type":47,"value":780}," skill instead. For threat modeling specs, use ",{"type":41,"tag":60,"props":782,"children":784},{"className":783},[],[785],{"type":47,"value":786},"threat-modeling-with-aws-security-agent",{"type":47,"value":552},{"type":41,"tag":536,"props":789,"children":790},{},[791,796,1414,1505,1735,1827,2216,2221],{"type":41,"tag":202,"props":792,"children":793},{},[794],{"type":47,"value":795},"Run pre-scan checks above.",{"type":41,"tag":202,"props":797,"children":798},{},[799,804,806,812,814],{"type":41,"tag":56,"props":800,"children":801},{},[802],{"type":47,"value":803},"Zip the workspace.",{"type":47,"value":805}," Exclude common build\u002Fcache directories. Honor ",{"type":41,"tag":60,"props":807,"children":809},{"className":808},[],[810],{"type":47,"value":811},".gitignore",{"type":47,"value":813},". Bail if zip > 2 GB.",{"type":41,"tag":571,"props":815,"children":817},{"className":573,"code":816,"language":575,"meta":576,"style":576},"cd \u003Cabsolute-workspace-path>\nzip -r \u002Ftmp\u002Fsource.zip . \\\n  -x \".git\u002F*\" \\\n  -x \".security-agent\u002F*\" \\\n  -x \"node_modules\u002F*\" \\\n  -x \"__pycache__\u002F*\" \\\n  -x \".venv\u002F*\" -x \"venv\u002F*\" \\\n  -x \"dist\u002F*\" -x \"build\u002F*\" -x \"target\u002F*\" \\\n  -x \".mypy_cache\u002F*\" -x \".pytest_cache\u002F*\" -x \".tox\u002F*\" \\\n  -x \".next\u002F*\" -x \"cdk.out\u002F*\" \\\n  -x \".DS_Store\" -x \"Thumbs.db\" \\\n  -x \"*.pyc\" -x \"*.pyo\"\nZIP_BYTES=$(stat -f%z \u002Ftmp\u002Fsource.zip 2>\u002Fdev\u002Fnull || stat -c%s \u002Ftmp\u002Fsource.zip)\nif [ \"$ZIP_BYTES\" -gt 2147483648 ]; then echo \"Zip too large (>2GB)\"; exit 1; fi\n",[818],{"type":41,"tag":60,"props":819,"children":820},{"__ignoreMap":576},[821,847,876,904,929,954,979,1022,1081,1140,1182,1224,1263,1323],{"type":41,"tag":582,"props":822,"children":823},{"class":584,"line":585},[824,829,833,838,843],{"type":41,"tag":582,"props":825,"children":826},{"style":696},[827],{"type":47,"value":828},"cd",{"type":41,"tag":582,"props":830,"children":831},{"style":610},[832],{"type":47,"value":613},{"type":41,"tag":582,"props":834,"children":835},{"style":594},[836],{"type":47,"value":837},"absolute-workspace-pat",{"type":41,"tag":582,"props":839,"children":840},{"style":621},[841],{"type":47,"value":842},"h",{"type":41,"tag":582,"props":844,"children":845},{"style":610},[846],{"type":47,"value":629},{"type":41,"tag":582,"props":848,"children":850},{"class":584,"line":849},2,[851,856,861,866,871],{"type":41,"tag":582,"props":852,"children":853},{"style":589},[854],{"type":47,"value":855},"zip",{"type":41,"tag":582,"props":857,"children":858},{"style":594},[859],{"type":47,"value":860}," -r",{"type":41,"tag":582,"props":862,"children":863},{"style":594},[864],{"type":47,"value":865}," \u002Ftmp\u002Fsource.zip",{"type":41,"tag":582,"props":867,"children":868},{"style":594},[869],{"type":47,"value":870}," .",{"type":41,"tag":582,"props":872,"children":873},{"style":621},[874],{"type":47,"value":875}," \\\n",{"type":41,"tag":582,"props":877,"children":879},{"class":584,"line":878},3,[880,885,890,895,900],{"type":41,"tag":582,"props":881,"children":882},{"style":594},[883],{"type":47,"value":884},"  -x",{"type":41,"tag":582,"props":886,"children":887},{"style":610},[888],{"type":47,"value":889}," \"",{"type":41,"tag":582,"props":891,"children":892},{"style":594},[893],{"type":47,"value":894},".git\u002F*",{"type":41,"tag":582,"props":896,"children":897},{"style":610},[898],{"type":47,"value":899},"\"",{"type":41,"tag":582,"props":901,"children":902},{"style":621},[903],{"type":47,"value":875},{"type":41,"tag":582,"props":905,"children":907},{"class":584,"line":906},4,[908,912,916,921,925],{"type":41,"tag":582,"props":909,"children":910},{"style":594},[911],{"type":47,"value":884},{"type":41,"tag":582,"props":913,"children":914},{"style":610},[915],{"type":47,"value":889},{"type":41,"tag":582,"props":917,"children":918},{"style":594},[919],{"type":47,"value":920},".security-agent\u002F*",{"type":41,"tag":582,"props":922,"children":923},{"style":610},[924],{"type":47,"value":899},{"type":41,"tag":582,"props":926,"children":927},{"style":621},[928],{"type":47,"value":875},{"type":41,"tag":582,"props":930,"children":932},{"class":584,"line":931},5,[933,937,941,946,950],{"type":41,"tag":582,"props":934,"children":935},{"style":594},[936],{"type":47,"value":884},{"type":41,"tag":582,"props":938,"children":939},{"style":610},[940],{"type":47,"value":889},{"type":41,"tag":582,"props":942,"children":943},{"style":594},[944],{"type":47,"value":945},"node_modules\u002F*",{"type":41,"tag":582,"props":947,"children":948},{"style":610},[949],{"type":47,"value":899},{"type":41,"tag":582,"props":951,"children":952},{"style":621},[953],{"type":47,"value":875},{"type":41,"tag":582,"props":955,"children":957},{"class":584,"line":956},6,[958,962,966,971,975],{"type":41,"tag":582,"props":959,"children":960},{"style":594},[961],{"type":47,"value":884},{"type":41,"tag":582,"props":963,"children":964},{"style":610},[965],{"type":47,"value":889},{"type":41,"tag":582,"props":967,"children":968},{"style":594},[969],{"type":47,"value":970},"__pycache__\u002F*",{"type":41,"tag":582,"props":972,"children":973},{"style":610},[974],{"type":47,"value":899},{"type":41,"tag":582,"props":976,"children":977},{"style":621},[978],{"type":47,"value":875},{"type":41,"tag":582,"props":980,"children":982},{"class":584,"line":981},7,[983,987,991,996,1000,1005,1009,1014,1018],{"type":41,"tag":582,"props":984,"children":985},{"style":594},[986],{"type":47,"value":884},{"type":41,"tag":582,"props":988,"children":989},{"style":610},[990],{"type":47,"value":889},{"type":41,"tag":582,"props":992,"children":993},{"style":594},[994],{"type":47,"value":995},".venv\u002F*",{"type":41,"tag":582,"props":997,"children":998},{"style":610},[999],{"type":47,"value":899},{"type":41,"tag":582,"props":1001,"children":1002},{"style":594},[1003],{"type":47,"value":1004}," -x",{"type":41,"tag":582,"props":1006,"children":1007},{"style":610},[1008],{"type":47,"value":889},{"type":41,"tag":582,"props":1010,"children":1011},{"style":594},[1012],{"type":47,"value":1013},"venv\u002F*",{"type":41,"tag":582,"props":1015,"children":1016},{"style":610},[1017],{"type":47,"value":899},{"type":41,"tag":582,"props":1019,"children":1020},{"style":621},[1021],{"type":47,"value":875},{"type":41,"tag":582,"props":1023,"children":1025},{"class":584,"line":1024},8,[1026,1030,1034,1039,1043,1047,1051,1056,1060,1064,1068,1073,1077],{"type":41,"tag":582,"props":1027,"children":1028},{"style":594},[1029],{"type":47,"value":884},{"type":41,"tag":582,"props":1031,"children":1032},{"style":610},[1033],{"type":47,"value":889},{"type":41,"tag":582,"props":1035,"children":1036},{"style":594},[1037],{"type":47,"value":1038},"dist\u002F*",{"type":41,"tag":582,"props":1040,"children":1041},{"style":610},[1042],{"type":47,"value":899},{"type":41,"tag":582,"props":1044,"children":1045},{"style":594},[1046],{"type":47,"value":1004},{"type":41,"tag":582,"props":1048,"children":1049},{"style":610},[1050],{"type":47,"value":889},{"type":41,"tag":582,"props":1052,"children":1053},{"style":594},[1054],{"type":47,"value":1055},"build\u002F*",{"type":41,"tag":582,"props":1057,"children":1058},{"style":610},[1059],{"type":47,"value":899},{"type":41,"tag":582,"props":1061,"children":1062},{"style":594},[1063],{"type":47,"value":1004},{"type":41,"tag":582,"props":1065,"children":1066},{"style":610},[1067],{"type":47,"value":889},{"type":41,"tag":582,"props":1069,"children":1070},{"style":594},[1071],{"type":47,"value":1072},"target\u002F*",{"type":41,"tag":582,"props":1074,"children":1075},{"style":610},[1076],{"type":47,"value":899},{"type":41,"tag":582,"props":1078,"children":1079},{"style":621},[1080],{"type":47,"value":875},{"type":41,"tag":582,"props":1082,"children":1084},{"class":584,"line":1083},9,[1085,1089,1093,1098,1102,1106,1110,1115,1119,1123,1127,1132,1136],{"type":41,"tag":582,"props":1086,"children":1087},{"style":594},[1088],{"type":47,"value":884},{"type":41,"tag":582,"props":1090,"children":1091},{"style":610},[1092],{"type":47,"value":889},{"type":41,"tag":582,"props":1094,"children":1095},{"style":594},[1096],{"type":47,"value":1097},".mypy_cache\u002F*",{"type":41,"tag":582,"props":1099,"children":1100},{"style":610},[1101],{"type":47,"value":899},{"type":41,"tag":582,"props":1103,"children":1104},{"style":594},[1105],{"type":47,"value":1004},{"type":41,"tag":582,"props":1107,"children":1108},{"style":610},[1109],{"type":47,"value":889},{"type":41,"tag":582,"props":1111,"children":1112},{"style":594},[1113],{"type":47,"value":1114},".pytest_cache\u002F*",{"type":41,"tag":582,"props":1116,"children":1117},{"style":610},[1118],{"type":47,"value":899},{"type":41,"tag":582,"props":1120,"children":1121},{"style":594},[1122],{"type":47,"value":1004},{"type":41,"tag":582,"props":1124,"children":1125},{"style":610},[1126],{"type":47,"value":889},{"type":41,"tag":582,"props":1128,"children":1129},{"style":594},[1130],{"type":47,"value":1131},".tox\u002F*",{"type":41,"tag":582,"props":1133,"children":1134},{"style":610},[1135],{"type":47,"value":899},{"type":41,"tag":582,"props":1137,"children":1138},{"style":621},[1139],{"type":47,"value":875},{"type":41,"tag":582,"props":1141,"children":1143},{"class":584,"line":1142},10,[1144,1148,1152,1157,1161,1165,1169,1174,1178],{"type":41,"tag":582,"props":1145,"children":1146},{"style":594},[1147],{"type":47,"value":884},{"type":41,"tag":582,"props":1149,"children":1150},{"style":610},[1151],{"type":47,"value":889},{"type":41,"tag":582,"props":1153,"children":1154},{"style":594},[1155],{"type":47,"value":1156},".next\u002F*",{"type":41,"tag":582,"props":1158,"children":1159},{"style":610},[1160],{"type":47,"value":899},{"type":41,"tag":582,"props":1162,"children":1163},{"style":594},[1164],{"type":47,"value":1004},{"type":41,"tag":582,"props":1166,"children":1167},{"style":610},[1168],{"type":47,"value":889},{"type":41,"tag":582,"props":1170,"children":1171},{"style":594},[1172],{"type":47,"value":1173},"cdk.out\u002F*",{"type":41,"tag":582,"props":1175,"children":1176},{"style":610},[1177],{"type":47,"value":899},{"type":41,"tag":582,"props":1179,"children":1180},{"style":621},[1181],{"type":47,"value":875},{"type":41,"tag":582,"props":1183,"children":1185},{"class":584,"line":1184},11,[1186,1190,1194,1199,1203,1207,1211,1216,1220],{"type":41,"tag":582,"props":1187,"children":1188},{"style":594},[1189],{"type":47,"value":884},{"type":41,"tag":582,"props":1191,"children":1192},{"style":610},[1193],{"type":47,"value":889},{"type":41,"tag":582,"props":1195,"children":1196},{"style":594},[1197],{"type":47,"value":1198},".DS_Store",{"type":41,"tag":582,"props":1200,"children":1201},{"style":610},[1202],{"type":47,"value":899},{"type":41,"tag":582,"props":1204,"children":1205},{"style":594},[1206],{"type":47,"value":1004},{"type":41,"tag":582,"props":1208,"children":1209},{"style":610},[1210],{"type":47,"value":889},{"type":41,"tag":582,"props":1212,"children":1213},{"style":594},[1214],{"type":47,"value":1215},"Thumbs.db",{"type":41,"tag":582,"props":1217,"children":1218},{"style":610},[1219],{"type":47,"value":899},{"type":41,"tag":582,"props":1221,"children":1222},{"style":621},[1223],{"type":47,"value":875},{"type":41,"tag":582,"props":1225,"children":1227},{"class":584,"line":1226},12,[1228,1232,1236,1241,1245,1249,1253,1258],{"type":41,"tag":582,"props":1229,"children":1230},{"style":594},[1231],{"type":47,"value":884},{"type":41,"tag":582,"props":1233,"children":1234},{"style":610},[1235],{"type":47,"value":889},{"type":41,"tag":582,"props":1237,"children":1238},{"style":594},[1239],{"type":47,"value":1240},"*.pyc",{"type":41,"tag":582,"props":1242,"children":1243},{"style":610},[1244],{"type":47,"value":899},{"type":41,"tag":582,"props":1246,"children":1247},{"style":594},[1248],{"type":47,"value":1004},{"type":41,"tag":582,"props":1250,"children":1251},{"style":610},[1252],{"type":47,"value":889},{"type":41,"tag":582,"props":1254,"children":1255},{"style":594},[1256],{"type":47,"value":1257},"*.pyo",{"type":41,"tag":582,"props":1259,"children":1260},{"style":610},[1261],{"type":47,"value":1262},"\"\n",{"type":41,"tag":582,"props":1264,"children":1266},{"class":584,"line":1265},13,[1267,1272,1276,1281,1286,1290,1295,1300,1305,1310,1315,1319],{"type":41,"tag":582,"props":1268,"children":1269},{"style":621},[1270],{"type":47,"value":1271},"ZIP_BYTES",{"type":41,"tag":582,"props":1273,"children":1274},{"style":610},[1275],{"type":47,"value":693},{"type":41,"tag":582,"props":1277,"children":1278},{"style":696},[1279],{"type":47,"value":1280},"stat",{"type":41,"tag":582,"props":1282,"children":1283},{"style":594},[1284],{"type":47,"value":1285}," -f%z",{"type":41,"tag":582,"props":1287,"children":1288},{"style":594},[1289],{"type":47,"value":865},{"type":41,"tag":582,"props":1291,"children":1292},{"style":610},[1293],{"type":47,"value":1294}," 2>",{"type":41,"tag":582,"props":1296,"children":1297},{"style":594},[1298],{"type":47,"value":1299},"\u002Fdev\u002Fnull",{"type":41,"tag":582,"props":1301,"children":1302},{"style":610},[1303],{"type":47,"value":1304}," ||",{"type":41,"tag":582,"props":1306,"children":1307},{"style":696},[1308],{"type":47,"value":1309}," stat",{"type":41,"tag":582,"props":1311,"children":1312},{"style":594},[1313],{"type":47,"value":1314}," -c%s",{"type":41,"tag":582,"props":1316,"children":1317},{"style":594},[1318],{"type":47,"value":865},{"type":41,"tag":582,"props":1320,"children":1321},{"style":610},[1322],{"type":47,"value":758},{"type":41,"tag":582,"props":1324,"children":1326},{"class":584,"line":1325},14,[1327,1333,1338,1342,1347,1351,1356,1362,1367,1372,1377,1381,1386,1390,1395,1400,1405,1409],{"type":41,"tag":582,"props":1328,"children":1330},{"style":1329},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[1331],{"type":47,"value":1332},"if",{"type":41,"tag":582,"props":1334,"children":1335},{"style":610},[1336],{"type":47,"value":1337}," [",{"type":41,"tag":582,"props":1339,"children":1340},{"style":610},[1341],{"type":47,"value":889},{"type":41,"tag":582,"props":1343,"children":1344},{"style":621},[1345],{"type":47,"value":1346},"$ZIP_BYTES",{"type":41,"tag":582,"props":1348,"children":1349},{"style":610},[1350],{"type":47,"value":899},{"type":41,"tag":582,"props":1352,"children":1353},{"style":610},[1354],{"type":47,"value":1355}," -gt",{"type":41,"tag":582,"props":1357,"children":1359},{"style":1358},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[1360],{"type":47,"value":1361}," 2147483648",{"type":41,"tag":582,"props":1363,"children":1364},{"style":610},[1365],{"type":47,"value":1366}," ];",{"type":41,"tag":582,"props":1368,"children":1369},{"style":1329},[1370],{"type":47,"value":1371}," then",{"type":41,"tag":582,"props":1373,"children":1374},{"style":696},[1375],{"type":47,"value":1376}," echo",{"type":41,"tag":582,"props":1378,"children":1379},{"style":610},[1380],{"type":47,"value":889},{"type":41,"tag":582,"props":1382,"children":1383},{"style":594},[1384],{"type":47,"value":1385},"Zip too large (>2GB)",{"type":41,"tag":582,"props":1387,"children":1388},{"style":610},[1389],{"type":47,"value":899},{"type":41,"tag":582,"props":1391,"children":1392},{"style":610},[1393],{"type":47,"value":1394},";",{"type":41,"tag":582,"props":1396,"children":1397},{"style":696},[1398],{"type":47,"value":1399}," exit",{"type":41,"tag":582,"props":1401,"children":1402},{"style":1358},[1403],{"type":47,"value":1404}," 1",{"type":41,"tag":582,"props":1406,"children":1407},{"style":610},[1408],{"type":47,"value":1394},{"type":41,"tag":582,"props":1410,"children":1411},{"style":1329},[1412],{"type":47,"value":1413}," fi\n",{"type":41,"tag":202,"props":1415,"children":1416},{},[1417,1422,1424],{"type":41,"tag":56,"props":1418,"children":1419},{},[1420],{"type":47,"value":1421},"Upload",{"type":47,"value":1423}," to the per-workspace stable key (overwrites any prior upload):",{"type":41,"tag":571,"props":1425,"children":1427},{"className":573,"code":1426,"language":575,"meta":576,"style":576},"aws s3 cp \u002Ftmp\u002Fsource.zip s3:\u002F\u002F\u003Cbucket>\u002Fsecurity-scans\u002Fsource\u002F\u003CWORKSPACE_ID>\u002Fsource.zip\n",[1428],{"type":41,"tag":60,"props":1429,"children":1430},{"__ignoreMap":576},[1431],{"type":41,"tag":582,"props":1432,"children":1433},{"class":584,"line":585},[1434,1438,1443,1448,1452,1457,1462,1467,1472,1477,1482,1486,1491,1496,1500],{"type":41,"tag":582,"props":1435,"children":1436},{"style":589},[1437],{"type":47,"value":8},{"type":41,"tag":582,"props":1439,"children":1440},{"style":594},[1441],{"type":47,"value":1442}," s3",{"type":41,"tag":582,"props":1444,"children":1445},{"style":594},[1446],{"type":47,"value":1447}," cp",{"type":41,"tag":582,"props":1449,"children":1450},{"style":594},[1451],{"type":47,"value":865},{"type":41,"tag":582,"props":1453,"children":1454},{"style":594},[1455],{"type":47,"value":1456}," s3:\u002F\u002F",{"type":41,"tag":582,"props":1458,"children":1459},{"style":610},[1460],{"type":47,"value":1461},"\u003C",{"type":41,"tag":582,"props":1463,"children":1464},{"style":594},[1465],{"type":47,"value":1466},"bucke",{"type":41,"tag":582,"props":1468,"children":1469},{"style":621},[1470],{"type":47,"value":1471},"t",{"type":41,"tag":582,"props":1473,"children":1474},{"style":610},[1475],{"type":47,"value":1476},">",{"type":41,"tag":582,"props":1478,"children":1479},{"style":594},[1480],{"type":47,"value":1481},"\u002Fsecurity-scans\u002Fsource\u002F",{"type":41,"tag":582,"props":1483,"children":1484},{"style":610},[1485],{"type":47,"value":1461},{"type":41,"tag":582,"props":1487,"children":1488},{"style":594},[1489],{"type":47,"value":1490},"WORKSPACE_I",{"type":41,"tag":582,"props":1492,"children":1493},{"style":621},[1494],{"type":47,"value":1495},"D",{"type":41,"tag":582,"props":1497,"children":1498},{"style":610},[1499],{"type":47,"value":1476},{"type":41,"tag":582,"props":1501,"children":1502},{"style":594},[1503],{"type":47,"value":1504},"\u002Fsource.zip\n",{"type":41,"tag":202,"props":1506,"children":1507},{},[1508,1513,1515,1520,1521],{"type":41,"tag":56,"props":1509,"children":1510},{},[1511],{"type":47,"value":1512},"Get or create the per-workspace CodeReview.",{"type":47,"value":1514}," Look up ",{"type":41,"tag":60,"props":1516,"children":1518},{"className":1517},[],[1519],{"type":47,"value":288},{"type":47,"value":552},{"type":41,"tag":198,"props":1522,"children":1523},{},[1524,1535,1714],{"type":41,"tag":202,"props":1525,"children":1526},{},[1527,1529,1534],{"type":47,"value":1528},"If present, use that ",{"type":41,"tag":60,"props":1530,"children":1532},{"className":1531},[],[1533],{"type":47,"value":463},{"type":47,"value":552},{"type":41,"tag":202,"props":1536,"children":1537},{},[1538,1540,1695,1698,1700,1706,1708,1713],{"type":47,"value":1539},"If absent, create:",{"type":41,"tag":571,"props":1541,"children":1543},{"className":573,"code":1542,"language":575,"meta":576,"style":576},"aws securityagent create-code-review --agent-space-id \u003Cid> --title \u003Ctitle> \\\n  --service-role \u003Crole-arn> \\\n  --assets sourceCode=[{s3Location=s3:\u002F\u002F\u003Cbucket>\u002Fsecurity-scans\u002Fsource\u002F\u003CWORKSPACE_ID>\u002Fsource.zip}]\n",[1544],{"type":41,"tag":60,"props":1545,"children":1546},{"__ignoreMap":576},[1547,1611,1641],{"type":41,"tag":582,"props":1548,"children":1549},{"class":584,"line":585},[1550,1554,1558,1563,1568,1572,1576,1580,1584,1589,1593,1598,1603,1607],{"type":41,"tag":582,"props":1551,"children":1552},{"style":589},[1553],{"type":47,"value":8},{"type":41,"tag":582,"props":1555,"children":1556},{"style":594},[1557],{"type":47,"value":597},{"type":41,"tag":582,"props":1559,"children":1560},{"style":594},[1561],{"type":47,"value":1562}," create-code-review",{"type":41,"tag":582,"props":1564,"children":1565},{"style":594},[1566],{"type":47,"value":1567}," --agent-space-id",{"type":41,"tag":582,"props":1569,"children":1570},{"style":610},[1571],{"type":47,"value":613},{"type":41,"tag":582,"props":1573,"children":1574},{"style":594},[1575],{"type":47,"value":618},{"type":41,"tag":582,"props":1577,"children":1578},{"style":621},[1579],{"type":47,"value":624},{"type":41,"tag":582,"props":1581,"children":1582},{"style":610},[1583],{"type":47,"value":1476},{"type":41,"tag":582,"props":1585,"children":1586},{"style":594},[1587],{"type":47,"value":1588}," --title",{"type":41,"tag":582,"props":1590,"children":1591},{"style":610},[1592],{"type":47,"value":613},{"type":41,"tag":582,"props":1594,"children":1595},{"style":594},[1596],{"type":47,"value":1597},"titl",{"type":41,"tag":582,"props":1599,"children":1600},{"style":621},[1601],{"type":47,"value":1602},"e",{"type":41,"tag":582,"props":1604,"children":1605},{"style":610},[1606],{"type":47,"value":1476},{"type":41,"tag":582,"props":1608,"children":1609},{"style":621},[1610],{"type":47,"value":875},{"type":41,"tag":582,"props":1612,"children":1613},{"class":584,"line":849},[1614,1619,1623,1628,1633,1637],{"type":41,"tag":582,"props":1615,"children":1616},{"style":594},[1617],{"type":47,"value":1618},"  --service-role",{"type":41,"tag":582,"props":1620,"children":1621},{"style":610},[1622],{"type":47,"value":613},{"type":41,"tag":582,"props":1624,"children":1625},{"style":594},[1626],{"type":47,"value":1627},"role-ar",{"type":41,"tag":582,"props":1629,"children":1630},{"style":621},[1631],{"type":47,"value":1632},"n",{"type":41,"tag":582,"props":1634,"children":1635},{"style":610},[1636],{"type":47,"value":1476},{"type":41,"tag":582,"props":1638,"children":1639},{"style":621},[1640],{"type":47,"value":875},{"type":41,"tag":582,"props":1642,"children":1643},{"class":584,"line":878},[1644,1649,1654,1658,1662,1666,1670,1674,1678,1682,1686,1690],{"type":41,"tag":582,"props":1645,"children":1646},{"style":594},[1647],{"type":47,"value":1648},"  --assets",{"type":41,"tag":582,"props":1650,"children":1651},{"style":594},[1652],{"type":47,"value":1653}," sourceCode=[{s3Location=s3:\u002F\u002F",{"type":41,"tag":582,"props":1655,"children":1656},{"style":610},[1657],{"type":47,"value":1461},{"type":41,"tag":582,"props":1659,"children":1660},{"style":594},[1661],{"type":47,"value":1466},{"type":41,"tag":582,"props":1663,"children":1664},{"style":621},[1665],{"type":47,"value":1471},{"type":41,"tag":582,"props":1667,"children":1668},{"style":610},[1669],{"type":47,"value":1476},{"type":41,"tag":582,"props":1671,"children":1672},{"style":594},[1673],{"type":47,"value":1481},{"type":41,"tag":582,"props":1675,"children":1676},{"style":610},[1677],{"type":47,"value":1461},{"type":41,"tag":582,"props":1679,"children":1680},{"style":594},[1681],{"type":47,"value":1490},{"type":41,"tag":582,"props":1683,"children":1684},{"style":621},[1685],{"type":47,"value":1495},{"type":41,"tag":582,"props":1687,"children":1688},{"style":610},[1689],{"type":47,"value":1476},{"type":41,"tag":582,"props":1691,"children":1692},{"style":594},[1693],{"type":47,"value":1694},"\u002Fsource.zip}]\n",{"type":41,"tag":631,"props":1696,"children":1697},{},[],{"type":47,"value":1699},"Capture ",{"type":41,"tag":60,"props":1701,"children":1703},{"className":1702},[],[1704],{"type":47,"value":1705},"codeReviewId",{"type":47,"value":1707}," and persist to ",{"type":41,"tag":60,"props":1709,"children":1711},{"className":1710},[],[1712],{"type":47,"value":288},{"type":47,"value":552},{"type":41,"tag":202,"props":1715,"children":1716},{},[1717,1719,1725,1727,1733],{"type":47,"value":1718},"Title default: ",{"type":41,"tag":60,"props":1720,"children":1722},{"className":1721},[],[1723],{"type":47,"value":1724},"pre-cr-\u003Cgit-branch>",{"type":47,"value":1726}," (use ",{"type":41,"tag":60,"props":1728,"children":1730},{"className":1729},[],[1731],{"type":47,"value":1732},"git rev-parse --abbrev-ref HEAD",{"type":47,"value":1734},"). Replace any spaces with hyphens.",{"type":41,"tag":202,"props":1736,"children":1737},{},[1738,1743,1808],{"type":41,"tag":56,"props":1739,"children":1740},{},[1741],{"type":47,"value":1742},"Start the job:",{"type":41,"tag":571,"props":1744,"children":1746},{"className":573,"code":1745,"language":575,"meta":576,"style":576},"aws securityagent start-code-review-job --agent-space-id \u003Cid> --code-review-id \u003Ccr-id>\n",[1747],{"type":41,"tag":60,"props":1748,"children":1749},{"__ignoreMap":576},[1750],{"type":41,"tag":582,"props":1751,"children":1752},{"class":584,"line":585},[1753,1757,1761,1766,1770,1774,1778,1782,1786,1791,1795,1800,1804],{"type":41,"tag":582,"props":1754,"children":1755},{"style":589},[1756],{"type":47,"value":8},{"type":41,"tag":582,"props":1758,"children":1759},{"style":594},[1760],{"type":47,"value":597},{"type":41,"tag":582,"props":1762,"children":1763},{"style":594},[1764],{"type":47,"value":1765}," start-code-review-job",{"type":41,"tag":582,"props":1767,"children":1768},{"style":594},[1769],{"type":47,"value":1567},{"type":41,"tag":582,"props":1771,"children":1772},{"style":610},[1773],{"type":47,"value":613},{"type":41,"tag":582,"props":1775,"children":1776},{"style":594},[1777],{"type":47,"value":618},{"type":41,"tag":582,"props":1779,"children":1780},{"style":621},[1781],{"type":47,"value":624},{"type":41,"tag":582,"props":1783,"children":1784},{"style":610},[1785],{"type":47,"value":1476},{"type":41,"tag":582,"props":1787,"children":1788},{"style":594},[1789],{"type":47,"value":1790}," --code-review-id",{"type":41,"tag":582,"props":1792,"children":1793},{"style":610},[1794],{"type":47,"value":613},{"type":41,"tag":582,"props":1796,"children":1797},{"style":594},[1798],{"type":47,"value":1799},"cr-i",{"type":41,"tag":582,"props":1801,"children":1802},{"style":621},[1803],{"type":47,"value":624},{"type":41,"tag":582,"props":1805,"children":1806},{"style":610},[1807],{"type":47,"value":629},{"type":41,"tag":198,"props":1809,"children":1810},{},[1811],{"type":41,"tag":202,"props":1812,"children":1813},{},[1814,1825],{"type":41,"tag":56,"props":1815,"children":1816},{},[1817,1819],{"type":47,"value":1818},"If the response is ",{"type":41,"tag":60,"props":1820,"children":1822},{"className":1821},[],[1823],{"type":47,"value":1824},"ResourceNotFoundException",{"type":47,"value":1826},": the CodeReview was deleted externally. Recreate it (step 4) and retry.",{"type":41,"tag":202,"props":1828,"children":1829},{},[1830,1831,1836,1838,1844,1846,1852,1854,1860,1862],{"type":47,"value":1699},{"type":41,"tag":60,"props":1832,"children":1834},{"className":1833},[],[1835],{"type":47,"value":491},{"type":47,"value":1837},". Generate a local ",{"type":41,"tag":60,"props":1839,"children":1841},{"className":1840},[],[1842],{"type":47,"value":1843},"scan_id",{"type":47,"value":1845}," like ",{"type":41,"tag":60,"props":1847,"children":1849},{"className":1848},[],[1850],{"type":47,"value":1851},"scan-\u003C8-hex>",{"type":47,"value":1853},". Append to ",{"type":41,"tag":60,"props":1855,"children":1857},{"className":1856},[],[1858],{"type":47,"value":1859},"scans.json",{"type":47,"value":1861},":",{"type":41,"tag":571,"props":1863,"children":1867},{"className":1864,"code":1865,"language":1866,"meta":576,"style":576},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"scan_id\": \"scan-...\",\n  \"code_review_id\": \"cr-...\",\n  \"job_id\": \"cj-...\",\n  \"agent_space_id\": \"as-...\",\n  \"scan_type\": \"FULL\",\n  \"title\": \"pre-cr-main\",\n  \"path\": \"\u002Fabs\u002Fpath\",\n  \"started_at\": \"2026-06-01T20:00:00Z\",\n  \"status\": \"IN_PROGRESS\"\n}\n","json",[1868],{"type":41,"tag":60,"props":1869,"children":1870},{"__ignoreMap":576},[1871,1879,1918,1954,1991,2027,2064,2101,2138,2175,2208],{"type":41,"tag":582,"props":1872,"children":1873},{"class":584,"line":585},[1874],{"type":41,"tag":582,"props":1875,"children":1876},{"style":610},[1877],{"type":47,"value":1878},"{\n",{"type":41,"tag":582,"props":1880,"children":1881},{"class":584,"line":849},[1882,1887,1892,1896,1900,1904,1909,1913],{"type":41,"tag":582,"props":1883,"children":1884},{"style":610},[1885],{"type":47,"value":1886},"  \"",{"type":41,"tag":582,"props":1888,"children":1890},{"style":1889},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[1891],{"type":47,"value":1843},{"type":41,"tag":582,"props":1893,"children":1894},{"style":610},[1895],{"type":47,"value":899},{"type":41,"tag":582,"props":1897,"children":1898},{"style":610},[1899],{"type":47,"value":1861},{"type":41,"tag":582,"props":1901,"children":1902},{"style":610},[1903],{"type":47,"value":889},{"type":41,"tag":582,"props":1905,"children":1906},{"style":594},[1907],{"type":47,"value":1908},"scan-...",{"type":41,"tag":582,"props":1910,"children":1911},{"style":610},[1912],{"type":47,"value":899},{"type":41,"tag":582,"props":1914,"children":1915},{"style":610},[1916],{"type":47,"value":1917},",\n",{"type":41,"tag":582,"props":1919,"children":1920},{"class":584,"line":878},[1921,1925,1929,1933,1937,1941,1946,1950],{"type":41,"tag":582,"props":1922,"children":1923},{"style":610},[1924],{"type":47,"value":1886},{"type":41,"tag":582,"props":1926,"children":1927},{"style":1889},[1928],{"type":47,"value":463},{"type":41,"tag":582,"props":1930,"children":1931},{"style":610},[1932],{"type":47,"value":899},{"type":41,"tag":582,"props":1934,"children":1935},{"style":610},[1936],{"type":47,"value":1861},{"type":41,"tag":582,"props":1938,"children":1939},{"style":610},[1940],{"type":47,"value":889},{"type":41,"tag":582,"props":1942,"children":1943},{"style":594},[1944],{"type":47,"value":1945},"cr-...",{"type":41,"tag":582,"props":1947,"children":1948},{"style":610},[1949],{"type":47,"value":899},{"type":41,"tag":582,"props":1951,"children":1952},{"style":610},[1953],{"type":47,"value":1917},{"type":41,"tag":582,"props":1955,"children":1956},{"class":584,"line":906},[1957,1961,1966,1970,1974,1978,1983,1987],{"type":41,"tag":582,"props":1958,"children":1959},{"style":610},[1960],{"type":47,"value":1886},{"type":41,"tag":582,"props":1962,"children":1963},{"style":1889},[1964],{"type":47,"value":1965},"job_id",{"type":41,"tag":582,"props":1967,"children":1968},{"style":610},[1969],{"type":47,"value":899},{"type":41,"tag":582,"props":1971,"children":1972},{"style":610},[1973],{"type":47,"value":1861},{"type":41,"tag":582,"props":1975,"children":1976},{"style":610},[1977],{"type":47,"value":889},{"type":41,"tag":582,"props":1979,"children":1980},{"style":594},[1981],{"type":47,"value":1982},"cj-...",{"type":41,"tag":582,"props":1984,"children":1985},{"style":610},[1986],{"type":47,"value":899},{"type":41,"tag":582,"props":1988,"children":1989},{"style":610},[1990],{"type":47,"value":1917},{"type":41,"tag":582,"props":1992,"children":1993},{"class":584,"line":931},[1994,1998,2002,2006,2010,2014,2019,2023],{"type":41,"tag":582,"props":1995,"children":1996},{"style":610},[1997],{"type":47,"value":1886},{"type":41,"tag":582,"props":1999,"children":2000},{"style":1889},[2001],{"type":47,"value":242},{"type":41,"tag":582,"props":2003,"children":2004},{"style":610},[2005],{"type":47,"value":899},{"type":41,"tag":582,"props":2007,"children":2008},{"style":610},[2009],{"type":47,"value":1861},{"type":41,"tag":582,"props":2011,"children":2012},{"style":610},[2013],{"type":47,"value":889},{"type":41,"tag":582,"props":2015,"children":2016},{"style":594},[2017],{"type":47,"value":2018},"as-...",{"type":41,"tag":582,"props":2020,"children":2021},{"style":610},[2022],{"type":47,"value":899},{"type":41,"tag":582,"props":2024,"children":2025},{"style":610},[2026],{"type":47,"value":1917},{"type":41,"tag":582,"props":2028,"children":2029},{"class":584,"line":956},[2030,2034,2039,2043,2047,2051,2056,2060],{"type":41,"tag":582,"props":2031,"children":2032},{"style":610},[2033],{"type":47,"value":1886},{"type":41,"tag":582,"props":2035,"children":2036},{"style":1889},[2037],{"type":47,"value":2038},"scan_type",{"type":41,"tag":582,"props":2040,"children":2041},{"style":610},[2042],{"type":47,"value":899},{"type":41,"tag":582,"props":2044,"children":2045},{"style":610},[2046],{"type":47,"value":1861},{"type":41,"tag":582,"props":2048,"children":2049},{"style":610},[2050],{"type":47,"value":889},{"type":41,"tag":582,"props":2052,"children":2053},{"style":594},[2054],{"type":47,"value":2055},"FULL",{"type":41,"tag":582,"props":2057,"children":2058},{"style":610},[2059],{"type":47,"value":899},{"type":41,"tag":582,"props":2061,"children":2062},{"style":610},[2063],{"type":47,"value":1917},{"type":41,"tag":582,"props":2065,"children":2066},{"class":584,"line":981},[2067,2071,2076,2080,2084,2088,2093,2097],{"type":41,"tag":582,"props":2068,"children":2069},{"style":610},[2070],{"type":47,"value":1886},{"type":41,"tag":582,"props":2072,"children":2073},{"style":1889},[2074],{"type":47,"value":2075},"title",{"type":41,"tag":582,"props":2077,"children":2078},{"style":610},[2079],{"type":47,"value":899},{"type":41,"tag":582,"props":2081,"children":2082},{"style":610},[2083],{"type":47,"value":1861},{"type":41,"tag":582,"props":2085,"children":2086},{"style":610},[2087],{"type":47,"value":889},{"type":41,"tag":582,"props":2089,"children":2090},{"style":594},[2091],{"type":47,"value":2092},"pre-cr-main",{"type":41,"tag":582,"props":2094,"children":2095},{"style":610},[2096],{"type":47,"value":899},{"type":41,"tag":582,"props":2098,"children":2099},{"style":610},[2100],{"type":47,"value":1917},{"type":41,"tag":582,"props":2102,"children":2103},{"class":584,"line":1024},[2104,2108,2113,2117,2121,2125,2130,2134],{"type":41,"tag":582,"props":2105,"children":2106},{"style":610},[2107],{"type":47,"value":1886},{"type":41,"tag":582,"props":2109,"children":2110},{"style":1889},[2111],{"type":47,"value":2112},"path",{"type":41,"tag":582,"props":2114,"children":2115},{"style":610},[2116],{"type":47,"value":899},{"type":41,"tag":582,"props":2118,"children":2119},{"style":610},[2120],{"type":47,"value":1861},{"type":41,"tag":582,"props":2122,"children":2123},{"style":610},[2124],{"type":47,"value":889},{"type":41,"tag":582,"props":2126,"children":2127},{"style":594},[2128],{"type":47,"value":2129},"\u002Fabs\u002Fpath",{"type":41,"tag":582,"props":2131,"children":2132},{"style":610},[2133],{"type":47,"value":899},{"type":41,"tag":582,"props":2135,"children":2136},{"style":610},[2137],{"type":47,"value":1917},{"type":41,"tag":582,"props":2139,"children":2140},{"class":584,"line":1083},[2141,2145,2150,2154,2158,2162,2167,2171],{"type":41,"tag":582,"props":2142,"children":2143},{"style":610},[2144],{"type":47,"value":1886},{"type":41,"tag":582,"props":2146,"children":2147},{"style":1889},[2148],{"type":47,"value":2149},"started_at",{"type":41,"tag":582,"props":2151,"children":2152},{"style":610},[2153],{"type":47,"value":899},{"type":41,"tag":582,"props":2155,"children":2156},{"style":610},[2157],{"type":47,"value":1861},{"type":41,"tag":582,"props":2159,"children":2160},{"style":610},[2161],{"type":47,"value":889},{"type":41,"tag":582,"props":2163,"children":2164},{"style":594},[2165],{"type":47,"value":2166},"2026-06-01T20:00:00Z",{"type":41,"tag":582,"props":2168,"children":2169},{"style":610},[2170],{"type":47,"value":899},{"type":41,"tag":582,"props":2172,"children":2173},{"style":610},[2174],{"type":47,"value":1917},{"type":41,"tag":582,"props":2176,"children":2177},{"class":584,"line":1142},[2178,2182,2187,2191,2195,2199,2204],{"type":41,"tag":582,"props":2179,"children":2180},{"style":610},[2181],{"type":47,"value":1886},{"type":41,"tag":582,"props":2183,"children":2184},{"style":1889},[2185],{"type":47,"value":2186},"status",{"type":41,"tag":582,"props":2188,"children":2189},{"style":610},[2190],{"type":47,"value":899},{"type":41,"tag":582,"props":2192,"children":2193},{"style":610},[2194],{"type":47,"value":1861},{"type":41,"tag":582,"props":2196,"children":2197},{"style":610},[2198],{"type":47,"value":889},{"type":41,"tag":582,"props":2200,"children":2201},{"style":594},[2202],{"type":47,"value":2203},"IN_PROGRESS",{"type":41,"tag":582,"props":2205,"children":2206},{"style":610},[2207],{"type":47,"value":1262},{"type":41,"tag":582,"props":2209,"children":2210},{"class":584,"line":1184},[2211],{"type":41,"tag":582,"props":2212,"children":2213},{"style":610},[2214],{"type":47,"value":2215},"}\n",{"type":41,"tag":202,"props":2217,"children":2218},{},[2219],{"type":47,"value":2220},"Tell user: \"Full scan started (scan_id: {id}). Takes ~45 minutes. I'll check every 5 minutes — say 'stop polling' to opt out.\"",{"type":41,"tag":202,"props":2222,"children":2223},{},[2224,2226,2231,2233,2239],{"type":47,"value":2225},"Run the ",{"type":41,"tag":56,"props":2227,"children":2228},{},[2229],{"type":47,"value":2230},"Polling Loop",{"type":47,"value":2232}," below with ",{"type":41,"tag":60,"props":2234,"children":2236},{"className":2235},[],[2237],{"type":47,"value":2238},"sleep 300",{"type":47,"value":2240}," between checks.",{"type":41,"tag":77,"props":2242,"children":2243},{},[],{"type":41,"tag":81,"props":2245,"children":2247},{"id":2246},"polling-loop",[2248],{"type":47,"value":2230},{"type":41,"tag":50,"props":2250,"children":2251},{},[2252],{"type":47,"value":2253},"After starting a scan:",{"type":41,"tag":536,"props":2255,"children":2256},{},[2257,2274,2344,2393,2398,2403,2422],{"type":41,"tag":202,"props":2258,"children":2259},{},[2260,2265,2267,2272],{"type":41,"tag":60,"props":2261,"children":2263},{"className":2262},[],[2264],{"type":47,"value":2238},{"type":47,"value":2266}," (5 minutes). Do ",{"type":41,"tag":56,"props":2268,"children":2269},{},[2270],{"type":47,"value":2271},"not",{"type":47,"value":2273}," poll faster than this.",{"type":41,"tag":202,"props":2275,"children":2276},{},[2277,2279],{"type":47,"value":2278},"Call status:",{"type":41,"tag":571,"props":2280,"children":2282},{"className":573,"code":2281,"language":575,"meta":576,"style":576},"aws securityagent batch-get-code-review-jobs --agent-space-id \u003Cid> --code-review-job-ids \u003Cjob_id>\n",[2283],{"type":41,"tag":60,"props":2284,"children":2285},{"__ignoreMap":576},[2286],{"type":41,"tag":582,"props":2287,"children":2288},{"class":584,"line":585},[2289,2293,2297,2302,2306,2310,2314,2318,2322,2327,2331,2336,2340],{"type":41,"tag":582,"props":2290,"children":2291},{"style":589},[2292],{"type":47,"value":8},{"type":41,"tag":582,"props":2294,"children":2295},{"style":594},[2296],{"type":47,"value":597},{"type":41,"tag":582,"props":2298,"children":2299},{"style":594},[2300],{"type":47,"value":2301}," batch-get-code-review-jobs",{"type":41,"tag":582,"props":2303,"children":2304},{"style":594},[2305],{"type":47,"value":1567},{"type":41,"tag":582,"props":2307,"children":2308},{"style":610},[2309],{"type":47,"value":613},{"type":41,"tag":582,"props":2311,"children":2312},{"style":594},[2313],{"type":47,"value":618},{"type":41,"tag":582,"props":2315,"children":2316},{"style":621},[2317],{"type":47,"value":624},{"type":41,"tag":582,"props":2319,"children":2320},{"style":610},[2321],{"type":47,"value":1476},{"type":41,"tag":582,"props":2323,"children":2324},{"style":594},[2325],{"type":47,"value":2326}," --code-review-job-ids",{"type":41,"tag":582,"props":2328,"children":2329},{"style":610},[2330],{"type":47,"value":613},{"type":41,"tag":582,"props":2332,"children":2333},{"style":594},[2334],{"type":47,"value":2335},"job_i",{"type":41,"tag":582,"props":2337,"children":2338},{"style":621},[2339],{"type":47,"value":624},{"type":41,"tag":582,"props":2341,"children":2342},{"style":610},[2343],{"type":47,"value":629},{"type":41,"tag":202,"props":2345,"children":2346},{},[2347,2349,2354,2356,2361,2363,2369,2371,2376,2378,2384,2385,2391],{"type":47,"value":2348},"Compare ",{"type":41,"tag":60,"props":2350,"children":2352},{"className":2351},[],[2353],{"type":47,"value":2186},{"type":47,"value":2355}," to last seen status. Only respond to the user when status CHANGES (e.g., ",{"type":41,"tag":60,"props":2357,"children":2359},{"className":2358},[],[2360],{"type":47,"value":2203},{"type":47,"value":2362}," → ",{"type":41,"tag":60,"props":2364,"children":2366},{"className":2365},[],[2367],{"type":47,"value":2368},"COMPLETED",{"type":47,"value":2370},") or on terminal state (",{"type":41,"tag":60,"props":2372,"children":2374},{"className":2373},[],[2375],{"type":47,"value":2368},{"type":47,"value":2377},", ",{"type":41,"tag":60,"props":2379,"children":2381},{"className":2380},[],[2382],{"type":47,"value":2383},"FAILED",{"type":47,"value":2377},{"type":41,"tag":60,"props":2386,"children":2388},{"className":2387},[],[2389],{"type":47,"value":2390},"STOPPED",{"type":47,"value":2392},").",{"type":41,"tag":202,"props":2394,"children":2395},{},[2396],{"type":47,"value":2397},"Do not report \"still in progress\" multiple times — that's noise.",{"type":41,"tag":202,"props":2399,"children":2400},{},[2401],{"type":47,"value":2402},"If user says \"stop polling\" or \"check later\" → stop the loop and tell them: \"Say 'scan status' or 'show findings' anytime.\"",{"type":41,"tag":202,"props":2404,"children":2405},{},[2406,2408,2413,2415,2420],{"type":47,"value":2407},"On ",{"type":41,"tag":60,"props":2409,"children":2411},{"className":2410},[],[2412],{"type":47,"value":2368},{"type":47,"value":2414}," → run the ",{"type":41,"tag":56,"props":2416,"children":2417},{},[2418],{"type":47,"value":2419},"Findings",{"type":47,"value":2421}," workflow.",{"type":41,"tag":202,"props":2423,"children":2424},{},[2425,2426,2431,2433,2439,2441,2447],{"type":47,"value":2407},{"type":41,"tag":60,"props":2427,"children":2429},{"className":2428},[],[2430],{"type":47,"value":2383},{"type":47,"value":2432}," → fetch the job's error info (",{"type":41,"tag":60,"props":2434,"children":2436},{"className":2435},[],[2437],{"type":47,"value":2438},"statusReason",{"type":47,"value":2440}," if present), tell the user, write a brief failure note to ",{"type":41,"tag":60,"props":2442,"children":2444},{"className":2443},[],[2445],{"type":47,"value":2446},".security-agent\u002Ffindings-{scan_id}.md",{"type":47,"value":552},{"type":41,"tag":77,"props":2449,"children":2450},{},[],{"type":41,"tag":81,"props":2452,"children":2454},{"id":2453},"workflow-status-check-ad-hoc",[2455],{"type":47,"value":2456},"Workflow: Status check (ad-hoc)",{"type":41,"tag":50,"props":2458,"children":2459},{},[2460],{"type":47,"value":2461},"User says \"scan status\" \u002F \"how's the scan\":",{"type":41,"tag":536,"props":2463,"children":2464},{},[2465,2483,2496,2508],{"type":41,"tag":202,"props":2466,"children":2467},{},[2468,2470,2475,2477,2482],{"type":47,"value":2469},"If user names a ",{"type":41,"tag":60,"props":2471,"children":2473},{"className":2472},[],[2474],{"type":47,"value":1843},{"type":47,"value":2476},", use it. Otherwise use the most recent entry in ",{"type":41,"tag":60,"props":2478,"children":2480},{"className":2479},[],[2481],{"type":47,"value":1859},{"type":47,"value":552},{"type":41,"tag":202,"props":2484,"children":2485},{},[2486,2488,2494],{"type":47,"value":2487},"Call ",{"type":41,"tag":60,"props":2489,"children":2491},{"className":2490},[],[2492],{"type":47,"value":2493},"batch-get-code-review-jobs",{"type":47,"value":2495}," once.",{"type":41,"tag":202,"props":2497,"children":2498},{},[2499,2501,2506],{"type":47,"value":2500},"Update ",{"type":41,"tag":60,"props":2502,"children":2504},{"className":2503},[],[2505],{"type":47,"value":1859},{"type":47,"value":2507}," status field.",{"type":41,"tag":202,"props":2509,"children":2510},{},[2511],{"type":47,"value":2512},"Report: status + elapsed time + current step (if any).",{"type":41,"tag":77,"props":2514,"children":2515},{},[],{"type":41,"tag":81,"props":2517,"children":2519},{"id":2518},"workflow-findings",[2520],{"type":47,"value":2521},"Workflow: Findings",{"type":41,"tag":50,"props":2523,"children":2524},{},[2525],{"type":47,"value":2526},"After a scan completes (or on user request):",{"type":41,"tag":191,"props":2528,"children":2530},{"id":2529},"_1-fetch-findings-paginate",[2531],{"type":47,"value":2532},"1. Fetch findings (paginate)",{"type":41,"tag":571,"props":2534,"children":2536},{"className":573,"code":2535,"language":575,"meta":576,"style":576},"aws securityagent list-findings --agent-space-id \u003Cid> --code-review-job-id \u003Cjob-id>\n",[2537],{"type":41,"tag":60,"props":2538,"children":2539},{"__ignoreMap":576},[2540],{"type":41,"tag":582,"props":2541,"children":2542},{"class":584,"line":585},[2543,2547,2551,2556,2560,2564,2568,2572,2576,2581,2585,2590,2594],{"type":41,"tag":582,"props":2544,"children":2545},{"style":589},[2546],{"type":47,"value":8},{"type":41,"tag":582,"props":2548,"children":2549},{"style":594},[2550],{"type":47,"value":597},{"type":41,"tag":582,"props":2552,"children":2553},{"style":594},[2554],{"type":47,"value":2555}," list-findings",{"type":41,"tag":582,"props":2557,"children":2558},{"style":594},[2559],{"type":47,"value":1567},{"type":41,"tag":582,"props":2561,"children":2562},{"style":610},[2563],{"type":47,"value":613},{"type":41,"tag":582,"props":2565,"children":2566},{"style":594},[2567],{"type":47,"value":618},{"type":41,"tag":582,"props":2569,"children":2570},{"style":621},[2571],{"type":47,"value":624},{"type":41,"tag":582,"props":2573,"children":2574},{"style":610},[2575],{"type":47,"value":1476},{"type":41,"tag":582,"props":2577,"children":2578},{"style":594},[2579],{"type":47,"value":2580}," --code-review-job-id",{"type":41,"tag":582,"props":2582,"children":2583},{"style":610},[2584],{"type":47,"value":613},{"type":41,"tag":582,"props":2586,"children":2587},{"style":594},[2588],{"type":47,"value":2589},"job-i",{"type":41,"tag":582,"props":2591,"children":2592},{"style":621},[2593],{"type":47,"value":624},{"type":41,"tag":582,"props":2595,"children":2596},{"style":610},[2597],{"type":47,"value":629},{"type":41,"tag":50,"props":2599,"children":2600},{},[2601,2603,2609,2611,2617],{"type":47,"value":2602},"If ",{"type":41,"tag":60,"props":2604,"children":2606},{"className":2605},[],[2607],{"type":47,"value":2608},"nextToken",{"type":47,"value":2610}," is returned, call again with ",{"type":41,"tag":60,"props":2612,"children":2614},{"className":2613},[],[2615],{"type":47,"value":2616},"--next-token \u003Ctoken>",{"type":47,"value":2618}," until exhausted.",{"type":41,"tag":191,"props":2620,"children":2622},{"id":2621},"_2-enrich-with-full-details",[2623],{"type":47,"value":2624},"2. Enrich with full details",{"type":41,"tag":571,"props":2626,"children":2628},{"className":573,"code":2627,"language":575,"meta":576,"style":576},"aws securityagent batch-get-findings --agent-space-id \u003Cid> --finding-ids \u003Cid1> \u003Cid2> ...\n",[2629],{"type":41,"tag":60,"props":2630,"children":2631},{"__ignoreMap":576},[2632],{"type":41,"tag":582,"props":2633,"children":2634},{"class":584,"line":585},[2635,2639,2643,2648,2652,2656,2660,2664,2668,2673,2677,2682,2687,2691,2695,2700],{"type":41,"tag":582,"props":2636,"children":2637},{"style":589},[2638],{"type":47,"value":8},{"type":41,"tag":582,"props":2640,"children":2641},{"style":594},[2642],{"type":47,"value":597},{"type":41,"tag":582,"props":2644,"children":2645},{"style":594},[2646],{"type":47,"value":2647}," batch-get-findings",{"type":41,"tag":582,"props":2649,"children":2650},{"style":594},[2651],{"type":47,"value":1567},{"type":41,"tag":582,"props":2653,"children":2654},{"style":610},[2655],{"type":47,"value":613},{"type":41,"tag":582,"props":2657,"children":2658},{"style":594},[2659],{"type":47,"value":618},{"type":41,"tag":582,"props":2661,"children":2662},{"style":621},[2663],{"type":47,"value":624},{"type":41,"tag":582,"props":2665,"children":2666},{"style":610},[2667],{"type":47,"value":1476},{"type":41,"tag":582,"props":2669,"children":2670},{"style":594},[2671],{"type":47,"value":2672}," --finding-ids",{"type":41,"tag":582,"props":2674,"children":2675},{"style":610},[2676],{"type":47,"value":613},{"type":41,"tag":582,"props":2678,"children":2679},{"style":594},[2680],{"type":47,"value":2681},"id",{"type":41,"tag":582,"props":2683,"children":2684},{"style":610},[2685],{"type":47,"value":2686},"1>",{"type":41,"tag":582,"props":2688,"children":2689},{"style":610},[2690],{"type":47,"value":613},{"type":41,"tag":582,"props":2692,"children":2693},{"style":594},[2694],{"type":47,"value":2681},{"type":41,"tag":582,"props":2696,"children":2697},{"style":610},[2698],{"type":47,"value":2699},"2>",{"type":41,"tag":582,"props":2701,"children":2702},{"style":594},[2703],{"type":47,"value":2704}," ...\n",{"type":41,"tag":191,"props":2706,"children":2708},{"id":2707},"_3-filter-optional",[2709],{"type":47,"value":2710},"3. Filter (optional)",{"type":41,"tag":50,"props":2712,"children":2713},{},[2714],{"type":47,"value":2715},"If the user asked for a minimum severity (e.g., \"high and above\"), filter to that level:",{"type":41,"tag":198,"props":2717,"children":2718},{},[2719],{"type":41,"tag":202,"props":2720,"children":2721},{},[2722],{"type":47,"value":2723},"Severity order: CRITICAL > HIGH > MEDIUM > LOW > INFORMATIONAL.",{"type":41,"tag":191,"props":2725,"children":2727},{"id":2726},"_4-concise-summary-in-chat",[2728],{"type":47,"value":2729},"4. Concise summary in chat",{"type":41,"tag":50,"props":2731,"children":2732},{},[2733],{"type":47,"value":2734},"Group by severity. File path + line for each:",{"type":41,"tag":571,"props":2736,"children":2740},{"className":2737,"code":2739,"language":47},[2738],"language-text","🟣 CRITICAL: {name}\n   File: {filePath}:{lineStart}\n   {description}\n\n🔴 HIGH: {name}\n   File: {filePath}:{lineStart}\n   {description}\n\n🟡 MEDIUM: {name}\n   File: {filePath}:{lineStart}\n   {description}\n\n🟢 LOW: {name}\n   File: {filePath}:{lineStart}\n   {description}\n",[2741],{"type":41,"tag":60,"props":2742,"children":2743},{"__ignoreMap":576},[2744],{"type":47,"value":2739},{"type":41,"tag":191,"props":2746,"children":2748},{"id":2747},"_5-detailed-report-file",[2749],{"type":47,"value":2750},"5. Detailed report file",{"type":41,"tag":50,"props":2752,"children":2753},{},[2754,2756,2761],{"type":47,"value":2755},"Write to ",{"type":41,"tag":60,"props":2757,"children":2759},{"className":2758},[],[2760],{"type":47,"value":2446},{"type":47,"value":2762},". Include EVERY field returned (findingId, name, description, riskLevel, riskType, confidence, status, codeLocations with filePath\u002FlineStart\u002FlineEnd, and remediationCode if present).",{"type":41,"tag":571,"props":2764,"children":2768},{"className":2765,"code":2766,"language":2767,"meta":576,"style":576},"language-markdown shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","# Security Scan Report — {scan_id}\n\n**Scan type**: FULL\n**Title**: {title}\n**Started**: {started_at}\n**Total findings**: {count}\n\n## Summary\n| Severity | Count |\n|----------|-------|\n| CRITICAL | N |\n| HIGH | N |\n| MEDIUM | N |\n| LOW | N |\n\n## Findings\n\n### 🟣 CRITICAL: {name}\n- **ID**: {findingId}\n- **Risk type**: {riskType}\n- **Confidence**: {confidence}\n- **Status**: {status}\n- **Location**: `{filePath}:{lineStart}-{lineEnd}`\n\n**Description**: {description}\n\n**Remediation**:\n{remediationCode or remediation guidance from description}\n\n(repeat for every finding)\n","markdown",[2769],{"type":41,"tag":60,"props":2770,"children":2771},{"__ignoreMap":576},[2772,2785,2794,2818,2839,2860,2881,2888,2901,2928,2936,2961,2985,3009,3033,3041,3054,3062,3076,3104,3130,3156,3182,3223,3231,3253,3261,3283,3292,3300],{"type":41,"tag":582,"props":2773,"children":2774},{"class":584,"line":585},[2775,2780],{"type":41,"tag":582,"props":2776,"children":2777},{"style":610},[2778],{"type":47,"value":2779},"# ",{"type":41,"tag":582,"props":2781,"children":2782},{"style":589},[2783],{"type":47,"value":2784},"Security Scan Report — {scan_id}\n",{"type":41,"tag":582,"props":2786,"children":2787},{"class":584,"line":849},[2788],{"type":41,"tag":582,"props":2789,"children":2791},{"emptyLinePlaceholder":2790},true,[2792],{"type":47,"value":2793},"\n",{"type":41,"tag":582,"props":2795,"children":2796},{"class":584,"line":878},[2797,2803,2809,2813],{"type":41,"tag":582,"props":2798,"children":2800},{"style":2799},"--shiki-light:#39ADB5;--shiki-light-font-weight:bold;--shiki-default:#89DDFF;--shiki-default-font-weight:bold;--shiki-dark:#89DDFF;--shiki-dark-font-weight:bold",[2801],{"type":47,"value":2802},"**",{"type":41,"tag":582,"props":2804,"children":2806},{"style":2805},"--shiki-light:#E53935;--shiki-light-font-weight:bold;--shiki-default:#F07178;--shiki-default-font-weight:bold;--shiki-dark:#F07178;--shiki-dark-font-weight:bold",[2807],{"type":47,"value":2808},"Scan type",{"type":41,"tag":582,"props":2810,"children":2811},{"style":2799},[2812],{"type":47,"value":2802},{"type":41,"tag":582,"props":2814,"children":2815},{"style":621},[2816],{"type":47,"value":2817},": FULL\n",{"type":41,"tag":582,"props":2819,"children":2820},{"class":584,"line":906},[2821,2825,2830,2834],{"type":41,"tag":582,"props":2822,"children":2823},{"style":2799},[2824],{"type":47,"value":2802},{"type":41,"tag":582,"props":2826,"children":2827},{"style":2805},[2828],{"type":47,"value":2829},"Title",{"type":41,"tag":582,"props":2831,"children":2832},{"style":2799},[2833],{"type":47,"value":2802},{"type":41,"tag":582,"props":2835,"children":2836},{"style":621},[2837],{"type":47,"value":2838},": {title}\n",{"type":41,"tag":582,"props":2840,"children":2841},{"class":584,"line":931},[2842,2846,2851,2855],{"type":41,"tag":582,"props":2843,"children":2844},{"style":2799},[2845],{"type":47,"value":2802},{"type":41,"tag":582,"props":2847,"children":2848},{"style":2805},[2849],{"type":47,"value":2850},"Started",{"type":41,"tag":582,"props":2852,"children":2853},{"style":2799},[2854],{"type":47,"value":2802},{"type":41,"tag":582,"props":2856,"children":2857},{"style":621},[2858],{"type":47,"value":2859},": {started_at}\n",{"type":41,"tag":582,"props":2861,"children":2862},{"class":584,"line":956},[2863,2867,2872,2876],{"type":41,"tag":582,"props":2864,"children":2865},{"style":2799},[2866],{"type":47,"value":2802},{"type":41,"tag":582,"props":2868,"children":2869},{"style":2805},[2870],{"type":47,"value":2871},"Total findings",{"type":41,"tag":582,"props":2873,"children":2874},{"style":2799},[2875],{"type":47,"value":2802},{"type":41,"tag":582,"props":2877,"children":2878},{"style":621},[2879],{"type":47,"value":2880},": {count}\n",{"type":41,"tag":582,"props":2882,"children":2883},{"class":584,"line":981},[2884],{"type":41,"tag":582,"props":2885,"children":2886},{"emptyLinePlaceholder":2790},[2887],{"type":47,"value":2793},{"type":41,"tag":582,"props":2889,"children":2890},{"class":584,"line":1024},[2891,2896],{"type":41,"tag":582,"props":2892,"children":2893},{"style":610},[2894],{"type":47,"value":2895},"## ",{"type":41,"tag":582,"props":2897,"children":2898},{"style":589},[2899],{"type":47,"value":2900},"Summary\n",{"type":41,"tag":582,"props":2902,"children":2903},{"class":584,"line":1083},[2904,2909,2914,2918,2923],{"type":41,"tag":582,"props":2905,"children":2906},{"style":610},[2907],{"type":47,"value":2908},"|",{"type":41,"tag":582,"props":2910,"children":2911},{"style":621},[2912],{"type":47,"value":2913}," Severity ",{"type":41,"tag":582,"props":2915,"children":2916},{"style":610},[2917],{"type":47,"value":2908},{"type":41,"tag":582,"props":2919,"children":2920},{"style":621},[2921],{"type":47,"value":2922}," Count ",{"type":41,"tag":582,"props":2924,"children":2925},{"style":610},[2926],{"type":47,"value":2927},"|\n",{"type":41,"tag":582,"props":2929,"children":2930},{"class":584,"line":1142},[2931],{"type":41,"tag":582,"props":2932,"children":2933},{"style":610},[2934],{"type":47,"value":2935},"|----------|-------|\n",{"type":41,"tag":582,"props":2937,"children":2938},{"class":584,"line":1184},[2939,2943,2948,2952,2957],{"type":41,"tag":582,"props":2940,"children":2941},{"style":610},[2942],{"type":47,"value":2908},{"type":41,"tag":582,"props":2944,"children":2945},{"style":621},[2946],{"type":47,"value":2947}," CRITICAL ",{"type":41,"tag":582,"props":2949,"children":2950},{"style":610},[2951],{"type":47,"value":2908},{"type":41,"tag":582,"props":2953,"children":2954},{"style":621},[2955],{"type":47,"value":2956}," N ",{"type":41,"tag":582,"props":2958,"children":2959},{"style":610},[2960],{"type":47,"value":2927},{"type":41,"tag":582,"props":2962,"children":2963},{"class":584,"line":1226},[2964,2968,2973,2977,2981],{"type":41,"tag":582,"props":2965,"children":2966},{"style":610},[2967],{"type":47,"value":2908},{"type":41,"tag":582,"props":2969,"children":2970},{"style":621},[2971],{"type":47,"value":2972}," HIGH ",{"type":41,"tag":582,"props":2974,"children":2975},{"style":610},[2976],{"type":47,"value":2908},{"type":41,"tag":582,"props":2978,"children":2979},{"style":621},[2980],{"type":47,"value":2956},{"type":41,"tag":582,"props":2982,"children":2983},{"style":610},[2984],{"type":47,"value":2927},{"type":41,"tag":582,"props":2986,"children":2987},{"class":584,"line":1265},[2988,2992,2997,3001,3005],{"type":41,"tag":582,"props":2989,"children":2990},{"style":610},[2991],{"type":47,"value":2908},{"type":41,"tag":582,"props":2993,"children":2994},{"style":621},[2995],{"type":47,"value":2996}," MEDIUM ",{"type":41,"tag":582,"props":2998,"children":2999},{"style":610},[3000],{"type":47,"value":2908},{"type":41,"tag":582,"props":3002,"children":3003},{"style":621},[3004],{"type":47,"value":2956},{"type":41,"tag":582,"props":3006,"children":3007},{"style":610},[3008],{"type":47,"value":2927},{"type":41,"tag":582,"props":3010,"children":3011},{"class":584,"line":1325},[3012,3016,3021,3025,3029],{"type":41,"tag":582,"props":3013,"children":3014},{"style":610},[3015],{"type":47,"value":2908},{"type":41,"tag":582,"props":3017,"children":3018},{"style":621},[3019],{"type":47,"value":3020}," LOW ",{"type":41,"tag":582,"props":3022,"children":3023},{"style":610},[3024],{"type":47,"value":2908},{"type":41,"tag":582,"props":3026,"children":3027},{"style":621},[3028],{"type":47,"value":2956},{"type":41,"tag":582,"props":3030,"children":3031},{"style":610},[3032],{"type":47,"value":2927},{"type":41,"tag":582,"props":3034,"children":3036},{"class":584,"line":3035},15,[3037],{"type":41,"tag":582,"props":3038,"children":3039},{"emptyLinePlaceholder":2790},[3040],{"type":47,"value":2793},{"type":41,"tag":582,"props":3042,"children":3044},{"class":584,"line":3043},16,[3045,3049],{"type":41,"tag":582,"props":3046,"children":3047},{"style":610},[3048],{"type":47,"value":2895},{"type":41,"tag":582,"props":3050,"children":3051},{"style":589},[3052],{"type":47,"value":3053},"Findings\n",{"type":41,"tag":582,"props":3055,"children":3057},{"class":584,"line":3056},17,[3058],{"type":41,"tag":582,"props":3059,"children":3060},{"emptyLinePlaceholder":2790},[3061],{"type":47,"value":2793},{"type":41,"tag":582,"props":3063,"children":3065},{"class":584,"line":3064},18,[3066,3071],{"type":41,"tag":582,"props":3067,"children":3068},{"style":610},[3069],{"type":47,"value":3070},"### ",{"type":41,"tag":582,"props":3072,"children":3073},{"style":589},[3074],{"type":47,"value":3075},"🟣 CRITICAL: {name}\n",{"type":41,"tag":582,"props":3077,"children":3079},{"class":584,"line":3078},19,[3080,3085,3090,3095,3099],{"type":41,"tag":582,"props":3081,"children":3082},{"style":610},[3083],{"type":47,"value":3084},"-",{"type":41,"tag":582,"props":3086,"children":3087},{"style":2799},[3088],{"type":47,"value":3089}," **",{"type":41,"tag":582,"props":3091,"children":3092},{"style":2805},[3093],{"type":47,"value":3094},"ID",{"type":41,"tag":582,"props":3096,"children":3097},{"style":2799},[3098],{"type":47,"value":2802},{"type":41,"tag":582,"props":3100,"children":3101},{"style":621},[3102],{"type":47,"value":3103},": {findingId}\n",{"type":41,"tag":582,"props":3105,"children":3107},{"class":584,"line":3106},20,[3108,3112,3116,3121,3125],{"type":41,"tag":582,"props":3109,"children":3110},{"style":610},[3111],{"type":47,"value":3084},{"type":41,"tag":582,"props":3113,"children":3114},{"style":2799},[3115],{"type":47,"value":3089},{"type":41,"tag":582,"props":3117,"children":3118},{"style":2805},[3119],{"type":47,"value":3120},"Risk type",{"type":41,"tag":582,"props":3122,"children":3123},{"style":2799},[3124],{"type":47,"value":2802},{"type":41,"tag":582,"props":3126,"children":3127},{"style":621},[3128],{"type":47,"value":3129},": {riskType}\n",{"type":41,"tag":582,"props":3131,"children":3133},{"class":584,"line":3132},21,[3134,3138,3142,3147,3151],{"type":41,"tag":582,"props":3135,"children":3136},{"style":610},[3137],{"type":47,"value":3084},{"type":41,"tag":582,"props":3139,"children":3140},{"style":2799},[3141],{"type":47,"value":3089},{"type":41,"tag":582,"props":3143,"children":3144},{"style":2805},[3145],{"type":47,"value":3146},"Confidence",{"type":41,"tag":582,"props":3148,"children":3149},{"style":2799},[3150],{"type":47,"value":2802},{"type":41,"tag":582,"props":3152,"children":3153},{"style":621},[3154],{"type":47,"value":3155},": {confidence}\n",{"type":41,"tag":582,"props":3157,"children":3159},{"class":584,"line":3158},22,[3160,3164,3168,3173,3177],{"type":41,"tag":582,"props":3161,"children":3162},{"style":610},[3163],{"type":47,"value":3084},{"type":41,"tag":582,"props":3165,"children":3166},{"style":2799},[3167],{"type":47,"value":3089},{"type":41,"tag":582,"props":3169,"children":3170},{"style":2805},[3171],{"type":47,"value":3172},"Status",{"type":41,"tag":582,"props":3174,"children":3175},{"style":2799},[3176],{"type":47,"value":2802},{"type":41,"tag":582,"props":3178,"children":3179},{"style":621},[3180],{"type":47,"value":3181},": {status}\n",{"type":41,"tag":582,"props":3183,"children":3185},{"class":584,"line":3184},23,[3186,3190,3194,3199,3203,3208,3213,3218],{"type":41,"tag":582,"props":3187,"children":3188},{"style":610},[3189],{"type":47,"value":3084},{"type":41,"tag":582,"props":3191,"children":3192},{"style":2799},[3193],{"type":47,"value":3089},{"type":41,"tag":582,"props":3195,"children":3196},{"style":2805},[3197],{"type":47,"value":3198},"Location",{"type":41,"tag":582,"props":3200,"children":3201},{"style":2799},[3202],{"type":47,"value":2802},{"type":41,"tag":582,"props":3204,"children":3205},{"style":621},[3206],{"type":47,"value":3207},": ",{"type":41,"tag":582,"props":3209,"children":3210},{"style":610},[3211],{"type":47,"value":3212},"`",{"type":41,"tag":582,"props":3214,"children":3215},{"style":594},[3216],{"type":47,"value":3217},"{filePath}:{lineStart}-{lineEnd}",{"type":41,"tag":582,"props":3219,"children":3220},{"style":610},[3221],{"type":47,"value":3222},"`\n",{"type":41,"tag":582,"props":3224,"children":3226},{"class":584,"line":3225},24,[3227],{"type":41,"tag":582,"props":3228,"children":3229},{"emptyLinePlaceholder":2790},[3230],{"type":47,"value":2793},{"type":41,"tag":582,"props":3232,"children":3234},{"class":584,"line":3233},25,[3235,3239,3244,3248],{"type":41,"tag":582,"props":3236,"children":3237},{"style":2799},[3238],{"type":47,"value":2802},{"type":41,"tag":582,"props":3240,"children":3241},{"style":2805},[3242],{"type":47,"value":3243},"Description",{"type":41,"tag":582,"props":3245,"children":3246},{"style":2799},[3247],{"type":47,"value":2802},{"type":41,"tag":582,"props":3249,"children":3250},{"style":621},[3251],{"type":47,"value":3252},": {description}\n",{"type":41,"tag":582,"props":3254,"children":3256},{"class":584,"line":3255},26,[3257],{"type":41,"tag":582,"props":3258,"children":3259},{"emptyLinePlaceholder":2790},[3260],{"type":47,"value":2793},{"type":41,"tag":582,"props":3262,"children":3264},{"class":584,"line":3263},27,[3265,3269,3274,3278],{"type":41,"tag":582,"props":3266,"children":3267},{"style":2799},[3268],{"type":47,"value":2802},{"type":41,"tag":582,"props":3270,"children":3271},{"style":2805},[3272],{"type":47,"value":3273},"Remediation",{"type":41,"tag":582,"props":3275,"children":3276},{"style":2799},[3277],{"type":47,"value":2802},{"type":41,"tag":582,"props":3279,"children":3280},{"style":621},[3281],{"type":47,"value":3282},":\n",{"type":41,"tag":582,"props":3284,"children":3286},{"class":584,"line":3285},28,[3287],{"type":41,"tag":582,"props":3288,"children":3289},{"style":621},[3290],{"type":47,"value":3291},"{remediationCode or remediation guidance from description}\n",{"type":41,"tag":582,"props":3293,"children":3295},{"class":584,"line":3294},29,[3296],{"type":41,"tag":582,"props":3297,"children":3298},{"emptyLinePlaceholder":2790},[3299],{"type":47,"value":2793},{"type":41,"tag":582,"props":3301,"children":3303},{"class":584,"line":3302},30,[3304],{"type":41,"tag":582,"props":3305,"children":3306},{"style":621},[3307],{"type":47,"value":3308},"(repeat for every finding)\n",{"type":41,"tag":50,"props":3310,"children":3311},{},[3312,3314,3319],{"type":47,"value":3313},"Tell user: \"Full details written to ",{"type":41,"tag":60,"props":3315,"children":3317},{"className":3316},[],[3318],{"type":47,"value":2446},{"type":47,"value":899},{"type":41,"tag":191,"props":3321,"children":3323},{"id":3322},"_6-follow-ups",[3324],{"type":47,"value":3325},"6. Follow-ups",{"type":41,"tag":50,"props":3327,"children":3328},{},[3329],{"type":47,"value":3330},"Ask:",{"type":41,"tag":198,"props":3332,"children":3333},{},[3334,3339,3344],{"type":41,"tag":202,"props":3335,"children":3336},{},[3337],{"type":47,"value":3338},"\"Would you like to focus on the critical\u002Fhigh findings first?\"",{"type":41,"tag":202,"props":3340,"children":3341},{},[3342],{"type":47,"value":3343},"\"Should I explain any of these in more detail?\"",{"type":41,"tag":202,"props":3345,"children":3346},{},[3347],{"type":47,"value":3348},"\"Want me to fix these issues?\"",{"type":41,"tag":50,"props":3350,"children":3351},{},[3352],{"type":47,"value":3353},"For fixes: read the finding's description and code location, then synthesize and apply the fix via the Edit tool.",{"type":41,"tag":77,"props":3355,"children":3356},{},[],{"type":41,"tag":81,"props":3358,"children":3360},{"id":3359},"workflow-stop-a-scan",[3361],{"type":47,"value":3362},"Workflow: Stop a scan",{"type":41,"tag":50,"props":3364,"children":3365},{},[3366],{"type":47,"value":3367},"User says \"stop the scan\":",{"type":41,"tag":571,"props":3369,"children":3371},{"className":573,"code":3370,"language":575,"meta":576,"style":576},"aws securityagent stop-code-review-job --agent-space-id \u003Cid> --code-review-job-id \u003Cjob_id>\n",[3372],{"type":41,"tag":60,"props":3373,"children":3374},{"__ignoreMap":576},[3375],{"type":41,"tag":582,"props":3376,"children":3377},{"class":584,"line":585},[3378,3382,3386,3391,3395,3399,3403,3407,3411,3415,3419,3423,3427],{"type":41,"tag":582,"props":3379,"children":3380},{"style":589},[3381],{"type":47,"value":8},{"type":41,"tag":582,"props":3383,"children":3384},{"style":594},[3385],{"type":47,"value":597},{"type":41,"tag":582,"props":3387,"children":3388},{"style":594},[3389],{"type":47,"value":3390}," stop-code-review-job",{"type":41,"tag":582,"props":3392,"children":3393},{"style":594},[3394],{"type":47,"value":1567},{"type":41,"tag":582,"props":3396,"children":3397},{"style":610},[3398],{"type":47,"value":613},{"type":41,"tag":582,"props":3400,"children":3401},{"style":594},[3402],{"type":47,"value":618},{"type":41,"tag":582,"props":3404,"children":3405},{"style":621},[3406],{"type":47,"value":624},{"type":41,"tag":582,"props":3408,"children":3409},{"style":610},[3410],{"type":47,"value":1476},{"type":41,"tag":582,"props":3412,"children":3413},{"style":594},[3414],{"type":47,"value":2580},{"type":41,"tag":582,"props":3416,"children":3417},{"style":610},[3418],{"type":47,"value":613},{"type":41,"tag":582,"props":3420,"children":3421},{"style":594},[3422],{"type":47,"value":2335},{"type":41,"tag":582,"props":3424,"children":3425},{"style":621},[3426],{"type":47,"value":624},{"type":41,"tag":582,"props":3428,"children":3429},{"style":610},[3430],{"type":47,"value":629},{"type":41,"tag":50,"props":3432,"children":3433},{},[3434,3435,3440,3442,3447],{"type":47,"value":2500},{"type":41,"tag":60,"props":3436,"children":3438},{"className":3437},[],[3439],{"type":47,"value":1859},{"type":47,"value":3441}," status to ",{"type":41,"tag":60,"props":3443,"children":3445},{"className":3444},[],[3446],{"type":47,"value":2390},{"type":47,"value":552},{"type":41,"tag":77,"props":3449,"children":3450},{},[],{"type":41,"tag":81,"props":3452,"children":3454},{"id":3453},"workflow-list-recent-scans",[3455],{"type":47,"value":3456},"Workflow: List recent scans",{"type":41,"tag":50,"props":3458,"children":3459},{},[3460],{"type":47,"value":3461},"User asks \"show my recent scans\" \u002F \"list scans\":",{"type":41,"tag":50,"props":3463,"children":3464},{},[3465,3466,3471],{"type":47,"value":166},{"type":41,"tag":60,"props":3467,"children":3469},{"className":3468},[],[3470],{"type":47,"value":172},{"type":47,"value":3472},". Show in a compact table:",{"type":41,"tag":88,"props":3474,"children":3475},{},[3476,3504],{"type":41,"tag":92,"props":3477,"children":3478},{},[3479],{"type":41,"tag":96,"props":3480,"children":3481},{},[3482,3486,3491,3495,3499],{"type":41,"tag":100,"props":3483,"children":3484},{},[3485],{"type":47,"value":1843},{"type":41,"tag":100,"props":3487,"children":3488},{},[3489],{"type":47,"value":3490},"type",{"type":41,"tag":100,"props":3492,"children":3493},{},[3494],{"type":47,"value":2075},{"type":41,"tag":100,"props":3496,"children":3497},{},[3498],{"type":47,"value":2186},{"type":41,"tag":100,"props":3500,"children":3501},{},[3502],{"type":47,"value":3503},"started",{"type":41,"tag":111,"props":3505,"children":3506},{},[3507,3532],{"type":41,"tag":96,"props":3508,"children":3509},{},[3510,3515,3519,3523,3527],{"type":41,"tag":118,"props":3511,"children":3512},{},[3513],{"type":47,"value":3514},"scan-abc",{"type":41,"tag":118,"props":3516,"children":3517},{},[3518],{"type":47,"value":2055},{"type":41,"tag":118,"props":3520,"children":3521},{},[3522],{"type":47,"value":2092},{"type":41,"tag":118,"props":3524,"children":3525},{},[3526],{"type":47,"value":2368},{"type":41,"tag":118,"props":3528,"children":3529},{},[3530],{"type":47,"value":3531},"2h ago",{"type":41,"tag":96,"props":3533,"children":3534},{},[3535,3540,3544,3549,3553],{"type":41,"tag":118,"props":3536,"children":3537},{},[3538],{"type":47,"value":3539},"scan-def",{"type":41,"tag":118,"props":3541,"children":3542},{},[3543],{"type":47,"value":2055},{"type":41,"tag":118,"props":3545,"children":3546},{},[3547],{"type":47,"value":3548},"pre-cr-feature-x",{"type":41,"tag":118,"props":3550,"children":3551},{},[3552],{"type":47,"value":2383},{"type":41,"tag":118,"props":3554,"children":3555},{},[3556],{"type":47,"value":3557},"1d ago",{"type":41,"tag":77,"props":3559,"children":3560},{},[],{"type":41,"tag":81,"props":3562,"children":3564},{"id":3563},"rules",[3565],{"type":47,"value":3566},"Rules",{"type":41,"tag":198,"props":3568,"children":3569},{},[3570,3575,3580,3592,3597,3602],{"type":41,"tag":202,"props":3571,"children":3572},{},[3573],{"type":47,"value":3574},"Always run pre-scan checks (config exists + agent space verified) before any scan",{"type":41,"tag":202,"props":3576,"children":3577},{},[3578],{"type":47,"value":3579},"Scan APIs return immediately — poll status every 5 minutes",{"type":41,"tag":202,"props":3581,"children":3582},{},[3583,3585,3590],{"type":47,"value":3584},"Use the most recent scan in ",{"type":41,"tag":60,"props":3586,"children":3588},{"className":3587},[],[3589],{"type":47,"value":1859},{"type":47,"value":3591}," if the user doesn't name one",{"type":41,"tag":202,"props":3593,"children":3594},{},[3595],{"type":47,"value":3596},"Title must not contain spaces — use hyphens. Default to git branch name.",{"type":41,"tag":202,"props":3598,"children":3599},{},[3600],{"type":47,"value":3601},"Don't dump raw JSON — format with severity icons + file locations",{"type":41,"tag":202,"props":3603,"children":3604},{},[3605,3606,3611,3612,3617],{"type":47,"value":2407},{"type":41,"tag":60,"props":3607,"children":3609},{"className":3608},[],[3610],{"type":47,"value":1824},{"type":47,"value":465},{"type":41,"tag":60,"props":3613,"children":3615},{"className":3614},[],[3616],{"type":47,"value":499},{"type":47,"value":3618},", recreate the CodeReview and retry once",{"type":41,"tag":77,"props":3620,"children":3621},{},[],{"type":41,"tag":81,"props":3623,"children":3625},{"id":3624},"troubleshooting",[3626],{"type":47,"value":3627},"Troubleshooting",{"type":41,"tag":198,"props":3629,"children":3630},{},[3631,3655,3677,3692,3709],{"type":41,"tag":202,"props":3632,"children":3633},{},[3634,3646,3648,3653],{"type":41,"tag":56,"props":3635,"children":3636},{},[3637,3639,3644],{"type":47,"value":3638},"\"Not configured\" \u002F ",{"type":41,"tag":60,"props":3640,"children":3642},{"className":3641},[],[3643],{"type":47,"value":258},{"type":47,"value":3645}," missing",{"type":47,"value":3647}," → run ",{"type":41,"tag":60,"props":3649,"children":3651},{"className":3650},[],[3652],{"type":47,"value":65},{"type":47,"value":3654}," skill first",{"type":41,"tag":202,"props":3656,"children":3657},{},[3658,3675],{"type":41,"tag":56,"props":3659,"children":3660},{},[3661,3667,3669],{"type":41,"tag":60,"props":3662,"children":3664},{"className":3663},[],[3665],{"type":47,"value":3666},"AccessDenied",{"type":47,"value":3668}," on ",{"type":41,"tag":60,"props":3670,"children":3672},{"className":3671},[],[3673],{"type":47,"value":3674},"s3 cp",{"type":47,"value":3676}," → bucket not registered on agent space, or trust policy wrong. Re-run setup.",{"type":41,"tag":202,"props":3678,"children":3679},{},[3680,3690],{"type":41,"tag":56,"props":3681,"children":3682},{},[3683,3688],{"type":41,"tag":60,"props":3684,"children":3686},{"className":3685},[],[3687],{"type":47,"value":1824},{"type":47,"value":3689}," on agent space",{"type":47,"value":3691}," → it was deleted. Re-run setup.",{"type":41,"tag":202,"props":3693,"children":3694},{},[3695,3700,3702,3707],{"type":41,"tag":56,"props":3696,"children":3697},{},[3698],{"type":47,"value":3699},"Scan stuck in PREFLIGHT for >10 min",{"type":47,"value":3701}," → backend issue, not client. Show ",{"type":41,"tag":60,"props":3703,"children":3705},{"className":3704},[],[3706],{"type":47,"value":2493},{"type":47,"value":3708}," output and tell user to escalate.",{"type":41,"tag":202,"props":3710,"children":3711},{},[3712,3717],{"type":41,"tag":56,"props":3713,"children":3714},{},[3715],{"type":47,"value":3716},"Code too large (zip > 2 GB)",{"type":47,"value":3718}," → run on a subdirectory instead.",{"type":41,"tag":3720,"props":3721,"children":3722},"style",{},[3723],{"type":47,"value":3724},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":3726,"total":3893},[3727,3744,3759,3772,3787,3797,3810,3826,3843,3856,3868,3883],{"slug":3728,"name":3728,"fn":3729,"description":3730,"org":3731,"tags":3732,"stars":24,"repoUrl":25,"updatedAt":3743},"agents-build","add capabilities to existing agent projects","Use when adding capabilities to an existing agent project — memory, app integration, VPC, multi-agent, migration, model changes, browser, code interpreter, or resource removal. Triggers on: \"add memory\", \"remember across sessions\", \"call agent from app\", \"invoke agent from code\", \"auth to call agent\", \"streaming responses\", \"VPC\", \"VPC connectivity\", \"VPC error\", \"can't reach from VPC\", \"multi-agent\", \"A2A\", \"A2A auth\", \"orchestrator not delegating\", \"specialist not called\", \"migrate Bedrock Agent\", \"after import\", \"migration issue\", \"framework for migration\", \"change model\", \"browser tool\", \"code interpreter\", \"delete agent\", \"tear down\", \"agentcore remove\", \"cross-account memory\", \"resource-based policy on memory\", \"pay for x402 content\", \"402 Payment Required\", \"microtransactions\", \"paid API or tool\". Not for connecting to external APIs via Gateway — use agents-connect. Not for scaffolding a new project — use agents-get-started. Not for CLI\u002Fdev server errors — use agents-debug. Strands vs LangGraph in a migration context routes here.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3733,3736,3739,3740],{"name":3734,"slug":3735,"type":15},"Agents","agents",{"name":3737,"slug":3738,"type":15},"Automation","automation",{"name":17,"slug":8,"type":15},{"name":3741,"slug":3742,"type":15},"Engineering","engineering","2026-07-12T08:42:53.812877",{"slug":3745,"name":3745,"fn":3746,"description":3747,"org":3748,"tags":3749,"stars":24,"repoUrl":25,"updatedAt":3758},"agents-connect","connect agents to external services","Use when connecting your agent to external APIs, tools, or services via Gateway, or restricting tool access with Cedar policies. Handles gateway setup, target types, outbound auth (OAuth, API key, IAM), credentials, and Cedar policy authoring. Triggers on: \"connect to API\", \"add gateway\", \"connect to MCP server\", \"Lambda tools\", \"OpenAPI\", \"gateway target\", \"Cedar policy\", \"restrict tools\", \"policy engine\", \"gateway auth error\", \"store API key\", \"outbound credential\", \"env var API key\", \"API key None after deploy\", \"credential not available after deploy\", \"should this be a gateway target\", \"give my agent tools\", \"add tools to agent\". Not for inbound auth (who can call your agent) — use agents-harden. Not for debugging agent behavior — use agents-debug. Not for VPC networking errors (agent can't reach APIs due to VPC) — use agents-build. Not for creating or hosting a new MCP server project — use agents-get-started.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3750,3751,3754,3757],{"name":3734,"slug":3735,"type":15},{"name":3752,"slug":3753,"type":15},"API Development","api-development",{"name":3755,"slug":3756,"type":15},"Authentication","authentication",{"name":17,"slug":8,"type":15},"2026-07-16T06:00:38.866147",{"slug":3760,"name":3760,"fn":3761,"description":3762,"org":3763,"tags":3764,"stars":24,"repoUrl":25,"updatedAt":3771},"agents-debug","debug agent and environment issues","Use when your agent or environment is broken — wrong answers, errors, timeouts, tool failures, or CLI issues. Reads traces and logs to diagnose root causes. Also checks prerequisites when the CLI itself isn't working. Triggers on: \"agent not working\", \"wrong answer\", \"agent error\", \"tool call failing\", \"debug agent\", \"check logs\", \"read traces\", \"broken\", \"500 error\", \"424 error\", \"model access denied\", \"command not found\", \"stuck in DELETING\", \"maxVms exceeded\", \"cold start diagnosis\", \"cold start slow\", \"agentcore create error\", \"create failed\", \"exit code 7\", \"connection refused local dev\". Not for deploy failures — use agents-deploy. Not for performance tuning without errors — use agents-optimize. Not for VPC configuration — use agents-build. Not for observability setup or missing logs — use agents-optimize.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3765,3766,3767,3768],{"name":3734,"slug":3735,"type":15},{"name":17,"slug":8,"type":15},{"name":22,"slug":23,"type":15},{"name":3769,"slug":3770,"type":15},"Observability","observability","2026-07-16T06:00:44.679093",{"slug":3773,"name":3773,"fn":3774,"description":3775,"org":3776,"tags":3777,"stars":24,"repoUrl":25,"updatedAt":3786},"agents-deploy","deploy AI agents to AWS","Use when deploying your agent to AWS, or when a deploy has failed. Handles pre-flight validation, CDK\u002FIAM\u002Fquota error diagnosis, version management, rollback, and canary deployments. Triggers on: \"deploy my agent\", \"agentcore deploy\", \"deploy failed\", \"CDK error\", \"rollback\", \"canary deploy\", \"pin version\", \"redeploy\", \"deploy stuck\". Not for production hardening — use agents-harden. Not for adding capabilities before deploy — use agents-build or agents-connect. Not for VPC configuration errors — use agents-build.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3778,3779,3780,3783],{"name":3734,"slug":3735,"type":15},{"name":17,"slug":8,"type":15},{"name":3781,"slug":3782,"type":15},"CI\u002FCD","ci-cd",{"name":3784,"slug":3785,"type":15},"Deployment","deployment","2026-07-12T08:42:55.059577",{"slug":3788,"name":3788,"fn":3789,"description":3790,"org":3791,"tags":3792,"stars":24,"repoUrl":25,"updatedAt":3796},"agents-get-started","scaffold and deploy new agent projects","Use when a developer wants to create a new agent project or get started with AgentCore. Handles framework selection, project scaffolding, first deploy, and first invocation. Triggers on: \"build an agent\", \"create an agent\", \"get started\", \"new project\", \"agentcore create\", \"which framework\", \"Strands vs LangGraph\", \"hello world agent\", \"first agent\", \"create MCP server\", \"host MCP server\", \"agentcore dev\", \"dev server\", \"what port\", \"local development\". Not for adding capabilities to existing projects — use agents-build or agents-connect. Strands vs LangGraph in a migration context routes to agents-build, not here. Connecting to an existing MCP server routes to agents-connect, not here.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3793,3794,3795],{"name":3734,"slug":3735,"type":15},{"name":17,"slug":8,"type":15},{"name":3784,"slug":3785,"type":15},"2026-07-12T08:42:51.963247",{"slug":3798,"name":3798,"fn":3799,"description":3800,"org":3801,"tags":3802,"stars":24,"repoUrl":25,"updatedAt":3809},"agents-harden","harden agents for production","Use when preparing your agent for production — IAM scoping, inbound auth (JWT, SigV4), secrets management, cold start optimization, session lifecycle, rate limiting, input validation, and quota guidance. Triggers on: \"production checklist\", \"harden agent\", \"production ready\", \"secure agent\", \"inbound auth\", \"going live\", \"cold start optimization\", \"session lifecycle\", \"StopRuntimeSession\", \"quota\", \"throttling\", \"maxVms\", \"rate limit\", \"security audit of outbound API calls\", \"gateway target audit for production\", \"restrict who can call\", \"lock down endpoint\", \"only our app can call\". Not for Cedar tool-restriction policies — use agents-connect. Not for quality measurement — use agents-optimize. Not for outbound credential storage or API key wiring — use agents-connect. Not for A2A agent-to-agent auth — use agents-build. Cold start observation and diagnosis (not optimization) routes to agents-debug.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3803,3804,3805,3808],{"name":3734,"slug":3735,"type":15},{"name":17,"slug":8,"type":15},{"name":3806,"slug":3807,"type":15},"Best Practices","best-practices",{"name":13,"slug":14,"type":15},"2026-07-16T06:00:42.174705",{"slug":3811,"name":3811,"fn":3812,"description":3813,"org":3814,"tags":3815,"stars":24,"repoUrl":25,"updatedAt":3825},"agents-optimize","optimize agent quality and performance","Use when measuring or improving agent quality and performance — set up evaluators, online monitoring, CI\u002FCD quality gates, observability, or cost optimization. Triggers on: \"evaluate my agent\", \"add evaluator\", \"measure quality\", \"quality gate\", \"run evals\", \"agent too slow\", \"why is it slow\", \"reduce latency\", \"set up observability\", \"CloudWatch dashboard\", \"how much does my agent cost\", \"cost optimization\", \"logs not showing up\", \"logs missing\", \"spans not found\", \"eval failing\", \"eval error\", \"dev traces\", \"local traces\", \"agentcore dev traces\", \"traces to CloudWatch\". Not for debugging errors or crashes — use agents-debug. Slow but correct routes here; broken routes to debug.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3816,3817,3818,3821,3822],{"name":3734,"slug":3735,"type":15},{"name":17,"slug":8,"type":15},{"name":3819,"slug":3820,"type":15},"Evals","evals",{"name":3769,"slug":3770,"type":15},{"name":3823,"slug":3824,"type":15},"Performance","performance","2026-07-12T08:42:56.488105",{"slug":3827,"name":3827,"fn":3828,"description":3829,"org":3830,"tags":3831,"stars":24,"repoUrl":25,"updatedAt":3842},"amazon-aurora-mysql","manage Amazon Aurora MySQL clusters","Amazon Aurora MySQL — creates, modifies, and advises on Aurora MySQL clusters specifically (MySQL-compatible engine, Aurora serverless, parallel query). Trigger for Aurora MySQL cluster operations, ACU sizing, I\u002FO-Optimized storage, commitment pricing, or MySQL upgrade planning. Aurora MySQL uses full (VPC-based) configuration — express configuration is PostgreSQL-only. For Aurora PostgreSQL, use amazon-aurora-postgresql instead. Contains safety guardrails and response templates that override defaults.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3832,3833,3836,3839],{"name":17,"slug":8,"type":15},{"name":3834,"slug":3835,"type":15},"Database","database",{"name":3837,"slug":3838,"type":15},"MySQL","mysql",{"name":3840,"slug":3841,"type":15},"Serverless","serverless","2026-07-12T08:43:13.27939",{"slug":3844,"name":3844,"fn":3845,"description":3846,"org":3847,"tags":3848,"stars":24,"repoUrl":25,"updatedAt":3855},"amazon-aurora-postgresql","configure Amazon Aurora PostgreSQL clusters","Amazon Aurora PostgreSQL — creates, modifies, and advises on Aurora PostgreSQL clusters specifically (PostgreSQL-compatible engine, Aurora serverless, express configuration, pgvector, Babelfish). Trigger for Aurora PostgreSQL cluster operations, express-configuration quick-start, ACU sizing, I\u002FO-Optimized storage, commitment pricing, or PostgreSQL upgrade planning. For Aurora MySQL, use amazon-aurora-mysql instead. Contains safety guardrails, express-first routing, and response templates that override defaults.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3849,3850,3851,3854],{"name":17,"slug":8,"type":15},{"name":3834,"slug":3835,"type":15},{"name":3852,"slug":3853,"type":15},"PostgreSQL","postgresql",{"name":3840,"slug":3841,"type":15},"2026-07-16T06:00:34.789624",{"slug":3857,"name":3857,"fn":3858,"description":3859,"org":3860,"tags":3861,"stars":24,"repoUrl":25,"updatedAt":3867},"amazon-bedrock","build generative AI apps with Amazon Bedrock","Builds generative AI applications on Amazon Bedrock. Covers model invocation (Converse API, InvokeModel), RAG with Knowledge Bases, Bedrock Agents, Guardrails, and AgentCore. Use when invoking models, setting up Knowledge Bases, creating agents, applying guardrails, deploying to AgentCore, migrating\u002Fporting\u002Fconverting a Bedrock Agent (including inline agents) to an AgentCore Harness, troubleshooting Bedrock errors (ThrottlingException, AccessDeniedException), or choosing models (Claude, Llama, Nova, Titan). ALSO USE for prompt caching setup and debugging, quota health checks and throttling diagnosis, cost attribution and tracking, migrating between Claude model generations (4.5 to 4.6 to 4.7), chunking strategies, API selection (Converse vs InvokeModel), guardrail capabilities, and model selection. Also covers AgentCore Payments setup (x402, microtransactions, Payment Manager, Connector, Instrument, Coinbase CDP, Stripe Privy, 402 Payment Required, pay for content, paid endpoint, agent payments). NOT for custom model training, Rekognition, or Comprehend.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3862,3863,3864],{"name":3734,"slug":3735,"type":15},{"name":17,"slug":8,"type":15},{"name":3865,"slug":3866,"type":15},"LLM","llm","2026-07-25T05:30:35.20899",{"slug":3869,"name":3869,"fn":3870,"description":3871,"org":3872,"tags":3873,"stars":24,"repoUrl":25,"updatedAt":3882},"amazon-documentdb","manage Amazon DocumentDB clusters","Manages Amazon DocumentDB end-to-end — serverless-on-8.0 cluster setup, TLS\u002FVPC\u002Fdriver config, flexible-schema and vector-search data modeling, MongoDB compatibility assessment, DMS-based migration, slow-query diagnosis, major version upgrades (4.0→5.0→8.0), Well-Architected reviews (41-check wa_review.py), cost estimation, and security hardening. Retrieve for every DocumentDB question and when the user asks to set up or migrate MongoDB to AWS — DocumentDB is AWS's MongoDB-compatible managed database. Triggers: JSON document store, document database, MongoDB on AWS, Nested fields, Lambda cannot connect, TLS handshake, VPC port 27017, IAM auth, Secrets Manager, encryption at rest, $graphLookup, flexible schema, COLLSCAN, compound index, DMS migration, CDC cutover, $vectorSearch, RAG, Global Clusters, DR replication, cost sizing, audit, health check, production-readiness.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3874,3875,3876,3879],{"name":17,"slug":8,"type":15},{"name":3834,"slug":3835,"type":15},{"name":3877,"slug":3878,"type":15},"MongoDB","mongodb",{"name":3880,"slug":3881,"type":15},"NoSQL","nosql","2026-07-12T08:43:00.455878",{"slug":3884,"name":3884,"fn":3885,"description":3886,"org":3887,"tags":3888,"stars":24,"repoUrl":25,"updatedAt":3892},"amazon-dynamodb","design and debug DynamoDB data layers","Designs, reviews, and debugs DynamoDB data layers from design axioms — enumerates access patterns, chooses partition\u002Fsort keys and GSIs, decides single-table vs. multi-table, configures Streams, Global Tables, TTL, and zero-ETL integrations to OpenSearch\u002FRedshift\u002FSageMaker Lakehouse, and produces a defensible data-layer design with a monthly cost estimate and optional live validation. Applies whenever a user is designing, reviewing, or refactoring anything backed by DynamoDB — schemas, access patterns, GSIs, single- vs. multi-table choices, Streams consumers, transactional outboxes, Global Tables, zero-ETL pipelines — even when they don't say \"axioms\" or \"design review.\" Also applies when debugging hot partitions, throttling, unbounded Scans, LWW conflicts, or surprise bills on DynamoDB workloads.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3889,3890,3891],{"name":17,"slug":8,"type":15},{"name":3834,"slug":3835,"type":15},{"name":3880,"slug":3881,"type":15},"2026-07-16T06:00:37.690386",115,{"items":3895,"total":3945},[3896,3903,3910,3917,3924,3930,3937],{"slug":3728,"name":3728,"fn":3729,"description":3730,"org":3897,"tags":3898,"stars":24,"repoUrl":25,"updatedAt":3743},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3899,3900,3901,3902],{"name":3734,"slug":3735,"type":15},{"name":3737,"slug":3738,"type":15},{"name":17,"slug":8,"type":15},{"name":3741,"slug":3742,"type":15},{"slug":3745,"name":3745,"fn":3746,"description":3747,"org":3904,"tags":3905,"stars":24,"repoUrl":25,"updatedAt":3758},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3906,3907,3908,3909],{"name":3734,"slug":3735,"type":15},{"name":3752,"slug":3753,"type":15},{"name":3755,"slug":3756,"type":15},{"name":17,"slug":8,"type":15},{"slug":3760,"name":3760,"fn":3761,"description":3762,"org":3911,"tags":3912,"stars":24,"repoUrl":25,"updatedAt":3771},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3913,3914,3915,3916],{"name":3734,"slug":3735,"type":15},{"name":17,"slug":8,"type":15},{"name":22,"slug":23,"type":15},{"name":3769,"slug":3770,"type":15},{"slug":3773,"name":3773,"fn":3774,"description":3775,"org":3918,"tags":3919,"stars":24,"repoUrl":25,"updatedAt":3786},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3920,3921,3922,3923],{"name":3734,"slug":3735,"type":15},{"name":17,"slug":8,"type":15},{"name":3781,"slug":3782,"type":15},{"name":3784,"slug":3785,"type":15},{"slug":3788,"name":3788,"fn":3789,"description":3790,"org":3925,"tags":3926,"stars":24,"repoUrl":25,"updatedAt":3796},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3927,3928,3929],{"name":3734,"slug":3735,"type":15},{"name":17,"slug":8,"type":15},{"name":3784,"slug":3785,"type":15},{"slug":3798,"name":3798,"fn":3799,"description":3800,"org":3931,"tags":3932,"stars":24,"repoUrl":25,"updatedAt":3809},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3933,3934,3935,3936],{"name":3734,"slug":3735,"type":15},{"name":17,"slug":8,"type":15},{"name":3806,"slug":3807,"type":15},{"name":13,"slug":14,"type":15},{"slug":3811,"name":3811,"fn":3812,"description":3813,"org":3938,"tags":3939,"stars":24,"repoUrl":25,"updatedAt":3825},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3940,3941,3942,3943,3944],{"name":3734,"slug":3735,"type":15},{"name":17,"slug":8,"type":15},{"name":3819,"slug":3820,"type":15},{"name":3769,"slug":3770,"type":15},{"name":3823,"slug":3824,"type":15},114]