deepmodebot 0.0.0-stage → 0.9.1
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/.claude-plugin/marketplace.json +26 -0
- package/.omp-plugin/marketplace.json +26 -0
- package/LICENSE +24 -0
- package/README.md +377 -2
- package/bin/deepmodebot.mjs +247 -0
- package/lib/autoupdate.mjs +47 -0
- package/lib/clients.mjs +139 -0
- package/lib/run.mjs +32 -0
- package/lib/state.mjs +52 -0
- package/lib/tree.mjs +48 -0
- package/lib/version.mjs +26 -0
- package/package.json +44 -4
- package/plugins/deepmodebot/.antigravity-plugin/plugin.json +35 -0
- package/plugins/deepmodebot/.antigravity-plugin/skills/deep/SKILL.md +13 -0
- package/plugins/deepmodebot/.antigravity-plugin/skills/land-pr/SKILL.md +23 -0
- package/plugins/deepmodebot/.antigravity-plugin/skills/pr-thread/SKILL.md +17 -0
- package/plugins/deepmodebot/.antigravity-plugin/skills/review-pr/SKILL.md +16 -0
- package/plugins/deepmodebot/.antigravity-plugin/skills/tournament/SKILL.md +14 -0
- package/plugins/deepmodebot/.claude-plugin/plugin.json +27 -0
- package/plugins/deepmodebot/agents/reviewer/agent.md +33 -0
- package/plugins/deepmodebot/agents/scout/agent.md +34 -0
- package/plugins/deepmodebot/agents/security-reviewer/agent.md +30 -0
- package/plugins/deepmodebot/assets/logo.svg +8 -0
- package/plugins/deepmodebot/commands/contribute.md +8 -0
- package/plugins/deepmodebot/commands/deep.md +11 -0
- package/plugins/deepmodebot/commands/land-pr.md +12 -0
- package/plugins/deepmodebot/commands/pr-thread.md +14 -0
- package/plugins/deepmodebot/commands/project-brief.md +8 -0
- package/plugins/deepmodebot/commands/review-pr.md +10 -0
- package/plugins/deepmodebot/commands/tournament.md +12 -0
- package/plugins/deepmodebot/hooks/hooks.json +26 -0
- package/plugins/deepmodebot/hooks.json +24 -0
- package/plugins/deepmodebot/mcp_config.json +11 -0
- package/plugins/deepmodebot/scripts/antigravity-guard.mjs +413 -0
- package/plugins/deepmodebot/scripts/omp-mcp-server.mjs +1091 -0
- package/plugins/deepmodebot/skills/agent-harnesses/SKILL.md +57 -0
- package/plugins/deepmodebot/skills/agent-harnesses/assets/sdks/bun.lock +391 -0
- package/plugins/deepmodebot/skills/agent-harnesses/assets/sdks/check.ts +53 -0
- package/plugins/deepmodebot/skills/agent-harnesses/assets/sdks/check_antigravity.py +38 -0
- package/plugins/deepmodebot/skills/agent-harnesses/assets/sdks/check_claude.mjs +11 -0
- package/plugins/deepmodebot/skills/agent-harnesses/assets/sdks/package.json +11 -0
- package/plugins/deepmodebot/skills/agent-harnesses/assets/sdks/requirements.txt +1 -0
- package/plugins/deepmodebot/skills/agent-harnesses/references/ai-native-tooling.md +190 -0
- package/plugins/deepmodebot/skills/agent-harnesses/references/ai-sdk-selection.md +50 -0
- package/plugins/deepmodebot/skills/agent-harnesses/references/antigravity.md +108 -0
- package/plugins/deepmodebot/skills/agent-harnesses/references/claude-code.md +166 -0
- package/plugins/deepmodebot/skills/agent-harnesses/references/codex.md +151 -0
- package/plugins/deepmodebot/skills/agent-harnesses/references/delegation-efficiency.md +230 -0
- package/plugins/deepmodebot/skills/agent-harnesses/references/langchain-ecosystem.md +124 -0
- package/plugins/deepmodebot/skills/agent-harnesses/references/omp.md +183 -0
- package/plugins/deepmodebot/skills/agent-harnesses/references/protocols.md +172 -0
- package/plugins/deepmodebot/skills/agent-harnesses/references/sdks.md +228 -0
- package/plugins/deepmodebot/skills/agent-harnesses/references/self-authoring.md +171 -0
- package/plugins/deepmodebot/skills/cloud-devsecops/SKILL.md +24 -0
- package/plugins/deepmodebot/skills/cloud-devsecops/references/aws.md +264 -0
- package/plugins/deepmodebot/skills/cloud-devsecops/references/azure.md +261 -0
- package/plugins/deepmodebot/skills/cloud-devsecops/references/containers.md +96 -0
- package/plugins/deepmodebot/skills/cloud-devsecops/references/devops-tools.md +297 -0
- package/plugins/deepmodebot/skills/cloud-devsecops/references/devsecops-pipeline.md +258 -0
- package/plugins/deepmodebot/skills/cloud-devsecops/references/gcp.md +258 -0
- package/plugins/deepmodebot/skills/cloud-devsecops/references/kubernetes.md +74 -0
- package/plugins/deepmodebot/skills/cloud-devsecops/references/local-emulators.md +265 -0
- package/plugins/deepmodebot/skills/contribute/SKILL.md +134 -0
- package/plugins/deepmodebot/skills/create-verification-skill/LICENSE +21 -0
- package/plugins/deepmodebot/skills/create-verification-skill/SKILL.md +101 -0
- package/plugins/deepmodebot/skills/create-verification-skill/references/feature-map-example/README.md +47 -0
- package/plugins/deepmodebot/skills/create-verification-skill/references/feature-map-example/create-note.md +39 -0
- package/plugins/deepmodebot/skills/create-verification-skill/references/feature-map-example/search.md +45 -0
- package/plugins/deepmodebot/skills/deep-stack/SKILL.md +53 -0
- package/plugins/deepmodebot/skills/deep-stack/references/AGENTS.template.md +52 -0
- package/plugins/deepmodebot/skills/deep-stack/references/agentic-workflow.md +114 -0
- package/plugins/deepmodebot/skills/deep-stack/references/any-app-stack.md +51 -0
- package/plugins/deepmodebot/skills/deep-stack/references/design-workflow.md +101 -0
- package/plugins/deepmodebot/skills/deep-stack/references/isolate.md +23 -0
- package/plugins/deepmodebot/skills/deep-stack/references/philosophy.md +306 -0
- package/plugins/deepmodebot/skills/deep-stack/references/prove.md +31 -0
- package/plugins/deepmodebot/skills/deep-stack/references/stack.md +119 -0
- package/plugins/deepmodebot/skills/deep-stack/references/structure.md +22 -0
- package/plugins/deepmodebot/skills/deep-stack/references/unslop/LICENSE +21 -0
- package/plugins/deepmodebot/skills/deep-stack/references/unslop/unslop.md +80 -0
- package/plugins/deepmodebot/skills/deepmodebot/LICENSE +23 -0
- package/plugins/deepmodebot/skills/deepmodebot/SKILL.md +198 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/agents-md/agents_md.py +207 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/agents-md/test_agents_md.py +146 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/architecture-review/report-template.html +92 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/contain/claude-guard.sh +42 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/contain/claude_guard.py +135 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/contain/omp-contain-link.ts +12 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/contain/omp-contain.ts +115 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/contain/test_antigravity_guard.py +483 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/contain/test_audit_regressions.py +139 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/contain/test_contain.py +301 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/contain/test_omp_mcp.py +602 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/design.py +242 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/evidence.py +293 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/record.py +387 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/review.py +339 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/test_design.py +69 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/test_evidence.py +160 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/test_record.py +180 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/test_review.py +265 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/git-guardrails/git-guard-patterns.txt +44 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/git-guardrails/git-guard.sh +132 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/git-guardrails/git-guard.ts +122 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/git-guardrails/test_git_guard.py +192 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/bot.py +3037 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/brand.json +11 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/brand.py +51 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/ghapp.py +361 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/install.py +274 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/local_updates.py +576 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/review_context.py +204 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_bot.py +2182 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_brand.py +19 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_local_updates.py +691 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_review_context.py +127 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_workspace_cleanup.py +496 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/workspace_cleanup.py +351 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/loop/loop.py +2394 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/loop/plan.py +583 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/loop/test_loop.py +1426 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/loop/test_plan.py +320 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/loop/test_windows_job.py +326 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/loop/windows_job.py +244 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/perf-audit/bench_harness.py +165 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/perf-audit/perf_audit.py +240 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/perf-audit/test_bench_harness.py +55 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/perf-audit/test_perf_audit.py +53 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/pr-agent/diff_coverage.py +350 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/pr-agent/pr_agent_local.py +370 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/pr-agent/test_diff_coverage.py +94 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/arena.html +425 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/arena.py +579 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/arena_tui.py +839 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/font8x8_basic.hex +1 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/show_thread.py +329 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/test_arena.py +610 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/repo-references.json +637 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/scrape/test_yt_enrich.py +250 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/scrape/yt_enrich.py +1820 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/scrape/yt_meta.py +156 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/scrape/yt_transcript_relay.js +54 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/security-audit/audit-pr.sh +122 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/security-audit/gate.cjs +155 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/security-audit/prompt.md +13 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/tournament/test_tournament.py +654 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/tournament/tournament.py +1285 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/wizard/wizard.sh +234 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/workspace-map/test_workspace_map.py +879 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/workspace-map/workspace_map.py +2436 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/README.md +61 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/catalog.md +105 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/contain.md +39 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/factory-landscape.md +147 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/flows.md +50 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/authoring-a-skill.md +37 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/babysit.md +77 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/bug-fix.md +34 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/end-to-end.md +50 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/eval.md +39 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/feature.md +60 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/handoff.md +52 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/hillclimb.md +46 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/investigation.md +20 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/opening-a-pr.md +97 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/pause-safely.md +30 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/perf-issue.md +31 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/phased-build.md +146 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/prototype.md +31 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/refactoring.md +60 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/reference-rebuild.md +45 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/run-a-goal.md +143 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/runtime-forensics.md +22 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/self-authoring.md +130 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/session-pickup.md +33 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/setup.md +105 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/shipping.md +52 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/spec.md +67 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/tickets.md +56 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/trace-forensics.md +24 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/triage.md +102 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/visual-parity.md +19 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/wayfinder.md +44 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/work-a-queue.md +189 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/worktree-cleanup.md +35 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/attack-the-premise.md +7 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/boundary-discipline.md +8 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/build-the-lever.md +8 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/encode-lessons-in-structure.md +6 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/exhaust-the-design-space.md +4 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/experience-first.md +7 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/explain-the-number.md +9 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/fix-root-causes.md +6 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/foundational-thinking.md +9 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/guard-the-context-window.md +7 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/laziness-protocol.md +6 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/make-operations-idempotent.md +7 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/migrate-callers-then-delete-legacy-apis.md +5 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/minimize-reader-load.md +7 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/model-the-domain.md +7 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/never-block-on-the-human.md +7 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/outcome-oriented-execution.md +6 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/prove-it-works.md +8 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/redesign-from-first-principles.md +7 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/separate-before-serializing-shared-state.md +6 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/sequence-verifiable-units.md +7 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/subtract-before-you-add.md +6 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/test-behavior-not-implementation.md +7 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/type-system-discipline.md +6 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/rust-migration-case-studies.md +26 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/startup-ideas.md +21 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/agent-collaboration.md +82 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/architect.md +32 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/architecture-review.md +43 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/arena.md +20 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/benchmark-checklist.md +31 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/blast-radius.md +19 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/correct.md +20 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/course.md +47 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/coworkers.md +70 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/domain-model.md +69 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/figure-it-out.md +25 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/git-guardrails.md +44 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/github-app.md +160 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/goal-review.md +156 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/grill.md +27 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/how.md +23 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/in-your-own-words.md +12 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/inner-loop.md +39 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/interrogate.md +16 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/issue-conversation.md +52 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/no-comments.md +29 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/open-design-evidence.md +65 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/panel.md +34 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/pr-agent.md +39 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/pr-conversation.md +135 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/pr-review.md +138 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/pre-commit.md +31 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/prior-art.md +44 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/questionnaire.md +46 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/re-explain.md +23 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/recall.md +19 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/reflect.md +20 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/research.md +99 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/retro.md +30 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/scrape.md +32 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/security-audit.md +40 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/sharpen.md +15 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/show-me-your-work.md +19 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/sme-review.md +49 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/swarm.md +14 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/tdd.md +55 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/teach.md +20 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/technical-writing.md +22 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/tool-routing.md +85 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/tournament.md +44 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/tracker.md +78 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/unslop.md +15 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/visual-e2e.md +78 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/why.md +31 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/wizard.md +25 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/workspace-map.md +35 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/writing-for-agents.md +66 -0
- package/plugins/deepmodebot/skills/deepmodebot/scripts/check_skill.py +93 -0
- package/plugins/deepmodebot/skills/deepmodebot/scripts/trending.py +598 -0
- package/plugins/deepmodebot/skills/domain-rules/SKILL.md +131 -0
- package/plugins/deepmodebot/skills/domain-rules/references/agent-engineering.md +105 -0
- package/plugins/deepmodebot/skills/domain-rules/references/ai-concepts.md +103 -0
- package/plugins/deepmodebot/skills/domain-rules/references/aws-networking.md +121 -0
- package/plugins/deepmodebot/skills/domain-rules/references/backend-system-design.md +162 -0
- package/plugins/deepmodebot/skills/domain-rules/references/data-structures-and-cache-optimization.md +48 -0
- package/plugins/deepmodebot/skills/domain-rules/references/devops-and-fundamentals.md +137 -0
- package/plugins/deepmodebot/skills/domain-rules/references/engineering-practice.md +100 -0
- package/plugins/deepmodebot/skills/domain-rules/references/high-scale-server-optimization.md +181 -0
- package/plugins/deepmodebot/skills/domain-rules/references/language-ecosystems.md +56 -0
- package/plugins/deepmodebot/skills/frontend-ui/SKILL.md +146 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/patterns/live-demos.md +38 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/patterns/mobbin-shipped-apps.md +28 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/patterns/motion-clips.md +269 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/patterns/motion-graphics.md +62 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/patterns/pinterest-animations.md +217 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/patterns/pinterest-patterns.md +101 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/01-workflow.md +25 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/02-review-rubric.md +21 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/03-ai-tells.md +46 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/04-components.md +21 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/04a-agent-ui.md +153 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/05-motion.md +106 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/05a-motion-graphics.md +121 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/06-typography-layout.md +48 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/06a-color.md +26 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/07-copy.md +11 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/08-quality-floor.md +63 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/09-steering-agents.md +13 -0
- package/plugins/deepmodebot/skills/maintain-verification-skill/LICENSE +21 -0
- package/plugins/deepmodebot/skills/maintain-verification-skill/SKILL.md +47 -0
- package/plugins/deepmodebot/skills/project-brief/SKILL.md +100 -0
- package/plugins/deepmodebot/skills/project-brief/assets/CONTRIBUTING.template.md +124 -0
- package/plugins/deepmodebot/skills/project-brief/assets/ISSUE_TEMPLATE/task.yml +61 -0
- package/plugins/deepmodebot/skills/project-brief/assets/PROJECT_BRIEF.template.md +98 -0
- package/plugins/deepmodebot/skills/project-brief/assets/PULL_REQUEST_TEMPLATE.md +35 -0
- package/plugins/deepmodebot/skills/project-brief/assets/pr-overlap.py +643 -0
- package/plugins/deepmodebot/skills/project-brief/assets/sync-roadmap.py +314 -0
- package/plugins/deepmodebot/skills/secrets-and-auth/SKILL.md +60 -0
- package/plugins/deepmodebot/skills/secrets-and-auth/references/agent-authentication.md +198 -0
- package/plugins/deepmodebot/skills/secrets-and-auth/references/leak-prevention.md +206 -0
- package/plugins/deepmodebot/skills/secrets-and-auth/references/logins-and-passwords.md +165 -0
- package/plugins/deepmodebot/skills/secrets-and-auth/references/secrets-and-env.md +182 -0
- package/plugins/deepmodebot/skills/software-architecture/SKILL.md +47 -0
- package/plugins/deepmodebot/skills/software-architecture/references/backend-infrastructure.md +273 -0
- package/plugins/deepmodebot/skills/software-architecture/references/databases.md +277 -0
- package/plugins/deepmodebot/skills/software-architecture/references/monorepos.md +210 -0
- package/plugins/deepmodebot/skills/software-architecture/references/ontology.md +287 -0
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""Generate ROADMAP.md from GitHub Issues labeled `help wanted`.
|
|
3
|
+
|
|
4
|
+
Sections:
|
|
5
|
+
## Open to claim - no active claim, no assignee, no open PR referencing it
|
|
6
|
+
## Claimed - an active claim comment or an assignee, no open PR yet
|
|
7
|
+
## In review - an open PR body says closes/fixes/resolves #N
|
|
8
|
+
|
|
9
|
+
Claim rule (shared with pr-overlap.py): each author's newest comment containing
|
|
10
|
+
`<!-- deepmodebot:claim -->` on an open issue is their claim. It is active while
|
|
11
|
+
its `Expires:` date is today or later and that author has posted no comment
|
|
12
|
+
containing `<!-- deepmodebot:unclaim -->` after it. Every active claim counts.
|
|
13
|
+
An assignee also counts as a claim (files unknown), unless they posted a claim
|
|
14
|
+
comment on the issue: then only that comment counts, and an expired or released
|
|
15
|
+
one frees the issue.
|
|
16
|
+
|
|
17
|
+
Output is deterministic for the same GitHub data and date: no timestamps,
|
|
18
|
+
rows sorted by issue number, labels sorted.
|
|
19
|
+
|
|
20
|
+
Exit codes: 0 ok (or unchanged under --check), 1 file would change (--check),
|
|
21
|
+
2 usage or gh error.
|
|
22
|
+
|
|
23
|
+
Requires Python 3.10+ and an authenticated GitHub CLI (`gh`).
|
|
24
|
+
"""
|
|
25
|
+
from __future__ import annotations
|
|
26
|
+
|
|
27
|
+
import argparse
|
|
28
|
+
import datetime as dt
|
|
29
|
+
import json
|
|
30
|
+
import os
|
|
31
|
+
import re
|
|
32
|
+
import subprocess
|
|
33
|
+
import sys
|
|
34
|
+
import tempfile
|
|
35
|
+
from typing import Any
|
|
36
|
+
|
|
37
|
+
LABEL = "help wanted"
|
|
38
|
+
LIVE_QUERY = "is%3Aissue+is%3Aopen+label%3A%22" + LABEL.replace(" ", "+") + "%22"
|
|
39
|
+
CLAIM_MARKER = "<!-- deepmodebot:claim -->"
|
|
40
|
+
UNCLAIM_MARKER = "<!-- deepmodebot:unclaim -->"
|
|
41
|
+
HEADER = "Generated from GitHub Issues by sync-roadmap.py. Edit issues, not this file."
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
class GhError(Exception):
|
|
45
|
+
pass
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def gh_api(path: str) -> list[Any]:
|
|
49
|
+
"""Call `gh api --paginate` and return the merged list of page items."""
|
|
50
|
+
proc = subprocess.run(
|
|
51
|
+
["gh", "api", "--paginate", "-H", "Accept: application/vnd.github+json", path],
|
|
52
|
+
capture_output=True,
|
|
53
|
+
text=True,
|
|
54
|
+
encoding="utf-8",
|
|
55
|
+
errors="replace",
|
|
56
|
+
)
|
|
57
|
+
if proc.returncode != 0:
|
|
58
|
+
raise GhError(f"gh api {path} failed: {proc.stderr.strip() or proc.stdout.strip()}")
|
|
59
|
+
# --paginate concatenates page arrays ("[...][...]"); decode them one by one.
|
|
60
|
+
out = proc.stdout
|
|
61
|
+
decoder = json.JSONDecoder()
|
|
62
|
+
items: list[Any] = []
|
|
63
|
+
i = 0
|
|
64
|
+
while True:
|
|
65
|
+
while i < len(out) and out[i].isspace():
|
|
66
|
+
i += 1
|
|
67
|
+
if i >= len(out):
|
|
68
|
+
break
|
|
69
|
+
value, i = decoder.raw_decode(out, i)
|
|
70
|
+
if isinstance(value, list):
|
|
71
|
+
items.extend(value)
|
|
72
|
+
else:
|
|
73
|
+
items.append(value)
|
|
74
|
+
return items
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
def normalize_path(raw: str) -> str | None:
|
|
78
|
+
p = raw.strip().strip('"').strip("'").strip("`").strip().replace("\\", "/")
|
|
79
|
+
is_dir = p.endswith("/")
|
|
80
|
+
while p.startswith("./"):
|
|
81
|
+
p = p[2:]
|
|
82
|
+
p = p.lstrip("/")
|
|
83
|
+
p = re.sub(r"/{2,}", "/", p)
|
|
84
|
+
if p in ("", "."):
|
|
85
|
+
return "" if is_dir or p == "." else None # "" = whole repo when given as "/" or "./"
|
|
86
|
+
p = p.rstrip("/")
|
|
87
|
+
return p + "/" if is_dir else p
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
def parse_paths(text: str) -> list[str]:
|
|
91
|
+
out: list[str] = []
|
|
92
|
+
for part in re.split(r"[,\n]", text or ""):
|
|
93
|
+
norm = normalize_path(part)
|
|
94
|
+
if norm is not None and norm not in out:
|
|
95
|
+
out.append(norm)
|
|
96
|
+
return out
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
def parse_claim(body: str) -> dict[str, Any]:
|
|
100
|
+
plan = files = expires = ""
|
|
101
|
+
for raw in body.splitlines():
|
|
102
|
+
line = raw.strip()
|
|
103
|
+
key, sep, val = line.partition(":")
|
|
104
|
+
if not sep:
|
|
105
|
+
continue
|
|
106
|
+
k = key.strip().lower()
|
|
107
|
+
if k == "plan" and not plan:
|
|
108
|
+
plan = val.strip()
|
|
109
|
+
elif k == "files" and not files:
|
|
110
|
+
files = val.strip()
|
|
111
|
+
elif k == "expires" and not expires:
|
|
112
|
+
expires = val.strip()
|
|
113
|
+
paths = sorted(parse_paths(files))
|
|
114
|
+
exp_date = None
|
|
115
|
+
m = re.match(r"(\d{4})-(\d{1,2})-(\d{1,2})", expires)
|
|
116
|
+
if m:
|
|
117
|
+
try:
|
|
118
|
+
exp_date = dt.date(int(m.group(1)), int(m.group(2)), int(m.group(3)))
|
|
119
|
+
except ValueError:
|
|
120
|
+
exp_date = None
|
|
121
|
+
return {"plan": plan, "files": paths, "expires": exp_date}
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
def active_claims(comments: list[dict[str, Any]], today: dt.date) -> list[dict[str, Any]]:
|
|
125
|
+
"""Apply the shared claim rule to an issue's comments. Returns the active claims, oldest first."""
|
|
126
|
+
ordered = sorted(comments, key=lambda c: (c.get("created_at") or "", c.get("id") or 0))
|
|
127
|
+
newest: dict[str, int] = {} # author -> index of their newest claim comment
|
|
128
|
+
for idx, c in enumerate(ordered):
|
|
129
|
+
if CLAIM_MARKER in (c.get("body") or ""):
|
|
130
|
+
newest[((c.get("user") or {}).get("login") or "").lower()] = idx
|
|
131
|
+
active = []
|
|
132
|
+
for author, idx in sorted(newest.items(), key=lambda item: item[1]):
|
|
133
|
+
info = parse_claim(ordered[idx].get("body") or "")
|
|
134
|
+
if info["expires"] is None or info["expires"] < today:
|
|
135
|
+
continue
|
|
136
|
+
if any(((later.get("user") or {}).get("login") or "").lower() == author and UNCLAIM_MARKER in (later.get("body") or "")
|
|
137
|
+
for later in ordered[idx + 1:]):
|
|
138
|
+
continue
|
|
139
|
+
info["author"] = (ordered[idx].get("user") or {}).get("login") or ""
|
|
140
|
+
active.append(info)
|
|
141
|
+
return active
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
def closing_refs(body: str, repo: str) -> set[int]:
|
|
145
|
+
pattern = re.compile(
|
|
146
|
+
r"\b(?:close[sd]?|fix(?:e[sd])?|resolve[sd]?)\b\s*:?\s+(?:" + re.escape(repo) + r")?#(\d+)\b",
|
|
147
|
+
re.IGNORECASE,
|
|
148
|
+
)
|
|
149
|
+
return {int(m.group(1)) for m in pattern.finditer(body or "")}
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
def cell(text: str) -> str:
|
|
153
|
+
text = " ".join((text or "").split())
|
|
154
|
+
return text.replace("|", "\\|") or "-"
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
def collect(repo: str, today: dt.date) -> list[dict[str, Any]]:
|
|
158
|
+
issues = gh_api(f"repos/{repo}/issues?state=open&per_page=100&labels={LABEL.replace(' ', '%20')}")
|
|
159
|
+
issues = [i for i in issues if "pull_request" not in i]
|
|
160
|
+
prs = gh_api(f"repos/{repo}/pulls?state=open&per_page=100")
|
|
161
|
+
|
|
162
|
+
in_review: dict[int, list[dict[str, Any]]] = {}
|
|
163
|
+
for pr in prs:
|
|
164
|
+
for n in closing_refs(pr.get("body") or "", repo):
|
|
165
|
+
in_review.setdefault(n, []).append(pr)
|
|
166
|
+
|
|
167
|
+
rows = []
|
|
168
|
+
for issue in issues:
|
|
169
|
+
n = issue["number"]
|
|
170
|
+
assignees = sorted({(a or {}).get("login", "") for a in issue.get("assignees") or []} - {""})
|
|
171
|
+
comments = gh_api(f"repos/{repo}/issues/{n}/comments?per_page=100") if issue.get("comments", 0) else []
|
|
172
|
+
claims = active_claims(comments, today)
|
|
173
|
+
claimants = [c["author"] for c in claims]
|
|
174
|
+
# Claimants self-assign, so anyone who posted a claim comment counts only through it:
|
|
175
|
+
# an expired or released claim must not live on as an assignee claim.
|
|
176
|
+
claimed = {((c.get("user") or {}).get("login") or "").lower() for c in comments if CLAIM_MARKER in (c.get("body") or "")}
|
|
177
|
+
claimants += [a for a in assignees if a.lower() not in claimed]
|
|
178
|
+
prs_for = sorted(in_review.get(n, []), key=lambda p: p["number"])
|
|
179
|
+
if prs_for:
|
|
180
|
+
section = "review"
|
|
181
|
+
elif claimants:
|
|
182
|
+
section = "claimed"
|
|
183
|
+
else:
|
|
184
|
+
section = "open"
|
|
185
|
+
rows.append({
|
|
186
|
+
"number": n,
|
|
187
|
+
"url": issue.get("html_url") or f"https://github.com/{repo}/issues/{n}",
|
|
188
|
+
"title": issue.get("title") or "",
|
|
189
|
+
"labels": sorted({(l or {}).get("name", "") for l in issue.get("labels") or []} - {""}),
|
|
190
|
+
"claimants": claimants,
|
|
191
|
+
"files": sorted({f for c in claims for f in c["files"]}),
|
|
192
|
+
"prs": [(p["number"], p.get("html_url") or "", ((p.get("user") or {}).get("login")) or "") for p in prs_for],
|
|
193
|
+
"section": section,
|
|
194
|
+
})
|
|
195
|
+
rows.sort(key=lambda r: r["number"])
|
|
196
|
+
return rows
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
def render(repo: str, rows: list[dict[str, Any]]) -> str:
|
|
200
|
+
out = [
|
|
201
|
+
"# Roadmap",
|
|
202
|
+
"",
|
|
203
|
+
f"<!-- {HEADER} -->",
|
|
204
|
+
f"_{HEADER}_",
|
|
205
|
+
"",
|
|
206
|
+
f"Tasks are open issues in `{repo}` labeled `{LABEL}`. "
|
|
207
|
+
"Claim one with `/deepmodebot:contribute` (`/contribute` in Antigravity, `$deepmodebot:contribute` in Codex) or by commenting on the issue.",
|
|
208
|
+
"",
|
|
209
|
+
"This file is a snapshot from the maintainer's last sync, so a task may have been claimed since. "
|
|
210
|
+
f"The live list: [open `{LABEL}` issues](https://github.com/{repo}/issues?q={LIVE_QUERY}).",
|
|
211
|
+
"",
|
|
212
|
+
]
|
|
213
|
+
sections = [
|
|
214
|
+
("open", "Open to claim", "Claimed by"),
|
|
215
|
+
("claimed", "Claimed", "Claimed by"),
|
|
216
|
+
("review", "In review", "Pull request"),
|
|
217
|
+
]
|
|
218
|
+
for key, title, who_header in sections:
|
|
219
|
+
sec = [r for r in rows if r["section"] == key]
|
|
220
|
+
out.append(f"## {title}")
|
|
221
|
+
out.append("")
|
|
222
|
+
if not sec:
|
|
223
|
+
out.append("_None._")
|
|
224
|
+
out.append("")
|
|
225
|
+
continue
|
|
226
|
+
out.append(f"| Issue | Title | Labels | {who_header} | Files |")
|
|
227
|
+
out.append("| --- | --- | --- | --- | --- |")
|
|
228
|
+
for r in sec:
|
|
229
|
+
labels = ", ".join(f"`{l}`" for l in r["labels"]) or "-"
|
|
230
|
+
if r["prs"]:
|
|
231
|
+
who = ", ".join(f"[#{n}]({u})" + (f" by @{a}" if a else "") for n, u, a in r["prs"])
|
|
232
|
+
elif r["claimants"]:
|
|
233
|
+
who = ", ".join(f"@{c}" for c in r["claimants"])
|
|
234
|
+
else:
|
|
235
|
+
who = "-"
|
|
236
|
+
files = ", ".join(f"`{f.replace('`', '').replace('|', chr(92) + '|')}`" for f in r["files"]) or "-"
|
|
237
|
+
out.append(
|
|
238
|
+
f"| [#{r['number']}]({r['url']}) | {cell(r['title'])} | {labels} | {who} | {files} |"
|
|
239
|
+
)
|
|
240
|
+
out.append("")
|
|
241
|
+
return "\n".join(out).rstrip("\n") + "\n"
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
def write_atomic(path: str, text: str) -> None:
|
|
245
|
+
directory = os.path.dirname(os.path.abspath(path))
|
|
246
|
+
fd, tmp = tempfile.mkstemp(prefix=".roadmap-", dir=directory)
|
|
247
|
+
try:
|
|
248
|
+
with os.fdopen(fd, "w", encoding="utf-8", newline="\n") as fh:
|
|
249
|
+
fh.write(text)
|
|
250
|
+
os.replace(tmp, path)
|
|
251
|
+
except BaseException:
|
|
252
|
+
if os.path.exists(tmp):
|
|
253
|
+
os.unlink(tmp)
|
|
254
|
+
raise
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
def main(argv: list[str] | None = None) -> int:
|
|
258
|
+
parser = argparse.ArgumentParser(
|
|
259
|
+
prog="sync-roadmap.py",
|
|
260
|
+
description="Generate a deterministic ROADMAP.md from open GitHub issues labeled 'help wanted'.",
|
|
261
|
+
epilog="Exit codes: 0 ok/unchanged, 1 would change (--check), 2 usage or gh error.",
|
|
262
|
+
)
|
|
263
|
+
parser.add_argument("--repo", required=True, help="owner/name of the GitHub repository")
|
|
264
|
+
parser.add_argument("--out", default="ROADMAP.md", help="output file (default: ROADMAP.md)")
|
|
265
|
+
parser.add_argument("--check", action="store_true", help="do not write; exit 1 if the file would change")
|
|
266
|
+
parser.add_argument("--today", help=argparse.SUPPRESS) # YYYY-MM-DD override for tests
|
|
267
|
+
args = parser.parse_args(argv)
|
|
268
|
+
|
|
269
|
+
if not re.fullmatch(r"[\w.-]+/[\w.-]+", args.repo):
|
|
270
|
+
print(f"sync-roadmap: --repo must be owner/name, got {args.repo!r}", file=sys.stderr)
|
|
271
|
+
return 2
|
|
272
|
+
try:
|
|
273
|
+
today = dt.date.fromisoformat(args.today) if args.today else dt.datetime.now(dt.timezone.utc).date()
|
|
274
|
+
except ValueError:
|
|
275
|
+
print("sync-roadmap: --today must be YYYY-MM-DD", file=sys.stderr)
|
|
276
|
+
return 2
|
|
277
|
+
|
|
278
|
+
try:
|
|
279
|
+
rows = collect(args.repo, today)
|
|
280
|
+
except FileNotFoundError:
|
|
281
|
+
print("sync-roadmap: GitHub CLI `gh` not found on PATH", file=sys.stderr)
|
|
282
|
+
return 2
|
|
283
|
+
except (GhError, json.JSONDecodeError, KeyError) as exc:
|
|
284
|
+
print(f"sync-roadmap: {exc}", file=sys.stderr)
|
|
285
|
+
return 2
|
|
286
|
+
|
|
287
|
+
text = render(args.repo, rows)
|
|
288
|
+
try:
|
|
289
|
+
with open(args.out, encoding="utf-8", newline="") as fh:
|
|
290
|
+
current = fh.read()
|
|
291
|
+
except FileNotFoundError:
|
|
292
|
+
current = None
|
|
293
|
+
|
|
294
|
+
if args.check:
|
|
295
|
+
if current != text:
|
|
296
|
+
print(f"sync-roadmap: {args.out} is out of date", file=sys.stderr)
|
|
297
|
+
return 1
|
|
298
|
+
print(f"sync-roadmap: {args.out} is up to date")
|
|
299
|
+
return 0
|
|
300
|
+
|
|
301
|
+
if current == text:
|
|
302
|
+
print(f"sync-roadmap: {args.out} unchanged")
|
|
303
|
+
return 0
|
|
304
|
+
write_atomic(args.out, text)
|
|
305
|
+
counts = {k: sum(1 for r in rows if r["section"] == k) for k in ("open", "claimed", "review")}
|
|
306
|
+
print(
|
|
307
|
+
f"sync-roadmap: wrote {args.out} "
|
|
308
|
+
f"({counts['open']} open, {counts['claimed']} claimed, {counts['review']} in review)"
|
|
309
|
+
)
|
|
310
|
+
return 0
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
if __name__ == "__main__":
|
|
314
|
+
sys.exit(main())
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: secrets-and-auth
|
|
3
|
+
description: "Rules and free-first tool picks for secrets and agent authentication: .env and secret sharing, password managers, logins and MFA for agents, OAuth delegation, MCP server auth, CI OIDC, secret scanning, and leak response. Use when a task touches secrets, credentials, tokens, logins, or auth."
|
|
4
|
+
metadata:
|
|
5
|
+
as-of: "2026-11-11"
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Credentials, secrets, logins, and agent authentication
|
|
9
|
+
|
|
10
|
+
Read before any task that touches API keys, tokens, `.env` files, passwords, usernames, logins, MFA, OAuth, MCP auth, CI credentials, or a suspected leak. Researched 2026-11-11 against primary sources (vendor docs and pricing pages, GitHub repos and releases, RFCs and IETF drafts, the MCP spec, OWASP). Every claim in the files below carries its link; `[inference]` and `[unverified]` mean what they say. Free tiers and licenses change: recheck the one you pick.
|
|
11
|
+
|
|
12
|
+
| File | Read when |
|
|
13
|
+
|---|---|
|
|
14
|
+
| `references/secrets-and-env.md` | Storing, sharing, encrypting, or injecting API keys and `.env` (dotenvx, SOPS + age, Infisical, Bitwarden Secrets Manager, OpenBao, Doppler, Phase); credential brokers; how omp, Claude Code, Codex, and Antigravity pass env and MCP secrets |
|
|
15
|
+
| `references/logins-and-passwords.md` | Usernames, passwords, website and CLI logins, TOTP and passkeys (Bitwarden + Agent Access, Vaultwarden, KeePassXC, gopass, Proton Pass); browser session reuse; dedicated agent accounts; passing secrets to commands; transcripts on disk |
|
|
16
|
+
| `references/agent-authentication.md` | Protecting an MCP server or agent API, on-behalf-of delegation, human approval, CI and cloud federation (MCP auth 2026-07-28, OAuth 2.1, RFC 8693, DPoP, device flow, CIBA, ID-JAG, SPIFFE); OSS identity servers (Keycloak, Better Auth, Pomerium, Zitadel, authentik); hosted free tiers |
|
|
17
|
+
| `references/leak-prevention.md` | Secret scanning, agent read and env controls, egress sandboxes, documented 2025-2026 incidents, rotation playbook, and the pre-commit checklist |
|
|
18
|
+
|
|
19
|
+
## Rules for the agent
|
|
20
|
+
|
|
21
|
+
1. **Never read, print, paste, or commit a plaintext secret value.** Read `.env.example`/`.env.schema` (or list key names only), check presence without printing (`[ -n "$VAR" ]` in bash; `Test-Path Env:VAR` in PowerShell), and run commands via an injector (`dotenvx run --`, `sops exec-env`, `infisical secrets-manager run --`, `bws run --`). Any value the model sees lands in plaintext transcripts (`~/.claude/projects/`, `~/.codex/sessions/`, `~/.omp/agent/sessions/`, `~/.gemini/antigravity*/brain/`) and at the provider: rotate it on exposure.
|
|
22
|
+
2. **Prefer, in order:** (a) a broker that keeps the real value out of the agent entirely (Claude Code sandbox `mask`, Varlock proxy in a container, Infisical Agent Vault, Bitwarden Agent Access `aac run`, Pomerium or Composio for OAuth tokens); (b) a session or token for the agent's own account; (c) a value read from a vault, only for low-value accounts.
|
|
23
|
+
3. **Agents get their own identities.** A machine or bot account, a fine-grained token scoped to the repos or project the task needs, the shortest expiry that works, one identity per agent so you can revoke one. Never a human's personal login, admin token, TOTP seed, or passkey.
|
|
24
|
+
4. **Logins without passwords.** A human signs in once; the agent reuses the browser session (Playwright `--storage-state` or a dedicated `--user-data-dir` under `.scratch/auth/`) or the CLI's keychain login (`gh`, `az`, `gcloud`, `aws sso`). Headless logins use the OAuth device flow; the human checks the `user_code`.
|
|
25
|
+
5. **Secrets reach commands through stdin, never argv:** `... | docker login --password-stdin`. Arguments show in the process list, shell history, and the transcript of the tool call.
|
|
26
|
+
6. **MCP configs hold references, never literals:** `${VAR}` in Claude Code `.mcp.json`, `env_vars`/`bearer_token_env_var` in Codex, `${VAR}`/`"!cmd"` in omp, and `variables` or env refs in Antigravity `.agents/mcp_config.json` (OAuth tokens live in `~/.gemini/antigravity/mcp_oauth_tokens.json`). MCP servers never pass a client's token through to another API.
|
|
27
|
+
7. **CI uses OIDC, not stored cloud keys,** with the trust policy pinned to repo and environment (`sub`). npm publishes through trusted publishing.
|
|
28
|
+
8. **Scan before every commit and push** (gitleaks with `--redact`; checklist in `leak-prevention.md`). Never bypass a hook, push protection, or scanner finding; stop and tell the user.
|
|
29
|
+
9. **Agent config is code.** Review diffs to `.claude/`, `.codex/`, `.gemini/`, `.agents/`, `.antigravity-plugin/`, `.cursor/`, `.vscode/tasks.json`, `.mcp.json`, `AGENTS.md`, and `CLAUDE.md` like executable changes; pin MCP servers and re-approve them when their tools change.
|
|
30
|
+
10. **Changing the user's machine is the user's call.** Creating vault accounts, writing `~/.codex/config.toml`, `~/.claude/settings.json`, or `~/.gemini/antigravity-cli/settings.json`, storing keys in the OS keychain, and installing tools globally are hard stops (deepmodebot's SKILL.md Autonomy): propose the exact change and let the user apply or approve it.
|
|
31
|
+
11. **On a leak:** revoke or rotate first, check provider logs, hunt persistence in agent config folders and shell rc files, then rewrite history only if still needed. Forks and clones keep the old commits.
|
|
32
|
+
|
|
33
|
+
## What deepmodebot enforces
|
|
34
|
+
|
|
35
|
+
Nothing on reads. deepmodebot's write guards (`skill://deepmodebot/assets/contain/claude_guard.py`, `skill://deepmodebot/assets/contain/omp-contain.ts`, and Antigravity's plugin `antigravity-guard.mjs`) only keep file-tool writes inside the project root; agents can read `.env`, keys, credential files, and saved sessions. The rules above keep values out of output and commits. To block reads, apply the optional settings below.
|
|
36
|
+
|
|
37
|
+
## Optional harness settings (user-level, the user applies them)
|
|
38
|
+
|
|
39
|
+
| Harness | Setting | Why |
|
|
40
|
+
|---|---|---|
|
|
41
|
+
| Claude Code | `permissions.deny` for `Read(.env.keys)`, `Read(~/.ssh/**)`, `Read(~/.aws/**)`; `sandbox.enabled` with `allowUnsandboxedCommands: false`, `failIfUnavailable: true`, a strict network allowlist, and `sandbox.credentials` deny or `mask` entries; `CLAUDE_CODE_SUBPROCESS_ENV_SCRUB=1` | Deny rules miss `grep -r` and scripts; only the sandbox blocks at the OS level. The sandbox is off by default, inherits env, and does not run on native Windows (use WSL2) |
|
|
42
|
+
| Codex | `[shell_environment_policy] inherit = "core"`, `ignore_default_excludes = false`; keep `workspace-write` with network off | By default Codex passes variables named `*KEY*`, `*SECRET*`, `*TOKEN*` to every command |
|
|
43
|
+
| omp | `secrets.enabled: true` in `config.yml`; install `skill://deepmodebot/assets/contain/omp-contain.ts`; `bash.patterns` deny rules if needed | Secret obfuscation is off by default; it swaps secret-looking values for placeholders before provider calls |
|
|
44
|
+
| Antigravity (`agy`) | `--sandbox` / `enableTerminalSandbox: true`, `allowNonWorkspaceAccess: false`; `Deny > Ask > Allow` rules (`read_file`, `command`, `mcp`); `.agents/mcp_config.json` `variables` | OS sandbox blocks `~/.ssh`, `.env`, and unlisted network hosts (no-op on unsupported hosts; Win11 24H2+ AppContainer); `Deny` overrides `Allow`; OAuth tokens and `${PLUGIN_DATA}` stay outside repo |
|
|
45
|
+
|
|
46
|
+
## Free stack for a solo dev or small team
|
|
47
|
+
|
|
48
|
+
| Need | Free pick | Notes |
|
|
49
|
+
|---|---|---|
|
|
50
|
+
| `.env` in git | dotenvx (BSD-3) or SOPS + age (MPL-2.0, BSD-3) | One age key per person, machine, and CI runner in `.sops.yaml`; `.env.keys` never committed |
|
|
51
|
+
| Central secrets | Infisical Free (5 identities) or self-hosted Infisical, Phase, or OpenBao; Bitwarden Secrets Manager Free (2 users, 3 projects, 3 machine accounts) | One machine identity per agent, read-only, one environment |
|
|
52
|
+
| Agent never holds the key | Claude Code sandbox `mask`, Varlock proxy in a container, Infisical Agent Vault (5,000 brokered requests a month free) | Real value added at the network edge for allowed hosts only |
|
|
53
|
+
| Passwords and usernames | Bitwarden Free with a separate agent account in the free two-person organization, or Vaultwarden (AGPL) self-hosted; KeePassXC with one `.kdbx` per agent offline | Bitwarden Agent Access (`aac run`, Apache-2.0, early preview) adds human approval per credential; the Bitwarden MCP server returns passwords into the model's context |
|
|
54
|
+
| Website logins | Human logs in once; Playwright MCP `--storage-state .scratch/auth/<site>.json` or a dedicated profile | The state file is a bearer credential: `0600` (Windows: user-only NTFS ACL via `icacls`), delete after the task |
|
|
55
|
+
| GitHub | Free machine account plus a fine-grained PAT (selected repos, 30-day expiry) or a GitHub App (1-hour tokens) | Classic PATs reach every repo you can access |
|
|
56
|
+
| Protect your own MCP server | Keycloak (Apache-2.0) or Better Auth (MIT) as the authorization server; Cloudflare `workers-oauth-provider` (MIT) on Workers Free | Follow MCP auth 2026-07-28: audience check, PKCE, `iss` check, Client ID Metadata Documents |
|
|
57
|
+
| Gate internal tools | Pomerium (Apache-2.0) with upstream OAuth and `mcp_tool` deny rules, or Cloudflare Zero Trust Free (50 users) | Clients never see upstream tokens |
|
|
58
|
+
| Agents calling SaaS for users | Composio Hobby (100,000 tool calls a month) or Auth0 Free (25,000 MAU, Token Vault) | Provider tokens stay out of the model; the broker's own API key stays server-side |
|
|
59
|
+
| CI and cloud | GitHub OIDC to AWS, GCP, or Azure | No stored cloud keys |
|
|
60
|
+
| Scanning | gitleaks (MIT) pre-commit and in CI; GitHub push protection is free only for public repos | Private-repo push protection costs $19 per committer per month |
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
# Authentication and authorization for AI agents: protocols, free/OSS tools, patterns (2026-11)
|
|
2
|
+
|
|
3
|
+
Strongest recommendations:
|
|
4
|
+
- Remote MCP servers: follow the MCP 2026-07-28 auth spec (OAuth 2.1 resource server, RFC 9728 metadata, RFC 8707 audience, PKCE, `iss` check). Prefer Client ID Metadata Documents; DCR is now deprecated. Never pass a client's token through to a downstream API ([MCP auth](https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization)).
|
|
5
|
+
- Self-hosted and free: Keycloak (Apache-2.0) or Better Auth (MIT) as the authorization server; Pomerium (Apache-2.0) as an MCP gateway that holds upstream OAuth tokens so clients never see them ([Pomerium MCP](https://www.pomerium.com/docs/capabilities/mcp.md)).
|
|
6
|
+
- CI and cloud: no static cloud keys. Use GitHub OIDC federation to AWS/GCP/Azure with a `sub`-pinned trust policy ([GitHub](https://docs.github.com/en/actions/how-tos/secure-your-work/security-harden-deployments/oidc-in-aws.md)).
|
|
7
|
+
- Agent acting for a user: delegated, scoped, short-lived tokens via RFC 8693 token exchange or a credential broker (Auth0 Token Vault, Composio, Arcade), with CIBA-style approval for risky actions.
|
|
8
|
+
|
|
9
|
+
Scope: protocols, identity providers, agent-identity products, and patterns for agents that call APIs, MCP servers, other agents, and clouds. Secret storage, `.env` handling, and leak scanning are in sibling notes. Release dates come from GitHub API on 2026-11-11.
|
|
10
|
+
|
|
11
|
+
## 1. Protocols and standards
|
|
12
|
+
|
|
13
|
+
| Standard | What it does for agents | Status (2026-11) | Agent-relevant notes | Source |
|
|
14
|
+
|---|---|---|---|---|
|
|
15
|
+
| MCP Authorization, rev 2026-07-28 | MCP server = OAuth 2.1 resource server; client = OAuth client; separate AS | Latest spec revision, tagged 2026-07-28 | HTTP transports SHOULD follow it; STDIO servers SHOULD NOT and instead "retrieve credentials from the environment" | [spec](https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization), [tags](https://github.com/modelcontextprotocol/modelcontextprotocol/releases) |
|
|
16
|
+
| RFC 9728 Protected Resource Metadata | Server advertises its AS at `/.well-known/oauth-protected-resource` | RFC, Apr 2025 | MCP servers MUST implement; clients MUST use for AS discovery | [RFC 9728](https://www.rfc-editor.org/rfc/rfc9728) |
|
|
17
|
+
| RFC 8707 Resource Indicators | `resource=` binds a token to one server (audience) | RFC, Feb 2020 | MCP clients MUST send it in authorize and token requests; servers MUST check audience | [RFC 8707](https://www.rfc-editor.org/rfc/rfc8707) |
|
|
18
|
+
| PKCE (OAuth 2.1) | Stops code interception for public clients (CLIs, desktop agents) | OAuth 2.1 is draft-ietf-oauth-v2-1-17 (2026-10-31) | Required in the MCP flow diagram; MCP cites draft -13 | [OAuth 2.1](https://datatracker.ietf.org/doc/draft-ietf-oauth-v2-1/) |
|
|
19
|
+
| RFC 9207 `iss` response param | Defeats AS mix-up attacks | RFC, Mar 2022 | MCP 2026-07-28 makes clients record expected issuer and validate `iss` before redeeming the code | [RFC 9207](https://www.rfc-editor.org/rfc/rfc9207), [spec](https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization) |
|
|
20
|
+
| Client ID Metadata Documents (CIMD) | `client_id` is an HTTPS URL to a JSON metadata doc; no registration call | draft-ietf-oauth-client-id-metadata-document-03 (2026-11-02) | MCP: clients and AS SHOULD support CIMD; DCR "is deprecated and retained for backwards compatibility" | [draft](https://datatracker.ietf.org/doc/draft-ietf-oauth-client-id-metadata-document/), [spec](https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization) |
|
|
21
|
+
| RFC 7591 Dynamic Client Registration | Client self-registers via `POST /register` | RFC, Jul 2015 | MAY in MCP; open DCR lets any client register, so gate it | [RFC 7591](https://www.rfc-editor.org/rfc/rfc7591) |
|
|
22
|
+
| Token passthrough ban | MCP server must not accept or forward tokens not issued for it | Normative in MCP | "MCP servers MUST NOT accept or transit any other tokens"; see confused deputy | [spec](https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization), [best practices](https://modelcontextprotocol.io/docs/2026-07-28/tutorials/security/security_best_practices.md) |
|
|
23
|
+
| MCP ext: OAuth Client Credentials | Machine-to-machine MCP with no user | Stable extension, 2026-07-28 | Pre-registered clients; `private_key_jwt` (RFC 7523) RECOMMENDED over client secret | [ext-auth](https://github.com/modelcontextprotocol/ext-auth) |
|
|
24
|
+
| MCP ext: Enterprise-Managed Authorization | SSO identity assertion -> MCP access token, no per-server consent | Stable extension, 2026-07-28 | Profile of ID-JAG (below): token exchange at IdP + RFC 7523 grant at MCP AS | [ext-auth](https://github.com/modelcontextprotocol/ext-auth) |
|
|
25
|
+
| RFC 8693 Token Exchange | Swap a user token for a narrower token; `actor_token` records the agent (`act` claim) | RFC, Jan 2020 | Core on-behalf-of primitive; supported by Keycloak, Zitadel, authentik, Auth0 | [RFC 8693](https://www.rfc-editor.org/rfc/rfc8693) |
|
|
26
|
+
| ID-JAG / Cross App Access (XAA) | App uses an SSO identity assertion to get a token for a third-party API via the IdP | draft-ietf-oauth-identity-assertion-authz-grant-06 (2026-10-31) | Builds on draft-ietf-oauth-identity-chaining-17; Okta ships it as XAA | [draft](https://datatracker.ietf.org/doc/draft-ietf-oauth-identity-assertion-authz-grant/) |
|
|
27
|
+
| RFC 9449 DPoP | Sender-constrains tokens to a client key, so a stolen token is useless alone | RFC, Sep 2023 | Good fit for long-running agents holding refresh tokens; Keycloak has a DPoP guide | [RFC 9449](https://www.rfc-editor.org/rfc/rfc9449) |
|
|
28
|
+
| RFC 8628 Device Authorization Grant | User approves on a second device; agent polls | RFC, Aug 2019 | Best login flow for headless agents and SSH sessions; offered by Clerk, authentik, Better Auth | [RFC 8628](https://www.rfc-editor.org/rfc/rfc8628) |
|
|
29
|
+
| OpenID CIBA Core 1.0 | Backchannel request; user approves on phone; client polls or is pinged | Final, Sep 2021 | Human approval of a sensitive agent action; Auth0 "Asynchronous Authorization" uses it | [CIBA](https://openid.net/specs/openid-client-initiated-backchannel-authentication-core-1_0.html), [Auth0](https://auth0.com/ai/docs/intro/asynchronous-authorization) |
|
|
30
|
+
| Transaction Tokens | Short-lived, call-chain-scoped tokens inside a trust domain | draft-ietf-oauth-transaction-tokens-11 (2026-08-21) | Agent extension: draft-oauth-transaction-tokens-for-agents-06 (individual) adds `act` for the agent | [draft](https://datatracker.ietf.org/doc/draft-ietf-oauth-transaction-tokens/), [agents](https://datatracker.ietf.org/doc/draft-oauth-transaction-tokens-for-agents/) |
|
|
31
|
+
| AI agent auth drafts | Best-practice framing: WIMSE identity + OAuth for agents | draft-klrc-aiagent-auth-03 (2026-09-09), individual | Reuses existing standards rather than new protocol; on-behalf-of draft (draft-oauth-ai-agents-on-behalf-of-user-02) is expired | [klrc](https://datatracker.ietf.org/doc/draft-klrc-aiagent-auth/), [OBO](https://datatracker.ietf.org/doc/draft-oauth-ai-agents-on-behalf-of-user/) |
|
|
32
|
+
| SPIFFE / WIMSE | Attested workload identity (X.509-SVID, JWT-SVID, WIT-SVID) instead of shared secrets | SPIFFE specs; draft-ietf-wimse-arch-08 | Google Agent Identity issues SPIFFE IDs per agent | [SPIFFE](https://spiffe.io/docs/latest/spire-about/spire-concepts/), [WIMSE](https://datatracker.ietf.org/doc/draft-ietf-wimse-arch/) |
|
|
33
|
+
| A2A auth | Agent Card `securitySchemes`; creds obtained out-of-band; sent in headers on every request | A2A v1.0.1 (2026-05-28), Apache-2.0 | `TASK_STATE_AUTH_REQUIRED` lets an agent ask the client for a credential or human approval mid-task | [spec](https://a2a-protocol.org/latest/specification/), [repo](https://github.com/a2aproject/A2A) |
|
|
34
|
+
| CI OIDC federation | CI job gets a signed JWT, trades it for short-lived cloud creds | GA on GitHub Actions | Needs `permissions: id-token: write`; pin `sub` in the trust policy | [GitHub OIDC ref](https://docs.github.com/en/actions/reference/security/oidc.md) |
|
|
35
|
+
|
|
36
|
+
Minimal MCP challenge a server returns (from the spec):
|
|
37
|
+
|
|
38
|
+
```http
|
|
39
|
+
HTTP/1.1 401 Unauthorized
|
|
40
|
+
WWW-Authenticate: Bearer resource_metadata="https://mcp.example.com/.well-known/oauth-protected-resource", scope="files:read"
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
On-behalf-of token exchange per RFC 8693 (agent backend, never the model, makes this call). The tokens and client secret reach curl as a config file on stdin (`-K -`); `printf` is a shell builtin, so none of them appear in the process list:
|
|
44
|
+
|
|
45
|
+
```sh
|
|
46
|
+
printf '%s\n' \
|
|
47
|
+
"user = \"$CLIENT_ID:$CLIENT_SECRET\"" \
|
|
48
|
+
"data-urlencode = \"subject_token=$USER_ACCESS_TOKEN\"" \
|
|
49
|
+
"data-urlencode = \"actor_token=$AGENT_TOKEN\"" |
|
|
50
|
+
curl -s -K - https://as.example.com/token \
|
|
51
|
+
-d grant_type=urn:ietf:params:oauth:grant-type:token-exchange \
|
|
52
|
+
-d subject_token_type=urn:ietf:params:oauth:token-type:access_token \
|
|
53
|
+
-d actor_token_type=urn:ietf:params:oauth:token-type:jwt \
|
|
54
|
+
-d resource=https://api.example.com -d scope="calendar:read"
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Rules:
|
|
58
|
+
- The MCP server validates audience (RFC 8707 / RFC 9068 `aud`) and returns 401 or 403 with `insufficient_scope`; clients union scopes on step-up and cap retries ([spec](https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization)).
|
|
59
|
+
- Tokens go only in the `Authorization: Bearer` header, never in query strings (MUST in the spec).
|
|
60
|
+
- Ask for the challenged scopes, not `scopes_supported`; servers SHOULD NOT list `offline_access` ([spec](https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization)).
|
|
61
|
+
|
|
62
|
+
## 2. Open-source identity providers and gateways
|
|
63
|
+
|
|
64
|
+
| Tool | What it does | License (checked LICENSE) | Latest release | Agent / MCP notes | Source |
|
|
65
|
+
|---|---|---|---|---|---|
|
|
66
|
+
| Keycloak | Full OIDC/OAuth AS, SSO, token exchange | Apache-2.0 | 26.8.2, 2026-11-05 | Official MCP guide. DCR supported; CIMD and RFC 8707 are experimental (`--features=cimd,resource-indicators`); 26.7 added ID-JAG and Token Exchange Delegation (both experimental) | [MCP guide](https://www.keycloak.org/securing-apps/mcp-authz-server), [notes](https://www.keycloak.org/docs/latest/release_notes/index.html), [repo](https://github.com/keycloak/keycloak) |
|
|
67
|
+
| Better Auth | TypeScript auth library; OAuth 2.1 provider plugin | MIT | v1.7.21, 2026-11-11 | OAuth Provider plugin: DCR, CIMD, RFC 8707 resources, `iss` in responses; `mcp()` plugin protects an MCP server; device authorization plugin | [OAuth provider](https://better-auth.com/llms.txt/docs/plugins/oauth-provider.md), [repo](https://github.com/better-auth/better-auth) |
|
|
68
|
+
| Pomerium | Identity-aware proxy and MCP gateway | Apache-2.0 | v0.34.1, 2026-11-11 | Fronts MCP servers; acquires, caches, refreshes upstream OAuth tokens and injects them so "clients never see upstream credentials"; `mcp_tool` policy denies tools by name; MCP and CIMD code live in the OSS repo (`internal/mcp`) | [docs](https://www.pomerium.com/docs/capabilities/mcp.md), [upstream OAuth](https://www.pomerium.com/docs/capabilities/mcp/mcp-upstream-oauth.md), [repo](https://github.com/pomerium/pomerium) |
|
|
69
|
+
| Zitadel | Multi-tenant IdP, OIDC/OAuth, SAML | AGPL-3.0-only (proto/docs Apache-2.0; login app and client packages MIT) | v4.20.2, 2026-11-09 | RFC 8693 token exchange for impersonation and delegation; AGPL network-use obligations if you modify it | [token exchange](https://zitadel.com/docs/guides/integrate/token-exchange), [LICENSING.md](https://github.com/zitadel/zitadel/blob/main/LICENSING.md) |
|
|
70
|
+
| authentik | IdP plus proxy outpost | MIT for core; `authentik/enterprise/` under separate license | 2026.8.5, 2026-10-21 | 2026.8 added DCR, on-behalf-of with `act` claim, provider token exchange, key-bound ID tokens; whether DCR is enterprise-only is [unverified] | [2026.8 notes](https://docs.goauthentik.io/releases/2026.8), [LICENSE](https://github.com/goauthentik/authentik/blob/main/LICENSE) |
|
|
71
|
+
| Logto | IdP with SaaS and self-host | MPL-2.0 | v1.46.0, 2026-11-05 | MCP guides; "dynamic app" lets any agent connect without pre-registration; Cloud Free: 50,000 MAU, 1 M2M app, 3 API resources | [MCP 3rd-party](https://docs.logto.io/use-cases/ai/mcp-server-enable-third-party-ai-agent-access), [pricing](https://logto.io/pricing), [repo](https://github.com/logto-io/logto) |
|
|
72
|
+
| Ory Hydra / Kratos / Oathkeeper | Headless OAuth2/OIDC server, identity, proxy | Apache-2.0 | OSS v26.2.0, 2026-03-20 (all three) | MCP guide uses DCR + resource URL as audience. Ory Enterprise License (OEL) builds ship faster (Hydra OEL v26.4.12, 2026-11-05) and carry CVE-patch SLAs; OSS gets fewer releases | [MCP guide](https://www.ory.com/docs/guides/mcp/hydra-oauth), [README](https://github.com/ory/hydra), [OEL changelog](https://changelog.ory.com/announcements/ann_TJsQYiQNQcPmH) |
|
|
73
|
+
| Authelia | SSO/2FA forward-auth portal | Apache-2.0 | v4.39.28, 2026-09-17 | OIDC Provider role is still an "open beta"; fine for homelab SSO in front of agent UIs, weaker fit as MCP AS [inference] | [OIDC docs](https://www.authelia.com/configuration/identity-providers/openid-connect/provider/index.md), [repo](https://github.com/authelia/authelia) |
|
|
74
|
+
| SuperTokens | Auth library + core | Apache-2.0 for core; `ee/` separate license | v12.5.0, 2026-11-06 | MCP auth plugin exists but docs say "This feature is only available to paid users" | [MCP docs](http://supertokens.com/docs/authentication/ai-authentication), [LICENSE.md](https://github.com/supertokens/supertokens-core/blob/master/LICENSE.md) |
|
|
75
|
+
| oauth2-proxy | Reverse proxy that adds OIDC login | MIT | v7.15.6, 2026-11-05 | Browser SSO in front of internal agent dashboards; it does not implement MCP RFC 9728 discovery [inference] | [repo](https://github.com/oauth2-proxy/oauth2-proxy) |
|
|
76
|
+
| Cloudflare workers-oauth-provider | OAuth 2.1 AS library for Workers and remote MCP | MIT | v1.2.4, 2026-10-22 | Pre-registered, CIMD, DCR, PKCE; "Tokens, codes and secrets are stored only as hashes"; CIMD needs `global_fetch_strictly_public` (SSRF guard). Workers Free: 100,000 requests/day | [README](https://github.com/cloudflare/workers-oauth-provider), [Workers pricing](https://developers.cloudflare.com/workers/platform/pricing/) |
|
|
77
|
+
| step-ca | Private CA for short-lived X.509/SSH certs | Apache-2.0 | v0.30.2, 2026-03-23 | Short-lived certs with passive revocation; OIDC, ACME, cloud-instance-identity provisioners; good for mTLS between agents and services | [README](https://github.com/smallstep/certificates) |
|
|
78
|
+
| SPIRE | SPIFFE runtime: node and workload attestation, SVID issuance | Apache-2.0 | v1.16.0, 2026-11-05 | Gives each agent workload an attested identity with no stored secret | [concepts](https://spiffe.io/docs/latest/spire-about/spire-concepts/), [repo](https://github.com/spiffe/spire) |
|
|
79
|
+
| Teleport | Access proxy for SSH, k8s, DBs, apps, MCP | Source AGPL-3.0; downloadable Community Edition binaries under a modified license | v18.10.0, 2026-07-09 | MCP access for stdio, SSE, streamable-HTTP servers. Community Edition binaries are "AVAILABLE ONLY TO ORGANIZATIONS THAT HAVE LESS THAN ONE HUNDRED (100) EMPLOYEES AND LESS THAN TEN MILLION DOLLARS" revenue: not OSI open source | [MCP docs](https://goteleport.com/docs/enroll-resources/mcp-access/), [CE license](https://github.com/gravitational/teleport/blob/master/build.assets/LICENSE-community) |
|
|
80
|
+
|
|
81
|
+
Keycloak as a local MCP authorization server (dev mode; flags from the Keycloak MCP guide):
|
|
82
|
+
|
|
83
|
+
```sh
|
|
84
|
+
bin/kc.sh start-dev --features=cimd,resource-indicators
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
Pomerium route that gives an LLM client GitHub MCP without exposing the GitHub token, and blocks admin tools (from Pomerium docs):
|
|
88
|
+
|
|
89
|
+
```yaml
|
|
90
|
+
routes:
|
|
91
|
+
- from: https://github.your-domain.com
|
|
92
|
+
to: http://github-mcp.int:8080/mcp
|
|
93
|
+
mcp:
|
|
94
|
+
server:
|
|
95
|
+
upstream_oauth2:
|
|
96
|
+
client_id: xxxx
|
|
97
|
+
client_secret: yyyy # load from a secret store, not the repo
|
|
98
|
+
scopes: ['read:user', 'user:email']
|
|
99
|
+
endpoint: {auth_url: 'https://github.com/login/oauth/authorize', token_url: 'https://github.com/login/oauth/access_token'}
|
|
100
|
+
policy:
|
|
101
|
+
allow: {and: [{domain: {is: company.com}}]}
|
|
102
|
+
deny: {and: [{mcp_tool: {starts_with: 'admin_'}}]}
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
## 3. Commercial agent-identity products with free tiers
|
|
106
|
+
|
|
107
|
+
| Product | What it does for agents | Free terms (vendor page, 2026-11) | Agent-relevant notes | Source |
|
|
108
|
+
|---|---|---|---|---|
|
|
109
|
+
| Auth0 for AI Agents (Token Vault, Async Authorization) | Login, Token Vault for third-party tokens, CIBA approval, FGA for RAG | Free: up to 25,000 MAU, "Secure Agentic AI workflows"; feature table lists Token Vault "2" on Free (unit not stated, likely connections [inference]); CIBA "Not available" on Free; paid AI Agents add-on is +50% of base price | Agent exchanges an Auth0 token for a scoped provider token; provider refresh tokens stay in Auth0 | [pricing](https://auth0.com/pricing.md), [Token Vault](https://auth0.com/ai/docs/intro/call-third-party-apis-on-users-behalf) |
|
|
110
|
+
| WorkOS AuthKit (MCP Auth / Connect) | Hosted AS for MCP servers; M2M; user mgmt | AuthKit free up to 1 million users, then $2,500 per extra 1M | CIMD supported; DCR can be enabled for older clients; inclusion of MCP Auth in the free allowance is [unverified] | [pricing](https://workos.com/pricing), [MCP docs](https://workos.com/docs/authkit/mcp.md) |
|
|
111
|
+
| Descope (Agentic Identity Hub, Inbound/Outbound Apps) | MCP/API resource protection, consent, outbound token vault | Free Forever: 7,500 MAU, 10 tenants, 3 SSO, 10,000 M2M exchanges, 2,000 monthly active consents, 2,000 monthly active tokens; no overages, upgrade required | Token exchange and client-credentials exchanges count as M2M exchanges | [pricing](https://www.descope.com/pricing), [docs](https://docs.descope.com/agentic-identity-hub) |
|
|
112
|
+
| Stytch Connected Apps | Turns your app into an OAuth AS for MCP and agents | "Always free: 10,000 monthly active users and AI agents", 5 SSO/SCIM, 1,000 M2M tokens | CIMD support since 2025-10-17 | [pricing](https://stytch.com/pricing), [MCP docs](https://stytch.com/docs/connected-apps/guides/mcp-auth-overview), [CIMD](https://changelog.stytch.com/announcements/client-id-metadata-documents-cimd-1) |
|
|
113
|
+
| Clerk | Auth + OAuth server for MCP | Hobby: 50,000 MRU per app, 3 dashboard seats, fixed 7-day sessions, capped API keys/M2M tokens | OAuth server supports CIMD, DCR, PKCE, device grant; MCP server guides | [pricing](https://clerk.com/pricing), [OAuth](https://clerk.com/docs/guides/configure/auth-strategies/oauth/how-clerk-implements-oauth) |
|
|
114
|
+
| Keycard | Runtime authorization and identity for agents | Starter: 5,000 transactions/mo hard cap, unlimited users, agents, apps | Policy (RBAC/ABAC/ReBAC) per agent action | [pricing](https://www.keycard.ai/pricing/) |
|
|
115
|
+
| Arcade.dev | Tool runtime that handles OAuth and user tokens for agent tools | Free: 2,000 tool calls/month; Team $25/mo + $0.01/call | `arcade-mcp` framework is MIT (no tagged releases; last commit 2026-11-10) | [pricing](https://www.arcade.dev/pricing), [docs](https://docs.arcade.dev/en/home/auth/how-arcade-helps), [repo](https://github.com/ArcadeAI/arcade-mcp) |
|
|
116
|
+
| Composio | Managed auth + 1,700+ toolkits | Hobby: 100,000 tool calls/mo (up to 20,000 on Composio-managed apps), unlimited connected accounts (first 1,000 free on managed apps), 50,000 triggers, 3 members | "Provider credentials are not required in prompts, tool arguments, or model context"; SDK MIT (`@composio/cli@0.6.0`, 2026-11-01) | [pricing](https://composio.dev/pricing.md), [token custody](http://docs.composio.dev/docs/security/token-custody), [repo](https://github.com/ComposioHQ/composio) |
|
|
117
|
+
| Aembit | Workload/agent IAM, MCP identity gateway | Agentic AI Starter: 3 AI agents, 1 MCP identity gateway, 5 MCP authorization policies, 24 h logs; Workloads Starter: 10 workloads, 10 policies | Secretless access via attested identity | [pricing](https://aembit.io/pricing) |
|
|
118
|
+
| Cloudflare Access + MCP server portals | Zero-trust gateway in front of MCP servers | Zero Trust Free: up to 50 users | Portal applies IdP and MFA policy to MCP; needs a domain on Cloudflare | [plans](https://www.cloudflare.com/plans/sase-zero-trust.md), [MCP portals](https://developers.cloudflare.com/cloudflare-one/access-controls/ai-controls/mcp-portals/) |
|
|
119
|
+
| AWS Bedrock AgentCore Identity | Agent identity directory, inbound JWT, outbound OAuth/API-key vault | No extra charge when used via AgentCore Runtime or Gateway; otherwise billed per successful token/API-key request (AWS account, not free) | Supports on-behalf-of token exchange | [pricing](https://aws.amazon.com/bedrock/agentcore/pricing/), [features](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/key-features-and-benefits.html) |
|
|
120
|
+
| Google Agent Identity | SPIFFE ID + X.509 per agent; auth manager for 3LO | Paid GCP; launch stage [unverified] | Google Cloud access tokens bound to the agent's certificate; logs show agent and user | [overview](https://docs.cloud.google.com/iam/docs/agent-identity-overview) |
|
|
121
|
+
| Microsoft Entra Agent ID | Agent identities from blueprints | "Available for all Microsoft Entra customers"; Agent 365 is licensed per user | Paid tenant context; enterprise only | [licensing](https://learn.microsoft.com/en-us/entra/fundamentals/licensing) |
|
|
122
|
+
| Okta Cross App Access | ID-JAG issuer for agent-to-app and MCP | Paid; "Cross App Access support for MCP Servers is GA in Preview" (2026-10-28) | Admin-approved connections replace per-user consent | [concept](https://developer.okta.com/docs/concepts/xaa/), [notes](https://developer.okta.com/docs/release-notes/2026-okta-identity-engine/) |
|
|
123
|
+
|
|
124
|
+
## 4. CI and cloud: workload identity federation instead of keys
|
|
125
|
+
|
|
126
|
+
| Action | Purpose | License | Latest release | Note | Source |
|
|
127
|
+
|---|---|---|---|---|---|
|
|
128
|
+
| aws-actions/configure-aws-credentials | GitHub OIDC -> AWS STS role | MIT | v6.3.0, 2026-09-15 | Audience `sts.amazonaws.com` | [repo](https://github.com/aws-actions/configure-aws-credentials) |
|
|
129
|
+
| google-github-actions/auth | GitHub OIDC -> GCP Workload Identity Federation | Apache-2.0 | v3.0.0, 2025-08-28 | No release in 14 months (commits through 2026-07); still the documented path, watch it | [repo](https://github.com/google-github-actions/auth) |
|
|
130
|
+
| Azure/login | GitHub OIDC -> Entra federated credential | MIT | v3.1.0, 2026-09-10 | No client secret needed with federated credentials | [repo](https://github.com/Azure/login) |
|
|
131
|
+
|
|
132
|
+
```yaml
|
|
133
|
+
permissions:
|
|
134
|
+
id-token: write # required to request the OIDC JWT
|
|
135
|
+
contents: read
|
|
136
|
+
steps:
|
|
137
|
+
- uses: aws-actions/configure-aws-credentials@<pinned-sha>
|
|
138
|
+
with: {role-to-assume: arn:aws:iam::123456789012:role/ci-deploy, aws-region: us-east-1}
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
Trust-policy rule: AWS IAM recommends evaluating `token.actions.githubusercontent.com:sub` so only the intended repo/branch/environment can assume the role; repos with immutable subject claims put owner and repo IDs in `sub` ([GitHub](https://docs.github.com/en/actions/how-tos/secure-your-work/security-harden-deployments/oidc-in-aws.md), [OIDC reference](https://docs.github.com/en/actions/reference/security/oidc.md)). Example condition: `"StringEquals": {"token.actions.githubusercontent.com:sub": "repo:ORG/REPO:environment:prod", "token.actions.githubusercontent.com:aud": "sts.amazonaws.com"}`.
|
|
142
|
+
|
|
143
|
+
## 5. Patterns
|
|
144
|
+
|
|
145
|
+
1. Agent acts on behalf of a user (delegation). User consents once (auth code + PKCE, or device flow for headless agents). The agent backend holds the refresh token; each call uses a short-lived, audience-bound access token. Use RFC 8693 with `actor_token` so logs carry both user and agent (`act` claim) ([RFC 8693](https://www.rfc-editor.org/rfc/rfc8693), [authentik OBO](https://docs.goauthentik.io/releases/2026.8)).
|
|
146
|
+
2. Agent as its own identity (machine). Use client credentials with `private_key_jwt`, not a shared secret ([MCP client-credentials ext](https://github.com/modelcontextprotocol/ext-auth)), or attested workload identity (SPIRE, cloud OIDC, Google Agent Identity), so there is no long-lived secret to steal.
|
|
147
|
+
3. Credential broker keeps third-party tokens out of the model. The LLM sees tool names and results; a broker (Auth0 Token Vault, Composio, Arcade, Pomerium upstream OAuth, Descope outbound apps) stores provider tokens and injects them at execution ([Composio](http://docs.composio.dev/docs/security/token-custody), [Pomerium](https://www.pomerium.com/docs/capabilities/mcp.md)). The broker API key becomes the crown jewel: keep it server-side.
|
|
148
|
+
4. Gateway in front of tools. An identity-aware proxy (Pomerium, Cloudflare Access, Teleport) authenticates the human or agent, then filters per tool (`mcp_tool` deny rules) before the MCP server sees the call.
|
|
149
|
+
5. Human approval for sensitive actions. CIBA (Auth0 Async Authorization), A2A `TASK_STATE_AUTH_REQUIRED`, or MCP step-up scopes (403 `insufficient_scope`) force a fresh human decision for writes, payments, deletes ([A2A](https://a2a-protocol.org/latest/specification/), [CIBA](https://openid.net/specs/openid-client-initiated-backchannel-authentication-core-1_0.html)).
|
|
150
|
+
6. Enterprise SSO for agents. ID-JAG / XAA or MCP Enterprise-Managed Authorization lets an admin pre-approve which MCP servers a user's agent may reach, with no per-server consent screen ([ext-auth](https://github.com/modelcontextprotocol/ext-auth)).
|
|
151
|
+
|
|
152
|
+
Rules for agent builders:
|
|
153
|
+
- Scope per task and per resource; request challenged scopes only; prefer minutes-long access tokens plus server-held refresh tokens [inference].
|
|
154
|
+
- Never put an access or refresh token in the prompt, a tool argument, a log line, or a URL.
|
|
155
|
+
- Bind tokens: audience (RFC 8707) always; DPoP or mTLS when the agent runs long or on untrusted hosts.
|
|
156
|
+
- Separate identities: one client per agent deployment, so you can revoke one agent without logging out the user [inference].
|
|
157
|
+
|
|
158
|
+
## 6. Decision table: situation -> recommended free option
|
|
159
|
+
|
|
160
|
+
| Situation | Free option | Why | Source |
|
|
161
|
+
|---|---|---|---|
|
|
162
|
+
| Protect your own remote MCP server, self-hosted | Keycloak (Apache-2.0) with `cimd,resource-indicators` features, or Better Auth OAuth Provider (MIT) if your app is TypeScript | Spec-aligned AS with CIMD + RFC 8707; no MAU caps | [Keycloak](https://www.keycloak.org/securing-apps/mcp-authz-server), [Better Auth](https://better-auth.com/llms.txt/docs/plugins/oauth-provider.md) |
|
|
163
|
+
| Protect a remote MCP server on serverless | `workers-oauth-provider` (MIT) on Workers Free (100,000 req/day) | Hashes tokens at rest; CIMD with SSRF guard flag | [README](https://github.com/cloudflare/workers-oauth-provider) |
|
|
164
|
+
| Hosted AS, zero ops, many users | WorkOS AuthKit (free to 1M users) or Stytch (10,000 MAU + agents) | CIMD support; large free allowance | [WorkOS](https://workos.com/pricing), [Stytch](https://stytch.com/pricing) |
|
|
165
|
+
| Give agents access to internal MCP servers without handing out upstream tokens | Pomerium OSS (Apache-2.0) | Upstream OAuth held by gateway; per-tool deny policy | [Pomerium](https://www.pomerium.com/docs/capabilities/mcp/mcp-upstream-oauth.md) |
|
|
166
|
+
| Small team, SaaS gateway with MFA in front of MCP | Cloudflare Zero Trust Free (50 users) + MCP portals | IdP + MFA policy, no servers to run | [plans](https://www.cloudflare.com/plans/sase-zero-trust.md) |
|
|
167
|
+
| Agent calls Gmail/GitHub/Slack for end users | Composio Hobby (100,000 calls) or Auth0 Free (25,000 MAU, Token Vault) | Broker stores provider tokens outside model context | [Composio](https://composio.dev/pricing.md), [Auth0](https://auth0.com/pricing.md) |
|
|
168
|
+
| CI job or agent needs AWS/GCP/Azure | GitHub OIDC + official login actions | No stored cloud keys; creds expire with the job | [GitHub OIDC](https://docs.github.com/en/actions/reference/security/oidc.md) |
|
|
169
|
+
| Service-to-service or agent-to-agent identity in your infra | SPIRE (Apache-2.0) or step-ca (Apache-2.0) short-lived certs | Attested or short-lived identity, mTLS | [SPIRE](https://github.com/spiffe/spire), [step-ca](https://github.com/smallstep/certificates) |
|
|
170
|
+
| Headless agent needs a user login | Device grant (RFC 8628) from Keycloak, authentik, Clerk, or Better Auth | User approves on phone; agent never sees password | [RFC 8628](https://www.rfc-editor.org/rfc/rfc8628) |
|
|
171
|
+
| Human must approve a risky action | Step-up via MCP `insufficient_scope` + your IdP; CIBA needs Auth0 paid or a self-hosted CIBA AS [inference] | Fresh consent per sensitive scope | [spec](https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization), [Auth0 pricing](https://auth0.com/pricing.md) |
|
|
172
|
+
| Need multi-tenant IdP and accept AGPL | Zitadel (AGPL-3.0-only) | RFC 8693 token exchange, orgs | [Zitadel](https://zitadel.com/docs/guides/integrate/token-exchange) |
|
|
173
|
+
| Access proxy for SSH/k8s/DB plus MCP, under 100 staff and $10M revenue | Teleport Community Edition | Free only under those caps; not OSS binaries | [CE license](https://github.com/gravitational/teleport/blob/master/build.assets/LICENSE-community) |
|
|
174
|
+
|
|
175
|
+
## Threats and failure modes
|
|
176
|
+
|
|
177
|
+
- Token passthrough and confused deputy: an MCP server that accepts tokens issued for another audience and forwards them lets attackers bypass rate limits, audit, and consent; static-client-ID OAuth proxies can skip user consent unless they keep per-client consent ([MCP best practices](https://modelcontextprotocol.io/docs/2026-07-28/tutorials/security/security_best_practices.md)).
|
|
178
|
+
- Malicious server metadata attacks the client: CVE-2025-6514 (CVSS 9.6) let a crafted `authorization_endpoint` from an untrusted MCP server run OS commands via `mcp-remote` ([CVE record](https://www.cve.org/CVERecord?id=CVE-2025-6514), [GHSA](https://github.com/advisories/GHSA-6xpm-ggf7-wc3p)). Only connect agents to MCP servers you trust and keep clients patched.
|
|
179
|
+
- SSRF via discovery and CIMD: the AS fetches client-supplied URLs; MCP best practices has an SSRF section, and Cloudflare requires `global_fetch_strictly_public` before accepting CIMD ([best practices](https://modelcontextprotocol.io/docs/2026-07-28/tutorials/security/security_best_practices.md), [README](https://github.com/cloudflare/workers-oauth-provider)).
|
|
180
|
+
- Mix-up attacks: without RFC 9207 `iss` checks a client can send its code to the wrong AS; MCP 2026-07-28 now requires recording and checking the issuer ([spec](https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization)).
|
|
181
|
+
- Identity and privilege abuse: OWASP Agentic Top 10 2026 lists ASI03 "Identity and Privilege Abuse" (delegation chains, inherited roles, cached credentials) ([OWASP](https://genai.owasp.org/resource/owasp-top-10-for-agentic-applications-for-2026/)). Prompt injection turns over-scoped tokens into data exfiltration [inference].
|
|
182
|
+
- Open registration: unrestricted DCR lets anyone mint clients; the spec deprecated DCR in favor of CIMD; gate or disable DCR in production ([spec](https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization)).
|
|
183
|
+
- STDIO servers read credentials from the environment by spec, so any agent with shell access can read them; keep long-lived keys out of the agent's env and use brokers or short-lived tokens instead ([spec](https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization)) [inference on risk].
|
|
184
|
+
- Refresh-token theft from client storage: the spec says clients MUST keep refresh tokens confidential in transit and storage; DPoP or key-bound tokens limit replay ([spec](https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization), [RFC 9449](https://www.rfc-editor.org/rfc/rfc9449)).
|
|
185
|
+
- Over-broad CI trust policies: missing `sub` condition lets other repos or branches assume your cloud role ([GitHub](https://docs.github.com/en/actions/how-tos/secure-your-work/security-harden-deployments/oidc-in-aws.md)).
|
|
186
|
+
- Broker keys and shared OAuth apps: a Composio API key "is still a secret with permission to act on connected accounts"; Composio-managed apps are shared OAuth apps that "work in production but are not built for production scale" and share provider rate limits, so register your own OAuth app ([token custody](http://docs.composio.dev/docs/security/token-custody), [pricing](https://composio.dev/pricing.md)).
|
|
187
|
+
- Licensing traps: Teleport CE binaries, SuperTokens MCP plugin (paid), Ory OEL-only features and SLA-backed CVE releases, authentik `enterprise/` code, Zitadel AGPL. "Free to download" is not "free to use at your size" ([Teleport](https://github.com/gravitational/teleport/blob/master/build.assets/LICENSE-community), [SuperTokens](http://supertokens.com/docs/authentication/ai-authentication), [Ory](https://github.com/ory/hydra)).
|
|
188
|
+
|
|
189
|
+
## Recommendation for a solo dev / small team, all free
|
|
190
|
+
|
|
191
|
+
1. Local coding agents (Claude Code, Codex, Cursor): use OAuth-based MCP servers where offered, so tokens live in the client's store, not in `.env`; for stdio servers, pass short-lived tokens, not account passwords [inference].
|
|
192
|
+
2. Your own remote MCP server: Better Auth OAuth Provider (TS apps) or Keycloak (anything else); enable CIMD and resource indicators; validate `aud`; never forward the inbound token; return 403 `insufficient_scope` for write tools ([spec](https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization)).
|
|
193
|
+
3. If you would rather not run an AS: WorkOS AuthKit or Stytch free tiers; or `workers-oauth-provider` on Workers Free.
|
|
194
|
+
4. Agents calling third-party SaaS for you or your users: Composio Hobby or Auth0 Free Token Vault, so provider tokens stay outside the model context.
|
|
195
|
+
5. Internal tools behind one gate: Pomerium OSS with upstream OAuth and `mcp_tool` deny rules, or Cloudflare Zero Trust Free (50 users).
|
|
196
|
+
6. CI and deploy agents: GitHub OIDC to AWS/GCP/Azure with `sub` pinned to repo + environment; delete static cloud keys.
|
|
197
|
+
7. Service identity at home-lab scale: step-ca short-lived certs; move to SPIRE when you run several hosts or k8s.
|
|
198
|
+
8. Approval: require a human step-up (new consent or a separate approval tool) for destructive scopes; keep agent and user identities separate in logs via the `act` claim.
|