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,229 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { existsSync, readFileSync, realpathSync } from "node:fs";
|
|
3
|
+
import { dirname, join, resolve } from "node:path";
|
|
4
|
+
import { createInterface } from "node:readline/promises";
|
|
5
|
+
import { fileURLToPath } from "node:url";
|
|
6
|
+
import { disableAutoUpdate, enableAutoUpdate } from "../lib/autoupdate.mjs";
|
|
7
|
+
import { CLIENTS, clientById } from "../lib/clients.mjs";
|
|
8
|
+
import { run, which } from "../lib/run.mjs";
|
|
9
|
+
import { clearState, log, readState, withLock, writeState } from "../lib/state.mjs";
|
|
10
|
+
|
|
11
|
+
const PKG = "deepmodebot";
|
|
12
|
+
const here = dirname(realpathSync(fileURLToPath(import.meta.url)));
|
|
13
|
+
const pkgRoot = resolve(here, "..");
|
|
14
|
+
const version = JSON.parse(readFileSync(join(pkgRoot, "package.json"), "utf8")).version;
|
|
15
|
+
|
|
16
|
+
const args = process.argv.slice(2);
|
|
17
|
+
const cmd = args.find((a) => !a.startsWith("-")) ?? "help";
|
|
18
|
+
const flag = (name) => args.includes(`--${name}`);
|
|
19
|
+
const option = (name) => {
|
|
20
|
+
const i = args.indexOf(`--${name}`);
|
|
21
|
+
return i >= 0 ? args[i + 1] : args.find((a) => a.startsWith(`--${name}=`))?.slice(name.length + 3);
|
|
22
|
+
};
|
|
23
|
+
const quiet = flag("quiet");
|
|
24
|
+
const say = (msg) => {
|
|
25
|
+
if (!quiet) console.log(msg);
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
const HELP = `deepmodebot ${version}: install and auto-update the deepmodebot plugin in Claude Code, omp, Codex, and Google Antigravity.
|
|
29
|
+
|
|
30
|
+
Usage: deepmodebot <command>
|
|
31
|
+
|
|
32
|
+
setup Install the plugin into every detected tool and turn on hourly auto-update
|
|
33
|
+
--clients claude,omp,codex,agy only these tools
|
|
34
|
+
--dry-run show the plan, change nothing
|
|
35
|
+
--no-auto-update skip the hourly task
|
|
36
|
+
--yes do not ask before changing anything
|
|
37
|
+
update Upgrade this npm package, then re-sync the tools setup configured (--quiet for the hourly task)
|
|
38
|
+
doctor Show each tool's installed version next to this package's version
|
|
39
|
+
uninstall Remove the plugin from the configured tools and stop auto-update
|
|
40
|
+
version Print the package version
|
|
41
|
+
|
|
42
|
+
Run once with: npx deepmodebot@latest setup`;
|
|
43
|
+
|
|
44
|
+
// Use the npm that ships beside the node running us. A scheduled task can see a different
|
|
45
|
+
// `npm` on PATH (another Node install), which warns on stderr or targets another global root.
|
|
46
|
+
const bundledNpm = join(dirname(process.execPath), "node_modules", "npm", "bin", "npm-cli.js");
|
|
47
|
+
const npm = (npmArgs) => (existsSync(bundledNpm) ? run(process.execPath, [bundledNpm, ...npmArgs]) : run("npm", npmArgs));
|
|
48
|
+
|
|
49
|
+
/** The global npm root; the plugin must live there so tool configs never point into a temporary npx cache. */
|
|
50
|
+
function globalRoot() {
|
|
51
|
+
const r = npm(["root", "-g"]);
|
|
52
|
+
const root = r.code === 0 ? r.stdout.split(/\r?\n/).pop()?.trim() : undefined;
|
|
53
|
+
return root && existsSync(root) ? root : undefined;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const isGlobalInstall = () => {
|
|
57
|
+
const root = globalRoot();
|
|
58
|
+
return root !== undefined && resolve(root, PKG).toLowerCase() === pkgRoot.toLowerCase();
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
const ctx = { run, pkgRoot, version };
|
|
62
|
+
|
|
63
|
+
function detectClients(only) {
|
|
64
|
+
const wanted = only ? only.split(",").map((s) => s.trim()) : CLIENTS.map((c) => c.id);
|
|
65
|
+
const unknown = wanted.filter((id) => !clientById(id));
|
|
66
|
+
if (unknown.length) throw new Error(`unknown client(s): ${unknown.join(", ")} (use claude, omp, codex, agy)`);
|
|
67
|
+
return wanted.map(clientById).filter((c) => which(c.bin));
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
function syncClients(ids) {
|
|
71
|
+
const results = [];
|
|
72
|
+
for (const id of ids) {
|
|
73
|
+
const client = clientById(id);
|
|
74
|
+
if (!client || !which(client.bin)) {
|
|
75
|
+
results.push({ id, ok: false, detail: "not on PATH, skipped" });
|
|
76
|
+
continue;
|
|
77
|
+
}
|
|
78
|
+
let res;
|
|
79
|
+
try {
|
|
80
|
+
res = client.ensure(ctx);
|
|
81
|
+
} catch (e) {
|
|
82
|
+
res = { ok: false, detail: String(e.message ?? e) };
|
|
83
|
+
}
|
|
84
|
+
results.push({ id, ...res });
|
|
85
|
+
}
|
|
86
|
+
return results;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
function report(results) {
|
|
90
|
+
for (const r of results) say(` ${r.ok ? "ok " : "FAIL"} ${clientById(r.id)?.label ?? r.id}: ${r.detail}`);
|
|
91
|
+
return results.every((r) => r.ok);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
async function confirm(question) {
|
|
95
|
+
if (flag("yes") || !process.stdin.isTTY) return true;
|
|
96
|
+
const rl = createInterface({ input: process.stdin, output: process.stdout });
|
|
97
|
+
const answer = (await rl.question(`${question} [Y/n] `)).trim().toLowerCase();
|
|
98
|
+
rl.close();
|
|
99
|
+
return answer === "" || answer === "y" || answer === "yes";
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
async function setup() {
|
|
103
|
+
if (!isGlobalInstall() && !flag("dry-run")) {
|
|
104
|
+
// Running from npx: install globally first so every tool points at a folder that stays put.
|
|
105
|
+
say(`Installing ${PKG}@${version} globally so the tools have a stable copy...`);
|
|
106
|
+
const r = npm(["install", "-g", `${PKG}@${version}`]);
|
|
107
|
+
if (r.code !== 0) throw new Error(`npm install -g failed: ${r.out.slice(-400)}`);
|
|
108
|
+
const root = globalRoot();
|
|
109
|
+
const r2 = run(process.execPath, [join(root, PKG, "bin", "deepmodebot.mjs"), ...args]);
|
|
110
|
+
console.log(r2.out);
|
|
111
|
+
return r2.code;
|
|
112
|
+
}
|
|
113
|
+
const clients = detectClients(option("clients"));
|
|
114
|
+
if (!clients.length) {
|
|
115
|
+
console.log("No supported tool found on PATH (claude, omp, codex, agy).");
|
|
116
|
+
return 1;
|
|
117
|
+
}
|
|
118
|
+
say(`deepmodebot ${version} from ${pkgRoot}`);
|
|
119
|
+
say("Plan:");
|
|
120
|
+
for (const c of clients) say(` - ${c.label}: install or update the deepmodebot plugin from this package`);
|
|
121
|
+
const auto = !flag("no-auto-update");
|
|
122
|
+
if (auto) say(" - turn on hourly auto-update (deepmodebot update --quiet)");
|
|
123
|
+
if (flag("dry-run")) return 0;
|
|
124
|
+
if (!(await confirm("Apply?"))) return 1;
|
|
125
|
+
|
|
126
|
+
const results = syncClients(clients.map((c) => c.id));
|
|
127
|
+
const ok = report(results);
|
|
128
|
+
const state = { clients: clients.map((c) => c.id), autoUpdate: auto, version, lastResult: results };
|
|
129
|
+
if (auto) {
|
|
130
|
+
const r = enableAutoUpdate({ run, node: process.execPath, bin: join(pkgRoot, "bin", "deepmodebot.mjs") });
|
|
131
|
+
say(` ${r.ok ? "ok " : "FAIL"} auto-update: ${r.detail}`);
|
|
132
|
+
state.autoUpdate = r.ok;
|
|
133
|
+
}
|
|
134
|
+
writeState(state);
|
|
135
|
+
say(ok ? "Done. Restart open tools to load the new version." : "Some tools failed; the hourly update retries them.");
|
|
136
|
+
return ok ? 0 : 1;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
function update() {
|
|
140
|
+
const state = readState();
|
|
141
|
+
if (!state.clients?.length) {
|
|
142
|
+
console.log("Nothing configured yet. Run: npx deepmodebot@latest setup");
|
|
143
|
+
return 1;
|
|
144
|
+
}
|
|
145
|
+
const outcome = withLock(() => {
|
|
146
|
+
if (!flag("no-self-update")) {
|
|
147
|
+
const r = npm(["install", "-g", `${PKG}@latest`]);
|
|
148
|
+
if (r.code !== 0) {
|
|
149
|
+
log(`npm install -g ${PKG}@latest failed: ${r.out.slice(-300)}`);
|
|
150
|
+
say(`npm upgrade failed; re-syncing ${version} anyway`);
|
|
151
|
+
}
|
|
152
|
+
// Hand off to the freshly installed copy so new client logic runs this sync.
|
|
153
|
+
const root = globalRoot();
|
|
154
|
+
const candidate = root && join(root, PKG, "bin", "deepmodebot.mjs");
|
|
155
|
+
const fresh = candidate && existsSync(candidate) ? candidate : undefined;
|
|
156
|
+
const isOtherCopy = fresh && resolve(fresh).toLowerCase() !== resolve(here, "deepmodebot.mjs").toLowerCase();
|
|
157
|
+
const wasUpgraded = fresh && readInstalledVersion(root) !== version;
|
|
158
|
+
if (isOtherCopy || wasUpgraded) {
|
|
159
|
+
const r2 = run(process.execPath, [fresh, "update", "--no-self-update", ...(quiet ? ["--quiet"] : [])]);
|
|
160
|
+
if (!quiet) console.log(r2.out);
|
|
161
|
+
return { code: r2.code };
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
const results = syncClients(state.clients);
|
|
165
|
+
const ok = report(results);
|
|
166
|
+
writeState({ ...state, version, lastResult: results, lastUpdate: new Date().toISOString() });
|
|
167
|
+
log(`${version}: ${results.map((r) => `${r.id}=${r.ok ? "ok" : "FAIL"} (${r.detail})`).join("; ")}`);
|
|
168
|
+
return { code: ok ? 0 : 1 };
|
|
169
|
+
});
|
|
170
|
+
if (outcome.skipped) {
|
|
171
|
+
say("Another update is running; skipped.");
|
|
172
|
+
return 0;
|
|
173
|
+
}
|
|
174
|
+
return outcome.code;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
function readInstalledVersion(root) {
|
|
178
|
+
try {
|
|
179
|
+
return JSON.parse(readFileSync(join(root, PKG, "package.json"), "utf8")).version;
|
|
180
|
+
} catch {
|
|
181
|
+
return undefined;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
function doctor() {
|
|
186
|
+
const state = readState();
|
|
187
|
+
console.log(`deepmodebot package ${version} at ${pkgRoot}${isGlobalInstall() ? "" : " (not the global install)"}`);
|
|
188
|
+
console.log(`auto-update: ${state.autoUpdate ? "on" : "off"}${state.lastUpdate ? `, last run ${state.lastUpdate}` : ""}`);
|
|
189
|
+
let ok = true;
|
|
190
|
+
for (const c of CLIENTS) {
|
|
191
|
+
if (!which(c.bin)) {
|
|
192
|
+
console.log(` - ${c.label}: not on PATH`);
|
|
193
|
+
continue;
|
|
194
|
+
}
|
|
195
|
+
const v = c.installedVersion(run);
|
|
196
|
+
const managed = state.clients?.includes(c.id);
|
|
197
|
+
const good = v === version;
|
|
198
|
+
if (managed && !good) ok = false;
|
|
199
|
+
console.log(` ${good ? "ok " : managed ? "FAIL" : "- "} ${c.label}: ${v ?? "not installed"}${managed ? "" : " (not managed by setup)"}`);
|
|
200
|
+
}
|
|
201
|
+
return ok ? 0 : 1;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
function uninstall() {
|
|
205
|
+
const state = readState();
|
|
206
|
+
for (const id of state.clients ?? []) {
|
|
207
|
+
const c = clientById(id);
|
|
208
|
+
if (c && which(c.bin)) say(` ${c.label}: ${c.uninstall(ctx).detail}`);
|
|
209
|
+
}
|
|
210
|
+
disableAutoUpdate({ run });
|
|
211
|
+
clearState();
|
|
212
|
+
say(`Removed. To remove the package itself: npm uninstall -g ${PKG}`);
|
|
213
|
+
return 0;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
const commands = { setup, update, doctor, uninstall, version: () => (console.log(version), 0), help: () => (console.log(HELP), 0) };
|
|
217
|
+
const handler = flag("version") ? commands.version : flag("help") || flag("h") ? commands.help : commands[cmd];
|
|
218
|
+
if (!handler) {
|
|
219
|
+
console.error(`Unknown command: ${cmd}\n\n${HELP}`);
|
|
220
|
+
process.exit(2);
|
|
221
|
+
}
|
|
222
|
+
try {
|
|
223
|
+
process.exitCode = await handler();
|
|
224
|
+
} catch (e) {
|
|
225
|
+
console.error(`deepmodebot: ${e.message ?? e}`);
|
|
226
|
+
log(`error in ${cmd}: ${e.message ?? e}`);
|
|
227
|
+
process.exitCode = 1;
|
|
228
|
+
}
|
|
229
|
+
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { writeFileSync, mkdirSync, rmSync } from "node:fs";
|
|
2
|
+
import { join } from "node:path";
|
|
3
|
+
import { stateDir } from "./state.mjs";
|
|
4
|
+
|
|
5
|
+
export const TASK_NAME = "DeepmodebotAutoUpdate";
|
|
6
|
+
const CRON_TAG = "# deepmodebot-auto-update";
|
|
7
|
+
|
|
8
|
+
/** Replace (or drop, when line is undefined) the tagged deepmodebot line in a crontab. */
|
|
9
|
+
export function cronWithLine(crontab, line) {
|
|
10
|
+
const kept = crontab.split("\n").filter((l) => l.trim() && !l.includes(CRON_TAG));
|
|
11
|
+
if (line) kept.push(`${line} ${CRON_TAG}`);
|
|
12
|
+
return kept.length ? `${kept.join("\n")}\n` : "";
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/** Register an hourly `deepmodebot update --quiet` that never opens a window. */
|
|
16
|
+
export function enableAutoUpdate({ run, node, bin }) {
|
|
17
|
+
if (process.platform === "win32") {
|
|
18
|
+
// wscript runs node hidden; a bare node task would flash a console every hour.
|
|
19
|
+
mkdirSync(stateDir(), { recursive: true });
|
|
20
|
+
const vbs = join(stateDir(), "auto-update.vbs");
|
|
21
|
+
writeFileSync(vbs, `CreateObject("WScript.Shell").Run """${node}"" ""${bin}"" update --quiet", 0, False\r\n`);
|
|
22
|
+
const r = run("schtasks", ["/Create", "/F", "/SC", "HOURLY", "/TN", TASK_NAME, "/TR", `wscript.exe //B //Nologo "${vbs}"`]);
|
|
23
|
+
return { ok: r.code === 0, detail: r.code === 0 ? `scheduled task ${TASK_NAME} (hourly)` : r.out.slice(0, 300) };
|
|
24
|
+
}
|
|
25
|
+
const current = run("crontab", ["-l"]);
|
|
26
|
+
const next = cronWithLine(current.code === 0 ? current.out : "", `17 * * * * "${node}" "${bin}" update --quiet`);
|
|
27
|
+
const tmp = join(stateDir(), "crontab.tmp");
|
|
28
|
+
mkdirSync(stateDir(), { recursive: true });
|
|
29
|
+
writeFileSync(tmp, next);
|
|
30
|
+
const r = run("crontab", [tmp]);
|
|
31
|
+
rmSync(tmp, { force: true });
|
|
32
|
+
return { ok: r.code === 0, detail: r.code === 0 ? "cron entry (hourly at :17)" : r.out.slice(0, 300) };
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export function disableAutoUpdate({ run }) {
|
|
36
|
+
if (process.platform === "win32") {
|
|
37
|
+
run("schtasks", ["/Delete", "/F", "/TN", TASK_NAME]);
|
|
38
|
+
rmSync(join(stateDir(), "auto-update.vbs"), { force: true });
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
const current = run("crontab", ["-l"]);
|
|
42
|
+
if (current.code !== 0) return;
|
|
43
|
+
const tmp = join(stateDir(), "crontab.tmp");
|
|
44
|
+
writeFileSync(tmp, cronWithLine(current.out, undefined));
|
|
45
|
+
run("crontab", [tmp]);
|
|
46
|
+
rmSync(tmp, { force: true });
|
|
47
|
+
}
|
package/lib/clients.mjs
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { existsSync } from "node:fs";
|
|
2
|
+
import { homedir } from "node:os";
|
|
3
|
+
import { join, resolve } from "node:path";
|
|
4
|
+
import { parseJson } from "./run.mjs";
|
|
5
|
+
import { mirror, treeDiffs } from "./tree.mjs";
|
|
6
|
+
|
|
7
|
+
export const MARKETPLACE = "deepmodebot";
|
|
8
|
+
export const PLUGIN = "deepmodebot";
|
|
9
|
+
export const PLUGIN_ID = `${PLUGIN}@${MARKETPLACE}`;
|
|
10
|
+
|
|
11
|
+
const norm = (p) => resolve(String(p)).replace(/\\/g, "/").replace(/\/+$/, "").toLowerCase();
|
|
12
|
+
const mentions = (value, path) => value !== undefined && JSON.stringify(value).replace(/\\\\/g, "/").toLowerCase().includes(norm(path));
|
|
13
|
+
const fail = (step, r) => ({ ok: false, detail: `${step} failed (${r.code}): ${r.out.split("\n").slice(-3).join(" ").slice(0, 300)}` });
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Point a marketplace-based CLI at the npm package folder, then install or update the plugin.
|
|
17
|
+
* `api` describes one CLI: how to read its marketplace source and installed version, and its subcommands.
|
|
18
|
+
*/
|
|
19
|
+
function ensureViaMarketplace(api, ctx) {
|
|
20
|
+
const { run, pkgRoot } = ctx;
|
|
21
|
+
const source = api.marketplaceSource(run);
|
|
22
|
+
const pointsHere = mentions(source, pkgRoot);
|
|
23
|
+
if (source !== undefined && !pointsHere) {
|
|
24
|
+
const r = run(api.bin, api.removeMarketplace);
|
|
25
|
+
if (r.code !== 0) return fail("remove old marketplace", r);
|
|
26
|
+
}
|
|
27
|
+
if (!pointsHere) {
|
|
28
|
+
const r = run(api.bin, [...api.addMarketplace, pkgRoot]);
|
|
29
|
+
if (r.code !== 0) return fail("add marketplace", r);
|
|
30
|
+
} else if (api.refreshMarketplace) {
|
|
31
|
+
const r = run(api.bin, api.refreshMarketplace);
|
|
32
|
+
if (r.code !== 0) return fail("refresh marketplace", r);
|
|
33
|
+
}
|
|
34
|
+
const before = api.installedVersion(run);
|
|
35
|
+
if (before === undefined || before !== ctx.version) {
|
|
36
|
+
const args = before === undefined ? api.install : api.update;
|
|
37
|
+
const r = run(api.bin, args);
|
|
38
|
+
if (r.code !== 0) return fail(before === undefined ? "install" : "update", r);
|
|
39
|
+
}
|
|
40
|
+
const after = api.installedVersion(run);
|
|
41
|
+
if (after !== ctx.version) return { ok: false, detail: `installed version is ${after ?? "none"}, expected ${ctx.version}` };
|
|
42
|
+
return { ok: true, detail: before === ctx.version ? `already ${after}` : `${before ?? "none"} -> ${after}` };
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
function uninstallViaMarketplace(api, { run }) {
|
|
46
|
+
const r1 = run(api.bin, api.uninstallArgs);
|
|
47
|
+
const r2 = run(api.bin, api.removeMarketplace);
|
|
48
|
+
return { ok: r1.code === 0 || r2.code === 0, detail: "removed plugin and marketplace" };
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
const claude = {
|
|
52
|
+
id: "claude",
|
|
53
|
+
label: "Claude Code",
|
|
54
|
+
bin: "claude",
|
|
55
|
+
marketplaceSource: (run) => parseJson(run("claude", ["plugin", "marketplace", "list", "--json"]).out)?.find?.((m) => m.name === MARKETPLACE),
|
|
56
|
+
installedVersion: (run) => parseJson(run("claude", ["plugin", "list", "--json"]).out)?.find?.((p) => p.id === PLUGIN_ID)?.version,
|
|
57
|
+
addMarketplace: ["plugin", "marketplace", "add"],
|
|
58
|
+
removeMarketplace: ["plugin", "marketplace", "remove", MARKETPLACE],
|
|
59
|
+
refreshMarketplace: ["plugin", "marketplace", "update", MARKETPLACE],
|
|
60
|
+
install: ["plugin", "install", PLUGIN_ID],
|
|
61
|
+
update: ["plugin", "update", PLUGIN_ID],
|
|
62
|
+
uninstallArgs: ["plugin", "uninstall", PLUGIN_ID],
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
const omp = {
|
|
66
|
+
id: "omp",
|
|
67
|
+
label: "omp",
|
|
68
|
+
bin: "omp",
|
|
69
|
+
// `omp plugin marketplace list` has no JSON output: " <name> <source>" per line.
|
|
70
|
+
marketplaceSource: (run) => run("omp", ["plugin", "marketplace", "list"]).out.match(/^\s*deepmodebot\s+(.+?)\s*$/m)?.[1],
|
|
71
|
+
installedVersion: (run) =>
|
|
72
|
+
parseJson(run("omp", ["plugin", "list", "--json"]).out)?.marketplace?.find?.((p) => p.id === PLUGIN_ID)?.entries?.[0]?.version,
|
|
73
|
+
addMarketplace: ["plugin", "marketplace", "add"],
|
|
74
|
+
removeMarketplace: ["plugin", "marketplace", "remove", MARKETPLACE],
|
|
75
|
+
refreshMarketplace: ["plugin", "marketplace", "update", MARKETPLACE],
|
|
76
|
+
install: ["plugin", "install", PLUGIN_ID],
|
|
77
|
+
update: ["plugin", "upgrade", PLUGIN],
|
|
78
|
+
uninstallArgs: ["plugin", "uninstall", PLUGIN_ID],
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
const codex = {
|
|
82
|
+
id: "codex",
|
|
83
|
+
label: "Codex",
|
|
84
|
+
bin: "codex",
|
|
85
|
+
marketplaceSource: (run) => parseJson(run("codex", ["plugin", "marketplace", "list", "--json"]).out)?.marketplaces?.find?.((m) => m.name === MARKETPLACE),
|
|
86
|
+
installedVersion: (run) => parseJson(run("codex", ["plugin", "list", "--json"]).out)?.installed?.find?.((p) => p.pluginId === PLUGIN_ID)?.version,
|
|
87
|
+
addMarketplace: ["plugin", "marketplace", "add"],
|
|
88
|
+
removeMarketplace: ["plugin", "marketplace", "remove", MARKETPLACE],
|
|
89
|
+
// A local marketplace is read in place, so re-adding the plugin picks up the new files.
|
|
90
|
+
refreshMarketplace: undefined,
|
|
91
|
+
install: ["plugin", "add", PLUGIN_ID],
|
|
92
|
+
update: ["plugin", "add", PLUGIN_ID],
|
|
93
|
+
uninstallArgs: ["plugin", "remove", PLUGIN_ID],
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
const agyInfo = (run) => parseJson(run("agy", ["plugin", "list", "--json"]).out)?.find?.((p) => p.name === PLUGIN);
|
|
97
|
+
const agyDefaultPath = () => join(homedir(), ".gemini", "config", "plugins", PLUGIN);
|
|
98
|
+
const LOCKED = /being used by another process|access is denied|EBUSY|EPERM/i;
|
|
99
|
+
|
|
100
|
+
const agy = {
|
|
101
|
+
id: "agy",
|
|
102
|
+
label: "Google Antigravity",
|
|
103
|
+
bin: "agy",
|
|
104
|
+
installedVersion: (run) => agyInfo(run)?.version,
|
|
105
|
+
ensure(ctx) {
|
|
106
|
+
const { run, pkgRoot } = ctx;
|
|
107
|
+
const src = join(pkgRoot, "plugins", PLUGIN);
|
|
108
|
+
const dst = agyInfo(run)?.path ?? agyDefaultPath();
|
|
109
|
+
if (treeDiffs(src, dst).length === 0) return { ok: true, detail: `already ${ctx.version} (files verified)` };
|
|
110
|
+
const r = run("agy", ["plugin", "install", src]);
|
|
111
|
+
let method = "agy plugin install";
|
|
112
|
+
if (r.code !== 0) {
|
|
113
|
+
// A running agy holds the plugin folder open, so its installer cannot swap it.
|
|
114
|
+
// Overwriting the files in place still works; the check below decides success.
|
|
115
|
+
if (!LOCKED.test(r.out) || !existsSync(dst)) return fail("agy plugin install", r);
|
|
116
|
+
try {
|
|
117
|
+
mirror(src, dst);
|
|
118
|
+
method = "in-place copy (agy was running)";
|
|
119
|
+
} catch (e) {
|
|
120
|
+
return { ok: false, detail: `agy is running and holds plugin files (${e.code ?? e.message}); close agy and it retries next hour` };
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
const left = treeDiffs(src, dst);
|
|
124
|
+
if (left.length) return { ok: false, detail: `files still differ after ${method} (${left.join(", ")}); retries next hour` };
|
|
125
|
+
return { ok: true, detail: `installed ${ctx.version} via ${method} (files verified)` };
|
|
126
|
+
},
|
|
127
|
+
uninstall: ({ run }) => {
|
|
128
|
+
const r = run("agy", ["plugin", "uninstall", PLUGIN]);
|
|
129
|
+
return { ok: r.code === 0, detail: r.code === 0 ? "removed plugin" : r.out.slice(0, 200) };
|
|
130
|
+
},
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
for (const api of [claude, omp, codex]) {
|
|
134
|
+
api.ensure = (ctx) => ensureViaMarketplace(api, ctx);
|
|
135
|
+
api.uninstall = (ctx) => uninstallViaMarketplace(api, ctx);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export const CLIENTS = [claude, omp, codex, agy];
|
|
139
|
+
export const clientById = (id) => CLIENTS.find((c) => c.id === id);
|
package/lib/run.mjs
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { spawnSync } from "node:child_process";
|
|
2
|
+
|
|
3
|
+
const isWin = process.platform === "win32";
|
|
4
|
+
// cmd.exe needs quotes around anything with spaces or shell metacharacters.
|
|
5
|
+
const quote = (a) => (/^[\w@%+=:,./\\-]+$/.test(a) ? a : `"${String(a).replace(/"/g, '\\"')}"`);
|
|
6
|
+
|
|
7
|
+
/** First path of `cmd` on PATH, or undefined. */
|
|
8
|
+
export function which(cmd) {
|
|
9
|
+
const r = spawnSync(isWin ? "where" : "which", [cmd], { encoding: "utf8", windowsHide: true });
|
|
10
|
+
if (r.status !== 0) return undefined;
|
|
11
|
+
return r.stdout.split(/\r?\n/).map((s) => s.trim()).find(Boolean);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/** Run a CLI and return { code, out } with stdout+stderr merged. Never throws. */
|
|
15
|
+
export function run(cmd, args = [], { timeout = 300_000 } = {}) {
|
|
16
|
+
const opts = { encoding: "utf8", timeout, windowsHide: true, stdio: ["ignore", "pipe", "pipe"] };
|
|
17
|
+
// npm shims on Windows are .cmd files, which only start through a shell.
|
|
18
|
+
const r = isWin ? spawnSync([cmd, ...args].map(quote).join(" "), { ...opts, shell: true }) : spawnSync(cmd, args, opts);
|
|
19
|
+
const out = `${r.stdout ?? ""}${r.stderr ?? ""}${r.error ? String(r.error.message) : ""}`.trim();
|
|
20
|
+
return { code: r.status ?? 1, out, stdout: (r.stdout ?? "").trim() };
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/** Parse the JSON a CLI printed, tolerating banner lines before it. */
|
|
24
|
+
export function parseJson(out) {
|
|
25
|
+
const start = out.search(/[[{]/);
|
|
26
|
+
if (start < 0) return undefined;
|
|
27
|
+
try {
|
|
28
|
+
return JSON.parse(out.slice(start));
|
|
29
|
+
} catch {
|
|
30
|
+
return undefined;
|
|
31
|
+
}
|
|
32
|
+
}
|
package/lib/state.mjs
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { appendFileSync, existsSync, mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
2
|
+
import { homedir } from "node:os";
|
|
3
|
+
import { join } from "node:path";
|
|
4
|
+
|
|
5
|
+
/** Where deepmodebot keeps its own state; DEEPMODEBOT_HOME overrides (tests). */
|
|
6
|
+
export const stateDir = () => process.env.DEEPMODEBOT_HOME || join(homedir(), ".deepmodebot");
|
|
7
|
+
const statePath = () => join(stateDir(), "state.json");
|
|
8
|
+
const logPath = () => join(stateDir(), "update.log");
|
|
9
|
+
|
|
10
|
+
export function readState() {
|
|
11
|
+
try {
|
|
12
|
+
return JSON.parse(readFileSync(statePath(), "utf8"));
|
|
13
|
+
} catch {
|
|
14
|
+
return { clients: [], autoUpdate: false };
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export function writeState(state) {
|
|
19
|
+
mkdirSync(stateDir(), { recursive: true });
|
|
20
|
+
const tmp = `${statePath()}.tmp`;
|
|
21
|
+
writeFileSync(tmp, `${JSON.stringify(state, null, 2)}\n`);
|
|
22
|
+
renameSync(tmp, statePath());
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export function clearState() {
|
|
26
|
+
rmSync(statePath(), { force: true });
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/** Append a timestamped line to update.log, keeping the last 500 lines. */
|
|
30
|
+
export function log(message) {
|
|
31
|
+
mkdirSync(stateDir(), { recursive: true });
|
|
32
|
+
const line = `[${new Date().toISOString()}] ${message}\n`;
|
|
33
|
+
appendFileSync(logPath(), line);
|
|
34
|
+
const lines = readFileSync(logPath(), "utf8").split("\n");
|
|
35
|
+
if (lines.length > 600) writeFileSync(logPath(), lines.slice(-500).join("\n"));
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/** A lock so two hourly runs never overlap; stale after 30 minutes. */
|
|
39
|
+
export function withLock(fn) {
|
|
40
|
+
mkdirSync(stateDir(), { recursive: true });
|
|
41
|
+
const lock = join(stateDir(), "update.lock");
|
|
42
|
+
if (existsSync(lock)) {
|
|
43
|
+
const age = Date.now() - Number(readFileSync(lock, "utf8") || 0);
|
|
44
|
+
if (age < 30 * 60_000) return { skipped: true };
|
|
45
|
+
}
|
|
46
|
+
writeFileSync(lock, String(Date.now()));
|
|
47
|
+
try {
|
|
48
|
+
return fn();
|
|
49
|
+
} finally {
|
|
50
|
+
rmSync(lock, { force: true });
|
|
51
|
+
}
|
|
52
|
+
}
|
package/lib/tree.mjs
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { cpSync, existsSync, readdirSync, readFileSync, rmSync, statSync } from "node:fs";
|
|
2
|
+
import { join, relative, sep } from "node:path";
|
|
3
|
+
|
|
4
|
+
const IGNORED = new Set(["__pycache__", ".pytest_cache", "node_modules"]);
|
|
5
|
+
|
|
6
|
+
function listFiles(root) {
|
|
7
|
+
const out = new Map();
|
|
8
|
+
const walk = (dir) => {
|
|
9
|
+
for (const name of readdirSync(dir)) {
|
|
10
|
+
if (IGNORED.has(name) || name.endsWith(".pyc")) continue;
|
|
11
|
+
const p = join(dir, name);
|
|
12
|
+
const st = statSync(p);
|
|
13
|
+
if (st.isDirectory()) walk(p);
|
|
14
|
+
else out.set(relative(root, p).split(sep).join("/"), p);
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
if (existsSync(root)) walk(root);
|
|
18
|
+
return out;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/** Relative paths that are missing, extra, or different between src and dst (up to `limit`). */
|
|
22
|
+
export function treeDiffs(src, dst, limit = 5) {
|
|
23
|
+
if (!existsSync(dst)) return ["<not installed>"];
|
|
24
|
+
const a = listFiles(src);
|
|
25
|
+
const b = listFiles(dst);
|
|
26
|
+
const diffs = [];
|
|
27
|
+
for (const rel of [...new Set([...a.keys(), ...b.keys()])].sort()) {
|
|
28
|
+
const pa = a.get(rel);
|
|
29
|
+
const pb = b.get(rel);
|
|
30
|
+
if (!pa || !pb || statSync(pa).size !== statSync(pb).size || !readFileSync(pa).equals(readFileSync(pb))) {
|
|
31
|
+
diffs.push(rel);
|
|
32
|
+
if (diffs.length >= limit) break;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return diffs;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Make dst an exact copy of src by overwriting files in place.
|
|
40
|
+
* Used when a running app holds the folder open so it cannot be renamed or replaced.
|
|
41
|
+
*/
|
|
42
|
+
export function mirror(src, dst) {
|
|
43
|
+
// Filter on the path inside src only: the package itself lives under node_modules.
|
|
44
|
+
const skip = (p) => relative(src, p).split(/[\\/]/).some((part) => IGNORED.has(part));
|
|
45
|
+
cpSync(src, dst, { recursive: true, force: true, filter: (p) => !skip(p) });
|
|
46
|
+
const keep = listFiles(src);
|
|
47
|
+
for (const [rel, p] of listFiles(dst)) if (!keep.has(rel)) rmSync(p, { force: true });
|
|
48
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,46 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "deepmodebot",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.9.0",
|
|
4
|
+
"description": "Install and auto-update the deepmodebot plugin in Claude Code, omp, Codex, and Google Antigravity from one npm package.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/TimothyVang/deepmodebot.git"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://github.com/TimothyVang/deepmodebot#readme",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/TimothyVang/deepmodebot/issues"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"agent-skills",
|
|
17
|
+
"claude-code",
|
|
18
|
+
"codex",
|
|
19
|
+
"antigravity",
|
|
20
|
+
"omp",
|
|
21
|
+
"plugin"
|
|
22
|
+
],
|
|
23
|
+
"bin": {
|
|
24
|
+
"deepmodebot": "bin/deepmodebot.mjs"
|
|
25
|
+
},
|
|
26
|
+
"files": [
|
|
27
|
+
"bin",
|
|
28
|
+
"lib",
|
|
29
|
+
".claude-plugin",
|
|
30
|
+
".omp-plugin",
|
|
31
|
+
"plugins/deepmodebot",
|
|
32
|
+
"!**/__pycache__",
|
|
33
|
+
"!**/*.pyc",
|
|
34
|
+
"!**/.pytest_cache"
|
|
35
|
+
],
|
|
36
|
+
"engines": {
|
|
37
|
+
"node": ">=20"
|
|
38
|
+
},
|
|
39
|
+
"scripts": {
|
|
40
|
+
"test": "node --test \"test/*.test.mjs\""
|
|
41
|
+
},
|
|
42
|
+
"publishConfig": {
|
|
43
|
+
"access": "public",
|
|
44
|
+
"provenance": true
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://antigravity.google/schemas/v1/plugin.json",
|
|
3
|
+
"name": "deepmodebot",
|
|
4
|
+
"displayName": "deepmodebot",
|
|
5
|
+
"version": "0.9.0",
|
|
6
|
+
"description": "Rigorous agent engineering mode (/deep) for Google Antigravity, omp, Claude Code, and Codex: routes tasks to playbooks, enforces Full-Scope Completion, SME-in-the-loop incremental sprints, model/rate-limit resilience, root containment, real-app proof, and verifier-gated PR review.",
|
|
7
|
+
"logo": "assets/logo.svg",
|
|
8
|
+
"skills": [
|
|
9
|
+
"./.antigravity-plugin/skills"
|
|
10
|
+
],
|
|
11
|
+
"suggestedPrompts": [
|
|
12
|
+
"/deep grill me on this plan, then write the spec and cut tickets",
|
|
13
|
+
"/deep fix this bug and prove it on the running app",
|
|
14
|
+
"/review-pr 42"
|
|
15
|
+
],
|
|
16
|
+
"author": {
|
|
17
|
+
"name": "Timothy Vang",
|
|
18
|
+
"url": "https://github.com/TimothyVang"
|
|
19
|
+
},
|
|
20
|
+
"homepage": "https://timothyvang.github.io/deepmodebot/",
|
|
21
|
+
"repository": "https://github.com/TimothyVang/deepmodebot",
|
|
22
|
+
"license": "MIT",
|
|
23
|
+
"keywords": [
|
|
24
|
+
"deepmodebot",
|
|
25
|
+
"rigor",
|
|
26
|
+
"agent-playbooks",
|
|
27
|
+
"full-scope-completion",
|
|
28
|
+
"sme-review",
|
|
29
|
+
"incremental-sprints",
|
|
30
|
+
"verification",
|
|
31
|
+
"code-review",
|
|
32
|
+
"playbooks",
|
|
33
|
+
"antigravity"
|
|
34
|
+
]
|
|
35
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: deep
|
|
3
|
+
description: "One command (/deep) for fixing, building, reviewing, planning and shipping. deepmodebot routes and sizes the task, proves it on the real artifact, and reports. Use when invoked via /deep."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /deep
|
|
7
|
+
|
|
8
|
+
Read `skill://deepmodebot` (`../../../skills/deepmodebot/SKILL.md` or `~/.gemini/config/plugins/deepmodebot/skills/deepmodebot/SKILL.md`) and follow **Route** first. In Antigravity, `skill://<name>/<path>` is `../../../skills/<name>/<path>` (or via `omp_resolve`).
|
|
9
|
+
|
|
10
|
+
- **Orient automatically:** Use the hook-injected fast offline git-only **workspace-map** overview if present, else run `python -B "<deepmodebot skill>/assets/workspace-map/workspace_map.py" overview --fast --offline --no-orca` (`py -3 -B` on Windows), then `query`/`workspaces`/`prs` before wide scans (on strictly read-only routes, skip `overview` when no `.scratch/workspace-map.db` exists).
|
|
11
|
+
- **Scope, tier & proof:** Pick the smallest tier/effort before turn 1, track 100% scope in one manifest on M/L/multi-item work (Size S inline; `loop.py run` targets `omp|claude|codex`; `manifest`/`audit`/`check`/`status` work anywhere), keep writes in root, leave ordinary local S/M uncommitted with real-artifact proof, and use Opening a PR + the 3-reviewer panel to publish.
|
|
12
|
+
|
|
13
|
+
Apply this to what the user asked for.
|