@prestyj/cli 5.32.2 → 5.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -16
- package/assets/motion/skills/motion/SKILL.md +1 -1
- package/assets/skills/bulletproof/SKILL.md +72 -131
- package/assets/skills/bulletproof/references/agent-surface.md +22 -1
- package/assets/skills/bulletproof/references/audit-protocol.md +23 -6
- package/assets/skills/bulletproof/references/platform-playbooks.md +12 -0
- package/assets/skills/bulletproof/references/provenance.md +19 -2
- package/assets/skills/bulletproof/references/secure-defaults.md +13 -1
- package/assets/skills/bulletproof/references/supply-chain.md +8 -5
- package/assets/skills/bulletproof/references/threat-landscape.md +46 -57
- package/assets/skills/compliance-guard/SKILL.md +59 -212
- package/assets/skills/compliance-guard/references/artifacts.md +14 -1
- package/assets/skills/compliance-guard/references/eu-uk.md +17 -7
- package/assets/skills/compliance-guard/references/exposure-triage.md +16 -0
- package/assets/skills/compliance-guard/references/full-review.md +155 -0
- package/assets/skills/compliance-guard/references/lawsuit-vectors.md +14 -2
- package/assets/skills/compliance-guard/references/provenance.md +33 -2
- package/assets/skills/compliance-guard/references/sector-gates.md +15 -1
- package/assets/skills/compliance-guard/references/security-baseline.md +21 -34
- package/assets/skills/compliance-guard/references/trigger-map.md +15 -1
- package/assets/skills/compliance-guard/references/us.md +32 -8
- package/assets/skills/durable/SKILL.md +22 -29
- package/assets/skills/durable/references/agent-db-safety.md +2 -2
- package/assets/skills/durable/references/backups-and-runtime.md +6 -6
- package/assets/skills/durable/references/migrations-and-schema.md +5 -4
- package/assets/skills/lean/SKILL.md +36 -50
- package/assets/skills/lean/references/playbooks.md +9 -7
- package/dist/app-sidecar/app-settings.d.ts +5 -0
- package/dist/app-sidecar/app-settings.js +16 -0
- package/dist/app-sidecar/app-settings.js.map +1 -1
- package/dist/app-sidecar/auth-routes.js +45 -2
- package/dist/app-sidecar/auth-routes.js.map +1 -1
- package/dist/app-sidecar/autopilot-runner.d.ts +7 -0
- package/dist/app-sidecar/autopilot-runner.js +79 -19
- package/dist/app-sidecar/autopilot-runner.js.map +1 -1
- package/dist/app-sidecar/desktop-guidance.d.ts +1 -0
- package/dist/app-sidecar/desktop-guidance.js +27 -0
- package/dist/app-sidecar/desktop-guidance.js.map +1 -0
- package/dist/app-sidecar/history-routes.d.ts +6 -0
- package/dist/app-sidecar/history-routes.js +57 -2
- package/dist/app-sidecar/history-routes.js.map +1 -1
- package/dist/app-sidecar/history.d.ts +17 -0
- package/dist/app-sidecar/history.js.map +1 -1
- package/dist/app-sidecar/http.d.ts +1 -1
- package/dist/app-sidecar/http.js +2 -2
- package/dist/app-sidecar/http.js.map +1 -1
- package/dist/app-sidecar/integration-routes.js +4 -0
- package/dist/app-sidecar/integration-routes.js.map +1 -1
- package/dist/app-sidecar/live-preview/dev-url.d.ts +32 -0
- package/dist/app-sidecar/live-preview/dev-url.js +97 -0
- package/dist/app-sidecar/live-preview/dev-url.js.map +1 -0
- package/dist/app-sidecar/live-preview/frame-server.d.ts +31 -0
- package/dist/app-sidecar/live-preview/frame-server.js +193 -0
- package/dist/app-sidecar/live-preview/frame-server.js.map +1 -0
- package/dist/app-sidecar/live-preview/manager.d.ts +44 -0
- package/dist/app-sidecar/live-preview/manager.js +215 -0
- package/dist/app-sidecar/live-preview/manager.js.map +1 -0
- package/dist/app-sidecar/live-preview/proxy.d.ts +30 -0
- package/dist/app-sidecar/live-preview/proxy.js +235 -0
- package/dist/app-sidecar/live-preview/proxy.js.map +1 -0
- package/dist/app-sidecar/live-preview/routes.d.ts +4 -0
- package/dist/app-sidecar/live-preview/routes.js +52 -0
- package/dist/app-sidecar/live-preview/routes.js.map +1 -0
- package/dist/app-sidecar/live-preview/servers.d.ts +36 -0
- package/dist/app-sidecar/live-preview/servers.js +228 -0
- package/dist/app-sidecar/live-preview/servers.js.map +1 -0
- package/dist/app-sidecar/mcp-routes.js +9 -0
- package/dist/app-sidecar/mcp-routes.js.map +1 -1
- package/dist/app-sidecar/mcp-shell-command.d.ts +36 -0
- package/dist/app-sidecar/mcp-shell-command.js +302 -0
- package/dist/app-sidecar/mcp-shell-command.js.map +1 -0
- package/dist/app-sidecar/mcp-sync.d.ts +18 -0
- package/dist/app-sidecar/mcp-sync.js +38 -0
- package/dist/app-sidecar/mcp-sync.js.map +1 -0
- package/dist/app-sidecar/prompt-routes.js +58 -30
- package/dist/app-sidecar/prompt-routes.js.map +1 -1
- package/dist/app-sidecar/route-context.d.ts +13 -2
- package/dist/app-sidecar/run-control-routes.js +17 -3
- package/dist/app-sidecar/run-control-routes.js.map +1 -1
- package/dist/app-sidecar/session-routes.js +8 -0
- package/dist/app-sidecar/session-routes.js.map +1 -1
- package/dist/app-sidecar/shell-routes.d.ts +12 -0
- package/dist/app-sidecar/shell-routes.js +140 -0
- package/dist/app-sidecar/shell-routes.js.map +1 -0
- package/dist/app-sidecar/shell-runs.d.ts +103 -0
- package/dist/app-sidecar/shell-runs.js +268 -0
- package/dist/app-sidecar/shell-runs.js.map +1 -0
- package/dist/app-sidecar/shell-suggestions.d.ts +33 -0
- package/dist/app-sidecar/shell-suggestions.js +152 -0
- package/dist/app-sidecar/shell-suggestions.js.map +1 -0
- package/dist/app-sidecar/task-routes.js +1 -1
- package/dist/app-sidecar/task-routes.js.map +1 -1
- package/dist/app-sidecar/usage.js +26 -2
- package/dist/app-sidecar/usage.js.map +1 -1
- package/dist/app-sidecar/workspace-routes.js +35 -37
- package/dist/app-sidecar/workspace-routes.js.map +1 -1
- package/dist/app-sidecar-sessions.js +13 -3
- package/dist/app-sidecar-sessions.js.map +1 -1
- package/dist/app-sidecar.js +365 -96
- package/dist/app-sidecar.js.map +1 -1
- package/dist/chat-agents/index.d.ts +1 -1
- package/dist/chat-agents/index.js +1 -1
- package/dist/chat-agents/index.js.map +1 -1
- package/dist/chat-agents/shared.d.ts +4 -0
- package/dist/chat-agents/shared.js +8 -1
- package/dist/chat-agents/shared.js.map +1 -1
- package/dist/cli/mcp.js +19 -5
- package/dist/cli/mcp.js.map +1 -1
- package/dist/cli/shared.js +4 -0
- package/dist/cli/shared.js.map +1 -1
- package/dist/cli.js +41 -9
- package/dist/cli.js.map +1 -1
- package/dist/config.d.ts +22 -2
- package/dist/config.js +42 -97
- package/dist/config.js.map +1 -1
- package/dist/core/agent-session/mcp-tools.d.ts +17 -0
- package/dist/core/agent-session/mcp-tools.js +31 -0
- package/dist/core/agent-session/mcp-tools.js.map +1 -1
- package/dist/core/agent-session/verification-tracker.js +2 -10
- package/dist/core/agent-session/verification-tracker.js.map +1 -1
- package/dist/core/agent-session.d.ts +129 -11
- package/dist/core/agent-session.js +925 -171
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/agents.d.ts +0 -10
- package/dist/core/agents.js +5 -1
- package/dist/core/agents.js.map +1 -1
- package/dist/core/ask-user.d.ts +8 -0
- package/dist/core/ask-user.js +28 -6
- package/dist/core/ask-user.js.map +1 -1
- package/dist/core/autopilot-gate.js +2 -3
- package/dist/core/autopilot-gate.js.map +1 -1
- package/dist/core/bundled-agents.js +9 -29
- package/dist/core/bundled-agents.js.map +1 -1
- package/dist/core/cache-diagnostics.d.ts +4 -0
- package/dist/core/cache-diagnostics.js +4 -1
- package/dist/core/cache-diagnostics.js.map +1 -1
- package/dist/core/cache-expiry.d.ts +2 -0
- package/dist/core/cache-expiry.js +6 -0
- package/dist/core/cache-expiry.js.map +1 -1
- package/dist/core/checklist-items.d.ts +2 -10
- package/dist/core/checklist-items.js +14 -10
- package/dist/core/checklist-items.js.map +1 -1
- package/dist/core/checklist-prompt.d.ts +1 -1
- package/dist/core/checklist-prompt.js +1 -1
- package/dist/core/checkpoint-store.d.ts +17 -0
- package/dist/core/checkpoint-store.js +72 -0
- package/dist/core/checkpoint-store.js.map +1 -1
- package/dist/core/claude-code/complete.d.ts +35 -0
- package/dist/core/claude-code/complete.js +115 -0
- package/dist/core/claude-code/complete.js.map +1 -0
- package/dist/core/claude-code/events.d.ts +65 -0
- package/dist/core/claude-code/events.js +434 -0
- package/dist/core/claude-code/events.js.map +1 -0
- package/dist/core/claude-code/live-session.d.ts +92 -0
- package/dist/core/claude-code/live-session.js +519 -0
- package/dist/core/claude-code/live-session.js.map +1 -0
- package/dist/core/claude-code/loop.d.ts +9 -0
- package/dist/core/claude-code/loop.js +15 -0
- package/dist/core/claude-code/loop.js.map +1 -0
- package/dist/core/claude-code/session-sync.d.ts +28 -0
- package/dist/core/claude-code/session-sync.js +53 -0
- package/dist/core/claude-code/session-sync.js.map +1 -0
- package/dist/core/claude-code/tool-bridge.d.ts +49 -0
- package/dist/core/claude-code/tool-bridge.js +352 -0
- package/dist/core/claude-code/tool-bridge.js.map +1 -0
- package/dist/core/claude-code/transcripts.d.ts +29 -0
- package/dist/core/claude-code/transcripts.js +117 -0
- package/dist/core/claude-code/transcripts.js.map +1 -0
- package/dist/core/claude-code-version.d.ts +1 -1
- package/dist/core/claude-code-version.js +1 -1
- package/dist/core/claude-code-version.js.map +1 -1
- package/dist/core/code-retrieval.d.ts +1 -1
- package/dist/core/code-retrieval.js +2 -2
- package/dist/core/code-retrieval.js.map +1 -1
- package/dist/core/codex-request-shape.js +1 -1
- package/dist/core/compaction/compactor.d.ts +27 -1
- package/dist/core/compaction/compactor.js +143 -9
- package/dist/core/compaction/compactor.js.map +1 -1
- package/dist/core/compaction/plan-step-policy.d.ts +1 -1
- package/dist/core/compaction/plan-step-policy.js +1 -1
- package/dist/core/compaction/policy.d.ts +18 -0
- package/dist/core/compaction/policy.js +27 -7
- package/dist/core/compaction/policy.js.map +1 -1
- package/dist/core/compaction/tool-result-pruner.d.ts +20 -0
- package/dist/core/compaction/tool-result-pruner.js +25 -0
- package/dist/core/compaction/tool-result-pruner.js.map +1 -1
- package/dist/core/env-delta.d.ts +3 -3
- package/dist/core/env-delta.js +4 -5
- package/dist/core/env-delta.js.map +1 -1
- package/dist/core/extensions/plugin-bundles.d.ts +0 -9
- package/dist/core/extensions/plugin-bundles.js +0 -185
- package/dist/core/extensions/plugin-bundles.js.map +1 -1
- package/dist/core/goals-store.d.ts +9 -2
- package/dist/core/goals-store.js +111 -55
- package/dist/core/goals-store.js.map +1 -1
- package/dist/core/internal-diagnostics.d.ts +17 -0
- package/dist/core/internal-diagnostics.js +45 -0
- package/dist/core/internal-diagnostics.js.map +1 -1
- package/dist/core/language-detector.d.ts +2 -3
- package/dist/core/language-detector.js.map +1 -1
- package/dist/core/live-preview.d.ts +24 -0
- package/dist/core/live-preview.js +76 -0
- package/dist/core/live-preview.js.map +1 -0
- package/dist/core/local-endpoint-store.d.ts +4 -0
- package/dist/core/local-endpoint-store.js +31 -15
- package/dist/core/local-endpoint-store.js.map +1 -1
- package/dist/core/logger.d.ts +5 -0
- package/dist/core/logger.js +10 -2
- package/dist/core/logger.js.map +1 -1
- package/dist/core/lsp/edit-telemetry.js +3 -1
- package/dist/core/lsp/edit-telemetry.js.map +1 -1
- package/dist/core/lsp/manager.d.ts +15 -0
- package/dist/core/lsp/manager.js +31 -0
- package/dist/core/lsp/manager.js.map +1 -1
- package/dist/core/mcp/client.d.ts +9 -0
- package/dist/core/mcp/client.js +58 -5
- package/dist/core/mcp/client.js.map +1 -1
- package/dist/core/mcp/deferred-catalog.d.ts +1 -1
- package/dist/core/mcp/deferred-catalog.js +1 -1
- package/dist/core/mcp/oauth-provider.d.ts +7 -1
- package/dist/core/mcp/oauth-provider.js +11 -4
- package/dist/core/mcp/oauth-provider.js.map +1 -1
- package/dist/core/mcp/oauth-store.d.ts +6 -0
- package/dist/core/mcp/oauth-store.js +14 -0
- package/dist/core/mcp/oauth-store.js.map +1 -1
- package/dist/core/mcp/parse-add-command.d.ts +29 -3
- package/dist/core/mcp/parse-add-command.js +196 -26
- package/dist/core/mcp/parse-add-command.js.map +1 -1
- package/dist/core/mcp/store.d.ts +16 -0
- package/dist/core/mcp/store.js +28 -0
- package/dist/core/mcp/store.js.map +1 -1
- package/dist/core/mcp/types.d.ts +9 -0
- package/dist/core/nolan-ask-answer.d.ts +24 -0
- package/dist/core/nolan-ask-answer.js +96 -0
- package/dist/core/nolan-ask-answer.js.map +1 -0
- package/dist/core/nolan-context.d.ts +20 -0
- package/dist/core/nolan-context.js +55 -0
- package/dist/core/nolan-context.js.map +1 -1
- package/dist/core/nolan-prompt.js +6 -0
- package/dist/core/nolan-prompt.js.map +1 -1
- package/dist/core/opencode-catalog-store.d.ts +20 -0
- package/dist/core/opencode-catalog-store.js +82 -0
- package/dist/core/opencode-catalog-store.js.map +1 -0
- package/dist/core/openrouter-catalog-store.d.ts +24 -0
- package/dist/core/openrouter-catalog-store.js +140 -0
- package/dist/core/openrouter-catalog-store.js.map +1 -0
- package/dist/core/package-cooldown.d.ts +0 -2
- package/dist/core/package-cooldown.js +0 -4
- package/dist/core/package-cooldown.js.map +1 -1
- package/dist/core/plan-delta.d.ts +23 -0
- package/dist/core/plan-delta.js +36 -0
- package/dist/core/plan-delta.js.map +1 -0
- package/dist/core/process-gate.d.ts +17 -0
- package/dist/core/process-gate.js +24 -0
- package/dist/core/process-gate.js.map +1 -1
- package/dist/core/process-manager.d.ts +1 -1
- package/dist/core/process-manager.js +1 -1
- package/dist/core/project-discovery.js +2 -2
- package/dist/core/project-discovery.js.map +1 -1
- package/dist/core/project-files.js +1 -1
- package/dist/core/project-files.js.map +1 -1
- package/dist/core/prompt-commands.js +106 -107
- package/dist/core/prompt-commands.js.map +1 -1
- package/dist/core/radio-players.d.ts +28 -0
- package/dist/core/radio-players.js +133 -0
- package/dist/core/radio-players.js.map +1 -0
- package/dist/core/radio.js +20 -3
- package/dist/core/radio.js.map +1 -1
- package/dist/core/runtime-mode.d.ts +9 -8
- package/dist/core/runtime-mode.js +26 -0
- package/dist/core/runtime-mode.js.map +1 -1
- package/dist/core/session-history.d.ts +7 -0
- package/dist/core/session-history.js +48 -4
- package/dist/core/session-history.js.map +1 -1
- package/dist/core/session-manager.d.ts +10 -1
- package/dist/core/session-manager.js +48 -14
- package/dist/core/session-manager.js.map +1 -1
- package/dist/core/session-preview.js +2 -2
- package/dist/core/session-preview.js.map +1 -1
- package/dist/core/session-storage.d.ts +0 -2
- package/dist/core/session-storage.js +0 -2
- package/dist/core/session-storage.js.map +1 -1
- package/dist/core/session-summary-index.d.ts +18 -4
- package/dist/core/session-summary-index.js +28 -8
- package/dist/core/session-summary-index.js.map +1 -1
- package/dist/core/settings-manager.d.ts +9 -0
- package/dist/core/settings-manager.js +56 -8
- package/dist/core/settings-manager.js.map +1 -1
- package/dist/core/shell-path.d.ts +2 -0
- package/dist/core/shell-path.js +10 -1
- package/dist/core/shell-path.js.map +1 -1
- package/dist/core/shell.d.ts +4 -0
- package/dist/core/shell.js +15 -1
- package/dist/core/shell.js.map +1 -1
- package/dist/core/skills.d.ts +10 -0
- package/dist/core/skills.js +20 -5
- package/dist/core/skills.js.map +1 -1
- package/dist/core/steering.d.ts +4 -0
- package/dist/core/steering.js +8 -1
- package/dist/core/steering.js.map +1 -1
- package/dist/core/stream-diag-level.d.ts +3 -0
- package/dist/core/stream-diag-level.js +24 -0
- package/dist/core/stream-diag-level.js.map +1 -0
- package/dist/core/subagent-manager.d.ts +11 -0
- package/dist/core/subagent-manager.js +16 -4
- package/dist/core/subagent-manager.js.map +1 -1
- package/dist/core/subagent-policy.d.ts +6 -0
- package/dist/core/subagent-policy.js +22 -3
- package/dist/core/subagent-policy.js.map +1 -1
- package/dist/core/subagent-receipt.d.ts +3 -3
- package/dist/core/subagent-receipt.js +6 -9
- package/dist/core/subagent-receipt.js.map +1 -1
- package/dist/core/task-store.d.ts +0 -1
- package/dist/core/task-store.js +0 -3
- package/dist/core/task-store.js.map +1 -1
- package/dist/core/trophies/catalog-more.js +16 -36
- package/dist/core/trophies/catalog-more.js.map +1 -1
- package/dist/core/trophies/catalog.js +3 -3
- package/dist/core/trophies/catalog.js.map +1 -1
- package/dist/core/trophies/engine.js +0 -4
- package/dist/core/trophies/engine.js.map +1 -1
- package/dist/core/trophies/types.d.ts +1 -1
- package/dist/core/trophies/types.js +0 -2
- package/dist/core/trophies/types.js.map +1 -1
- package/dist/core/user-shell-context.d.ts +8 -0
- package/dist/core/user-shell-context.js +12 -0
- package/dist/core/user-shell-context.js.map +1 -0
- package/dist/core/verify-commands.d.ts +1 -1
- package/dist/goals-agent/goal-team.js +3 -4
- package/dist/goals-agent/goal-team.js.map +1 -1
- package/dist/goals-agent/goals-agent.d.ts +1 -1
- package/dist/goals-agent/goals-agent.js +4 -3
- package/dist/goals-agent/goals-agent.js.map +1 -1
- package/dist/modes/acp-mode.d.ts +2 -2
- package/dist/modes/acp-mode.js +4 -5
- package/dist/modes/acp-mode.js.map +1 -1
- package/dist/modes/agent-home-mode.js +5 -5
- package/dist/modes/agent-home-mode.js.map +1 -1
- package/dist/modes/json-mode.js +5 -0
- package/dist/modes/json-mode.js.map +1 -1
- package/dist/modes/serve-mode.js +5 -5
- package/dist/modes/serve-mode.js.map +1 -1
- package/dist/motion-agent/motion-agent.d.ts +12 -5
- package/dist/motion-agent/motion-agent.js +24 -9
- package/dist/motion-agent/motion-agent.js.map +1 -1
- package/dist/motion-agent/motion-review.d.ts +0 -75
- package/dist/motion-agent/motion-review.js +0 -189
- package/dist/motion-agent/motion-review.js.map +1 -1
- package/dist/subagent-entry.d.ts +1 -0
- package/dist/subagent-entry.js +50 -0
- package/dist/subagent-entry.js.map +1 -0
- package/dist/system-prompt.d.ts +11 -4
- package/dist/system-prompt.js +38 -22
- package/dist/system-prompt.js.map +1 -1
- package/dist/test-support/system-tools.d.ts +6 -0
- package/dist/test-support/system-tools.js +36 -0
- package/dist/test-support/system-tools.js.map +1 -0
- package/dist/tools/ask-user.js +5 -3
- package/dist/tools/ask-user.js.map +1 -1
- package/dist/tools/bash.d.ts +9 -2
- package/dist/tools/bash.js +382 -362
- package/dist/tools/bash.js.map +1 -1
- package/dist/tools/checklist.js +6 -11
- package/dist/tools/checklist.js.map +1 -1
- package/dist/tools/debug.js +6 -9
- package/dist/tools/debug.js.map +1 -1
- package/dist/tools/document-text.d.ts +6 -0
- package/dist/tools/document-text.js +154 -0
- package/dist/tools/document-text.js.map +1 -0
- package/dist/tools/enter-plan.js +4 -7
- package/dist/tools/enter-plan.js.map +1 -1
- package/dist/tools/find.d.ts +9 -0
- package/dist/tools/find.js +38 -1
- package/dist/tools/find.js.map +1 -1
- package/dist/tools/generate-image.d.ts +18 -0
- package/dist/tools/generate-image.js +208 -17
- package/dist/tools/generate-image.js.map +1 -1
- package/dist/tools/goals.d.ts +2 -2
- package/dist/tools/index.d.ts +5 -2
- package/dist/tools/index.js +5 -13
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/live-preview.d.ts +21 -0
- package/dist/tools/live-preview.js +37 -0
- package/dist/tools/live-preview.js.map +1 -0
- package/dist/tools/operations.js +1 -1
- package/dist/tools/operations.js.map +1 -1
- package/dist/tools/overflow.d.ts +2 -0
- package/dist/tools/overflow.js +10 -0
- package/dist/tools/overflow.js.map +1 -1
- package/dist/tools/path-utils.d.ts +0 -15
- package/dist/tools/path-utils.js +0 -17
- package/dist/tools/path-utils.js.map +1 -1
- package/dist/tools/prompt-hints.d.ts +2 -0
- package/dist/tools/prompt-hints.js +16 -9
- package/dist/tools/prompt-hints.js.map +1 -1
- package/dist/tools/read.js +25 -10
- package/dist/tools/read.js.map +1 -1
- package/dist/tools/routine-output.d.ts +10 -1
- package/dist/tools/routine-output.js +79 -1
- package/dist/tools/routine-output.js.map +1 -1
- package/dist/tools/screenshot.js +6 -10
- package/dist/tools/screenshot.js.map +1 -1
- package/dist/tools/side-web-search.d.ts +35 -0
- package/dist/tools/side-web-search.js +147 -0
- package/dist/tools/side-web-search.js.map +1 -0
- package/dist/tools/skill.d.ts +2 -0
- package/dist/tools/skill.js +33 -6
- package/dist/tools/skill.js.map +1 -1
- package/dist/tools/steroids.d.ts +7 -6
- package/dist/tools/steroids.js +193 -87
- package/dist/tools/steroids.js.map +1 -1
- package/dist/tools/subagent-control.js +66 -10
- package/dist/tools/subagent-control.js.map +1 -1
- package/dist/tools/subagent-shared.d.ts +19 -2
- package/dist/tools/subagent-shared.js +35 -10
- package/dist/tools/subagent-shared.js.map +1 -1
- package/dist/tools/subagent.js +23 -7
- package/dist/tools/subagent.js.map +1 -1
- package/dist/tools/tool-search.js +7 -1
- package/dist/tools/tool-search.js.map +1 -1
- package/dist/tools/tool-tiers.d.ts +3 -2
- package/dist/tools/tool-tiers.js +7 -5
- package/dist/tools/tool-tiers.js.map +1 -1
- package/dist/tools/truncate.d.ts +0 -2
- package/dist/tools/truncate.js +4 -10
- package/dist/tools/truncate.js.map +1 -1
- package/dist/tools/web-fetch.d.ts +15 -1
- package/dist/tools/web-fetch.js +138 -21
- package/dist/tools/web-fetch.js.map +1 -1
- package/dist/tools/web-search.d.ts +3 -2
- package/dist/tools/web-search.js +25 -1
- package/dist/tools/web-search.js.map +1 -1
- package/dist/ui/App.js +37 -38
- package/dist/ui/App.js.map +1 -1
- package/dist/ui/app-items.d.ts +0 -2
- package/dist/ui/app-items.js +0 -2
- package/dist/ui/app-items.js.map +1 -1
- package/dist/ui/components/Footer.js +8 -5
- package/dist/ui/components/Footer.js.map +1 -1
- package/dist/ui/components/ModelSelector.js +2 -0
- package/dist/ui/components/ModelSelector.js.map +1 -1
- package/dist/ui/components/SkillsOverlay.js +2 -1
- package/dist/ui/components/SkillsOverlay.js.map +1 -1
- package/dist/ui/constants/figures.d.ts +0 -8
- package/dist/ui/constants/figures.js +0 -8
- package/dist/ui/constants/figures.js.map +1 -1
- package/dist/ui/hooks/useAgentLoop.d.ts +3 -0
- package/dist/ui/hooks/useAgentLoop.js +54 -4
- package/dist/ui/hooks/useAgentLoop.js.map +1 -1
- package/dist/ui/hooks/useContextCompaction.js +1 -0
- package/dist/ui/hooks/useContextCompaction.js.map +1 -1
- package/dist/ui/language-pack-update.d.ts +25 -0
- package/dist/ui/language-pack-update.js +19 -0
- package/dist/ui/language-pack-update.js.map +1 -0
- package/dist/ui/layout-decisions.d.ts +0 -5
- package/dist/ui/layout-decisions.js +1 -10
- package/dist/ui/layout-decisions.js.map +1 -1
- package/dist/ui/terminal-history-status-renderers.d.ts +0 -1
- package/dist/ui/terminal-history-status-renderers.js +0 -12
- package/dist/ui/terminal-history-status-renderers.js.map +1 -1
- package/dist/ui/terminal-history.js +3 -1
- package/dist/ui/terminal-history.js.map +1 -1
- package/dist/ui/transcript/presentation.d.ts +1 -2
- package/dist/ui/transcript/presentation.js +0 -4
- package/dist/ui/transcript/presentation.js.map +1 -1
- package/dist/utils/http-body.d.ts +5 -0
- package/dist/utils/http-body.js +5 -0
- package/dist/utils/http-body.js.map +1 -1
- package/dist/utils/image.d.ts +11 -4
- package/dist/utils/image.js +34 -11
- package/dist/utils/image.js.map +1 -1
- package/dist/utils/plan-steps.d.ts +1 -0
- package/dist/utils/plan-steps.js +10 -0
- package/dist/utils/plan-steps.js.map +1 -1
- package/dist/utils/prompt-enhancer.d.ts +3 -1
- package/dist/utils/prompt-enhancer.js +21 -16
- package/dist/utils/prompt-enhancer.js.map +1 -1
- package/dist/web.d.ts +5 -0
- package/dist/web.js +5 -0
- package/dist/web.js.map +1 -0
- package/package.json +27 -6
- package/assets/skills/clarify/SKILL.md +0 -39
- package/assets/skills/code-review/SKILL.md +0 -88
- package/assets/skills/code-review/references/agent-diffs.md +0 -27
- package/assets/skills/code-review/references/tests.md +0 -19
- package/assets/skills/evidence-led-ui/LICENSES.md +0 -80
- package/assets/skills/evidence-led-ui/SKILL.md +0 -100
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/LICENSE +0 -21
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/airbnb/DESIGN.md +0 -545
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/airtable/DESIGN.md +0 -554
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/apple/DESIGN.md +0 -562
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/binance/DESIGN.md +0 -634
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/bmw/DESIGN.md +0 -544
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/bmw-m/DESIGN.md +0 -503
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/bugatti/DESIGN.md +0 -454
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/cal/DESIGN.md +0 -542
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/claude/DESIGN.md +0 -589
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/clay/DESIGN.md +0 -541
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/clickhouse/DESIGN.md +0 -544
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/cohere/DESIGN.md +0 -451
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/coinbase/DESIGN.md +0 -570
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/composio/DESIGN.md +0 -506
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/cursor/DESIGN.md +0 -537
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/dell-1996/DESIGN.md +0 -632
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/elevenlabs/DESIGN.md +0 -504
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/expo/DESIGN.md +0 -526
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/ferrari/DESIGN.md +0 -531
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/figma/DESIGN.md +0 -578
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/framer/DESIGN.md +0 -544
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/hashicorp/DESIGN.md +0 -575
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/hp/DESIGN.md +0 -670
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/ibm/DESIGN.md +0 -550
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/intercom/DESIGN.md +0 -546
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/kraken/DESIGN.md +0 -125
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/lamborghini/DESIGN.md +0 -288
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/linear.app/DESIGN.md +0 -548
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/lovable/DESIGN.md +0 -298
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/mastercard/DESIGN.md +0 -365
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/meta/DESIGN.md +0 -683
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/minimax/DESIGN.md +0 -746
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/mintlify/DESIGN.md +0 -852
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/miro/DESIGN.md +0 -825
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/mistral.ai/DESIGN.md +0 -773
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/mongodb/DESIGN.md +0 -767
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/nike/DESIGN.md +0 -575
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/nintendo-2001/DESIGN.md +0 -649
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/notion/DESIGN.md +0 -821
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/nvidia/DESIGN.md +0 -640
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/ollama/DESIGN.md +0 -539
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/opencode.ai/DESIGN.md +0 -521
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/pinterest/DESIGN.md +0 -597
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/playstation/DESIGN.md +0 -661
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/posthog/DESIGN.md +0 -690
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/raycast/DESIGN.md +0 -669
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/renault/DESIGN.md +0 -589
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/replicate/DESIGN.md +0 -616
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/resend/DESIGN.md +0 -585
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/revolut/DESIGN.md +0 -636
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/runwayml/DESIGN.md +0 -244
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/sanity/DESIGN.md +0 -357
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/sentry/DESIGN.md +0 -551
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/shopify/DESIGN.md +0 -516
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/slack/DESIGN.md +0 -482
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/spacex/DESIGN.md +0 -363
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/spotify/DESIGN.md +0 -246
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/starbucks/DESIGN.md +0 -580
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/stripe/DESIGN.md +0 -487
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/supabase/DESIGN.md +0 -462
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/superhuman/DESIGN.md +0 -448
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/tesla/DESIGN.md +0 -286
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/theverge/DESIGN.md +0 -339
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/together.ai/DESIGN.md +0 -633
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/uber/DESIGN.md +0 -636
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/vercel/DESIGN.md +0 -736
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/vodafone/DESIGN.md +0 -538
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/voltagent/DESIGN.md +0 -521
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/warp/DESIGN.md +0 -526
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/webflow/DESIGN.md +0 -588
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/wired/DESIGN.md +0 -497
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/wise/DESIGN.md +0 -544
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/x.ai/DESIGN.md +0 -465
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/zapier/DESIGN.md +0 -537
- package/assets/skills/evidence-led-ui/data/corpus-manifest.json +0 -768
- package/assets/skills/evidence-led-ui/data/observations.json +0 -47053
- package/assets/skills/evidence-led-ui/references/anti-defaults.md +0 -110
- package/assets/skills/evidence-led-ui/references/archetypes.md +0 -97
- package/assets/skills/evidence-led-ui/references/craft-rulings.md +0 -242
- package/assets/skills/evidence-led-ui/references/direction.md +0 -124
- package/assets/skills/evidence-led-ui/references/methodology.md +0 -72
- package/assets/skills/evidence-led-ui/references/observed-patterns.md +0 -68
- package/assets/skills/evidence-led-ui/references/production-contract.md +0 -148
- package/assets/skills/evidence-led-ui/references/provenance.md +0 -142
- package/assets/skills/evidence-led-ui/references/quality-rubric.md +0 -126
- package/assets/skills/evidence-led-ui/references/ui-libraries.md +0 -30
- package/assets/skills/refactoring/SKILL.md +0 -87
- package/assets/skills/refactoring/references/agent-pitfalls.md +0 -46
- package/assets/skills/refactoring/references/legacy.md +0 -70
- package/assets/skills/refactoring/references/smells.md +0 -71
- package/assets/skills/root-cause/SKILL.md +0 -46
- package/assets/skills/shared-language/SKILL.md +0 -32
- package/assets/skills/tdd/SKILL.md +0 -42
- package/dist/core/setup-history.d.ts +0 -6
- package/dist/core/setup-history.js +0 -55
- package/dist/core/setup-history.js.map +0 -1
- package/dist/core/style-packs/index.d.ts +0 -18
- package/dist/core/style-packs/index.js +0 -60
- package/dist/core/style-packs/index.js.map +0 -1
- package/dist/core/style-packs/packs.d.ts +0 -8
- package/dist/core/style-packs/packs.js +0 -188
- package/dist/core/style-packs/packs.js.map +0 -1
- package/dist/interactive.d.ts +0 -2
- package/dist/interactive.js +0 -257
- package/dist/interactive.js.map +0 -1
- package/dist/motion-agent/motion-review-coverage.d.ts +0 -12
- package/dist/motion-agent/motion-review-coverage.js +0 -33
- package/dist/motion-agent/motion-review-coverage.js.map +0 -1
- package/dist/motion-agent/motion-review-gate.d.ts +0 -48
- package/dist/motion-agent/motion-review-gate.js +0 -88
- package/dist/motion-agent/motion-review-gate.js.map +0 -1
- package/dist/motion-agent/motion-review-session.d.ts +0 -65
- package/dist/motion-agent/motion-review-session.js +0 -422
- package/dist/motion-agent/motion-review-session.js.map +0 -1
- package/dist/tools/code-nav.d.ts +0 -29
- package/dist/tools/code-nav.js +0 -299
- package/dist/tools/code-nav.js.map +0 -1
- package/dist/tools/code-skeleton.d.ts +0 -28
- package/dist/tools/code-skeleton.js +0 -115
- package/dist/tools/code-skeleton.js.map +0 -1
- package/dist/tools/search-code.d.ts +0 -10
- package/dist/tools/search-code.js +0 -90
- package/dist/tools/search-code.js.map +0 -1
- package/dist/ui/stores/index.d.ts +0 -2
- package/dist/ui/stores/index.js +0 -3
- package/dist/ui/stores/index.js.map +0 -1
- package/dist/utils/format.d.ts +0 -16
- package/dist/utils/format.js +0 -159
- package/dist/utils/format.js.map +0 -1
- package/dist/utils/shell.d.ts +0 -2
- package/dist/utils/shell.js +0 -8
- package/dist/utils/shell.js.map +0 -1
package/README.md
CHANGED
|
@@ -67,21 +67,21 @@ You can still add your own MCPs in `~/.ezcoder/mcp.json` or `.ezcoder/mcp.json`.
|
|
|
67
67
|
|
|
68
68
|
Switch mid-conversation with `/model`. Not locked to anyone.
|
|
69
69
|
|
|
70
|
-
| Provider | Models
|
|
71
|
-
| ----------------- |
|
|
72
|
-
| **Anthropic** | Claude Fable 5.1, Opus 5.5, Sonnet 5.5, Haiku 5.5
|
|
73
|
-
| **OpenAI** | GPT-6 Astra, GPT-6.
|
|
74
|
-
| **Gemini** | Gemini 3.1 Pro (Preview), 3.8 Flash, 3.5 Flash, 3.5 Flash Lite, 3.1 Flash Lite
|
|
75
|
-
| **xAI (Grok)** | Grok 4.7
|
|
76
|
-
| **Moonshot** | Kimi K3, K2.8 Preview (Kimi sign-in), K2.7 Code, K2.7 Code HighSpeed
|
|
77
|
-
| **Z.AI (GLM)** | GLM-5.3, GLM-5.3-Flash
|
|
78
|
-
| **MiniMax** | MiniMax M3
|
|
79
|
-
| **Xiaomi (MiMo)** | MiMo-V2.6-Pro, MiMo-V2.6-Flash, MiMo-V2.6-Pro-UltraSpeed
|
|
80
|
-
| **DeepSeek** | DeepSeek V4 Pro, V4.1 Flash
|
|
81
|
-
| **Sakana (Fugu)** | Fugu, Fugu Max, Fugu Ultra
|
|
82
|
-
| **OpenRouter** | Qwen3.8 Max
|
|
83
|
-
| **Hugging Face** | Kimi K2.7 Code, DeepSeek V4.1 Flash, GPT-OSS 120B (Inference Providers router)
|
|
84
|
-
| **Local** | Any model on an OpenAI-compatible server: Ollama, LM Studio, llama.cpp, vLLM
|
|
70
|
+
| Provider | Models | Auth |
|
|
71
|
+
| ----------------- | ------------------------------------------------------------------------------ | ---------------- |
|
|
72
|
+
| **Anthropic** | Claude Fable 5.1, Opus 5.5, Sonnet 5.5, Haiku 5.5 | OAuth |
|
|
73
|
+
| **OpenAI** | GPT-6.2 Astra, GPT-6.2 Sol, GPT-6.1 Terra, GPT-6 Luna | OAuth |
|
|
74
|
+
| **Gemini** | Gemini 3.1 Pro (Preview), 3.8 Flash, 3.5 Flash, 3.5 Flash Lite, 3.1 Flash Lite | OAuth |
|
|
75
|
+
| **xAI (Grok)** | Grok 4.7 | OAuth or API key |
|
|
76
|
+
| **Moonshot** | Kimi K3, K2.8 Preview (Kimi sign-in), K2.7 Code, K2.7 Code HighSpeed | OAuth or API key |
|
|
77
|
+
| **Z.AI (GLM)** | GLM-5.3, GLM-5.3-Flash | API key |
|
|
78
|
+
| **MiniMax** | MiniMax M3 | API key |
|
|
79
|
+
| **Xiaomi (MiMo)** | MiMo-V2.6-Pro, MiMo-V2.6-Flash, MiMo-V2.6-Pro-UltraSpeed | API key |
|
|
80
|
+
| **DeepSeek** | DeepSeek V4 Pro, V4.1 Flash | API key |
|
|
81
|
+
| **Sakana (Fugu)** | Fugu, Fugu Max, Fugu Ultra | API key |
|
|
82
|
+
| **OpenRouter** | Qwen3.8 Max | API key |
|
|
83
|
+
| **Hugging Face** | Kimi K2.7 Code, DeepSeek V4.1 Flash, GPT-OSS 120B (Inference Providers router) | API key |
|
|
84
|
+
| **Local** | Any model on an OpenAI-compatible server: Ollama, LM Studio, llama.cpp, vLLM | None |
|
|
85
85
|
|
|
86
86
|
Every hosted model above except GLM-5.3, DeepSeek V4 Pro, and GPT-OSS 120B accepts images.
|
|
87
87
|
|
|
@@ -192,7 +192,7 @@ Add your own MCPs in `~/.ezcoder/mcp.json` or `.ezcoder/mcp.json` if you need mo
|
|
|
192
192
|
|
|
193
193
|
`subagent` remains blocking. The async suite launches persistent NDJSON worker processes, so a parent can start up to four active child turns, keep working, steer them, and wait for any or all results. Up to eight idle workers remain available for follow-up; bounded snapshots retain the latest 20 agents.
|
|
194
194
|
|
|
195
|
-
Only GPT-6 Astra and GPT-6.1
|
|
195
|
+
Only GPT-6.2 Astra, GPT-6.2 Sol and GPT-6.1 Terra at **Ultra** delegate proactively. Lower Astra/Sol levels use async agents only when the user or project/skill instructions request delegation; other models receive no proactive policy.
|
|
196
196
|
|
|
197
197
|
Children share the parent working directory by default, so parallel writes must target disjoint files or subsystems. Pass `isolate: true` to `subagent` to give a child its own copy of the repo on a new branch instead — the right choice when several children edit at once, or when a child's changes should land on a branch of their own. The copy is reclaimed automatically when the child finishes without committing; a child that did commit keeps its branch, because that branch is the deliverable. `/integrate` then merges those branches one at a time, running the suite between each. Async fan-out is one level deep, child output is bounded, idle workers reap after 10 minutes, and workers are not resumable after a CLI/app restart.
|
|
198
198
|
|
|
@@ -66,7 +66,7 @@ app screens, supplied footage or diagrams, not the same choices for every job.
|
|
|
66
66
|
screen. No sound needed.
|
|
67
67
|
- Sent to someone: A gift, birthday or memorial. Paced to feel personal, not
|
|
68
68
|
to grab attention.
|
|
69
|
-
2. "Should it have music?"
|
|
69
|
+
2. "Should it have music?" EZ Coder's built-in tracks are all upbeat and cheerful.
|
|
70
70
|
When the subject needs another mood (calm, serious, tender, cinematic), make
|
|
71
71
|
the "yes" answer an original score composed for the video, so the choice of
|
|
72
72
|
music needs no second question.
|
|
@@ -1,183 +1,124 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: bulletproof
|
|
3
|
-
description: "Use
|
|
3
|
+
description: "Use to secure code an attacker can reach: finding and fixing ways someone could break in, steal secrets or reach another user's data. Do NOT use for local-only scripts, legal questions or performance."
|
|
4
|
+
# Checklist audits only (Security, Dependencies, Secrets / Performance); hidden from routine coding after the 27 Oct 2026 skill-value bench.
|
|
5
|
+
hidden: true
|
|
4
6
|
license: Apache-2.0. Content is defensive engineering guidance, not a security certification or a penetration test. See references/provenance.md.
|
|
5
|
-
compatibility: Works offline from the bundled references,
|
|
7
|
+
compatibility: Works offline from the bundled references, a snapshot dated 22 October 2026. Versions, CVEs and incident details decay fast; re-verify date-sensitive claims with web access before stating them as current. Never certifies that software is secure.
|
|
6
8
|
---
|
|
7
9
|
|
|
8
10
|
# Bulletproof
|
|
9
11
|
|
|
10
|
-
|
|
12
|
+
Small teams get breached through a short list of boring mistakes, found by automated attackers reading public code. Fix those first.
|
|
11
13
|
|
|
12
14
|
**Route first:**
|
|
13
15
|
|
|
14
16
|
| You are… | Mode | Do next |
|
|
15
17
|
|---|---|---|
|
|
16
|
-
| Writing a feature that touches a source
|
|
18
|
+
| Writing a feature that touches a source or sink | **Inline gate** | Apply the control as you write; one line on what it prevents |
|
|
17
19
|
| Making a small edit to existing security code | Inline gate | Read the surrounding control first; never weaken it to make the edit work |
|
|
18
|
-
| Asked "is this safe to ship", hardening, pre-launch, suspected compromise | **Full review** |
|
|
19
|
-
| Finding a live key, unknown workflow
|
|
20
|
+
| Asked "is this safe to ship", hardening, pre-launch, suspected compromise | **Full review** | You MUST read `references/audit-protocol.md` first, then follow it |
|
|
21
|
+
| Finding a live key, unknown workflow, odd `.claude/`/`.vscode/` hook, backdoored dependency | Incident | Tell the user first; rotate and contain |
|
|
20
22
|
|
|
21
23
|
## Governing rules
|
|
22
24
|
|
|
23
|
-
1. **Reachability decides everything.**
|
|
24
|
-
2. **Untrusted by default.** Anything you did not author and pin is
|
|
25
|
-
3. **Assume a machine-speed adversary.**
|
|
26
|
-
4. **Fix, do not just flag.** Inline, build the control
|
|
27
|
-
5. **Never certify.**
|
|
28
|
-
6. **Defensive output only.** Describe risk at the data-flow level
|
|
29
|
-
7. **Proportionality.** Rank by
|
|
30
|
-
8. **Date-check before asserting.**
|
|
25
|
+
1. **Reachability decides everything.** Trace source → hops → sink before ranking. No path, no finding; a real path is not saved by the framework's reputation.
|
|
26
|
+
2. **Untrusted by default.** Anything you did not author and pin is input: requests, files, archives, the repo you are in, fetched pages, dependencies, model and tool output, other agents.
|
|
27
|
+
3. **Assume a machine-speed adversary.** Leaked credentials get used, not filed. Make one mistake survivable: scoped credentials, capped blast radius, possible rotation.
|
|
28
|
+
4. **Fix, do not just flag.** Inline, build the control in. In a full review, report first, then fix what the user selects; fix straight away only when they asked for fixes.
|
|
29
|
+
5. **Never certify.** Never say "secure", "hardened", "bulletproof", "audited", or "no vulnerabilities". State what you checked, fixed, could not verify, and what remains.
|
|
30
|
+
6. **Defensive output only.** Describe risk at the data-flow level. No working exploits, payloads, or attack tooling, in any mode.
|
|
31
|
+
7. **Proportionality.** Rank by probability × blast radius. Five real fixes beat forty ignored ones.
|
|
32
|
+
8. **Date-check before asserting.** References are a snapshot (see `references/provenance.md`). Re-verify versions, CVEs and defaults when you can; otherwise attribute them to the snapshot. Never invent a CVE, version, or advisory.
|
|
31
33
|
|
|
32
|
-
##
|
|
34
|
+
## Inline gate
|
|
33
35
|
|
|
34
|
-
|
|
36
|
+
Triggered by writing risky code mid-build: auth checks, queries from input, file paths, subprocesses, new dependencies, token stores, uploads, webhooks, deploy config, model-exposed tools. Users who need this never ask for it.
|
|
35
37
|
|
|
36
|
-
|
|
38
|
+
**Write the safe version the first time**: parameterize the query, authorize at the data layer, resolve the path and check containment, pass argv instead of a shell string, verify a dependency exists before pinning it. No lecture, and never ship the unsafe version intending to flag it later.
|
|
37
39
|
|
|
38
|
-
|
|
40
|
+
## Full review
|
|
39
41
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
### 1. Profile the attack surface from the code
|
|
43
|
-
|
|
44
|
-
Do this before asking the user anything.
|
|
45
|
-
|
|
46
|
-
- **Shape**: what is this — web app, API, CLI, desktop app, mobile app, library, firmware, contract, ML pipeline, game server? Read manifests, lockfiles, CI configs, Dockerfiles, IaC, store metadata, install scripts.
|
|
47
|
-
- **Reach**: who can send it bytes? Anonymous internet, authenticated users, other tenants, local users on the same machine, a build system, a model, a physical attacker with the device in hand.
|
|
48
|
-
- **Sources**: every entry point where untrusted data crosses in — route handlers, argv/stdin, env, queue consumers, WebSocket and IPC receivers, deep links and custom URL schemes, file and archive readers, deserializers, plugin/model loaders, MCP and tool handlers, webhook endpoints.
|
|
49
|
-
- **Sinks**: every dangerous operation — shell exec, SQL/NoSQL/LDAP/XPath, eval/Function/exec/pickle/yaml.load/Marshal/ObjectInputStream, file write, dynamic require/import, network egress, auth decisions, secret reads, native deserializers, contract external calls, privileged setters.
|
|
50
|
-
- **Assets**: what must not leak or move — credentials and tokens, customer data, signing and update keys, CI secrets, model API keys, on-chain funds, session state, source with IP value.
|
|
51
|
-
- **Existing controls**: what already works. Framework escaping, ORM parameterization, a middleware auth layer, RLS policies, CSP, a sandbox. Never re-flag what the framework already handles, and never remove a control you did not understand.
|
|
52
|
-
|
|
53
|
-
`references/platform-playbooks.md` has the per-platform detection sweep — grep targets and config keys for web/API, mobile, desktop, CLI, embedded, web3, ML, and games.
|
|
54
|
-
|
|
55
|
-
### 2. Ask only what the code cannot tell you
|
|
56
|
-
|
|
57
|
-
Cap at **five questions**, batched in one message, each stating the default you will assume if unanswered. Assume the user does not know security vocabulary — ask about facts they know.
|
|
42
|
+
A first use on a project mid-build stays an inline gate. Profile from the code before asking anything. Then ask at most five questions in one `ask_user` call, each option showing its default:
|
|
58
43
|
|
|
59
44
|
| Ask | Default if unanswered |
|
|
60
45
|
|---|---|
|
|
61
|
-
|
|
|
62
|
-
|
|
|
63
|
-
|
|
|
64
|
-
| Who
|
|
65
|
-
| Has anything
|
|
46
|
+
| Reachable from the public internet, or only your machine / private network? | Public if any deploy or hosting config exists; local for a bare script |
|
|
47
|
+
| Real people's accounts or data, or test data? | Real once there is a users table, auth, or payments |
|
|
48
|
+
| Must users or tenants be kept apart? | Yes wherever a tenant/org/user foreign key exists |
|
|
49
|
+
| Who can run privileged actions? | An admin surface exists if any route, flag, or column implies one |
|
|
50
|
+
| Has anything gone wrong (leaked key, odd logins, dependency alert)? | No active incident, but any secret found in the repo is already compromised |
|
|
66
51
|
|
|
67
|
-
|
|
52
|
+
A surface the user puts out of scope is recorded as not-checked, never dropped.
|
|
68
53
|
|
|
69
|
-
|
|
54
|
+
**What kills small teams, in order:**
|
|
70
55
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
| Rank | Failure | Why it is first |
|
|
56
|
+
| Rank | Failure | Reference |
|
|
74
57
|
|---|---|---|
|
|
75
|
-
| 1 |
|
|
76
|
-
| 2 |
|
|
77
|
-
| 3 |
|
|
78
|
-
| 4 |
|
|
79
|
-
| 5 |
|
|
80
|
-
| 6 |
|
|
81
|
-
| 7 |
|
|
82
|
-
| 8 |
|
|
83
|
-
|
|
84
|
-
### 4. Build the control, do not describe it
|
|
85
|
-
|
|
86
|
-
Every fix lands as code where code can express it. Prefer, in order:
|
|
87
|
-
|
|
88
|
-
1. **Eliminate the class.** Parameterized query instead of string building. `spawn(file, args)` instead of a shell string. `safetensors` instead of pickle. A memory-safe language for new parsing code. A class removed cannot regress.
|
|
89
|
-
2. **Enforce at the chokepoint, not the call site.** Authorization in the data layer or a single middleware, not repeated in forty handlers. One HTTP client with the egress allowlist. One place that opens files under the project root. Scattered checks rot.
|
|
90
|
-
3. **Default deny.** Allowlists over denylists, for hosts, paths, file types, commands, origins, capabilities, and tools. A denylist is a list of the attacks you already thought of.
|
|
91
|
-
4. **Least privilege and least agency.** Scope every credential to one job, one resource, one lifetime. For agents, grant the minimum autonomy the task needs, not just the minimum permissions.
|
|
92
|
-
5. **Contain the blast.** Assume the control fails: what is reachable then? Separate keys per environment, per-tenant scoping, short-lived tokens, network egress limits, rotation that is actually possible.
|
|
93
|
-
6. **Fail closed.** An exception in an auth check must deny. Catch-and-continue around a verification step is a vulnerability, and now has its own OWASP category (A10:2025).
|
|
94
|
-
|
|
95
|
-
When you change security-sensitive behavior, say so in one line — what you enforced and what it prevents. Never silently weaken a control to make something work; if a control blocks the feature, say that and propose the safe path.
|
|
96
|
-
|
|
97
|
-
### 5. Verify, then leave the check behind
|
|
58
|
+
| 1 | Secrets in code, history, bundles (`NEXT_PUBLIC_*`, `VITE_*`), logs, CI, agent/MCP config: exposed means burned, rotate | `references/secure-defaults.md` |
|
|
59
|
+
| 2 | Authorization missing at the data layer: IDOR/BOLA, open row-level security, middleware-only auth | `references/platform-playbooks.md` |
|
|
60
|
+
| 3 | Supply chain: nonexistent or squatted packages, install hooks, CI workflows, publishing, auto-run editor/agent config | `references/supply-chain.md` |
|
|
61
|
+
| 4 | Injection: SQL, shell, template, deserialization, dynamic load, XSS | `references/platform-playbooks.md` |
|
|
62
|
+
| 5 | Agent surfaces: injected content reaching a credentialed tool with egress | `references/agent-surface.md` |
|
|
63
|
+
| 6 | Auth, session and crypto correctness | `references/secure-defaults.md` |
|
|
64
|
+
| 7 | Platform exposure: deep links, IPC, loopback servers, updaters, debug interfaces | `references/platform-playbooks.md` |
|
|
65
|
+
| 8 | Everything else: backlog unless recon shows a path | — |
|
|
98
66
|
|
|
99
|
-
|
|
67
|
+
**Control preference:** eliminate the class (parameterize, argv, safetensors) → enforce at one chokepoint → default deny (allowlists) → least privilege and least agency → contain the blast → fail closed (an exception in an auth check denies). Say in one line what each security change enforces. If a control blocks the feature, say so and propose the safe path; never silently weaken it.
|
|
100
68
|
|
|
101
|
-
|
|
102
|
-
- **Run the free scanners** rather than reasoning about them: secret scanning over the full history, dependency audit, static analysis, and the platform's own linter. Exact commands are in `references/verification.md`.
|
|
103
|
-
- **Leave a CI gate** so the fix cannot silently regress — secret scan, dependency review, and the new test on every PR. One workflow file is usually all it takes.
|
|
104
|
-
- **Label every claim** `RUNTIME` (you ran it and observed the result), `CODE` (you read it), `DEDUCED` (you inferred it), or `SNAPSHOT` (from a dated external source). Never present something you read as something you ran.
|
|
69
|
+
## Verify and label
|
|
105
70
|
|
|
106
|
-
|
|
71
|
+
A fix you did not exercise is a hypothesis. Prove it with a test that fails on the old behavior, run the free scanners, and leave a CI gate (`references/verification.md`) using tools already installed and the existing CI; a new scanner, package or workflow is a recommendation unless the user agrees. Label every claim `RUNTIME` (ran it, observed), `CODE` (read it), `DEDUCED` (inferred), or `SNAPSHOT` (dated external source). Never present something read as something run.
|
|
107
72
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
Whatever the mode, the report must state **what was not checked**. A review that silently skips the mobile client, the admin panel, or the infra repo reads as complete coverage and is more dangerous than no review.
|
|
111
|
-
|
|
112
|
-
### 7. Write it for someone who has never read a CVE
|
|
113
|
-
|
|
114
|
-
- Lead with what an attacker gets, in plain words: "anyone who knows a user's ID can read their invoices", not "IDOR in the invoice controller".
|
|
115
|
-
- Name the file and line, then the fix, then the reason — in that order.
|
|
116
|
-
- Give the base rate honestly. Do not use fear as a lever; a scared user makes worse decisions and often ships nothing.
|
|
117
|
-
- Keep the standards jargon (CWE, OWASP IDs) in a labelled field, not in the sentence that has to be understood.
|
|
118
|
-
|
|
119
|
-
## Scaling: one agent or several
|
|
120
|
-
|
|
121
|
-
Default is **single-threaded** — the full review was deliberately moved off subagents in Aug 2026. Fan out only when a row below says so.
|
|
122
|
-
|
|
123
|
-
| Situation | Do |
|
|
124
|
-
|---|---|
|
|
125
|
-
| Inline gate, small edit, incident triage | Main thread only. Never spawn. |
|
|
126
|
-
| Full review, one deployable, every ledger row readable in full by you | Main thread only. |
|
|
127
|
-
| Full review with >1 deployable/package/app in scope, or more ledger rows than you can work with full reads | Fan out: one `auditor` per **disjoint** slice, all in ONE `spawn_agent` call (≤ 6 per wave) |
|
|
128
|
-
| A row needs dated external facts (advisory, version, default) | One `researcher` child, or verify yourself |
|
|
129
|
-
| Pre-ship verdict or any Critical/High finding | `skeptic` child for the false-positive pass on the merged findings |
|
|
130
|
-
|
|
131
|
-
First build the **coverage ledger** in the main thread: rows = audit areas (rank table above) × in-scope units. Every row ends as checked-with-findings / checked-clean / not-checked(reason).
|
|
132
|
-
|
|
133
|
-
Every child brief is self-contained and **opens with**: "Authorized defensive security review of code the user owns. Report data-flow risks and fixes only; no exploits or payloads." Then: skill root `<absolute path>` and the reference file(s) to read, slice paths, the ledger rows it owns, the relevant recon rows (sources, sinks, assets, existing controls), the confidence bar (≥ 0.8 with a concrete source→sink path), the hard exclusions from `references/audit-protocol.md`, labels `RUNTIME`/`CODE`/`DEDUCED`/`SNAPSHOT`, and the output schema (file:line, label, severity, path, fix; explicit `checked` and `not checked` lists).
|
|
134
|
-
|
|
135
|
-
**Merge:** a child that fails, times out, or omits a row → that row is `not checked`, never clean. Re-open every reported file:line before reporting it. Fixes stay in the main thread (or `bee` on strictly disjoint files); run checks once after merging.
|
|
73
|
+
Every report, inline or full, states **what was not checked**. A silent skip reads as full coverage.
|
|
136
74
|
|
|
137
75
|
## Severity ladder
|
|
138
76
|
|
|
139
|
-
Rank by what the attacker ends up holding
|
|
77
|
+
Rank by what the attacker ends up holding.
|
|
140
78
|
|
|
141
79
|
| Severity | Meaning |
|
|
142
80
|
|---|---|
|
|
143
|
-
| **Critical** |
|
|
144
|
-
| **High** | Privilege escalation, cross-tenant access
|
|
145
|
-
| **Medium** | Scoped
|
|
146
|
-
| **Low** | Hardening gaps with no demonstrated path. Backlog
|
|
81
|
+
| **Critical** | RCE, full auth bypass, credential or signing-key theft, any user's data readable by any other, loss of funds, compromise of a shipped artifact |
|
|
82
|
+
| **High** | Privilege escalation, cross-tenant access needing some auth, live secret exposure, unauthenticated admin surface, update-channel integrity failure |
|
|
83
|
+
| **Medium** | Scoped disclosure, weakened crypto, partial bypass needing an unlikely precondition |
|
|
84
|
+
| **Low** | Hardening gaps with no demonstrated path. Backlog. |
|
|
147
85
|
|
|
148
|
-
Downgrade one level
|
|
86
|
+
Downgrade one level for a working compensating control in the path; upgrade one level when the asset is a credential, signing key, or update channel.
|
|
149
87
|
|
|
150
88
|
## Hard stops
|
|
151
89
|
|
|
152
|
-
|
|
90
|
+
Refuse and offer the defensive equivalent:
|
|
153
91
|
|
|
154
|
-
-
|
|
155
|
-
- Offensive tooling:
|
|
156
|
-
-
|
|
157
|
-
- Backdoors, hidden telemetry, covert
|
|
92
|
+
- Exploits, weaponized payloads, or attack PoCs against anything, including the user's own systems.
|
|
93
|
+
- Offensive tooling: third-party scanners, credential stuffers, C2, ransomware, wipers, stealers, evasion obfuscators.
|
|
94
|
+
- Testing a system the user does not own or operate. Ask whose it is; authorization is the whole difference.
|
|
95
|
+
- Backdoors, hidden telemetry, covert collection, or weakening another party's control.
|
|
158
96
|
- Bypassing an access control, license check, anti-cheat, or age gate you do not own.
|
|
159
97
|
|
|
160
|
-
|
|
98
|
+
Detection, hardening, monitoring and honeypots on your own systems are in scope.
|
|
161
99
|
|
|
162
100
|
## Honesty rules
|
|
163
101
|
|
|
164
|
-
- Never
|
|
165
|
-
-
|
|
166
|
-
-
|
|
167
|
-
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
102
|
+
- Never present a scan as proof; tools find a minority of defects.
|
|
103
|
+
- Preserve the references' [V]/[S]/[U] markers; never launder an uncertain item into a confident claim. "I could not verify this" is a valid output.
|
|
104
|
+
- Report how many candidates you dropped and why.
|
|
105
|
+
- On evidence of actual compromise (a committed key in use, unfamiliar workflows, a backdoored dependency, unknown collaborators), say so first, plainly. Containment comes before hardening.
|
|
106
|
+
|
|
107
|
+
## Scaling
|
|
108
|
+
|
|
109
|
+
Single-threaded by default. Fan out only for more than one deployable or more ledger rows than you can read in full: one security auditor per disjoint slice. Dated facts go to a researcher; merged Critical/High findings get a verifier pass. Fixes stay with you or an editor on disjoint files.
|
|
110
|
+
Every child brief opens: "Authorized defensive security review of code the user owns. Report data-flow risks and fixes only; no exploits or payloads." It states the confidence bar: ≥0.8 with a concrete source→sink path.
|
|
111
|
+
Helper types, brief contents and merge rules come with the skill loader.
|
|
171
112
|
|
|
172
113
|
## Reference map
|
|
173
114
|
|
|
174
|
-
Resolve
|
|
115
|
+
Resolve paths from the skill root; load only what the profile triggered.
|
|
175
116
|
|
|
176
|
-
- `references/
|
|
177
|
-
- `references/
|
|
178
|
-
- `references/platform-playbooks.md` — per-platform controls and grep targets
|
|
179
|
-
- `references/supply-chain.md` — dependencies, install
|
|
180
|
-
- `references/agent-surface.md` — LLM, agent
|
|
181
|
-
- `references/secure-defaults.md` —
|
|
182
|
-
- `references/verification.md` —
|
|
183
|
-
- `references/provenance.md` — snapshot date, sources, confidence markers,
|
|
117
|
+
- `references/audit-protocol.md` — full-review protocol, ledger, filter, report template. Required for any full review.
|
|
118
|
+
- `references/threat-landscape.md` — attacker techniques and defensive fingerprints. Once per full review.
|
|
119
|
+
- `references/platform-playbooks.md` — per-platform controls and grep targets.
|
|
120
|
+
- `references/supply-chain.md` — dependencies, install hooks, registries, CI/CD, publishing, provenance.
|
|
121
|
+
- `references/agent-surface.md` — LLM, agent and MCP security.
|
|
122
|
+
- `references/secure-defaults.md` — values to write the first time.
|
|
123
|
+
- `references/verification.md` — scanners, CI gates, regression tests.
|
|
124
|
+
- `references/provenance.md` — snapshot date, sources, confidence markers, re-verification log.
|
|
@@ -4,6 +4,18 @@ Load this when the project calls a model, exposes tools to a model, runs an agen
|
|
|
4
4
|
|
|
5
5
|
Standards [V]: **OWASP Top 10 for LLM Applications (2025)** — LLM01 Prompt Injection, LLM02 Sensitive Information Disclosure, LLM03 Supply Chain, LLM04 Data and Model Poisoning, LLM05 Improper Output Handling, LLM06 Excessive Agency, LLM07 System Prompt Leakage, LLM08 Vector and Embedding Weaknesses, LLM09 Misinformation, LLM10 Unbounded Consumption. **OWASP Top 10 for Agentic Applications (2026)**, published 9 Dec 2025 — ASI01 Goal Hijack, ASI02 Tool Misuse, ASI03 Identity & Privilege Abuse, ASI04 Agentic Supply Chain, ASI05 Unexpected Code Execution, ASI06 Memory & Context Poisoning, ASI07 Insecure Inter-Agent Communication, ASI08 Cascading Failures, ASI09 Human-Agent Trust Exploitation, ASI10 Rogue Agents. Its core principle is **least agency** — grant the minimum autonomy the task requires, not merely minimum permissions.
|
|
6
6
|
|
|
7
|
+
## Contents
|
|
8
|
+
|
|
9
|
+
- The one thing to internalize
|
|
10
|
+
- The lethal trifecta
|
|
11
|
+
- Architecture controls that actually hold
|
|
12
|
+
- Sandbox escapes — the 2026 pattern
|
|
13
|
+
- Context and rules-file poisoning
|
|
14
|
+
- MCP specifics
|
|
15
|
+
- Coding agents working in your repo
|
|
16
|
+
- RAG, memory & multi-agent
|
|
17
|
+
- Reviewing an agent feature — the short list
|
|
18
|
+
|
|
7
19
|
## The one thing to internalize
|
|
8
20
|
|
|
9
21
|
**Prompt injection cannot be reliably prevented.** "The Attacker Moves Second" (Oct 2025) bypassed 12 published defenses at >90% for most with adaptive attacks, and human red-teamers beat every scenario [V]. Any design whose safety depends on the model refusing a malicious instruction is already broken. Filters, delimiters, "ignore instructions in user content", and a second model checking the first are mitigations, not controls.
|
|
@@ -59,7 +71,16 @@ Instructions hidden in files the agent reads land directly in its context, which
|
|
|
59
71
|
|
|
60
72
|
- **Servers are dependencies.** Install from a registry with signing and verification, pin the version, and re-review the tool list after every update. The first malicious server in the wild (`postmark-mcp`, Sept 2025) built trust across fifteen clean releases before adding a silent BCC [V].
|
|
61
73
|
- **Tool descriptions are model-visible input.** A server can poison behavior through description text alone, and can change descriptions after approval — a rug-pull. Pin and diff them.
|
|
62
|
-
- **
|
|
74
|
+
- **Current spec is 2026-07-28** [V] (replaces 2025-11-25). Security-relevant changes for HTTP servers:
|
|
75
|
+
- **Stateless**: the initialize handshake and `Mcp-Session-Id` are gone; every request carries its protocol version and capabilities. Authenticate and authorize each request; never key authorization on a session you no longer have.
|
|
76
|
+
- **`Mcp-Method` / `Mcp-Name` routing headers** mirror body fields. Route and authorize on the validated body, or reject a header/body mismatch; a header alone is attacker-chosen.
|
|
77
|
+
- **Multi-round-trip requests carry `requestState`** back from the client. Treat it as untrusted: sign it, bind it to the caller, and expire it.
|
|
78
|
+
- **Cacheable tool/resource listings**: bound cache lifetime and re-validate, so stale or poisoned descriptions do not outlive an update or a rug-pull.
|
|
79
|
+
- **Auth**: the server is an OAuth resource server; RFC 8707 `resource` binds tokens to one server; validate audience; never pass the client's token through upstream; RFC 9728 Protected Resource Metadata. Client ID Metadata Documents replace Dynamic Client Registration (DCR deprecated); clients check the `iss` response parameter (RFC 9207) against mix-up. A CIMD-fetching authorization server fetches a client-supplied URL: apply the SSRF sweep from `platform-playbooks.md`.
|
|
80
|
+
- **Origin**: Streamable HTTP servers MUST validate `Origin` and return 403 when it is present and invalid; bind local servers to 127.0.0.1 [V].
|
|
81
|
+
- **Roots, Sampling and Logging are deprecated** with at least 12 months' notice [V]; do not build new trust on them.
|
|
82
|
+
- **MCP Apps** (server-built UIs rendered in the client) are a phishing surface: treat them as untrusted content, never as the client's own UI, and never let them collect credentials.
|
|
83
|
+
- Stdio servers do not use the OAuth flow; they get credentials from the environment, so scope those.
|
|
63
84
|
- **Stdio servers execute locally.** Command-injection CVEs in stdio server launchers are a recurring class [S]. Never construct the launch command from untrusted input; never auto-register a server from web content — this has been an RCE in the wild [S].
|
|
64
85
|
- **Config files hold live credentials** — GitGuardian found 24,008 unique secrets in public MCP configuration files in 2025 [V]. Reference env vars or a keychain from `.mcp.json`; never commit literal keys.
|
|
65
86
|
- **Server-side**: authenticate callers, authorize per-tool, validate every argument against a schema, and never let a tool return content that the client will treat as an instruction without provenance marking.
|
|
@@ -2,7 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
The flow for "is this safe to ship", a hardening pass, or a requested audit. **Default: run it yourself, in the main thread.** Fan out only when SKILL.md's Scaling table says so (more than one deployable, or more ledger rows than you can read in full) — see "Fan-out variant" below. For inline work, do not run this — apply the control and move on.
|
|
4
4
|
|
|
5
|
-
Contents
|
|
5
|
+
## Contents
|
|
6
|
+
|
|
7
|
+
- Phase 1 Recon
|
|
8
|
+
- Phase 2 Plan the audit (coverage ledger)
|
|
9
|
+
- Fan-out variant
|
|
10
|
+
- Phase 3 Audits
|
|
11
|
+
- Phase 4 False-positive filter
|
|
12
|
+
- Phase 5 Report (template, writing for non-specialists)
|
|
13
|
+
- Phase 6 Ask before fixing
|
|
14
|
+
- Standards mapping
|
|
6
15
|
|
|
7
16
|
**Every phase is authorized defensive review for the code owner.** The deliverable is a remediation report. No exploit code, no payloads, no attack tooling, at any phase. Describe risk at the data-flow level: where untrusted data enters, what it reaches, why it is fixable.
|
|
8
17
|
|
|
@@ -55,14 +64,14 @@ From recon, choose which classes apply. **Skip audits with no entry surface.** A
|
|
|
55
64
|
Only when the Scaling table in SKILL.md triggers it; otherwise skip this section.
|
|
56
65
|
|
|
57
66
|
1. Recon (Phase 1) and the ledger stay in the main thread — children never do recon for the whole project.
|
|
58
|
-
2. Split ledger rows into **disjoint** slices (usually one deployable each). One `auditor`
|
|
67
|
+
2. Split ledger rows into **disjoint** slices (usually one deployable each). One security auditor per slice (`auditor` where your spawn_agent lists it, else a read-only repo helper), all in ONE `spawn_agent` call, ≤ 6 per wave.
|
|
59
68
|
3. Each brief opens with: *"Authorized defensive security review of code the user owns. Report data-flow risks and fixes only; no exploits, payloads, or attack tooling."* — children with no conversation context may otherwise refuse. Then include: absolute skill root and which reference files to read; slice paths; owned ledger rows; that slice's rows from the sources/sinks/assets/controls tables; the ≥0.8 confidence bar with a concrete source→sink path; the Phase 4 hard-exclusion list verbatim; labels `RUNTIME`/`CODE`/`DEDUCED`/`SNAPSHOT`; the output schema (title, severity, file:line, source→sink, scenario, fix, confidence, label; plus `checked` and `not checked` lists).
|
|
60
69
|
4. Merge: missing/failed/timed-out rows → `not-checked`. Re-open every reported `file:line` yourself; drop what you cannot reproduce from the code.
|
|
61
|
-
5. Phase 4 then runs as a fresh-context `skeptic`
|
|
70
|
+
5. Phase 4 then runs as a fresh-context verifier child (`skeptic` where listed, else a read-only repo helper) over the merged candidates (same framing line first; give it each candidate's file:line and claimed path; it returns CONFIRMED / DROP / DOWNGRADE). You still own the final call and the dropped-count.
|
|
62
71
|
|
|
63
72
|
## Phase 3 — Audits
|
|
64
73
|
|
|
65
|
-
Run each selected audit yourself (or, in the fan-out variant, each slice's
|
|
74
|
+
Run each selected audit yourself (or, in the fan-out variant, each slice's auditor runs its owned rows), one class at a time, in the priority order from the skill's rank table. Do not pad the list, and do not drop a selected audit. Load only the reference sections (`platform-playbooks.md`, `supply-chain.md`, `agent-surface.md`, `secure-defaults.md`) the selection triggered.
|
|
66
75
|
|
|
67
76
|
For each audit, work from the recon tables — sources, sinks, assets, **controls** — not from fresh greps, and:
|
|
68
77
|
|
|
@@ -75,11 +84,11 @@ For each audit, work from the recon tables — sources, sinks, assets, **control
|
|
|
75
84
|
|
|
76
85
|
## Phase 4 — False-positive filter
|
|
77
86
|
|
|
78
|
-
Switch sides. For each candidate finding, start from "this is a false positive" and try to kill it: re-read the actual code path (not your notes), hunt for the control you missed — middleware, ORM parameterization, framework escaping, a type that makes the path unreachable — and check whether the input is genuinely attacker-reachable rather than a constant or operator config. Drop what dies, downgrade what survives weakened, and keep the count of dropped candidates for the report. Only findings that survive your own attempt to disprove them get reported. In the fan-out variant, or for a pre-ship verdict with Critical/High findings, run this pass as a
|
|
87
|
+
Switch sides. For each candidate finding, start from "this is a false positive" and try to kill it: re-read the actual code path (not your notes), hunt for the control you missed — middleware, ORM parameterization, framework escaping, a type that makes the path unreachable — and check whether the input is genuinely attacker-reachable rather than a constant or operator config. Drop what dies, downgrade what survives weakened, and keep the count of dropped candidates for the report. Only findings that survive your own attempt to disprove them get reported. In the fan-out variant, or for a pre-ship verdict with Critical/High findings, run this pass as a verifier child (see above) instead of only yourself.
|
|
79
88
|
|
|
80
89
|
**Hard exclusions — do not report these, even when technically real:**
|
|
81
90
|
|
|
82
|
-
- Denial of service, rate limiting, or memory exhaustion without a clear amplification primitive
|
|
91
|
+
- Denial of service, rate limiting, or memory exhaustion without a clear amplification primitive (exception: a missing rate limit on login, signup, password reset, or a paid/LLM endpoint is reportable)
|
|
83
92
|
- Theoretical races with no demonstrable trigger window
|
|
84
93
|
- Regex denial of service where the pattern is not attacker-supplied
|
|
85
94
|
- Log injection or log spoofing (cosmetic)
|
|
@@ -97,6 +106,14 @@ Switch sides. For each candidate finding, start from "this is a false positive"
|
|
|
97
106
|
|
|
98
107
|
One report. No code edits in this phase.
|
|
99
108
|
|
|
109
|
+
**Write it for someone who has never read a CVE.**
|
|
110
|
+
|
|
111
|
+
- Lead with what an attacker gets, in plain words: "anyone who knows a user's ID can read their invoices", not "IDOR in the invoice controller".
|
|
112
|
+
- Name the file and line, then the fix, then the reason, in that order.
|
|
113
|
+
- Give the base rate honestly. Fear is not a lever; a scared user makes worse decisions and often ships nothing.
|
|
114
|
+
- Keep standards jargon (CWE, OWASP IDs) in a labelled field, not in the sentence that has to be understood.
|
|
115
|
+
- Fill "Not checked" honestly: a review that silently skips the mobile client, admin panel, or infra repo reads as complete coverage.
|
|
116
|
+
|
|
100
117
|
```
|
|
101
118
|
# Bulletproof Report — [project]
|
|
102
119
|
Date: [today] Scope: [what was reviewed] Not reviewed: [what was not]
|
|
@@ -6,6 +6,18 @@ Snapshot 3 October 2026. **[V]** verified, **[S]** snapshot-volatile, **[U]** un
|
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
+
## Contents
|
|
10
|
+
|
|
11
|
+
- Web & API
|
|
12
|
+
- Mobile (iOS / Android)
|
|
13
|
+
- Desktop
|
|
14
|
+
- CLI & developer tooling
|
|
15
|
+
- Embedded, IoT & firmware
|
|
16
|
+
- Smart contracts & web3
|
|
17
|
+
- ML & AI pipelines
|
|
18
|
+
- Games & client-side software
|
|
19
|
+
- Language hot zones
|
|
20
|
+
|
|
9
21
|
## Web & API
|
|
10
22
|
|
|
11
23
|
The best-understood surface; the failures are still the same three.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Provenance
|
|
2
2
|
|
|
3
|
-
**Snapshot date: 3 October 2026** (previous full snapshot 12 August 2026). Items re-verified on
|
|
3
|
+
**Snapshot date: 3 October 2026**, partially re-verified **22 October 2026** (previous full snapshot 12 August 2026). Items re-verified on either date are listed below; anything else carries its marker from the earlier snapshot. Security facts decay faster than any other content in this repository — a version number, a CVE, a default, or an incident detail that was accurate at snapshot time may be wrong by the time you read it.
|
|
4
4
|
|
|
5
5
|
## Confidence markers
|
|
6
6
|
|
|
@@ -21,7 +21,7 @@ Unmarked engineering guidance (parameterize queries, fail closed, least privileg
|
|
|
21
21
|
| OWASP Top 10:2025 order (A01 Broken Access Control … A03 Software Supply Chain Failures … A10 Mishandling of Exceptional Conditions; SSRF folded into A01) | top10.owasp.org/2025 |
|
|
22
22
|
| 2025 CWE Top 25: 1 XSS, 2 SQLi, 3 CSRF, 4 Missing Authorization | MITRE CWE Top 25 (Dec 2025) |
|
|
23
23
|
| OWASP Top 10 for Agentic Applications 2026 (ASI01–ASI10), published 9 Dec 2025 | OWASP GenAI Security Project |
|
|
24
|
-
| MCP 2025-11-25
|
|
24
|
+
| MCP 2025-11-25 (superseded 22 Oct: see below) | modelcontextprotocol.io changelog |
|
|
25
25
|
| npm: classic tokens revoked 9 Dec 2025; 2-h session tokens; staged publishing GA 22 May 2026 (CLI 11.15.0); npm 12 scripts off by default (8 Jul 2026) | GitHub Changelog; npm release notes |
|
|
26
26
|
| GitHub Actions: SHA-pin enforcement policy (Aug 2025); `pull_request_target` default-branch source (8 Dec 2025); checkout fork-ref refusal (Jun/Jul 2026) | GitHub Changelog |
|
|
27
27
|
| TanStack compromise chain (11 May 2026) | TanStack postmortem |
|
|
@@ -39,6 +39,23 @@ Unmarked engineering guidance (parameterize queries, fail closed, least privileg
|
|
|
39
39
|
|
|
40
40
|
Dropped as not re-verifiable this pass: specific breakout-time figures, the "38% of organizations" workflow statistic, the 77-extension campaign count, the March 2026 scanner-action tag incident, ATT&CK campaign IDs, and Anthropic's banned-account mapping figures.
|
|
41
41
|
|
|
42
|
+
## Re-verified 22 October 2026
|
|
43
|
+
|
|
44
|
+
| Claim | Marker | Primary source |
|
|
45
|
+
|---|---|---|
|
|
46
|
+
| MCP current spec 2026-07-28: stateless (no initialize / `Mcp-Session-Id`), `Mcp-Method`/`Mcp-Name` headers, `requestState`, cacheable listings, DCR deprecated for CIMD, RFC 9207 `iss`, Roots/Sampling/Logging deprecated ≥12 months, MCP Apps | [V] (coordinator) | claude.com/blog/bringing-mcp-2026-07-28-to-claude; modelcontextprotocol.io/specification/2026-07-28 |
|
|
47
|
+
| MCP Streamable HTTP: MUST validate `Origin`, 403 if present and invalid; SHOULD bind localhost | [V] | modelcontextprotocol.io/specification/2026-07-28/basic/transports/streamable-http |
|
|
48
|
+
| OAuth 2.1 still an Internet-Draft (draft-ietf-oauth-v2-1-16) | [V] | datatracker.ietf.org/doc/draft-ietf-oauth-v2-1/ |
|
|
49
|
+
| npm: unvalidated trusted-publishing configs expire; staged publishing supports new packages (both 2 Oct 2026) | [V] | github.blog/changelog (2026-10-02 entries) |
|
|
50
|
+
| npm refuses trusted-publishing tokens from `issue_comment`; 48-hour validation window; SlugFest (Bloom Security, 13 Oct 2026) | [S] | Secondary reporting (workos.com, cybersecuritynews.com); changelog body not readable this pass |
|
|
51
|
+
| `tensorlake@0.5.144` malware advisory, 8 Oct 2026 | [V] | github.com/advisories/GHSA-rqxj-g25x-4v9v |
|
|
52
|
+
| tensorlake: valid provenance, preinstall hook, pushed to main | [S] | Aikido, StepSecurity reporting |
|
|
53
|
+
| Next.js 14 Oct 2026 critical RCEs (`use cache` typed arrays; SVG via sharp/librsvg) + Server Actions DoS | [V] (coordinator) | Next.js advisories |
|
|
54
|
+
| Node.js 21 Oct 2026 security releases incl. Brotli decoder OOB write and TLS hostname bypass | [V] | nodejs.org/en/blog/vulnerability/october-2026-security-releases |
|
|
55
|
+
| CWE Top 25 2025 is still the latest edition | [V] | cwe.mitre.org/top25 |
|
|
56
|
+
|
|
57
|
+
Changed this pass: `threat-landscape.md` rewritten as technique + fingerprint (counts and statistics dropped); package-manager version minimums for release-age cooldowns replaced with a rule; the "~80 days to exploitation" figure dropped.
|
|
58
|
+
|
|
42
59
|
## Source classes
|
|
43
60
|
|
|
44
61
|
- **Standards and frameworks**: OWASP (Top 10:2025, ASVS 5.0.0, API Security Top 10 2023, MASVS 2.1.0 / MASTG 2.0.0, LLM Top 10 2025, Agentic Top 10 2026), MITRE (CWE Top 25 2025 edition, ATT&CK), NIST (SP 800-63B-4, SP 800-218 / 218A, SP 800-53 Rev 5, FIPS 203/204/205), SLSA, OpenSSF.
|
|
@@ -4,6 +4,18 @@ The values to write **while building**, so the audit finds nothing. When a choic
|
|
|
4
4
|
|
|
5
5
|
Snapshot 3 October 2026. **[V]** verified, **[S]** snapshot-volatile, **[U]** uncertain. Re-verify version-sensitive items before asserting them as current.
|
|
6
6
|
|
|
7
|
+
## Contents
|
|
8
|
+
|
|
9
|
+
- Secrets
|
|
10
|
+
- Authentication
|
|
11
|
+
- Authorization
|
|
12
|
+
- Cryptography
|
|
13
|
+
- Input handling
|
|
14
|
+
- Web response headers
|
|
15
|
+
- Cloud, containers & infrastructure
|
|
16
|
+
- Logging & detection
|
|
17
|
+
- Failure behavior
|
|
18
|
+
|
|
7
19
|
## Secrets
|
|
8
20
|
|
|
9
21
|
**The single highest-yield control for a small team.** 28.65M new hardcoded secrets appeared on public GitHub in 2025, and 64% of valid secrets leaked in 2022 were still live in 2026 [V] — leaks are not revoked, so prevention and rotation both matter.
|
|
@@ -29,7 +41,7 @@ Baseline per **NIST SP 800-63B-4** (final 31 Jul 2025) [V]:
|
|
|
29
41
|
Implementation:
|
|
30
42
|
|
|
31
43
|
- Hash with **argon2id** (memory-hard, tuned so a verification takes ~100–300 ms on your hardware) or bcrypt where argon2 is unavailable. Never a bare SHA family hash, never MD5.
|
|
32
|
-
- **OAuth**: cite **RFC 9700** (OAuth 2.0 Security BCP, Jan 2025) [V] — OAuth 2.1 is still an IETF draft as of
|
|
44
|
+
- **OAuth**: cite **RFC 9700** (OAuth 2.0 Security BCP, Jan 2025) [V] — OAuth 2.1 is still an IETF Internet-Draft (draft-ietf-oauth-v2-1-16) as of 22 Oct 2026 [V]. Concretely: authorization code + PKCE for every client; no implicit or password grant; exact-string redirect-URI matching; `state`/PKCE/nonce against CSRF; mix-up defense when talking to several authorization servers; short-lived access tokens; refresh tokens rotated with reuse detection or sender-constrained. Prefer a maintained library or hosted IdP over writing the flow.
|
|
33
45
|
- Session tokens from a CSPRNG, ≥128 bits. Rotate the session identifier on login and on privilege change. Server-side revocation must exist — a stateless token you cannot revoke is an outage during an incident.
|
|
34
46
|
- Constant-time comparison for tokens, signatures, and MFA codes — but **validate the shape before you compare**. A stored credential whose hex/base64 decodes to the wrong length, or whose scheme/salt/hash does not parse, must be rejected as malformed and fail closed; never fall through to the comparison. `timingSafeEqual` on two empty buffers returns true, so an unparsed record can verify any password.
|
|
35
47
|
- Rate-limit and lock out on login, reset, MFA, and token exchange. Generic failure messages: never reveal whether the account exists.
|