deepmodebot 0.0.0-stage → 0.9.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/.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 +229 -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/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,230 @@
|
|
|
1
|
+
# Delegation efficiency research: models, effort, tokens, limits (omp, Claude Code, Codex, Antigravity)
|
|
2
|
+
|
|
3
|
+
Read when deciding whether to delegate, which model and reasoning effort a delegate gets, how to cut token use, or how subscription limits are metered, in omp, Claude Code, Codex, or Google Antigravity. Model names and prices move monthly: recheck the vendor page before quoting one.
|
|
4
|
+
|
|
5
|
+
Date: 2026-11-11 (Antigravity docs checked 2026-11-13). Versions probed: omp 18.18.9, claude 2.1.322, codex 0.163.0.
|
|
6
|
+
Tags: `[unverified]` = not confirmed in a primary source this session; `[inference]` = derived, not stated.
|
|
7
|
+
Bundled omp agent frontmatter was read from the embedded definitions inside omp.exe 18.18.9 (cited as "omp 18.18.9 binary").
|
|
8
|
+
|
|
9
|
+
## 1. Model line-ups (2026-11)
|
|
10
|
+
|
|
11
|
+
### Anthropic (API list prices per MTok, input/output)
|
|
12
|
+
- Fable 5.2 `claude-fable-5-2`: $8/$40, "demanding reasoning and long-horizon agentic work", API default effort `high` ([anth-models](https://platform.claude.com/docs/en/about-claude/models/overview)).
|
|
13
|
+
- Opus 5.5 `claude-opus-5-5`: $4/$20, "long-running agentic coding and knowledge work", API default effort `medium`; Anthropic says start here for most workloads ([anth-models](https://platform.claude.com/docs/en/about-claude/models/overview)).
|
|
14
|
+
- Sonnet 5.5 `claude-sonnet-5-5`: $2/$10, "best combination of speed and intelligence", API default effort `high` ([anth-models](https://platform.claude.com/docs/en/about-claude/models/overview)).
|
|
15
|
+
- Haiku 5.5 `claude-haiku-5-5`: $0.10/$0.50 for prompts up to 100K tokens, $0.50/$2.50 above 100K (whole request repriced, cache reads included) ([anth-pricing](https://platform.claude.com/docs/en/about-claude/pricing)).
|
|
16
|
+
- All four: 1M context, 128K max output, adaptive thinking; Fable and Opus thinking is always on ([anth-models](https://platform.claude.com/docs/en/about-claude/models/overview)).
|
|
17
|
+
- Relative cost: Haiku 5.5 (short prompt) is 1/20 of Sonnet 5.5, Sonnet is 1/2 of Opus 5.5, Opus is 1/2 of Fable 5.2 [inference from list prices].
|
|
18
|
+
- Cache hit multiplier: 0.025x on Fable 5.2, 0.05x on Opus 5.5 and Sonnet 5.5, 0.1x elsewhere; Batch API is 50% off and stacks with caching ([anth-pricing](https://platform.claude.com/docs/en/about-claude/pricing)).
|
|
19
|
+
- Fast mode: Opus 5.5 $8/$40, Fable 5.2 $16/$80, so 2x price for up to 2.5x output speed ([anth-pricing](https://platform.claude.com/docs/en/about-claude/pricing)).
|
|
20
|
+
- Effort levels on Fable, Opus 5.5, Sonnet 5.5, Haiku 5.5: `low`, `medium`, `high`, `xhigh`, `max` ([cc-model](https://code.claude.com/docs/en/model-config)).
|
|
21
|
+
- In Claude Code, Fable 5.2, Opus 5.5, Sonnet 5.5 and Haiku 5.5 all default to `medium` (differs from API defaults above); "Opus 5.5 at medium matches or exceeds Opus 5 at high" on coding evals ([cc-model](https://code.claude.com/docs/en/model-config)).
|
|
22
|
+
- Effort guidance: `low` for straightforward work you review step by step; `medium` for clear-scope day-to-day features; `high` where verification or edge cases matter (bug fixes); `xhigh` deeper at higher spend; `max` for hard unattended problems, "prone to overthinking, so test before adopting" ([cc-model](https://code.claude.com/docs/en/model-config)).
|
|
23
|
+
- Thinking tokens bill as output; you cannot turn thinking off on Opus 5.5, Sonnet 5.5, Haiku 5.5 or Fable, so effort is the cost lever ([cc-costs](https://code.claude.com/docs/en/costs)).
|
|
24
|
+
|
|
25
|
+
### OpenAI / Codex
|
|
26
|
+
- Current Codex line-up: GPT-6 Astra (hardest end-to-end work), GPT-6.1 Sol (near-Astra at lower cost, repeated long-running work), GPT-6.1 Terra (fast writing, visual, computer use), GPT-6 Luna (focused, high-volume: extraction, classification, structured summaries) ([cx-models](https://learn.chatgpt.com/docs/models)).
|
|
27
|
+
- GPT-6.1 Sol default context in Codex is 500,000 tokens ([cx-models](https://learn.chatgpt.com/docs/models)).
|
|
28
|
+
- Retired for ChatGPT sign-in: `gpt-5.3-codex-spark` (2026-09-14), `gpt-5.4` and `gpt-5.4-mini` (2026-08-31; replace with `gpt-6-sol` / `gpt-6-luna`), `gpt-5.5` (2026-10-14; replace with `gpt-6.1-sol`); `gpt-5.2` and `gpt-5.3-codex` deprecated. API-key sessions are unaffected ([cx-models](https://learn.chatgpt.com/docs/models)). So "GPT-5.x Codex / mini" advice is stale; Luna is the current small model.
|
|
29
|
+
- `model_reasoning_effort` values: `low`, `medium`, `high`, `xhigh`, `max`, `ultra`, model and client dependent ([cx-config](https://learn.chatgpt.com/docs/config-file/config-reference)). Luna supports up to Max, not Ultra ([cx-models](https://learn.chatgpt.com/docs/models)).
|
|
30
|
+
- Starting points: Luna `high`, Astra `low` (UI "Light"), Sol client default; Sol, GPT-6 Sol and Luna default to `medium` on the API; Sol does not accept `none`/`minimal` ([cx-subagents](https://learn.chatgpt.com/docs/agent-configuration/subagents), [oa-reasoning](https://developers.openai.com/api/docs/guides/reasoning)).
|
|
31
|
+
- "Max" = more reasoning time on one task; "Ultra" = subagents in parallel; "Most tasks do not need Max or Ultra" ([cx-models](https://learn.chatgpt.com/docs/models)).
|
|
32
|
+
- Codex credits per 1M tokens (input / cached / output): Astra 250/25/1,250; Sol 50/2.5/250; Terra 25/1.25/125; Luna 2.5/0.25/12.5. Luna is 1/20 of Sol; Astra is 5x Sol ([cx-pricing](https://learn.chatgpt.com/docs/pricing)).
|
|
33
|
+
- OpenAI framing: "Treat `reasoning.effort` as a tuning knob, not the primary way to recover quality"; define done and verification for agentic work ([oa-reasoning](https://developers.openai.com/api/docs/guides/reasoning)).
|
|
34
|
+
- Reserve at least 25,000 tokens for reasoning plus output when experimenting; hitting `max_output_tokens` can bill reasoning with no visible answer ([oa-reasoning](https://developers.openai.com/api/docs/guides/reasoning)).
|
|
35
|
+
- Planner/workhorse split: reasoning models plan and decide, cheaper models execute well-defined tasks; "Most AI workflows will use a combination" ([oa-rbp](https://developers.openai.com/api/docs/guides/reasoning-best-practices)).
|
|
36
|
+
|
|
37
|
+
### Google Antigravity / Gemini
|
|
38
|
+
- Subagent model tiers: `flash_lite` (small/fast scans), `flash` (balanced mid tier), `pro` (frontier reasoning/review), or `inherit` (default); CLI `agy models` lists available slugs and `--effort low|medium|high|xhigh|max` tunes reasoning ([subagents](https://antigravity.google/docs/subagents), [reference](https://antigravity.google/docs/cli/reference)).
|
|
39
|
+
- Gemini CLI transitioned Pro, Ultra, and free users to `agy` on 2026-06-18 ([migration](https://antigravity.google/docs/cli/gcli-migration)).
|
|
40
|
+
|
|
41
|
+
## 2. Subscription metering
|
|
42
|
+
|
|
43
|
+
### Claude Pro / Max / Ultra
|
|
44
|
+
- Pro and Max: five-hour session limit plus weekly limit; Ultra: weekly limit, verified Ultra accounts have no five-hour limit ([help-plan](https://support.claude.com/en/articles/11145838)).
|
|
45
|
+
- Max and Ultra have a separate weekly Fable limit; limits are shared between Claude apps and Claude Code ([help-plan](https://support.claude.com/en/articles/11145838)).
|
|
46
|
+
- Depending on plan and seat tier, Fable can bill to usage credits instead of included limits; `/model` shows "Requires usage credits" ([cc-model](https://code.claude.com/docs/en/model-config)).
|
|
47
|
+
- Factors that burn limits: message length, attachments, conversation length, tool use, model choice, effort level, multi-step tasks; cached content counts less ([help-best](https://support.claude.com/en/articles/9797557)).
|
|
48
|
+
- "Opus costs several times more per turn than Sonnet, and Sonnet more than Haiku. Spending Opus on routine work is the fastest way to drain a daily limit" ([help-limits](https://support.claude.com/en/articles/14552983)).
|
|
49
|
+
- Subagents send their own requests that count toward the same usage limits as the main conversation ([cc-subagents](https://code.claude.com/docs/en/sub-agents)).
|
|
50
|
+
- Session and weekly limits are shared across all models; after a model-specific "Opus limit" or "Sonnet limit" message, switching family keeps you working ([cc-costs](https://code.claude.com/docs/en/costs)).
|
|
51
|
+
- An exported `ANTHROPIC_API_KEY` makes Claude Code bill the API instead of the subscription ([help-plan](https://support.claude.com/en/articles/11145838)).
|
|
52
|
+
|
|
53
|
+
### ChatGPT Plus / Pro (Codex)
|
|
54
|
+
- Plus estimated local messages per five hours: Astra 5-45, Sol 15-160, Terra 35-285, GPT-6 Sol 15-150, Luna 350-3,000; "Weekly limits may also apply"; cloud tasks use more than local messages ([cx-pricing](https://learn.chatgpt.com/docs/pricing)).
|
|
55
|
+
- Pro ($100/$200/$500) "currently ha[s] no five-hour limit" ([cx-pricing](https://learn.chatgpt.com/docs/pricing)).
|
|
56
|
+
- Fast mode consumes included usage at 2.5x; Astra or Sol Ultrafast at 8x ([cx-pricing](https://learn.chatgpt.com/docs/pricing)).
|
|
57
|
+
- Usage depends on model, context, reasoning, tool use, retrieval and caching; "prompt length alone isn't a reliable estimate" ([cx-pricing](https://learn.chatgpt.com/docs/pricing)).
|
|
58
|
+
- Over limit: buy credits, or run local chats with an API key at API rates ([cx-pricing](https://learn.chatgpt.com/docs/pricing)).
|
|
59
|
+
|
|
60
|
+
### Google AI Pro / Ultra (Antigravity)
|
|
61
|
+
- Cached Google OAuth sign-in (`agy` / `agy acp --login`) draws on Google AI Pro, Ultra, or free plan quotas; setting `GEMINI_API_KEY` with `"modelProvider": "gemini"` bills API rates instead ([install](https://antigravity.google/docs/install), [reference](https://antigravity.google/docs/cli/reference)).
|
|
62
|
+
- Paid plans unlock `/boost`, `/teamwork`, and `/swarm`; `Idle` subagents and waiting `/swarm` workers consume zero tokens while parked ([boost](https://antigravity.google/docs/boost), [swarm](https://antigravity.google/docs/swarm), [subagents](https://antigravity.google/docs/subagents)).
|
|
63
|
+
- Exact per-plan token/message ceilings are account-dependent and not published as fixed numbers in the Antigravity docs [unverified].
|
|
64
|
+
|
|
65
|
+
## 3. Harness knobs
|
|
66
|
+
|
|
67
|
+
### omp 18.18.9
|
|
68
|
+
- Chat roles: `default`, `smol`, `slow`, `vision`, `plan`, `commit`, `tiny`, `memory`, `task`, `advisor`; custom roles via `modelRoles`; `@role` aliases; role values take a `:level` suffix (omp://models.md, omp://settings.md).
|
|
69
|
+
- CLI: `--model`, `--smol` (`PI_SMOL_MODEL`), `--slow` (`PI_SLOW_MODEL`), `--plan` (`PI_PLAN_MODEL`) (omp://cli-reference.md).
|
|
70
|
+
- `--thinking off|minimal|low|medium|high|xhigh|max|auto`; `defaultThinkingLevel` defaults to `high`; `providers.autoThinkingMaxEffort` caps `auto` at `xhigh` by default (omp://cli-reference.md, omp://settings.md).
|
|
71
|
+
- Bundled agents (omp 18.18.9 binary): `scout` model `@smol`, `thinking-level: medium`, `read-summarize: false`, read-only tools; `sonic` model `@smol`, thinking `medium`, "strictly mechanical updates or data collection"; `reviewer` model `@slow`, may spawn `scout`; `task` model `@task`, thinking `auto`; `security-reviewer` sets no model (inherits).
|
|
72
|
+
- The model-facing task prompt "warns against offloading reasoning to `scout`/`sonic`" (omp://task-agent-discovery.md).
|
|
73
|
+
- Model precedence: `task.agentModelOverrides[agent]` > agent frontmatter `model` > parent active/default model (omp://task-agent-discovery.md).
|
|
74
|
+
- Per-call `model` on a task item requires `task.perCallModel: on` (default `off`), must be one exact `provider/model-id[:level]` granted by operator roles or agent frontmatter, and conflicts with an `agentModelOverrides` entry (omp://task-agent-discovery.md).
|
|
75
|
+
- Per-spawn `effort: lo|med|hi` requires `task.enableEffort` (default false); maps to the model's lowest/middle/highest level, clamped by `task.maxEffort` (default `max`) (omp://tools/task.md).
|
|
76
|
+
- `solutionSpace` is the sole input to the `auto` thinking classifier for the child; it describes open-endedness, not volume (omp://tools/task.md).
|
|
77
|
+
- User `^provider/model:level` tags create `m1`, `m2` agents pinned to that model and level (omp://task-agent-discovery.md).
|
|
78
|
+
- Concurrency: `task.maxConcurrency` default 32 (0 = unlimited); `task.maxRecursionDepth` default 2; `async.enabled` makes spawns background jobs (omp://tools/task.md).
|
|
79
|
+
- Budgets: `task.softRequestBudget` default 200 requests, wrap-up notice when crossed, force stop at 1.5x; scout/sonic capped at 100; `task.agentSoftRequestBudget[name]` overrides; `task.maxRuntimeMs` default 0 (off) (omp://tools/task.md).
|
|
80
|
+
- Session spend: `--warn-cost <usd>` and `--max-cost <usd>` include subagents; `--max-cost` stops new requests and print mode exits 3 (omp://cli-reference.md).
|
|
81
|
+
- Prewalk: one-shot handoff from planning model to `prewalk.into` (default `@smol`) at the first `edit`/`write`; off by default; `prewalk.auto: suggest|on` lets a native judge arm it only when "hard thinking comes first" with probability >= 0.70 (omp://prewalk.md).
|
|
82
|
+
- Subagent prewalk: frontmatter `prewalk`, `task.agentPrewalk[name]`, or `task.prewalk` for the bundled `task` agent (default off); per-call-model workers never prewalk (omp://task-agent-discovery.md).
|
|
83
|
+
- Plan-to-cheap execution: `--plan-yolo` plans read-only then executes on `--plan-yolo-into` (default `smol` role) (omp://cli-reference.md).
|
|
84
|
+
- Advisor: `advisor.enabled` attaches reviewer models that inject advice; the `advisor` role defaults to an explicitly configured `slow` else its own strong-model chain; subagents default to no advisor (omp://advisor-watchdog.md, omp://models.md, omp://tools/task.md).
|
|
85
|
+
- Compaction: on by default; `compaction.methodOrder` remote, snapcompact, handoff, shake, soft; `supersedeReads` and `dropUseless` default on; `task.agentCompactionThresholdOverrides[name]` per agent (omp://compaction.md, omp://settings.md).
|
|
86
|
+
- `read.summarize.enabled` default true gives structural summaries of code reads; `read.defaultLimit` 300 lines (omp://settings.md).
|
|
87
|
+
- Child sessions do not inherit conversation history; they get workspace tree, skills, rules, context files except `AGENTS.md`, and the shared `local://` root (omp://tools/task.md).
|
|
88
|
+
- Inline task results up to 11,500 chars; longer outputs return a 5,000-char preview plus `agent://<id>` (omp://tools/task.md).
|
|
89
|
+
- Prefer `write agent://<id>` to an existing agent over a fresh spawn for follow-ups: "it already holds the relevant context" (omp://tools/task.md).
|
|
90
|
+
- Visibility: `omp usage` (provider limits per account), `omp usage clients --days` (token burn per client), `omp stats`; Agent Hub (`Alt+A`) shows each agent's model and usage; task results carry `tokens`, `requests`, `usage`, `resolvedModel`, `resolvedThinkingLevel` (omp://cli-reference.md, omp://task-agent-discovery.md, omp://tools/task.md).
|
|
91
|
+
- Service tier: `tier.subagent` default `inherit`; `task.agentServiceTierOverrides[name]` per agent (omp://settings.md).
|
|
92
|
+
|
|
93
|
+
### Claude Code 2.1.322
|
|
94
|
+
- Aliases: `default`, `best`, `fable`, `opus`, `sonnet`, `haiku`, `sonnet[1m]`, `opus[1m]`, `opusplan`; on the Anthropic API `opus`/`sonnet`/`haiku` resolve to the 5.5 models ([cc-model](https://code.claude.com/docs/en/model-config)).
|
|
95
|
+
- `opusplan` uses Opus in plan mode and Sonnet for execution; `/model` switches mid-session and also changes subagents that inherit the session model ([cc-model](https://code.claude.com/docs/en/model-config)).
|
|
96
|
+
- `--effort low|medium|high|xhigh|max` (claude 2.1.322 --help); `/effort`, `CLAUDE_CODE_EFFORT_LEVEL` (highest precedence), per-model `modelSettings`, `maxEffortLevel` cap; `ultrathink` raises one turn to `xhigh` ([cc-model](https://code.claude.com/docs/en/model-config)).
|
|
97
|
+
- `ultracode` (via `/effort` or `--effort ultracode`) orchestrates dynamic workflows for every substantive task, at `xhigh` when set by flag ([cc-model](https://code.claude.com/docs/en/model-config)).
|
|
98
|
+
- Subagent `model`: `sonnet|opus|haiku|fable|<full id>|inherit`; resolution: per-invocation `model` > frontmatter > `CLAUDE_CODE_SUBAGENT_MODEL` > main model; `CLAUDE_CODE_SUBAGENT_MODEL_FORCE` forces one model on all ([cc-subagents](https://code.claude.com/docs/en/sub-agents)).
|
|
99
|
+
- Subagent `effort` frontmatter or per-invocation `effort`; without it, a subagent on the main model uses the session level, on another model that level does not apply ([cc-subagents](https://code.claude.com/docs/en/sub-agents)).
|
|
100
|
+
- Other cost-relevant frontmatter: `maxTurns`, `autoCompactWindow` (100K-1M), `omitClaudeMd`, `background`, `isolation: worktree`, `experimental.cacheTtl` ([cc-subagents](https://code.claude.com/docs/en/sub-agents)).
|
|
101
|
+
- Built-in Explore: read-only, runs on the main conversation's model (Opus when main is Fable, on subscription/Console); skips CLAUDE.md and git status; define a user `Explore` with `model: haiku` to cheapen it ([cc-subagents](https://code.claude.com/docs/en/sub-agents)).
|
|
102
|
+
- Explore takes a thoroughness level: quick, medium, very thorough ([cc-subagents](https://code.claude.com/docs/en/sub-agents)).
|
|
103
|
+
- Subagents start in the background by default; concurrency cap 20 (`CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS`); nesting up to 3 layers (`CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH`) ([cc-subagents](https://code.claude.com/docs/en/sub-agents)).
|
|
104
|
+
- Combined custom subagent descriptions over 15,000 tokens trigger a startup warning; keep descriptions short ([cc-subagents](https://code.claude.com/docs/en/sub-agents)).
|
|
105
|
+
- A fork inherits the full conversation and reads the parent's prompt cache, so it "costs less than a fresh subagent for tasks that need the same context" ([cc-subagents](https://code.claude.com/docs/en/sub-agents)).
|
|
106
|
+
- Visibility: `/usage` Session block (token counts, list-price cost, prompt cache hit line), plan usage bars and attribution to subagents, skills, MCP; `/context`; `/tasks` shows each subagent's model and effort ([cc-costs](https://code.claude.com/docs/en/costs), [cc-subagents](https://code.claude.com/docs/en/sub-agents)).
|
|
107
|
+
- `/cost` shows session token and dollar usage for API billing ([help-limits](https://support.claude.com/en/articles/14552983)).
|
|
108
|
+
- `--max-budget-usd <amount>` works only with `--print`; `--autocompact <auto|tokens>`; `--fallback-model`; `--json-schema` for structured output in print mode (claude 2.1.322 --help).
|
|
109
|
+
- Headless: read actual model from `modelUsage` in `--output-format json` results ([cc-model](https://code.claude.com/docs/en/model-config)).
|
|
110
|
+
- Auto-compact window: `/autocompact`, `autoCompactWindow`, `CLAUDE_CODE_AUTO_COMPACT_WINDOW`; default compacts at the model's limit (Haiku 5.5 about 967K) ([cc-model](https://code.claude.com/docs/en/model-config)).
|
|
111
|
+
- Agent teams use "approximately 7x more tokens than standard sessions when teammates run in plan mode"; use Sonnet teammates, keep teams small ([cc-costs](https://code.claude.com/docs/en/costs)).
|
|
112
|
+
|
|
113
|
+
### Codex 0.163.0
|
|
114
|
+
- `-m/--model`, `-c key=value` overrides, `-p/--profile <name>` layers `$CODEX_HOME/<name>.config.toml` (codex 0.163.0 --help).
|
|
115
|
+
- Profiles: separate files, top-level keys only; `[profiles.x]` tables and `profile = "x"` are unsupported since 0.134.0 ([cx-adv](https://learn.chatgpt.com/docs/config-file/config-advanced)).
|
|
116
|
+
- Config: `model`, `model_reasoning_effort`, `plan_mode_reasoning_effort`, `model_verbosity`, `model_auto_compact_token_limit`, `tool_output_token_limit`, `service_tier` ([cx-config](https://learn.chatgpt.com/docs/config-file/config-reference)).
|
|
117
|
+
- Subagents: built-ins `default`, `worker`, `explorer`; custom TOML in `~/.codex/agents/` or `.codex/agents/` with `model`, `model_reasoning_effort` ([cx-subagents](https://learn.chatgpt.com/docs/agent-configuration/subagents)).
|
|
118
|
+
- Global: `agents.max_concurrent_threads_per_session`, `agents.default_subagent_model`, `agents.default_subagent_reasoning_effort` ([cx-subagents](https://learn.chatgpt.com/docs/agent-configuration/subagents)).
|
|
119
|
+
- Unconfigured subagents inherit parent model and effort; precedence: agent file > explicit spawn value > `[agents]` default > parent ([cx-subagents](https://learn.chatgpt.com/docs/agent-configuration/subagents)).
|
|
120
|
+
- Doc example roster: explorers and small fixers on `gpt-6-luna` at `high`, reviewers and UI debuggers on `gpt-6.1-sol` at `medium` ([cx-subagents](https://learn.chatgpt.com/docs/agent-configuration/subagents)).
|
|
121
|
+
- Subagents spawn only on explicit request at most levels; Ultra delegates proactively ([cx-subagents](https://learn.chatgpt.com/docs/agent-configuration/subagents)).
|
|
122
|
+
- Visibility: `/status` shows remaining limits in a CLI session; usage dashboard at chatgpt.com/codex/settings/usage ([cx-pricing](https://learn.chatgpt.com/docs/pricing)).
|
|
123
|
+
- `codex exec --json` prints JSONL events; `--output-schema` constrains the final message; `-o` writes the last message to a file (codex 0.163.0 exec --help).
|
|
124
|
+
- No per-run dollar or turn cap flag appears in `codex --help` or `codex exec --help` 0.163.0 [inference from help text].
|
|
125
|
+
|
|
126
|
+
### Google Antigravity
|
|
127
|
+
- CLI selection: `agy models` lists model slugs; `--model <slug>` or `/model` picks the model, `--effort low|medium|high|xhigh|max` or `/effort` sets reasoning effort, and `--agent <name>` (`agy agents`) selects a custom main agent ([reference](https://antigravity.google/docs/cli/reference), [headless](https://antigravity.google/docs/cli/headless)).
|
|
128
|
+
- Subagents: `.agents/agents/<name>.md`, `~/.gemini/config/agents/`, or plugin `agents/<name>.md` set `model: inherit|flash_lite|flash|pro` (`inherit` default); built-ins are `research`, `browser`, and `self`, spawned via `invoke_subagent` up to 10 nesting levels ([subagents](https://antigravity.google/docs/subagents)).
|
|
129
|
+
- Idle cost: `Idle` subagents (re-awakened with `send_message`, keeping their prior context) and waiting `/swarm` workers consume zero tokens while parked ([subagents](https://antigravity.google/docs/subagents), [swarm](https://antigravity.google/docs/swarm)).
|
|
130
|
+
- Orchestrators: `/boost` runs iterative `Orchestrator` -> `DeepCoder`/`DeepInvestigator` cycles on hard problems (paid plans); `/swarm` coordinates named workers + verifier on a shared board (AI Pro/Ultra); `/run-workflow` scripts staged/parallel Python workflows ([boost](https://antigravity.google/docs/boost), [swarm](https://antigravity.google/docs/swarm), [dynamic-workflows](https://antigravity.google/docs/dynamic-workflows)).
|
|
131
|
+
- MCP token savings: MCP tools lazy-load by default (schemas cached on disk under `<app-data-dir>/mcp/` and invoked via `call_mcp_tool`), avoiding per-turn schema bloat unless `"eager": true` is configured ([mcp](https://antigravity.google/docs/mcp)).
|
|
132
|
+
- Headless telemetry: `agy -p --output-format json` reports `usage`, `num_turns`, and `duration_seconds`, and `--json-schema` constrains structured output ([headless](https://antigravity.google/docs/cli/headless)).
|
|
133
|
+
|
|
134
|
+
## 4. Delegation economics (primary sources)
|
|
135
|
+
- Agents use about 4x the tokens of chat; multi-agent systems about 15x; worth it only when task value pays for it ([ma-post](https://www.anthropic.com/engineering/multi-agent-research-system)).
|
|
136
|
+
- Token usage alone explained 80% of BrowseComp performance variance; tool calls and model choice explained most of the rest ([ma-post](https://www.anthropic.com/engineering/multi-agent-research-system)).
|
|
137
|
+
- Opus 4 lead + Sonnet 4 subagents beat single-agent Opus 4 by 90.2% on breadth-first research ([ma-post](https://www.anthropic.com/engineering/multi-agent-research-system)).
|
|
138
|
+
- Model upgrade beat doubling token budget (Sonnet 4 vs 2x tokens on Sonnet 3.7) ([ma-post](https://www.anthropic.com/engineering/multi-agent-research-system)).
|
|
139
|
+
- Poor fit: tasks where all agents need shared context or have many inter-agent dependencies; "most coding tasks involve fewer truly parallelizable tasks than research" ([ma-post](https://www.anthropic.com/engineering/multi-agent-research-system)).
|
|
140
|
+
- Scaling rule from their prompts: simple fact-finding 1 agent with 3-10 tool calls; comparisons 2-4 subagents with 10-15 calls; complex research 10+ subagents with divided responsibilities ([ma-post](https://www.anthropic.com/engineering/multi-agent-research-system)).
|
|
141
|
+
- Early failures: spawning 50 subagents for simple queries; vague delegation caused duplicated searches; each subagent needs objective, output format, tool guidance, boundaries ([ma-post](https://www.anthropic.com/engineering/multi-agent-research-system)).
|
|
142
|
+
- Parallelism: 3-5 subagents at once plus 3+ parallel tool calls each cut research time up to 90% ([ma-post](https://www.anthropic.com/engineering/multi-agent-research-system)).
|
|
143
|
+
- Have subagents write artifacts to a filesystem and pass lightweight references back, avoiding copying large outputs through the coordinator ([ma-post](https://www.anthropic.com/engineering/multi-agent-research-system)).
|
|
144
|
+
- Claude Code: use a subagent when a side task "would flood your main conversation with search results, logs, or file contents you won't reference again" ([cc-subagents](https://code.claude.com/docs/en/sub-agents)).
|
|
145
|
+
- Claude Code: many subagents returning detailed results "can consume significant context, and each subagent spends tokens of its own" ([cc-subagents](https://code.claude.com/docs/en/sub-agents)).
|
|
146
|
+
- Claude Code: for a question about something already in the conversation, use `/btw`, not a subagent ([cc-subagents](https://code.claude.com/docs/en/sub-agents)).
|
|
147
|
+
- Codex: "subagent workflows consume more tokens than comparable single-agent runs"; use parallel agents for read-heavy work (exploration, tests, triage, summarization); be careful with parallel write-heavy work ([cx-subagents](https://learn.chatgpt.com/docs/agent-configuration/subagents)).
|
|
148
|
+
- Fresh subagents pay their own prefix: separate cache from the parent and only a 5-minute TTL even on subscription unless configured ([cc-cache](https://code.claude.com/docs/en/prompt-caching)).
|
|
149
|
+
- Non-fork Claude subagents load CLAUDE.md and git status (except Explore/Plan); omp children get context files except `AGENTS.md` ([cc-subagents](https://code.claude.com/docs/en/sub-agents), omp://tools/task.md).
|
|
150
|
+
- Net: the main win is context isolation and parallel wall-clock, not token savings; delegation saves tokens only when the child is a cheaper model or its raw output would otherwise sit in an expensive main context [inference].
|
|
151
|
+
|
|
152
|
+
## 5. Token-saving practices
|
|
153
|
+
- Prompt caching is exact prefix match; any change recomputes everything after it ([cc-cache](https://code.claude.com/docs/en/prompt-caching), [oa-cache](https://developers.openai.com/api/docs/guides/prompt-caching)).
|
|
154
|
+
- Claude cache: 5-minute write 1.25x, 1-hour write 2x base input; 512-token minimum on current models; up to 4 breakpoints; 20-block lookback ([anth-pricing](https://platform.claude.com/docs/en/about-claude/pricing), [anth-cache](https://platform.claude.com/docs/en/build-with-claude/prompt-caching)).
|
|
155
|
+
- Claude Code requests a 1-hour TTL for the main conversation on a subscription within included usage; subagents get 5 minutes; set `promptCacheTtl` / `subagentPromptCacheTtl` ([cc-cache](https://code.claude.com/docs/en/prompt-caching)).
|
|
156
|
+
- Cache breakers in Claude Code: switching models, changing effort, fast mode, tool set changes when tool search is off, compaction ([cc-cache](https://code.claude.com/docs/en/prompt-caching)).
|
|
157
|
+
- A skill or command naming a different `model` makes that turn a model switch with no cache hits ([cc-cache](https://code.claude.com/docs/en/prompt-caching)).
|
|
158
|
+
- `/rewind` returns to an already cached prefix; `/compact` builds a new one and is expensive on a cold cache; `/clear` costs nothing ([cc-cache](https://code.claude.com/docs/en/prompt-caching), [cc-costs](https://code.claude.com/docs/en/costs)).
|
|
159
|
+
- OpenAI cache: 1,024-token minimum on GPT-5.6+; read 0.1x (0.05x on Sol 6.1 and Terra 6.1); write 1.25x for 30m, 2.5x for 12h ([oa-cache](https://developers.openai.com/api/docs/guides/prompt-caching)).
|
|
160
|
+
- OpenAI: keep tool definitions stable (use `tool_choice: "none"` instead of removing tools); change effort via `configuration_update` items to keep the prefix ([oa-cache](https://developers.openai.com/api/docs/guides/prompt-caching)).
|
|
161
|
+
- Codex subscription credits have no separate cache-write charge ([cx-pricing](https://learn.chatgpt.com/docs/pricing)).
|
|
162
|
+
- Clear between unrelated tasks: "the single most effective lever for both quality and cost" ([help-limits](https://support.claude.com/en/articles/14552983)).
|
|
163
|
+
- Keep CLAUDE.md under about 200 lines; move workflow detail to skills, which load on demand ([cc-costs](https://code.claude.com/docs/en/costs)).
|
|
164
|
+
- Reference files by path rather than pasting; `@file` injects the whole file; trim logs to the relevant 20-30 lines ([help-limits](https://support.claude.com/en/articles/14552983)).
|
|
165
|
+
- Use hooks to filter output before the model sees it (example: tail test output to 100 lines) ([cc-costs](https://code.claude.com/docs/en/costs)).
|
|
166
|
+
- Prefer CLI tools over MCP servers; disable unused servers ([cc-costs](https://code.claude.com/docs/en/costs)).
|
|
167
|
+
- Use code intelligence (LSP) to replace grep plus multi-file reads ([cc-costs](https://code.claude.com/docs/en/costs)).
|
|
168
|
+
- Write specific prompts; vague ones "trigger broad scanning" ([cc-costs](https://code.claude.com/docs/en/costs)).
|
|
169
|
+
- Plan before big changes; a plan costs hundreds of tokens, a reverted wrong diff costs thousands twice ([help-limits](https://support.claude.com/en/articles/14552983)).
|
|
170
|
+
- Batch related requests into one message ([help-best](https://support.claude.com/en/articles/9797557)).
|
|
171
|
+
- omp: `read` with line selectors and structural summaries; `compaction.supersedeReads` blanks stale reads; parallel tool calls in one turn (omp://settings.md, omp://compaction.md).
|
|
172
|
+
- Structured outputs keep child reports short and parseable: omp `outputSchema`, Claude `--json-schema`, Codex `--output-schema` (omp://tools/task.md, claude 2.1.322 --help, codex 0.163.0 exec --help).
|
|
173
|
+
- Cap reasoning spend with effort, not prose; cap output with `max_output_tokens` on the API ([oa-reasoning](https://developers.openai.com/api/docs/guides/reasoning)).
|
|
174
|
+
- Idle background work burns tokens: scheduled loops, goal check-ins, session recap, prompt suggestions, idle compaction ([cc-costs](https://code.claude.com/docs/en/costs)).
|
|
175
|
+
|
|
176
|
+
## 6. Decision table
|
|
177
|
+
|
|
178
|
+
### Pre-task model selection (run before turn 1, loop 1, or worker kickoff)
|
|
179
|
+
1. Classify size, risk, and oracle strength: trivial/search/mechanical (`S`), routine feature with automated tests (`M`), or architecture/security/concurrency/contested debugging (`L`).
|
|
180
|
+
2. Check current headroom before heavy runs (`omp usage`, Claude `/usage`, Codex `/status`, Antigravity `/model`), skip Fast/Ultrafast multipliers (2x-8x quota burn), and pick the cheapest benchmark tier in the table below that passes that task class.
|
|
181
|
+
3. Switch **before** starting and `/clear` between unrelated tasks (never default to flagship `L` when `S`/`M` fits; switch at clean task/subagent boundaries so prompt caches stay warm):
|
|
182
|
+
- **omp:** `/model`, `--model`, `--smol`, `--prewalk`, `--plan-yolo`, or `task` `model` / `effort`
|
|
183
|
+
- **Claude Code:** `/model sonnet|haiku|opusplan|opus`, `--model`, `--effort low|medium|high`, `--fallback-model`, or subagent `model`
|
|
184
|
+
- **Codex:** `-m gpt-6-luna|gpt-6.1-sol|gpt-6-astra`, `-c model_reasoning_effort=...`, `plan_mode_reasoning_effort`
|
|
185
|
+
- **Antigravity:** `/model` or `--model <slug>`, `--effort low|medium|high`, `invoke_subagent` `Model: "flash_lite" | "flash" | "pro"`, `swarm` `add`/`model`
|
|
186
|
+
4. Pin the chosen `--model` / `--effort` in `loop.py` `harness_args` and subagent kickoffs up front so loops never inherit an unnecessarily expensive session model.
|
|
187
|
+
|
|
188
|
+
Tiers: S = small (Haiku 5.5, gpt-6-luna, omp `@smol`, Antigravity `flash_lite`); M = mid (Sonnet 5.5, gpt-6.1-sol or gpt-6.1-terra, omp `@task`/`@default`, Antigravity `flash`); L = large (Opus 5.5 high/xhigh, Fable 5.2, gpt-6-astra, omp `@slow`, Antigravity `pro`). Mapping is [inference] from sections 1-5 unless cited.
|
|
189
|
+
|
|
190
|
+
| Task type | Tier and effort | omp | Claude Code | Codex | Antigravity | Delegate? | Why |
|
|
191
|
+
| --- | --- | --- | --- | --- | --- | --- | --- |
|
|
192
|
+
| Search / locate | S, low-medium | `scout` (`@smol`, medium) | Explore, or user `Explore` (`model: haiku`) | `explorer` or `gpt-6-luna` high | `scout` (`flash`) or `research` / `flash_lite` | Yes if many files; no for one symbol | Keeps raw search out of main context ([cc-subagents](https://code.claude.com/docs/en/sub-agents), [cx-subagents](https://learn.chatgpt.com/docs/agent-configuration/subagents)) |
|
|
193
|
+
| Mechanical edit | S, medium | `sonic` | subagent `haiku`, `effort: low` | custom `gpt-6-luna` | `invoke_subagent` `flash_lite` / `flash` | Only when many files or parallel; else inline | Haiku "for quick mechanical work" ([help-limits](https://support.claude.com/en/articles/14552983)) |
|
|
194
|
+
| Routine feature | M, medium | main or `task` (auto) | Sonnet 5.5 or Opus 5.5 medium | `gpt-6.1-sol` medium | main or worker on `flash`, `--effort medium` | Usually no; yes for independent slices | Shared context, few parallel parts ([ma-post](https://www.anthropic.com/engineering/multi-agent-research-system)) |
|
|
195
|
+
| Hard design, debug | L, high-xhigh | main `@slow` or `^model:high` | Opus 5.5 high/xhigh or Fable 5.2 | `gpt-6-astra` high/xhigh | main on `pro` high/xhigh (or `/boost`) | No for reasoning itself | omp warns against offloading reasoning to scout/sonic (omp://task-agent-discovery.md) |
|
|
196
|
+
| Review / judge | M-L, high | `reviewer` (`@slow`) | subagent `opus`, `effort: high` | reviewer `gpt-6.1-sol` med-high | `reviewer` (`pro`, high) | Yes; fresh context avoids bias [inference] | `high` for reviewer agents ([cx-subagents](https://learn.chatgpt.com/docs/agent-configuration/subagents)) |
|
|
197
|
+
| Long autonomous run | L plan, M/S exec | `--prewalk` / `--plan-yolo`; `--max-cost` | `fable` or `opusplan`; `--max-budget-usd` | `gpt-6.1-sol` (or Astra for hardest) | `/goal` or `/swarm` (`pro` plan, `flash` workers); `--print-timeout` | Plan once, execute cheaper | Fable sustains long sessions ([cc-model](https://code.claude.com/docs/en/model-config)); Sol for long-running work ([cx-models](https://learn.chatgpt.com/docs/models)) |
|
|
198
|
+
| Summarize logs | S, medium-high | `sonic` or `seance` | subagent `haiku` (<100K) | `gpt-6-luna` | subagent `flash_lite` / `flash` | Yes | Luna for summaries ([cx-models](https://learn.chatgpt.com/docs/models)); Haiku >100K jump ([anth-pricing](https://platform.claude.com/docs/en/about-claude/pricing)) |
|
|
199
|
+
|
|
200
|
+
When NOT to delegate:
|
|
201
|
+
- One-file or one-grep tasks: a fresh child re-pays system prompt, context files and a cold cache, and the parent pays to read its report [inference from [cc-cache](https://code.claude.com/docs/en/prompt-caching)].
|
|
202
|
+
- Tightly coupled or shared-context work, and concurrent writes to the same files ([ma-post](https://www.anthropic.com/engineering/multi-agent-research-system), [cx-subagents](https://learn.chatgpt.com/docs/agent-configuration/subagents)).
|
|
203
|
+
- Questions answerable from current context (`/btw`) ([cc-subagents](https://code.claude.com/docs/en/sub-agents)).
|
|
204
|
+
- Follow-ups to a finished child: message it (`write agent://<id>`, Claude `SendMessage`) instead of a new spawn; resumed runs can reuse the warmed cache (omp://tools/task.md, [cc-cache](https://code.claude.com/docs/en/prompt-caching)).
|
|
205
|
+
- Fork instead of fresh subagent when the child needs the whole conversation (shared cache) ([cc-subagents](https://code.claude.com/docs/en/sub-agents)).
|
|
206
|
+
|
|
207
|
+
## 7. Guardrails
|
|
208
|
+
- Per-agent budgets: omp `task.softRequestBudget` / `task.agentSoftRequestBudget` / `task.maxRuntimeMs`; Claude `maxTurns`; Antigravity `--print-timeout` (wall clock in `-p`) and `Stop` `continuationActive`; Codex [unverified: no documented per-agent turn cap found] (omp://tools/task.md, [cc-subagents](https://code.claude.com/docs/en/sub-agents), [headless](https://antigravity.google/docs/cli/headless)).
|
|
209
|
+
- Session spend caps: omp `--max-cost` (subagents included, exit 3); Claude `--max-budget-usd` (print only); Antigravity `--print-timeout` (wall clock only; no USD cap flag documented) (omp://cli-reference.md, claude 2.1.322 --help, [headless](https://antigravity.google/docs/cli/headless)).
|
|
210
|
+
- Concurrency caps: omp `task.maxConcurrency` 32; Claude 20; Codex `agents.max_concurrent_threads_per_session` (doc examples use 6-8); Antigravity concurrent subagents and `/swarm` workers (no fixed concurrency integer published [unverified]) (omp://tools/task.md, [cc-subagents](https://code.claude.com/docs/en/sub-agents), [cx-subagents](https://learn.chatgpt.com/docs/agent-configuration/subagents), [subagents](https://antigravity.google/docs/subagents)).
|
|
211
|
+
- Depth caps: omp `task.maxRecursionDepth` 2; Claude 3 layers; Antigravity 10 nesting levels (omp://tools/task.md, [cc-subagents](https://code.claude.com/docs/en/sub-agents), [subagents](https://antigravity.google/docs/subagents)).
|
|
212
|
+
- Put explicit effort-scaling rules in the orchestrator prompt (agent count, tool-call budget) ([ma-post](https://www.anthropic.com/engineering/multi-agent-research-system)).
|
|
213
|
+
- Measure after a run: omp `omp usage`, `omp stats`, Agent Hub, task `usage`; Claude `/usage` attribution (subagent share), `modelUsage` in JSON output; Codex `/status` and the usage dashboard weekly; Antigravity `usage`, `num_turns`, and `duration_seconds` in `agy -p --output-format json` (omp://cli-reference.md, [cc-costs](https://code.claude.com/docs/en/costs), [cx-pricing](https://learn.chatgpt.com/docs/pricing), [headless](https://antigravity.google/docs/cli/headless)).
|
|
214
|
+
- Watch cache health: Claude `/usage` "Prompt cache (main)" line; OpenAI `cached_tokens` and `cache_write_tokens` ([cc-costs](https://code.claude.com/docs/en/costs), [oa-cache](https://developers.openai.com/api/docs/guides/prompt-caching)).
|
|
215
|
+
- Judges: a single LLM call with a rubric and 0.0-1.0 score plus pass/fail was most consistent with human judgment; keep human spot checks ([ma-post](https://www.anthropic.com/engineering/multi-agent-research-system)).
|
|
216
|
+
- Cross-family judging (e.g., Claude work reviewed by a GPT model and vice versa) reduces shared blind spots [inference; no primary source this session states it].
|
|
217
|
+
- Org caps: Claude `availableModels`, `maxEffortLevel`; omp `task.maxEffort`, `task.perCallModelAllow` ([cc-model](https://code.claude.com/docs/en/model-config), omp://task-agent-discovery.md).
|
|
218
|
+
|
|
219
|
+
## 8. Benchmark-guided selection and model switching (checked 2026-11-18)
|
|
220
|
+
|
|
221
|
+
Consult cost-per-task LM benchmarks rather than defaulting every turn to the highest-ranked flagship model:
|
|
222
|
+
- **What to check:** **Artificial Analysis** ([artificialanalysis.ai](https://artificialanalysis.ai/)), **Terminal-Bench** ([tbench.ai](https://www.tbench.ai/)), and **SWE-bench** ([swebench.com](https://www.swebench.com/)) report resolution rate alongside **token consumption, latency, and USD/task** across real agent scaffolds.
|
|
223
|
+
- **Why it matters:** On multi-step agent loops, flagship reasoning models often burn multiples more tokens (especially output/thinking tokens) per task, whereas value/mid tiers can often resolve most bounded tasks (roughly 80-90%+ on well-scoped tasks [inference from cost/resolution leaderboard curves above, not a universal benchmark guarantee]) at a fraction of the cost and quota. Reserve flagship (`L`) quota for architecture, hard debugging, and final verification; route bounded work to `M`/`S` whenever benchmarks and your repo evals show comparable pass rates.
|
|
224
|
+
|
|
225
|
+
Five model-switching patterns to save usage and survive rate limits:
|
|
226
|
+
1. **Plan strong, execute cheaper (asymmetric switch):** Design/plan on `L`, then switch execution to `M`/`S` (`omp --prewalk` or `--plan-yolo`, Claude Code `opusplan` or `/model sonnet`, Codex planner-workhorse split, Antigravity `invoke_subagent` `Model: "flash"` or `"flash_lite"`).
|
|
227
|
+
2. **Cheap-first escalation (oracle-backed tasks):** When an automated check exists (unit tests, typecheck, linter, build), run the first pass on `S`/`M` and switch up to `L` only on failure or stall instead of burning `L` quota up front.
|
|
228
|
+
3. **Switch at clean boundaries (cache protection):** Switching models mid-conversation invalidates the exact-prefix prompt cache. Switch at new subagent spawns, after `/clear`, or via dedicated execution roles (`--prewalk`, `opusplan`, subagent `model`), not back-and-forth mid-thread.
|
|
229
|
+
4. **Rotate on model or quota limits:** When hitting a model-specific cap ("Opus limit", "Astra limit") or repeated 429s, switch to a sibling tier or another logged-in model family (Claude `/model` or `--fallback-model`, `omp` `@role` / `task.agentModelOverrides`, Antigravity `swarm` `model` action) instead of stalling or paying overage rates.
|
|
230
|
+
5. **Cross-family judging for quota balance:** Spread `reviewer` and `panel` verifiers across distinct provider families when available to both reduce blind spots and avoid exhausting one subscription's 5-hour/RPM pool.
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
# LangChain ecosystem: choose the boundary, not another loop
|
|
2
|
+
|
|
3
|
+
Read for LangChain, LangGraph, Deep Agents, LangSmith, `create_agent` / `createAgent`, `StateGraph`, middleware tool routing, checkpoint recovery, interrupts, or MCP adapters. **Accessed 2026-11-13.** Vendor facts below cite official pages; **Recommendation** marks deepmodebot design advice. This is documentation research, not an SDK installation, API execution, deployment, or compatibility test.
|
|
4
|
+
|
|
5
|
+
Use [self-authoring](self-authoring.md) for harness-native prompt/skill/goal syntax, the [bounded self-authoring playbook](../../deepmodebot/references/playbooks/self-authoring.md) for execution and promotion gates, and [protocols](protocols.md) for MCP/ACP/A2A/WebMCP security and wire semantics. This reference adds ecosystem decisions, not replacement rules.
|
|
6
|
+
|
|
7
|
+
## 1. Select the abstraction
|
|
8
|
+
|
|
9
|
+
| Requirement | Vendor capability | Recommendation for deepmodebot |
|
|
10
|
+
|---|---|---|
|
|
11
|
+
| Model chooses tools in a conventional loop | LangChain `create_agent` is a configurable model/tools/prompt/middleware harness; middleware runs inside its compiled LangGraph. [Agents](https://docs.langchain.com/oss/python/langchain/agents.md), [Middleware overview](https://docs.langchain.com/oss/python/langchain/middleware/overview.md) | Keep the existing harness for ordinary coding work. Adopt the design principle of a small task-specific tool surface, not an SDK dependency. |
|
|
12
|
+
| Explicit state transitions, deterministic gates, fan-out/join, human pause | LangGraph supplies state, nodes, edges and persistence without prescribing prompts; it does not require LangChain. [LangGraph overview](https://docs.langchain.com/oss/python/langgraph/overview.md) | Model the existing bounded loop as explicit phases. Select `StateGraph` only when implementing an application that actually needs programmable graph orchestration. |
|
|
13
|
+
| Assembled planning, filesystem context, delegation and memory | Deep Agents adds these capabilities over LangChain/LangGraph; SDK self-hosting and Managed Deep Agents are distinct run options. [Deep Agents overview](https://docs.langchain.com/oss/python/deepagents/overview.md) | Borrow progressive disclosure and context isolation. Do not run a second autonomous agent loop inside deepmodebot by default. |
|
|
14
|
+
| Traces, datasets, evaluation, production hosting | LangSmith covers observability/evaluation; Agent Server is a separate hosting/runtime concern. [Observability](https://docs.langchain.com/oss/python/langchain/observability.md), [Evaluation](https://docs.langchain.com/langsmith/evaluation.md), [Agent Server](https://docs.langchain.com/langsmith/deployment.md) | Retain local evidence and existing evals. Service activation, telemetry upload and deployment require a separately authorized implementation. |
|
|
15
|
+
|
|
16
|
+
`create_agent` and `StateGraph` are composable rather than rivals: a middleware-equipped agent can be a graph node/subgraph when surrounding routing is more complex than a tool loop. [Middleware overview](https://docs.langchain.com/oss/python/langchain/middleware/overview.md)
|
|
17
|
+
|
|
18
|
+
## 2. Language and version gate
|
|
19
|
+
|
|
20
|
+
Before proposing code, inspect the target project's manifest/lockfile and select its language-specific documentation. The documentation examples below identify API families, not the latest installed versions.
|
|
21
|
+
|
|
22
|
+
| Boundary | Python documentation | TypeScript documentation |
|
|
23
|
+
|---|---|---|
|
|
24
|
+
| Core factory | `from langchain.agents import create_agent`; `system_prompt`, `response_format` | `import { createAgent } from "langchain"`; `systemPrompt`, `responseFormat`. [Python agents](https://docs.langchain.com/oss/python/langchain/agents.md), [TS agents](https://docs.langchain.com/oss/javascript/langchain/agents.md) |
|
|
25
|
+
| Graph | `StateGraph` from `langgraph.graph`; `.add_node()` | `StateGraph` from `@langchain/langgraph`; `.addNode()`. Current overview uses `StateSchema` / `MessagesValue`; do not assume older schema examples match a pinned package. [Python overview](https://docs.langchain.com/oss/python/langgraph/overview.md), [TS overview](https://docs.langchain.com/oss/javascript/langgraph/overview.md) |
|
|
26
|
+
| Deep Agents | `create_deep_agent` from `deepagents` | `createDeepAgent` from `deepagents`; current quickstart awaits factory creation. [Python overview](https://docs.langchain.com/oss/python/deepagents/overview.md), [TS overview](https://docs.langchain.com/oss/javascript/deepagents/overview.md) |
|
|
27
|
+
| Middleware | `wrap_model_call`, `wrap_tool_call`, middleware classes/decorators | `createMiddleware`, `wrapModelCall`, `wrapToolCall`; not a mechanical spelling substitution. [Python tools](https://docs.langchain.com/oss/python/langchain/tools.md), [TS middleware](https://docs.langchain.com/oss/javascript/langchain/middleware/custom.md) |
|
|
28
|
+
| Runtime requirements documented on access date | Python 3.10+; provider integrations are separate packages | Node.js 22+; Bun section says 1.0.0+; provider integrations separate. [Python install](https://docs.langchain.com/oss/python/langchain/install.md), [TS install](https://docs.langchain.com/oss/javascript/langchain/install.md) |
|
|
29
|
+
| MCP adapter generation | `langchain.mcp.MCPAdapter`, `list_tools()`; `langchain[mcp]>=1.4.0`, **beta** | `MCPAdapter` from `@langchain/mcp-adapters`, `listTools()`; docs require **2.0+**. [Python MCP](https://docs.langchain.com/oss/python/langchain/mcp/index.md), [TS MCP](https://docs.langchain.com/oss/javascript/langchain/mcp/index.md) |
|
|
30
|
+
|
|
31
|
+
Python v1 replaces `langgraph.prebuilt.create_react_agent` with `langchain.agents.create_agent`, moves hooks to middleware, and moves legacy chains/retrievers to `langchain-classic`. Do not silently mix old tutorials with v1 APIs. [v1 migration](https://docs.langchain.com/oss/python/migrate/langchain-v1.md)
|
|
32
|
+
|
|
33
|
+
The Python versioning page designates LangChain/LangGraph 1.0 as LTS and describes Deep Agents as pre-1.0 with possible minor-version API changes. That is not a claim of feature parity between languages. Recent documented Python feature floors include interrupt response schemas (`langgraph>=1.2.12`), conditional HITL (`langchain>=1.3.3`) and per-call HITL (`langchain>=1.4.6`). Verify each against the target package; do not transpose these floors to TS. [Versioning](https://docs.langchain.com/oss/python/versioning.md), [Interrupts](https://docs.langchain.com/oss/python/langgraph/interrupts.md), [HITL](https://docs.langchain.com/oss/python/langchain/human-in-the-loop.md)
|
|
34
|
+
|
|
35
|
+
## 3. Route tools, skills and subagents separately
|
|
36
|
+
|
|
37
|
+
| Need | Choose | Why / boundary |
|
|
38
|
+
|---|---|---|
|
|
39
|
+
| Execute a capability with structured arguments/results | Tool | Tools are callable functions with defined inputs/outputs. Tool execution is not the same as loading instructions. [Tools](https://docs.langchain.com/oss/python/langchain/tools.md) |
|
|
40
|
+
| Teach a procedure or supply domain context while retaining one controller | Skill | Deep Agents loads name/description, then the body and supporting resources on demand. [Skills](https://docs.langchain.com/oss/python/deepagents/skills.md) |
|
|
41
|
+
| Isolate a large investigation or specialist execution | Subagent | Supervisor receives the result rather than every intermediate tool response. Defaults and inheritance must be checked, not assumed. [Subagents](https://docs.langchain.com/oss/python/deepagents/subagents.md) |
|
|
42
|
+
| Classify once, dispatch independent domains, synthesize | Router | A routing step sends inputs to one or more specialists. [Multi-agent](https://docs.langchain.com/oss/python/langchain/multi-agent/index.md) |
|
|
43
|
+
| Change active conversational responsibility as state changes | Handoff | State drives control/configuration changes; this differs from a helper returning to its caller. [Multi-agent](https://docs.langchain.com/oss/python/langchain/multi-agent/index.md) |
|
|
44
|
+
| Enforce sequencing or combine deterministic checks with agents | Workflow | Workflows have predetermined paths; agents select their own process. [Workflows and agents](https://docs.langchain.com/oss/python/langgraph/workflows-agents.md) |
|
|
45
|
+
|
|
46
|
+
**Recommendation:** start with one controller, the minimum applicable skill, and currently available authorized tools. Use the existing delegation gates for genuine independent slices. A skill is neither a new agent nor a permission grant. Routing must consider the requested outcome and current phase, not merely keyword matches.
|
|
47
|
+
|
|
48
|
+
### Middleware and dynamic tools
|
|
49
|
+
|
|
50
|
+
Two different cases exist in Python: **filter pre-registered tools** before the model call, or **register newly discovered tools** at runtime. The latter needs both `wrap_model_call` (expose schema) and `wrap_tool_call` (resolve execution). Exposing a name without an executable implementation is incomplete. [Dynamic tool selection](https://docs.langchain.com/oss/python/langchain/tools.md)
|
|
51
|
+
|
|
52
|
+
**Recommendation:** apply the same separation without SDK code: discover the host's real inventory → read the selected schema/skill → choose the smallest relevant authorized surface → execute through the host → record evidence. Availability filtering improves context; enforcement still belongs at the execution boundary. Neither a tool description nor an LLM selector proves permission.
|
|
53
|
+
|
|
54
|
+
## 4. State, context and persistence scopes
|
|
55
|
+
|
|
56
|
+
| Data | Vendor scope | Recommendation for existing loops |
|
|
57
|
+
|---|---|---|
|
|
58
|
+
| Runtime context | Per-invocation immutable configuration (e.g. verified caller identity); distinct from persisted thread state. [Tools: context](https://docs.langchain.com/oss/python/langchain/tools.md) | Carry fixed root, ownership, permissions and acceptance contract separately from a mutable plan. |
|
|
59
|
+
| Thread | Accumulated graph state across runs keyed by `thread_id`; new input can merge into that state. [Checkpointers](https://docs.langchain.com/oss/python/langgraph/checkpointers.md) | Give each goal/work unit an unambiguous local identity; unrelated goals must not inherit each other's working evidence. |
|
|
60
|
+
| Checkpoint | State snapshot at a super-step boundary; pending writes preserve successful sibling work on failure recovery. [Checkpointers](https://docs.langchain.com/oss/python/langgraph/checkpointers.md) | Existing prompt/check logs are an audit trail, **not** a LangGraph checkpointer or exactly-once executor. |
|
|
61
|
+
| Store | Cross-thread key-value data in application-defined namespaces; in-memory implementations are not restart-durable. [Persistence](https://docs.langchain.com/oss/python/langgraph/persistence.md), [Stores](https://docs.langchain.com/oss/python/langgraph/stores.md) | Promote only reviewed reusable lessons into maintained project references. Keep per-run diagnostics in the goal trail. |
|
|
62
|
+
| Skill / memory files | Skills load progressively; configured memory files can load at startup. Backend/namespace controls persistence and audience. [Skills](https://docs.langchain.com/oss/python/deepagents/skills.md), [Memory](https://docs.langchain.com/oss/python/deepagents/memory.md) | Keep critical invariants in fixed instructions; put task-specific procedures behind precise pointers. Treat learned material as evidence, not new authority. |
|
|
63
|
+
|
|
64
|
+
Deep Agents distinguishes context compression (offload/summarize) from isolation (delegate heavy context) and long-term memory. A virtual filesystem may be backed by state, disk or a store; the word “filesystem” alone promises neither durable storage nor process isolation. [Context engineering](https://docs.langchain.com/oss/python/deepagents/context-engineering.md), [Deep Agents overview](https://docs.langchain.com/oss/python/deepagents/overview.md)
|
|
65
|
+
|
|
66
|
+
## 5. Interrupt, resume and replay safely
|
|
67
|
+
|
|
68
|
+
Python invocation modes are deliberately distinct. Reusing a thread ID alone does not select a resume operation. [Checkpointers](https://docs.langchain.com/oss/python/langgraph/checkpointers.md)
|
|
69
|
+
|
|
70
|
+
| Intent | Python graph input | Critical effect |
|
|
71
|
+
|---|---|---|
|
|
72
|
+
| New conversational input | `graph.invoke(input, config)` | Applies reducers to saved state, starts at entry point. |
|
|
73
|
+
| Recover unfinished work after error | `graph.invoke(None, config)` without old `checkpoint_id` | Retries unfinished work from latest checkpoint. |
|
|
74
|
+
| Answer human interrupt | `graph.invoke(Command(resume=answer), config)` | Same thread; interrupted node starts again from its beginning. |
|
|
75
|
+
| Replay history | `graph.invoke(None, snapshot.config)` | Executes nodes after the selected checkpoint again, including external calls. |
|
|
76
|
+
|
|
77
|
+
`interrupt()` needs a checkpointer, thread ID and serializable payload. Code before it may execute again. Time travel is not cached playback or rollback: replay can repeat model/API calls and interrupts; a fork preserves original history. Functional API resume restarts the entrypoint and restores completed task results, but a task that did not finish can run again. Use idempotency keys or reconcile existing effects. [Interrupts](https://docs.langchain.com/oss/python/langgraph/interrupts.md), [Time travel](https://docs.langchain.com/oss/python/langgraph/use-time-travel.md), [Functional API](https://docs.langchain.com/oss/python/langgraph/functional-api.md)
|
|
78
|
+
|
|
79
|
+
Human approval middleware offers `approve`, `edit`, `reject`, and `respond`. `respond` supplies a successful synthetic tool response for an ask-user tool; it is **not** denial of a side effect. Default batched decisions follow action order; newer per-call mode keys decisions by interrupt ID. Conditional approval predicates run again on resume and must be stable for the same call. [Human-in-the-loop](https://docs.langchain.com/oss/python/langchain/human-in-the-loop.md)
|
|
80
|
+
|
|
81
|
+
**Recommendation:** capture the precise pending action and immutable arguments before an approval boundary; execute only after that action is authorized. On a timeout, inspect evidence before retrying a non-idempotent effect. Never turn “unknown outcome” into “failed, safe to repeat.” Existing deepmodebot approval policy remains authoritative; this research creates no new automatic approval path.
|
|
82
|
+
|
|
83
|
+
## 6. MCP adapters are not the protocol
|
|
84
|
+
|
|
85
|
+
Python's current beta adapter replaces the older standalone `MultiServerMCPClient`; migration is not just a rename (`get_tools` → `list_tools`, config/lifecycle changes, old prompt/resource helpers not exposed). TS 2.x still uses the separate `@langchain/mcp-adapters` package. [Python migration](https://docs.langchain.com/oss/python/migrate/langchain-mcp-adapters.md), [TS MCP](https://docs.langchain.com/oss/javascript/langchain/mcp/index.md)
|
|
86
|
+
|
|
87
|
+
Python-discovered tools retain the client and can reopen connections after discovery's context exits; keeping the adapter context open holds a connection across calls. TS's documented pattern keeps the adapter open while the agent runs and closes it in `finally`. Do not copy lifecycle assumptions across languages. Python multi-server config prefixes tools; one aggregate config shares a protocol era, while `ClientGroup` supports independently negotiated connections. [Python connections](https://docs.langchain.com/oss/python/langchain/mcp/connections.md), [TS MCP](https://docs.langchain.com/oss/javascript/langchain/mcp/index.md)
|
|
88
|
+
|
|
89
|
+
**Recommendation:** use the host's already mounted tools when sufficient. Adding an SDK adapter, new server process, remote endpoint, credentials or telemetry is a separate change. Consult [protocols](protocols.md) for trust/auth/transport requirements; a LangChain adapter is an integration layer, not a waiver of them.
|
|
90
|
+
|
|
91
|
+
## 7. Apply to bounded loops without adopting the stack
|
|
92
|
+
|
|
93
|
+
**Recommendation — conceptual mapping, not new runner behavior:**
|
|
94
|
+
|
|
95
|
+
```text
|
|
96
|
+
fixed contract + current evidence
|
|
97
|
+
→ select phase and relevant skill/tools
|
|
98
|
+
→ one bounded authorized work step
|
|
99
|
+
→ runner-owned acceptance check
|
|
100
|
+
→ pass: finish | fail with new evidence: revise plan | cap/stall: stop
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
Use the existing [self-authoring playbook](../../deepmodebot/references/playbooks/self-authoring.md) unchanged as the authority for goal fields, protected checks, caps, trail and promotion. Borrow graph-style explicit transitions, middleware-style pre-action checks, skill-style progressive disclosure, and trace-style evidence. A working-plan revision can change the method; it cannot alter frontmatter, protected checks, root, permissions or budgets. This mapping installs nothing, enables no API billing, schedules no background service, and gives the local trail no undocumented recovery guarantee.
|
|
104
|
+
|
|
105
|
+
Suggested routing examples (recommendations):
|
|
106
|
+
|
|
107
|
+
- “Choose `create_agent` or `StateGraph` for a refund approval workflow” → this reference §§1–5; inspect language/version and side-effect boundaries before suggesting code.
|
|
108
|
+
- “Resume a failed graph without sending the email twice” → §§4–5; distinguish failure recovery from historical replay and reconcile the external action.
|
|
109
|
+
- “Load skills only when relevant and expose fewer tools” → §3 plus [self-authoring](self-authoring.md); keep policy outside mutable skill content.
|
|
110
|
+
- “Keep repairing this project until checks pass” → existing bounded self-authoring playbook; use §7 as design rationale, not as permission to add LangGraph.
|
|
111
|
+
- “Port `MultiServerMCPClient` to TypeScript” → §§2,6 plus [protocols](protocols.md); Python's new beta API is not the TS package contract.
|
|
112
|
+
- “Add LangSmith tracing/deploy this agent” → §8; separate research from external setup, data upload and paid infrastructure.
|
|
113
|
+
|
|
114
|
+
## 8. Evaluation, observability and deployment
|
|
115
|
+
|
|
116
|
+
AgentEvals distinguishes deterministic trajectory matching (`strict`, `unordered`, `subset`, `superset`) from LLM judging. The deterministic comparison can be cost-free; producing a trajectory with a real model need not be. LangSmith distinguishes offline datasets/experiments from online evaluation of live traces, and supports code, human and model evaluators. [Agent Evals](https://docs.langchain.com/oss/python/langchain/test/evals.md), [LangSmith Evaluation](https://docs.langchain.com/langsmith/evaluation.md)
|
|
117
|
+
|
|
118
|
+
**Recommendation:** score route choice, required reads, allowed tool use, approval ordering, cap/stall behavior and actual outcome separately. Test the minimal expected constraints rather than freezing harmless read order. Convert real failures into local regression cases. Do not substitute a judge's “done” for the runner's protected acceptance check.
|
|
119
|
+
|
|
120
|
+
LangSmith tracing captures prompts, inputs/outputs and tool/model interactions; the documented activation needs an account/API key and explicit tracing configuration. [Observability](https://docs.langchain.com/oss/python/langchain/observability.md)
|
|
121
|
+
|
|
122
|
+
Agent Server offers Cloud, hybrid, self-hosted control plane and standalone hosting. Its overview says Cloud requires Plus or Enterprise; standalone requires PostgreSQL, Redis and a LangSmith license. Running the OSS graph/Deep Agents SDK yourself is not synonymous with running licensed Agent Server. [Agent Server](https://docs.langchain.com/langsmith/deployment.md), [Deep Agents SDK](https://docs.langchain.com/oss/python/deepagents/overview.md)
|
|
123
|
+
|
|
124
|
+
**Recommendation:** retain local traces by default, redact sensitive data, and obtain explicit scope for external tracing or deployment. No prices, package latest versions, production guarantees or SDK compatibility were verified by this research.
|