deepmodebot 0.0.0-stage → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (313) hide show
  1. package/.claude-plugin/marketplace.json +26 -0
  2. package/.omp-plugin/marketplace.json +26 -0
  3. package/LICENSE +24 -0
  4. package/README.md +377 -2
  5. package/bin/deepmodebot.mjs +247 -0
  6. package/lib/autoupdate.mjs +47 -0
  7. package/lib/clients.mjs +139 -0
  8. package/lib/run.mjs +32 -0
  9. package/lib/state.mjs +52 -0
  10. package/lib/tree.mjs +48 -0
  11. package/lib/version.mjs +26 -0
  12. package/package.json +44 -4
  13. package/plugins/deepmodebot/.antigravity-plugin/plugin.json +35 -0
  14. package/plugins/deepmodebot/.antigravity-plugin/skills/deep/SKILL.md +13 -0
  15. package/plugins/deepmodebot/.antigravity-plugin/skills/land-pr/SKILL.md +23 -0
  16. package/plugins/deepmodebot/.antigravity-plugin/skills/pr-thread/SKILL.md +17 -0
  17. package/plugins/deepmodebot/.antigravity-plugin/skills/review-pr/SKILL.md +16 -0
  18. package/plugins/deepmodebot/.antigravity-plugin/skills/tournament/SKILL.md +14 -0
  19. package/plugins/deepmodebot/.claude-plugin/plugin.json +27 -0
  20. package/plugins/deepmodebot/agents/reviewer/agent.md +33 -0
  21. package/plugins/deepmodebot/agents/scout/agent.md +34 -0
  22. package/plugins/deepmodebot/agents/security-reviewer/agent.md +30 -0
  23. package/plugins/deepmodebot/assets/logo.svg +8 -0
  24. package/plugins/deepmodebot/commands/contribute.md +8 -0
  25. package/plugins/deepmodebot/commands/deep.md +11 -0
  26. package/plugins/deepmodebot/commands/land-pr.md +12 -0
  27. package/plugins/deepmodebot/commands/pr-thread.md +14 -0
  28. package/plugins/deepmodebot/commands/project-brief.md +8 -0
  29. package/plugins/deepmodebot/commands/review-pr.md +10 -0
  30. package/plugins/deepmodebot/commands/tournament.md +12 -0
  31. package/plugins/deepmodebot/hooks/hooks.json +26 -0
  32. package/plugins/deepmodebot/hooks.json +24 -0
  33. package/plugins/deepmodebot/mcp_config.json +11 -0
  34. package/plugins/deepmodebot/scripts/antigravity-guard.mjs +413 -0
  35. package/plugins/deepmodebot/scripts/omp-mcp-server.mjs +1091 -0
  36. package/plugins/deepmodebot/skills/agent-harnesses/SKILL.md +57 -0
  37. package/plugins/deepmodebot/skills/agent-harnesses/assets/sdks/bun.lock +391 -0
  38. package/plugins/deepmodebot/skills/agent-harnesses/assets/sdks/check.ts +53 -0
  39. package/plugins/deepmodebot/skills/agent-harnesses/assets/sdks/check_antigravity.py +38 -0
  40. package/plugins/deepmodebot/skills/agent-harnesses/assets/sdks/check_claude.mjs +11 -0
  41. package/plugins/deepmodebot/skills/agent-harnesses/assets/sdks/package.json +11 -0
  42. package/plugins/deepmodebot/skills/agent-harnesses/assets/sdks/requirements.txt +1 -0
  43. package/plugins/deepmodebot/skills/agent-harnesses/references/ai-native-tooling.md +190 -0
  44. package/plugins/deepmodebot/skills/agent-harnesses/references/ai-sdk-selection.md +50 -0
  45. package/plugins/deepmodebot/skills/agent-harnesses/references/antigravity.md +108 -0
  46. package/plugins/deepmodebot/skills/agent-harnesses/references/claude-code.md +166 -0
  47. package/plugins/deepmodebot/skills/agent-harnesses/references/codex.md +151 -0
  48. package/plugins/deepmodebot/skills/agent-harnesses/references/delegation-efficiency.md +230 -0
  49. package/plugins/deepmodebot/skills/agent-harnesses/references/langchain-ecosystem.md +124 -0
  50. package/plugins/deepmodebot/skills/agent-harnesses/references/omp.md +183 -0
  51. package/plugins/deepmodebot/skills/agent-harnesses/references/protocols.md +172 -0
  52. package/plugins/deepmodebot/skills/agent-harnesses/references/sdks.md +228 -0
  53. package/plugins/deepmodebot/skills/agent-harnesses/references/self-authoring.md +171 -0
  54. package/plugins/deepmodebot/skills/cloud-devsecops/SKILL.md +24 -0
  55. package/plugins/deepmodebot/skills/cloud-devsecops/references/aws.md +264 -0
  56. package/plugins/deepmodebot/skills/cloud-devsecops/references/azure.md +261 -0
  57. package/plugins/deepmodebot/skills/cloud-devsecops/references/containers.md +96 -0
  58. package/plugins/deepmodebot/skills/cloud-devsecops/references/devops-tools.md +297 -0
  59. package/plugins/deepmodebot/skills/cloud-devsecops/references/devsecops-pipeline.md +258 -0
  60. package/plugins/deepmodebot/skills/cloud-devsecops/references/gcp.md +258 -0
  61. package/plugins/deepmodebot/skills/cloud-devsecops/references/kubernetes.md +74 -0
  62. package/plugins/deepmodebot/skills/cloud-devsecops/references/local-emulators.md +265 -0
  63. package/plugins/deepmodebot/skills/contribute/SKILL.md +134 -0
  64. package/plugins/deepmodebot/skills/create-verification-skill/LICENSE +21 -0
  65. package/plugins/deepmodebot/skills/create-verification-skill/SKILL.md +101 -0
  66. package/plugins/deepmodebot/skills/create-verification-skill/references/feature-map-example/README.md +47 -0
  67. package/plugins/deepmodebot/skills/create-verification-skill/references/feature-map-example/create-note.md +39 -0
  68. package/plugins/deepmodebot/skills/create-verification-skill/references/feature-map-example/search.md +45 -0
  69. package/plugins/deepmodebot/skills/deep-stack/SKILL.md +53 -0
  70. package/plugins/deepmodebot/skills/deep-stack/references/AGENTS.template.md +52 -0
  71. package/plugins/deepmodebot/skills/deep-stack/references/agentic-workflow.md +114 -0
  72. package/plugins/deepmodebot/skills/deep-stack/references/any-app-stack.md +51 -0
  73. package/plugins/deepmodebot/skills/deep-stack/references/design-workflow.md +101 -0
  74. package/plugins/deepmodebot/skills/deep-stack/references/isolate.md +23 -0
  75. package/plugins/deepmodebot/skills/deep-stack/references/philosophy.md +306 -0
  76. package/plugins/deepmodebot/skills/deep-stack/references/prove.md +31 -0
  77. package/plugins/deepmodebot/skills/deep-stack/references/stack.md +119 -0
  78. package/plugins/deepmodebot/skills/deep-stack/references/structure.md +22 -0
  79. package/plugins/deepmodebot/skills/deep-stack/references/unslop/LICENSE +21 -0
  80. package/plugins/deepmodebot/skills/deep-stack/references/unslop/unslop.md +80 -0
  81. package/plugins/deepmodebot/skills/deepmodebot/LICENSE +23 -0
  82. package/plugins/deepmodebot/skills/deepmodebot/SKILL.md +198 -0
  83. package/plugins/deepmodebot/skills/deepmodebot/assets/agents-md/agents_md.py +207 -0
  84. package/plugins/deepmodebot/skills/deepmodebot/assets/agents-md/test_agents_md.py +146 -0
  85. package/plugins/deepmodebot/skills/deepmodebot/assets/architecture-review/report-template.html +92 -0
  86. package/plugins/deepmodebot/skills/deepmodebot/assets/contain/claude-guard.sh +42 -0
  87. package/plugins/deepmodebot/skills/deepmodebot/assets/contain/claude_guard.py +135 -0
  88. package/plugins/deepmodebot/skills/deepmodebot/assets/contain/omp-contain-link.ts +12 -0
  89. package/plugins/deepmodebot/skills/deepmodebot/assets/contain/omp-contain.ts +115 -0
  90. package/plugins/deepmodebot/skills/deepmodebot/assets/contain/test_antigravity_guard.py +483 -0
  91. package/plugins/deepmodebot/skills/deepmodebot/assets/contain/test_audit_regressions.py +139 -0
  92. package/plugins/deepmodebot/skills/deepmodebot/assets/contain/test_contain.py +301 -0
  93. package/plugins/deepmodebot/skills/deepmodebot/assets/contain/test_omp_mcp.py +602 -0
  94. package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/design.py +242 -0
  95. package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/evidence.py +293 -0
  96. package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/record.py +387 -0
  97. package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/review.py +339 -0
  98. package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/test_design.py +69 -0
  99. package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/test_evidence.py +160 -0
  100. package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/test_record.py +180 -0
  101. package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/test_review.py +265 -0
  102. package/plugins/deepmodebot/skills/deepmodebot/assets/git-guardrails/git-guard-patterns.txt +44 -0
  103. package/plugins/deepmodebot/skills/deepmodebot/assets/git-guardrails/git-guard.sh +132 -0
  104. package/plugins/deepmodebot/skills/deepmodebot/assets/git-guardrails/git-guard.ts +122 -0
  105. package/plugins/deepmodebot/skills/deepmodebot/assets/git-guardrails/test_git_guard.py +192 -0
  106. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/bot.py +3037 -0
  107. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/brand.json +11 -0
  108. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/brand.py +51 -0
  109. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/ghapp.py +361 -0
  110. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/install.py +274 -0
  111. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/local_updates.py +576 -0
  112. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/review_context.py +204 -0
  113. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_bot.py +2182 -0
  114. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_brand.py +19 -0
  115. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_local_updates.py +691 -0
  116. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_review_context.py +127 -0
  117. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_workspace_cleanup.py +496 -0
  118. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/workspace_cleanup.py +351 -0
  119. package/plugins/deepmodebot/skills/deepmodebot/assets/loop/loop.py +2394 -0
  120. package/plugins/deepmodebot/skills/deepmodebot/assets/loop/plan.py +583 -0
  121. package/plugins/deepmodebot/skills/deepmodebot/assets/loop/test_loop.py +1426 -0
  122. package/plugins/deepmodebot/skills/deepmodebot/assets/loop/test_plan.py +320 -0
  123. package/plugins/deepmodebot/skills/deepmodebot/assets/loop/test_windows_job.py +326 -0
  124. package/plugins/deepmodebot/skills/deepmodebot/assets/loop/windows_job.py +244 -0
  125. package/plugins/deepmodebot/skills/deepmodebot/assets/perf-audit/bench_harness.py +165 -0
  126. package/plugins/deepmodebot/skills/deepmodebot/assets/perf-audit/perf_audit.py +240 -0
  127. package/plugins/deepmodebot/skills/deepmodebot/assets/perf-audit/test_bench_harness.py +55 -0
  128. package/plugins/deepmodebot/skills/deepmodebot/assets/perf-audit/test_perf_audit.py +53 -0
  129. package/plugins/deepmodebot/skills/deepmodebot/assets/pr-agent/diff_coverage.py +350 -0
  130. package/plugins/deepmodebot/skills/deepmodebot/assets/pr-agent/pr_agent_local.py +370 -0
  131. package/plugins/deepmodebot/skills/deepmodebot/assets/pr-agent/test_diff_coverage.py +94 -0
  132. package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/arena.html +425 -0
  133. package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/arena.py +579 -0
  134. package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/arena_tui.py +839 -0
  135. package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/font8x8_basic.hex +1 -0
  136. package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/show_thread.py +329 -0
  137. package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/test_arena.py +610 -0
  138. package/plugins/deepmodebot/skills/deepmodebot/assets/repo-references.json +637 -0
  139. package/plugins/deepmodebot/skills/deepmodebot/assets/scrape/test_yt_enrich.py +250 -0
  140. package/plugins/deepmodebot/skills/deepmodebot/assets/scrape/yt_enrich.py +1820 -0
  141. package/plugins/deepmodebot/skills/deepmodebot/assets/scrape/yt_meta.py +156 -0
  142. package/plugins/deepmodebot/skills/deepmodebot/assets/scrape/yt_transcript_relay.js +54 -0
  143. package/plugins/deepmodebot/skills/deepmodebot/assets/security-audit/audit-pr.sh +122 -0
  144. package/plugins/deepmodebot/skills/deepmodebot/assets/security-audit/gate.cjs +155 -0
  145. package/plugins/deepmodebot/skills/deepmodebot/assets/security-audit/prompt.md +13 -0
  146. package/plugins/deepmodebot/skills/deepmodebot/assets/tournament/test_tournament.py +654 -0
  147. package/plugins/deepmodebot/skills/deepmodebot/assets/tournament/tournament.py +1285 -0
  148. package/plugins/deepmodebot/skills/deepmodebot/assets/wizard/wizard.sh +234 -0
  149. package/plugins/deepmodebot/skills/deepmodebot/assets/workspace-map/test_workspace_map.py +879 -0
  150. package/plugins/deepmodebot/skills/deepmodebot/assets/workspace-map/workspace_map.py +2436 -0
  151. package/plugins/deepmodebot/skills/deepmodebot/references/README.md +61 -0
  152. package/plugins/deepmodebot/skills/deepmodebot/references/catalog.md +105 -0
  153. package/plugins/deepmodebot/skills/deepmodebot/references/contain.md +39 -0
  154. package/plugins/deepmodebot/skills/deepmodebot/references/factory-landscape.md +147 -0
  155. package/plugins/deepmodebot/skills/deepmodebot/references/flows.md +50 -0
  156. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/authoring-a-skill.md +37 -0
  157. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/babysit.md +77 -0
  158. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/bug-fix.md +34 -0
  159. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/end-to-end.md +50 -0
  160. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/eval.md +39 -0
  161. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/feature.md +60 -0
  162. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/handoff.md +52 -0
  163. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/hillclimb.md +46 -0
  164. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/investigation.md +20 -0
  165. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/opening-a-pr.md +97 -0
  166. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/pause-safely.md +30 -0
  167. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/perf-issue.md +31 -0
  168. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/phased-build.md +146 -0
  169. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/prototype.md +31 -0
  170. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/refactoring.md +60 -0
  171. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/reference-rebuild.md +45 -0
  172. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/run-a-goal.md +143 -0
  173. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/runtime-forensics.md +22 -0
  174. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/self-authoring.md +130 -0
  175. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/session-pickup.md +33 -0
  176. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/setup.md +105 -0
  177. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/shipping.md +52 -0
  178. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/spec.md +67 -0
  179. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/tickets.md +56 -0
  180. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/trace-forensics.md +24 -0
  181. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/triage.md +102 -0
  182. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/visual-parity.md +19 -0
  183. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/wayfinder.md +44 -0
  184. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/work-a-queue.md +189 -0
  185. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/worktree-cleanup.md +35 -0
  186. package/plugins/deepmodebot/skills/deepmodebot/references/principles/attack-the-premise.md +7 -0
  187. package/plugins/deepmodebot/skills/deepmodebot/references/principles/boundary-discipline.md +8 -0
  188. package/plugins/deepmodebot/skills/deepmodebot/references/principles/build-the-lever.md +8 -0
  189. package/plugins/deepmodebot/skills/deepmodebot/references/principles/encode-lessons-in-structure.md +6 -0
  190. package/plugins/deepmodebot/skills/deepmodebot/references/principles/exhaust-the-design-space.md +4 -0
  191. package/plugins/deepmodebot/skills/deepmodebot/references/principles/experience-first.md +7 -0
  192. package/plugins/deepmodebot/skills/deepmodebot/references/principles/explain-the-number.md +9 -0
  193. package/plugins/deepmodebot/skills/deepmodebot/references/principles/fix-root-causes.md +6 -0
  194. package/plugins/deepmodebot/skills/deepmodebot/references/principles/foundational-thinking.md +9 -0
  195. package/plugins/deepmodebot/skills/deepmodebot/references/principles/guard-the-context-window.md +7 -0
  196. package/plugins/deepmodebot/skills/deepmodebot/references/principles/laziness-protocol.md +6 -0
  197. package/plugins/deepmodebot/skills/deepmodebot/references/principles/make-operations-idempotent.md +7 -0
  198. package/plugins/deepmodebot/skills/deepmodebot/references/principles/migrate-callers-then-delete-legacy-apis.md +5 -0
  199. package/plugins/deepmodebot/skills/deepmodebot/references/principles/minimize-reader-load.md +7 -0
  200. package/plugins/deepmodebot/skills/deepmodebot/references/principles/model-the-domain.md +7 -0
  201. package/plugins/deepmodebot/skills/deepmodebot/references/principles/never-block-on-the-human.md +7 -0
  202. package/plugins/deepmodebot/skills/deepmodebot/references/principles/outcome-oriented-execution.md +6 -0
  203. package/plugins/deepmodebot/skills/deepmodebot/references/principles/prove-it-works.md +8 -0
  204. package/plugins/deepmodebot/skills/deepmodebot/references/principles/redesign-from-first-principles.md +7 -0
  205. package/plugins/deepmodebot/skills/deepmodebot/references/principles/separate-before-serializing-shared-state.md +6 -0
  206. package/plugins/deepmodebot/skills/deepmodebot/references/principles/sequence-verifiable-units.md +7 -0
  207. package/plugins/deepmodebot/skills/deepmodebot/references/principles/subtract-before-you-add.md +6 -0
  208. package/plugins/deepmodebot/skills/deepmodebot/references/principles/test-behavior-not-implementation.md +7 -0
  209. package/plugins/deepmodebot/skills/deepmodebot/references/principles/type-system-discipline.md +6 -0
  210. package/plugins/deepmodebot/skills/deepmodebot/references/rust-migration-case-studies.md +26 -0
  211. package/plugins/deepmodebot/skills/deepmodebot/references/startup-ideas.md +21 -0
  212. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/agent-collaboration.md +82 -0
  213. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/architect.md +32 -0
  214. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/architecture-review.md +43 -0
  215. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/arena.md +20 -0
  216. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/benchmark-checklist.md +31 -0
  217. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/blast-radius.md +19 -0
  218. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/correct.md +20 -0
  219. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/course.md +47 -0
  220. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/coworkers.md +70 -0
  221. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/domain-model.md +69 -0
  222. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/figure-it-out.md +25 -0
  223. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/git-guardrails.md +44 -0
  224. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/github-app.md +160 -0
  225. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/goal-review.md +156 -0
  226. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/grill.md +27 -0
  227. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/how.md +23 -0
  228. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/in-your-own-words.md +12 -0
  229. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/inner-loop.md +39 -0
  230. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/interrogate.md +16 -0
  231. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/issue-conversation.md +52 -0
  232. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/no-comments.md +29 -0
  233. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/open-design-evidence.md +65 -0
  234. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/panel.md +34 -0
  235. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/pr-agent.md +39 -0
  236. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/pr-conversation.md +135 -0
  237. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/pr-review.md +138 -0
  238. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/pre-commit.md +31 -0
  239. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/prior-art.md +44 -0
  240. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/questionnaire.md +46 -0
  241. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/re-explain.md +23 -0
  242. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/recall.md +19 -0
  243. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/reflect.md +20 -0
  244. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/research.md +99 -0
  245. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/retro.md +30 -0
  246. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/scrape.md +32 -0
  247. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/security-audit.md +40 -0
  248. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/sharpen.md +15 -0
  249. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/show-me-your-work.md +19 -0
  250. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/sme-review.md +49 -0
  251. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/swarm.md +14 -0
  252. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/tdd.md +55 -0
  253. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/teach.md +20 -0
  254. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/technical-writing.md +22 -0
  255. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/tool-routing.md +85 -0
  256. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/tournament.md +44 -0
  257. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/tracker.md +78 -0
  258. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/unslop.md +15 -0
  259. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/visual-e2e.md +78 -0
  260. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/why.md +31 -0
  261. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/wizard.md +25 -0
  262. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/workspace-map.md +35 -0
  263. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/writing-for-agents.md +66 -0
  264. package/plugins/deepmodebot/skills/deepmodebot/scripts/check_skill.py +93 -0
  265. package/plugins/deepmodebot/skills/deepmodebot/scripts/trending.py +598 -0
  266. package/plugins/deepmodebot/skills/domain-rules/SKILL.md +131 -0
  267. package/plugins/deepmodebot/skills/domain-rules/references/agent-engineering.md +105 -0
  268. package/plugins/deepmodebot/skills/domain-rules/references/ai-concepts.md +103 -0
  269. package/plugins/deepmodebot/skills/domain-rules/references/aws-networking.md +121 -0
  270. package/plugins/deepmodebot/skills/domain-rules/references/backend-system-design.md +162 -0
  271. package/plugins/deepmodebot/skills/domain-rules/references/data-structures-and-cache-optimization.md +48 -0
  272. package/plugins/deepmodebot/skills/domain-rules/references/devops-and-fundamentals.md +137 -0
  273. package/plugins/deepmodebot/skills/domain-rules/references/engineering-practice.md +100 -0
  274. package/plugins/deepmodebot/skills/domain-rules/references/high-scale-server-optimization.md +181 -0
  275. package/plugins/deepmodebot/skills/domain-rules/references/language-ecosystems.md +56 -0
  276. package/plugins/deepmodebot/skills/frontend-ui/SKILL.md +146 -0
  277. package/plugins/deepmodebot/skills/frontend-ui/references/patterns/live-demos.md +38 -0
  278. package/plugins/deepmodebot/skills/frontend-ui/references/patterns/mobbin-shipped-apps.md +28 -0
  279. package/plugins/deepmodebot/skills/frontend-ui/references/patterns/motion-clips.md +269 -0
  280. package/plugins/deepmodebot/skills/frontend-ui/references/patterns/motion-graphics.md +62 -0
  281. package/plugins/deepmodebot/skills/frontend-ui/references/patterns/pinterest-animations.md +217 -0
  282. package/plugins/deepmodebot/skills/frontend-ui/references/patterns/pinterest-patterns.md +101 -0
  283. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/01-workflow.md +25 -0
  284. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/02-review-rubric.md +21 -0
  285. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/03-ai-tells.md +46 -0
  286. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/04-components.md +21 -0
  287. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/04a-agent-ui.md +153 -0
  288. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/05-motion.md +106 -0
  289. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/05a-motion-graphics.md +121 -0
  290. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/06-typography-layout.md +48 -0
  291. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/06a-color.md +26 -0
  292. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/07-copy.md +11 -0
  293. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/08-quality-floor.md +63 -0
  294. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/09-steering-agents.md +13 -0
  295. package/plugins/deepmodebot/skills/maintain-verification-skill/LICENSE +21 -0
  296. package/plugins/deepmodebot/skills/maintain-verification-skill/SKILL.md +47 -0
  297. package/plugins/deepmodebot/skills/project-brief/SKILL.md +100 -0
  298. package/plugins/deepmodebot/skills/project-brief/assets/CONTRIBUTING.template.md +124 -0
  299. package/plugins/deepmodebot/skills/project-brief/assets/ISSUE_TEMPLATE/task.yml +61 -0
  300. package/plugins/deepmodebot/skills/project-brief/assets/PROJECT_BRIEF.template.md +98 -0
  301. package/plugins/deepmodebot/skills/project-brief/assets/PULL_REQUEST_TEMPLATE.md +35 -0
  302. package/plugins/deepmodebot/skills/project-brief/assets/pr-overlap.py +643 -0
  303. package/plugins/deepmodebot/skills/project-brief/assets/sync-roadmap.py +314 -0
  304. package/plugins/deepmodebot/skills/secrets-and-auth/SKILL.md +60 -0
  305. package/plugins/deepmodebot/skills/secrets-and-auth/references/agent-authentication.md +198 -0
  306. package/plugins/deepmodebot/skills/secrets-and-auth/references/leak-prevention.md +206 -0
  307. package/plugins/deepmodebot/skills/secrets-and-auth/references/logins-and-passwords.md +165 -0
  308. package/plugins/deepmodebot/skills/secrets-and-auth/references/secrets-and-env.md +182 -0
  309. package/plugins/deepmodebot/skills/software-architecture/SKILL.md +47 -0
  310. package/plugins/deepmodebot/skills/software-architecture/references/backend-infrastructure.md +273 -0
  311. package/plugins/deepmodebot/skills/software-architecture/references/databases.md +277 -0
  312. package/plugins/deepmodebot/skills/software-architecture/references/monorepos.md +210 -0
  313. package/plugins/deepmodebot/skills/software-architecture/references/ontology.md +287 -0
@@ -0,0 +1,166 @@
1
+ # Claude Code harness reference
2
+
3
+ Read when deepmodebot runs inside Anthropic Claude Code (CLI `claude`, its IDE extensions, the Agent SDK, or an ACP client driving it), or when you must translate a deepmodebot instruction written for omp into Claude Code tools, files, and flags.
4
+
5
+ Checked: Claude Code 2.1.322 on Windows, 2026-11-11, against [code.claude.com/docs](https://code.claude.com/docs/en/overview) (canonical docs site; index at [llms.txt](https://code.claude.com/docs/llms.txt)) and local `claude --help`.
6
+
7
+ ## Auth, billing, models
8
+
9
+ - Credential precedence, first wins: cloud provider (`CLAUDE_CODE_USE_BEDROCK` / `_VERTEX` / `_FOUNDRY`), `ANTHROPIC_AUTH_TOKEN`, `ANTHROPIC_API_KEY`, `apiKeyHelper`, `CLAUDE_CODE_OAUTH_TOKEN`, Anthropic profile, then subscription OAuth from `/login` ([authentication](https://code.claude.com/docs/en/authentication)).
10
+ - `ANTHROPIC_API_KEY` outranks a Pro/Max/Team login. Interactive mode asks once to approve it. In `-p` mode the key is always used when present, so API billing replaces the subscription silently ([authentication](https://code.claude.com/docs/en/authentication)).
11
+ - Subscription in CI: `claude setup-token` creates a long-lived token; export it as `CLAUDE_CODE_OAUTH_TOKEN` ([authentication](https://code.claude.com/docs/en/authentication)). Check with `claude auth status` (claude 2.1.322 --help).
12
+ - Credentials file: `~/.claude/.credentials.json` (Linux, Windows `%USERPROFILE%\.claude`), macOS Keychain ([authentication](https://code.claude.com/docs/en/authentication)).
13
+ - Models: `--model <alias|full id>`, `/model`, or `model` setting. Aliases include `default`, `best` (= `opus`), `fable`, `opus`, `sonnet`, `haiku` ([model-config](https://code.claude.com/docs/en/model-config)).
14
+ - Effort: `--effort low|medium|high|xhigh|max` (claude 2.1.322 --help), `/effort`, env `CLAUDE_CODE_EFFORT_LEVEL`; the keyword `ultrathink` raises effort for one turn ([model-config](https://code.claude.com/docs/en/model-config)).
15
+ - Update: `claude update`; install a version: `claude install [stable|latest|<ver>]` (claude 2.1.322 --help). Health: `claude doctor`.
16
+
17
+ ## Memory and context files
18
+
19
+ | File | Scope |
20
+ | - | - |
21
+ | Managed: `C:\Program Files\ClaudeCode\CLAUDE.md`, `/etc/claude-code/CLAUDE.md`, `/Library/Application Support/ClaudeCode/CLAUDE.md` | Org, cannot be excluded |
22
+ | `~/.claude/CLAUDE.md`, `~/.claude/rules/*.md` | User, all projects |
23
+ | `./CLAUDE.md` or `./.claude/CLAUDE.md` | Project, committed |
24
+ | `./CLAUDE.local.md` | Personal, gitignore it |
25
+ | `.claude/rules/**/*.md` | Modular project rules; `paths:` frontmatter scopes a rule to globs |
26
+
27
+ Source: [memory](https://code.claude.com/docs/en/memory).
28
+
29
+ - Files in cwd and every ancestor load at launch, concatenated root-first; `CLAUDE.local.md` follows `CLAUDE.md` in each dir. Subdirectory files load lazily when Claude touches a file there ([memory](https://code.claude.com/docs/en/memory)).
30
+ - Imports: `@path/to/file`, relative to the importing file, max depth 4 hops. External imports need one-time approval ([memory](https://code.claude.com/docs/en/memory)).
31
+ - AGENTS.md (v2.1.277+): read only when no `CLAUDE.md`, `.claude/CLAUDE.md`, or `CLAUDE.local.md` exists in cwd or above. A `CLAUDE.local.md` alone suppresses AGENTS.md. `AGENTS.override.md`, `AGENTS.local.md`, `.agents/` are never read ([memory](https://code.claude.com/docs/en/memory)).
32
+ - Portable fix: put `@AGENTS.md` as the first line of `CLAUDE.md`. Avoid symlinks on Windows ([memory](https://code.claude.com/docs/en/memory)).
33
+ - Setting to read both: `pluginConfigs."cc-plugin-agents-md@builtin".options.instructionFiles = "claude-md-and-agents-md"` in user settings or `/config` > Project instructions ([memory](https://code.claude.com/docs/en/memory)).
34
+ - Auto memory: `~/.claude/projects/<project>/memory/MEMORY.md` plus topic files, shared across worktrees of one repo ([memory](https://code.claude.com/docs/en/memory)).
35
+ - Subagents get the full CLAUDE.md hierarchy and a git status snapshot, but not the conversation, invoked skills, or files already read. Built-in `Explore` and `Plan` skip CLAUDE.md; custom agents can set `omitClaudeMd: true` ([sub-agents](https://code.claude.com/docs/en/sub-agents)).
36
+
37
+ ## Skills and commands
38
+
39
+ | Location | Invoked as |
40
+ | - | - |
41
+ | `~/.claude/skills/<name>/SKILL.md` | `/<name>` (personal) |
42
+ | `.claude/skills/<name>/SKILL.md` | `/<name>` (project) |
43
+ | `<plugin>/skills/<name>/SKILL.md` | `/<plugin-name>:<name>` |
44
+ | `.claude/commands/<name>.md`, `~/.claude/commands/` | `/<name>` (legacy format, still works) |
45
+
46
+ Source: [skills](https://code.claude.com/docs/en/skills). Precedence: enterprise > personal > project; a skill beats a same-named command; plugin skills never collide because they are namespaced.
47
+
48
+ - Custom commands are merged into skills. Commands accept the same frontmatter except `name` and `paths` ([skills](https://code.claude.com/docs/en/skills)).
49
+ - Frontmatter: `name`, `description` (with `when_to_use`, truncated at 1,536 chars in the listing), `argument-hint`, `arguments`, `disable-model-invocation`, `user-invocable`, `allowed-tools`, `disallowed-tools`, `model`, `effort`, `context: fork`, `agent`, `background`, `hooks`, `paths`, `shell`, `metadata`, `license`, `compatibility` ([skills](https://code.claude.com/docs/en/skills)).
50
+ - `allowed-tools` pre-approves tools only for the invoking turn; the grant clears on the next user message ([skills](https://code.claude.com/docs/en/skills)).
51
+ - Substitutions: `$ARGUMENTS`, `$ARGUMENTS[N]`, `$N`, `$name`, `${CLAUDE_SKILL_DIR}`, `${CLAUDE_PROJECT_DIR}`, `${CLAUDE_PLUGIN_ROOT}`, `${CLAUDE_PLUGIN_DATA}`, `${CLAUDE_SESSION_ID}`, `${CLAUDE_EFFORT}` ([skills](https://code.claude.com/docs/en/skills)).
52
+ - Own files: link them with relative markdown links from SKILL.md (`[reference.md](reference.md)`); use `${CLAUDE_SKILL_DIR}` in `` !`cmd` `` injection. For plugin skills it is the skill subdir, not the plugin root ([skills](https://code.claude.com/docs/en/skills)).
53
+ - Rendered SKILL.md is injected once and not re-read. After auto-compaction only the first 5,000 tokens of each recent skill survive (25,000 total) ([skills](https://code.claude.com/docs/en/skills)).
54
+ - Invocation: user types `/name args`; the model calls the `Skill` tool. Permission rule form: `Skill(name *)` ([tools-reference](https://code.claude.com/docs/en/tools-reference)).
55
+
56
+ ## Plugins and marketplaces
57
+
58
+ - Layout: `.claude-plugin/plugin.json` (only `name` required) at plugin root; `skills/`, `commands/`, `agents/`, `hooks/hooks.json`, `.mcp.json` at plugin root, not inside `.claude-plugin/` ([plugins-reference](https://code.claude.com/docs/en/plugins-reference)).
59
+ - Marketplace: a repo/dir with `.claude-plugin/marketplace.json` (`name`, `owner`, `plugins[]`) ([plugin-marketplaces](https://code.claude.com/docs/en/plugin-marketplaces)).
60
+ - In session: `/plugin marketplace add <owner/repo|url|path>`, `/plugin install <plugin>@<marketplace>` ([plugin-marketplaces](https://code.claude.com/docs/en/plugin-marketplaces)).
61
+ - CLI: `claude plugin marketplace add|list|remove|update`, `claude plugin install|i <plugin>[@marketplace] [-s user|project|local]`, `list`, `enable`, `disable`, `update`, `uninstall`, `validate <path>`, `details <name>` (claude 2.1.322 --help).
62
+ - Session-only load without installing: `claude --plugin-dir <path>` (repeatable) or `--plugin-url <zip url>` (claude 2.1.322 --help).
63
+ - Plugin components are namespaced: `/plugin-name:skill`, agents `plugin-name:agent`. Plugin subagents ignore `permissionMode`, `hooks`, `mcpServers` ([sub-agents](https://code.claude.com/docs/en/sub-agents)).
64
+
65
+ ## Built-in tools
66
+
67
+ Exact names from [tools-reference](https://code.claude.com/docs/en/tools-reference): `Agent`, `AskUserQuestion`, `Bash`, `PowerShell`, `Read`, `Edit`, `Write`, `NotebookEdit`, `Glob`, `Grep`, `LSP`, `WebFetch`, `WebSearch`, `Skill`, `EnterPlanMode`, `ExitPlanMode`, `EnterWorktree`, `ExitWorktree`, `TaskCreate`, `TaskGet`, `TaskList`, `TaskUpdate`, `TaskStop`, `TodoWrite`, `SendMessage`, `ListAgents`, `Monitor`, `CronCreate`, `CronDelete`, `CronList`, `ToolSearch`, `ListMcpResourcesTool`, `ReadMcpResourceTool`, `Workflow`.
68
+
69
+ - Subagent tool is `Agent` (older docs and SDK messages say `Task`) ([tools-reference](https://code.claude.com/docs/en/tools-reference)). The ACP adapter handles both names ([claude-agent-acp](https://github.com/agentclientprotocol/claude-agent-acp)).
70
+ - Todo: `TaskCreate/TaskGet/TaskList/TaskUpdate` replace `TodoWrite`. They are on by default only for Opus 4.7, Sonnet 4.6, Haiku 4.5 and older. Newer models get none unless `CLAUDE_CODE_ENABLE_TODO_TOOLS=1` or `--allowedTools TaskCreate`. `CLAUDE_CODE_ENABLE_TASKS=0` swaps back to `TodoWrite` ([tools-reference](https://code.claude.com/docs/en/tools-reference)).
71
+ - `Glob` and `Grep` are absent by default on macOS, Linux, WSL; Claude uses Bash search there ([tools-reference](https://code.claude.com/docs/en/tools-reference)).
72
+ - `Edit` is exact-string replacement; requires a prior read and a unique `old_string` or `replace_all` ([tools-reference](https://code.claude.com/docs/en/tools-reference)).
73
+ - Bash: cwd persists inside working dirs; env vars do not persist; default timeout 2 min, max 10 min (`BASH_DEFAULT_TIMEOUT_MS`, `BASH_MAX_TIMEOUT_MS`); output over ~30,000 chars spills to a file; `run_in_background: true` for servers ([tools-reference](https://code.claude.com/docs/en/tools-reference)).
74
+
75
+ ## Subagents
76
+
77
+ - Files: `.claude/agents/<name>.md` (project), `~/.claude/agents/` (user), `--agents '<json>'` (session), plugin `agents/`. Priority: managed > `--agents` > project > user > plugin ([sub-agents](https://code.claude.com/docs/en/sub-agents)).
78
+ - Frontmatter: `name`, `description` (required); `tools`, `disallowedTools`, `model` (`sonnet|opus|haiku|fable|<id>|inherit`), `permissionMode`, `maxTurns`, `skills` (preload full content), `mcpServers`, `hooks`, `memory` (`user|project|local`), `background`, `omitClaudeMd`, `effort`, `isolation: worktree`, `color`, `initialPrompt` ([sub-agents](https://code.claude.com/docs/en/sub-agents)).
79
+ - Built-ins: `Explore` and `Plan` (read-only; Write and Edit denied), `general-purpose` (all subagent tools). A user/project agent named `Explore` overrides the built-in ([sub-agents](https://code.claude.com/docs/en/sub-agents)).
80
+ - Subagents run in the background by default; nesting allowed up to 3 layers ([sub-agents](https://code.claude.com/docs/en/sub-agents)).
81
+ - Restrict which agents may be spawned: permission rule `Agent(Explore)`; omit `Agent` from `tools` to forbid nesting ([sub-agents](https://code.claude.com/docs/en/sub-agents)).
82
+ - Resume or message a running subagent with `SendMessage` by agent ID or name ([tools-reference](https://code.claude.com/docs/en/tools-reference)).
83
+
84
+ ## Permissions and settings
85
+
86
+ - Modes: `default` (shown as Manual; CLI alias `manual`), `acceptEdits`, `plan`, `auto` (classifier), `dontAsk` (deny anything not pre-approved), `bypassPermissions` ([permission-modes](https://code.claude.com/docs/en/permission-modes)). Set via `--permission-mode` or Shift+Tab. `-p` defaults to `default`.
87
+ - Rule syntax `Tool(specifier)`: `Bash(npm run *)` (`Bash(ls:*)` equivalent), `Read(~/secrets/**)`, `Edit(/src/**)`, `WebFetch(domain:x.com)`, `Skill(deploy *)`, `Agent(Explore)`, bare `mcp__server__tool` ([tools-reference](https://code.claude.com/docs/en/tools-reference), [permissions](https://code.claude.com/docs/en/permissions)).
88
+ - Evaluation order deny > ask > allow; first match wins; an allow cannot carve out of a deny. Deny rules hold even in `bypassPermissions` ([permissions](https://code.claude.com/docs/en/permissions), [permission-modes](https://code.claude.com/docs/en/permission-modes)).
89
+ - Path rules: `//abs/path` absolute, `/path` project-relative, `~/` home ([sandboxing](https://code.claude.com/docs/en/sandboxing)).
90
+ - Settings precedence, high to low: managed (`managed-settings.json`, MDM, server) > `--settings` > `.claude/settings.local.json` > `.claude/settings.json` > `~/.claude/settings.json` ([settings](https://code.claude.com/docs/en/settings)).
91
+ - `--setting-sources user,project,local` picks which files load; `--safe-mode` disables all customizations; `--bare` skips hooks, plugins, MCP, CLAUDE.md discovery (claude 2.1.322 --help).
92
+ - Sandbox: `/sandbox` or `sandbox.enabled: true`. Runs on macOS (Seatbelt), Linux, WSL2. Native Windows runs commands unsandboxed ([sandboxing](https://code.claude.com/docs/en/sandboxing)).
93
+
94
+ ## Headless and SDK
95
+
96
+ - `claude -p "<prompt>"` prints and exits. `--output-format text|json|stream-json`, `--input-format stream-json`, `--json-schema '<schema>'`, `--include-partial-messages` (claude 2.1.322 --help).
97
+ - Control: `--allowedTools`, `--disallowedTools`, `--tools "Read,Grep"` (restrict built-in set), `--permission-mode`, `--permission-prompts none` (auto-deny prompts), `--max-budget-usd`, `--max-turns N`, `--fallback-model`, `--append-system-prompt`, `--add-dir` (claude 2.1.322 --help; `--max-turns` in [cli-reference](https://code.claude.com/docs/en/cli-reference), not in local help).
98
+ - MCP isolation: `--mcp-config <file|json>` with `--strict-mcp-config` (claude 2.1.322 --help).
99
+ - Sessions: `-c/--continue`, `-r/--resume <id|name>`, `--fork-session`, `--session-id <uuid>`, `--no-session-persistence` (claude 2.1.322 --help).
100
+ - `-p` skips the workspace-trust dialog and runs project hooks and `.mcp.json` servers. Use `--bare` for scripted calls; Anthropic says it will become the `-p` default ([headless](https://code.claude.com/docs/en/headless)).
101
+ - `--bare` (reconciled on claude 2.1.326 `--help`, 2026-11-17): skips user/plugin hooks, LSP, auto-memory, keychain, and `CLAUDE.md` auto-discovery, while managed-plugin hooks, built-ins, and `/skill-name` resolution remain active and explicit `--mcp-config`/`--plugin-dir`/`--add-dir` still apply. Anthropic auth in `--bare` is strictly `ANTHROPIC_API_KEY` or `apiKeyHelper` (never OAuth), so it is not a subscription-safe isolation switch. `-p` skips trust (use only in trusted workspaces). `--restricted` removes code tools by default, restricts file tools, and refuses bypass permissions (not a full sandbox or network firewall).
102
+ - Background sessions: `claude --bg "<prompt>"`, then `claude agents`, `attach`, `logs`, `stop`, `rm` (claude 2.1.322 --help).
103
+ - Agent SDK: verified package names `@anthropic-ai/claude-agent-sdk` (TypeScript) and `claude-agent-sdk` (Python); both normally bundle the Claude Code binary. Follow [SDK setup and usage](sdks.md) for isolated installs, examples, and authentication/product restrictions. Sources: [TypeScript upstream](https://github.com/anthropics/claude-agent-sdk-typescript), [Python upstream](https://github.com/anthropics/claude-agent-sdk-python), [quickstart](https://code.claude.com/docs/en/agent-sdk/quickstart.md). Checked 2026-11-13.
104
+ - GitHub Actions: `uses: anthropics/claude-code-action@v1` ([github-actions](https://code.claude.com/docs/en/github-actions)).
105
+
106
+ ## Hooks
107
+
108
+ - Config: `"hooks": { "<Event>": [ { "matcher": "Bash", "hooks": [ { "type": "command", "command": "..." } ] } ] }` in any settings file, plugin `hooks/hooks.json`, or skill/agent frontmatter ([hooks](https://code.claude.com/docs/en/hooks)).
109
+ - Events: `SessionStart`, `Setup`, `UserPromptSubmit`, `UserPromptExpansion`, `PreToolUse`, `PermissionRequest`, `PermissionDenied`, `PostToolUse`, `PostToolUseFailure`, `PostToolBatch`, `Notification`, `MessageDisplay`, `SubagentStart`, `SubagentStop`, `TaskCreated`, `TaskCompleted`, `Stop`, `StopFailure`, `TeammateIdle`, `InstructionsLoaded`, `ConfigChange`, `CwdChanged`, `DirectoryAdded`, `FileChanged`, `WorktreeCreate`, `WorktreeRemove`, `PreCompact`, `PostCompact`, `PreModelSwitch`, `PostModelSwitch`, `Elicitation`, `ElicitationResult`, `SessionEnd` ([hooks](https://code.claude.com/docs/en/hooks)).
110
+ - Input is JSON on stdin. Exit 0: success, stdout JSON applies. Exit 2: blocking error, stderr is the reason. Other codes: non-blocking error ([hooks](https://code.claude.com/docs/en/hooks)).
111
+ - PreToolUse deny via JSON: `hookSpecificOutput.permissionDecision: "deny"` plus `permissionDecisionReason`. A hook `allow` never overrides a deny or ask rule ([hooks](https://code.claude.com/docs/en/hooks), [permissions](https://code.claude.com/docs/en/permissions)).
112
+ - Matchers use bare tool names, not `Tool(spec)` ([tools-reference](https://code.claude.com/docs/en/tools-reference)).
113
+
114
+ ## MCP
115
+
116
+ - Add: `claude mcp add [-s local|project|user] [-t stdio|sse|http] [-e K=V] [-H "Header: v"] <name> <cmd|url> [-- args]`; also `add-json`, `list`, `get`, `remove`, `login`, `reset-project-choices` (claude 2.1.322 --help). Default scope `local`.
117
+ - Storage: local and user scope in `~/.claude.json`; project scope in `.mcp.json` at repo root (committed, needs per-user approval) ([mcp](https://code.claude.com/docs/en/mcp)).
118
+ - `.mcp.json` supports `${VAR}` and `${VAR:-default}`; `type` accepts `stdio`, `sse`, `http` (alias `streamable-http`), WebSocket ([mcp](https://code.claude.com/docs/en/mcp)).
119
+ - Tool names: `mcp__<server>__<tool>`. Output warns at 10,000 tokens, caps at 25,000 (`MAX_MCP_OUTPUT_TOKENS`); text over 50,000 chars spills to a file ([mcp](https://code.claude.com/docs/en/mcp)).
120
+ - `claude mcp serve` exposes Claude Code's own tools as a stdio MCP server ([mcp](https://code.claude.com/docs/en/mcp)).
121
+ - Subagents can scope servers via `mcpServers` frontmatter ([sub-agents](https://code.claude.com/docs/en/sub-agents)).
122
+
123
+ ## ACP
124
+
125
+ - Claude Code has no native ACP server mode in 2.1.322 (no flag in claude 2.1.322 --help) [inference].
126
+ - ACP is provided by the adapter [agentclientprotocol/claude-agent-acp](https://github.com/agentclientprotocol/claude-agent-acp), npm `@agentclientprotocol/claude-agent-acp`, formerly `@zed-industries/claude-code-acp`. It wraps the Claude Agent SDK and supports tool permission requests, TODO lists, slash commands, client MCP servers, terminals, and subagent child sessions ([README](https://github.com/agentclientprotocol/claude-agent-acp)).
127
+ - It serves ACP v1 and draft v2; `CLAUDE_AGENT_ACP_PROTOCOL=v1|v2|auto`. `CLAUDE_CODE_EXECUTABLE` points it at an existing `claude` ([README](https://github.com/agentclientprotocol/claude-agent-acp)).
128
+ - Under ACP, the client owns permission prompts; settings, CLAUDE.md, skills still load from the Claude Code config [inference].
129
+
130
+ ## Sessions, checkpoints, worktrees
131
+
132
+ - Transcripts: `~/.claude/projects/<project>/<session>.jsonl`, subagent transcripts under `<session>/subagents/`, spilled outputs under `<session>/tool-results/` ([claude-directory](https://code.claude.com/docs/en/claude-directory)).
133
+ - Checkpoints: `/rewind` or Esc twice. Only edits made by file tools are tracked; files changed only by Bash are not restorable. Snapshots in `~/.claude/file-history/<session>/` ([checkpointing](https://code.claude.com/docs/en/checkpointing), [claude-directory](https://code.claude.com/docs/en/claude-directory)).
134
+ - Compaction: `/compact` manual; auto window via `--autocompact auto|<tokens>`; `PreCompact`/`PostCompact` hooks (claude 2.1.322 --help, [hooks](https://code.claude.com/docs/en/hooks)).
135
+ - Worktrees: `claude -w <name>` creates `.claude/worktrees/<name>/` on branch `worktree-<name>`; add `.claude/worktrees/` to `.gitignore`; `.worktreeinclude` copies gitignored files ([worktrees](https://code.claude.com/docs/en/worktrees)).
136
+ - Background shell tasks: `/tasks`; `TaskStop` ends them. `-p` runs cap background commands at 10 min by default ([tools-reference](https://code.claude.com/docs/en/tools-reference)).
137
+ - Retention: `cleanupPeriodDays` (default 30) prunes transcripts and file history ([claude-directory](https://code.claude.com/docs/en/claude-directory)).
138
+
139
+ ## Containing writes to the project root
140
+
141
+ - Working directories = launch dir plus `--add-dir <path>`, `/add-dir`, or `permissions.additionalDirectories` ([permissions](https://code.claude.com/docs/en/permissions)). Do not add dirs outside the repo.
142
+ - `permissions.blockWritesOutsideWorkingDirectories: true` (v2.1.314+): `Write`, `Edit`, `NotebookEdit` refuse paths outside working dirs in every mode, including `bypassPermissions`. It does not limit Bash, MCP tools, or hook programs. A repo can set it in `.claude/settings.json`; it also removes `EnterWorktree`/`ExitWorktree` ([settings-reference](https://code.claude.com/docs/en/settings-reference)).
143
+ - `acceptEdits` auto-approves edits only inside working dirs; writes elsewhere still prompt ([permissions](https://code.claude.com/docs/en/permissions)).
144
+ - Deny rules for outside paths: `"deny": ["Edit(//tmp/**)", "Edit(~/**)"]` [inference from rule syntax]. Deny beats allow and holds in all modes ([permissions](https://code.claude.com/docs/en/permissions)).
145
+ - Bash writes: `tee` targets and redirects are checked against working dirs (v2.1.269+), but arbitrary programs are not ([permissions](https://code.claude.com/docs/en/permissions)). Only the sandbox contains them.
146
+ - Sandbox writes default to: working dir, a per-user temp dir, added dirs. Sandboxed commands get `$TMPDIR` pointed at that temp dir, so temp files land outside the repo. Tune with `sandbox.filesystem.allowWrite` / `denyWrite`; `sandbox.excludedCommands` escape it ([sandboxing](https://code.claude.com/docs/en/sandboxing)). No documented key removes the temp dir [unverified]; set `TMPDIR` to `<repo>/.scratch/tmp` (deepmodebot's self-ignoring scratch folder) in the settings `env` block instead [inference].
147
+ - `CLAUDE_CODE_TMPDIR` overrides the temp dir Claude Code hands unsandboxed commands when `$TMPDIR` is unset, and also moves the session scratchpad ([sandboxing](https://code.claude.com/docs/en/sandboxing), [claude-directory](https://code.claude.com/docs/en/claude-directory)).
148
+ - Scratchpad: with a claude.ai login, Claude is given a per-session scratchpad for temp files, used instead of `/tmp`, writable without prompts: `%TEMP%\claude\<hash>\<session>\scratchpad\` on Windows, `/tmp/claude-<uid>/...` on Linux. Hooks get it as `scratchpad_dir`. Turn it off with `enableArtifact: false` ([claude-directory](https://code.claude.com/docs/en/claude-directory), [hooks](https://code.claude.com/docs/en/hooks)).
149
+ - The write block still lets through plan files, the scratchpad, and `.md` files under `~/.claude/projects/<project>/memory/`. Keep these inside the repo with `plansDirectory` (relative to the project root) and turn off auto memory with `autoMemoryEnabled: false` ([settings-reference](https://code.claude.com/docs/en/settings-reference), [memory](https://code.claude.com/docs/en/memory)).
150
+ - Path-blocking hook: `PreToolUse` with matcher `Write|Edit|NotebookEdit`. Read `tool_input.file_path` from stdin for Write/Edit; it is always absolute, with backslashes on Windows, so normalize before comparing. Compare against the stdin `cwd` field. The NotebookEdit path field name is not in the hooks schema (likely `notebook_path`) [unverified]. Exit 2 with a stderr reason, or emit `permissionDecision: "deny"` ([hooks](https://code.claude.com/docs/en/hooks)). For Bash, parse `tool_input.command` (best-effort only).
151
+ - Native Windows has no sandbox, so only the Write/Edit block and hooks apply there ([sandboxing](https://code.claude.com/docs/en/sandboxing)).
152
+ - Claude Code's own writes (not yours, never clean them): `~/.claude.json`, `~/.claude/projects/`, `~/.claude/file-history/`, `~/.claude/plans/`, `~/.claude/shell-snapshots/`, `~/.claude/backups/`; in the repo `.claude/settings.local.json`, `.claude/worktrees/`, `.claude/agent-memory*/` ([claude-directory](https://code.claude.com/docs/en/claude-directory), [worktrees](https://code.claude.com/docs/en/worktrees), [sub-agents](https://code.claude.com/docs/en/sub-agents)). `CLAUDE_CONFIG_DIR` relocates `~/.claude`.
153
+
154
+ ## Traps for deepmodebot
155
+
156
+ - omp `task` with `agent: "scout"` -> call `Agent` with `subagent_type: "Explore"` (read-only). `reviewer` -> define `.claude/agents/reviewer.md` with `tools: Read, Grep, Glob, Bash` or ship it in the plugin `agents/` dir (then `deepmodebot:reviewer`).
157
+ - Subagents start blank: put full requirements in the `Agent` prompt. `Explore`/`Plan` do not see CLAUDE.md, so restate deepmodebot rules in the prompt.
158
+ - `.omp/RULES.md` is not read. Use `CLAUDE.md`, `.claude/rules/*.md`, or `@.omp/RULES.md` from `CLAUDE.md`. A `CLAUDE.local.md` silently stops `AGENTS.md` from loading.
159
+ - omp `todo` -> `TaskCreate`/`TaskUpdate`, or `TodoWrite`. On current models neither exists by default; do not fail, keep a checklist in a repo file or ask the user to set `CLAUDE_CODE_ENABLE_TODO_TOOLS=1`.
160
+ - omp `ask` -> `AskUserQuestion` (multiple choice). It does not exist for the model in `-p`/`dontAsk` runs; decide and record the assumption.
161
+ - `skill://deepmodebot/...` paths do not resolve. Use relative links from SKILL.md or `${CLAUDE_SKILL_DIR}/...` and open them with `Read`.
162
+ - `/skill:<name>` is omp syntax. Claude Code uses `/<name>`; plugin commands are `/deepmodebot:deep` only when installed as plugin `deepmodebot`.
163
+ - Project verify skills belong in `.claude/skills/verify-<app>/SKILL.md`, not `.omp/skills/`. Read both if the repo has the omp copy.
164
+ - `omp -p` -> `claude -p`. To stay on the subscription, unset `ANTHROPIC_API_KEY` and do not pass `--bare` (bare never reads OAuth). Use `CLAUDE_CODE_OAUTH_TOKEN` for unattended runs.
165
+ - `local://` artifacts do not exist. Write scratch files to a gitignored repo dir; Claude's own spills live under `~/.claude/projects/` and are not yours.
166
+ - Bash `export` does not persist between calls; chain with `&&`. Bash edits are not checkpointed, so prefer `Edit`/`Write` for reversibility.
@@ -0,0 +1,151 @@
1
+ # OpenAI Codex (CLI, IDE extension, desktop app, cloud)
2
+
3
+ Read when deepmodebot is running inside OpenAI Codex (CLI `codex`, the IDE extension, Codex in the ChatGPT desktop app, or `codex exec` in CI), or when you must translate deepmodebot's omp instructions (task subagents, todo, ask, `skill://`, `.omp/`, `omp -p`) into Codex equivalents.
4
+
5
+ Checked 2026-11-11 against codex-cli 0.163.0 (local `--help` reconciled against codex-cli 0.167.2 on 2026-11-17), learn.chatgpt.com/docs (Codex docs moved there from developers.openai.com/codex), and github.com/openai/codex. Note in 0.167.2: `--dangerously-bypass-hook-trust` skips persisted hook trust (do not infer containment) and `--add-dir` widens writable roots. Re-check `codex --help` if flags differ.
6
+
7
+ ## 1. Install, update, auth, models
8
+
9
+ - Install: `npm install -g @openai/codex`, `brew install --cask codex`, or the install.sh / install.ps1 scripts ([README](https://github.com/openai/codex)). Update: `codex update`. Health check: `codex doctor` (codex 0.163.0 --help).
10
+ - Sign in with ChatGPT: `codex login` (browser flow, default). Usage draws on the ChatGPT plan ([auth](https://learn.chatgpt.com/docs/auth)).
11
+ - API key: `printenv OPENAI_API_KEY | codex login --with-api-key`. API-key auth bills at standard API rates on the Platform account, not plan credits ([auth](https://learn.chatgpt.com/docs/auth)).
12
+ - `CODEX_API_KEY=<key> codex exec ...` overrides the key for one run; works with `codex exec`, `codex review`, the TS SDK, `codex exec-server --remote` ([non-interactive](https://learn.chatgpt.com/docs/non-interactive-mode)). Never export it job-wide in CI that runs repo code (same source).
13
+ - `codex login status` shows the active method; `codex logout` clears stored creds ([auth](https://learn.chatgpt.com/docs/auth)). Creds live in `~/.codex/auth.json` or the OS keyring ([config-advanced](https://learn.chatgpt.com/docs/config-file/config-advanced)).
14
+ - Model: `-m/--model`, config `model`. Effort: `model_reasoning_effort` = `low|medium|high|xhigh|max|ultra`, availability depends on model ([config-reference](https://learn.chatgpt.com/docs/config-file/config-reference)). Docs recommend `gpt-6.1-sol` when the account has access; `gpt-6-luna` for fast scans ([subagents](https://learn.chatgpt.com/docs/agent-configuration/subagents)). `codex debug models` dumps the catalog (codex 0.163.0 --help).
15
+ - Profiles: `-p/--profile NAME` layers `~/.codex/NAME.config.toml` (top-level keys, not `[profiles.NAME]`) over `~/.codex/config.toml` ([config-advanced](https://learn.chatgpt.com/docs/config-file/config-advanced)).
16
+ - `CODEX_HOME` relocates the whole home (default `~/.codex`) ([AGENTS.md doc](https://learn.chatgpt.com/docs/agent-configuration/agents-md)).
17
+
18
+ ## 2. AGENTS.md
19
+
20
+ - Global: `$CODEX_HOME/AGENTS.override.md` if non-empty, else `$CODEX_HOME/AGENTS.md`; first non-empty only ([AGENTS.md doc](https://learn.chatgpt.com/docs/agent-configuration/agents-md)).
21
+ - Project: walk from project root (Git root, or `project_root_markers`) down to cwd. Per directory take at most one of `AGENTS.override.md`, `AGENTS.md`, then names in `project_doc_fallback_filenames` (same source; [config-reference](https://learn.chatgpt.com/docs/config-file/config-reference)).
22
+ - Concatenated root to leaf; deeper files appear later and win. Empty files skipped. Stops at `project_doc_max_bytes` (default 32 KiB) combined ([AGENTS.md doc](https://learn.chatgpt.com/docs/agent-configuration/agents-md)).
23
+ - Built once per run / TUI session. Edit AGENTS.md, then start a new session ([AGENTS.md doc](https://learn.chatgpt.com/docs/agent-configuration/agents-md)).
24
+ - `CLAUDE.md` is NOT read unless listed in `project_doc_fallback_filenames`, and fallbacks only apply where no `AGENTS.md` exists in that directory [inference from the per-directory order above].
25
+ - `## Code Review Rules` sections in AGENTS.md steer Codex GitHub review ([AGENTS.md doc](https://learn.chatgpt.com/docs/agent-configuration/agents-md)).
26
+ - Subagents are spawned threads of the same session and inherit the parent's skills, MCP servers, sandbox and approvals ([subagents](https://learn.chatgpt.com/docs/agent-configuration/subagents)). Whether they re-read AGENTS.md is not documented [unverified]; restate critical rules in the spawn prompt.
27
+
28
+ ## 3. Skills
29
+
30
+ - Format: folder with `SKILL.md` (frontmatter `name`, `description` required), optional `scripts/`, `references/`, `assets/`, `agents/openai.yaml`. Follows [agentskills.io](https://agentskills.io/specification) ([skills](https://learn.chatgpt.com/docs/build-skills)).
31
+ - Locations: `.agents/skills` in every dir from cwd up to repo root (REPO), `$HOME/.agents/skills` (USER), `/etc/codex/skills` (ADMIN), bundled SYSTEM skills `skill-creator`, `skill-installer` ([skills](https://learn.chatgpt.com/docs/build-skills)). Symlinked folders followed.
32
+ - `.codex/skills` and `~/.codex/skills` are not in the current location table; do not rely on them [unverified whether still scanned as legacy].
33
+ - Invoke: `$skill-name` in the prompt, or `/skills` picker. Implicit invocation matches `description` ([skills](https://learn.chatgpt.com/docs/build-skills)).
34
+ - Plugin skills are namespaced `plugin:skill`, e.g. `deepmodebot:deepmodebot` (observed via `codex debug prompt-input`, codex 0.163.0).
35
+ - No `disable-model-invocation` frontmatter. Equivalent: `agents/openai.yaml` with `policy: allow_implicit_invocation: false`; explicit `$skill` still works ([skills](https://learn.chatgpt.com/docs/build-skills)).
36
+ - Initial skills list uses at most 2% of context (8,000 chars if unknown); descriptions get shortened first. `skills.max_context_tokens` raises it to 10,000 ([skills](https://learn.chatgpt.com/docs/build-skills)). Front-load trigger words.
37
+ - Disable: `[[skills.config]]` with one selector (`path = ".../SKILL.md"` or `name = "..."`) and `enabled = false`; `[skills.bundled] enabled = false` drops system skills ([skills](https://learn.chatgpt.com/docs/build-skills)).
38
+ - Changes are picked up automatically; restart if not ([skills](https://learn.chatgpt.com/docs/build-skills)).
39
+
40
+ ## 4. Slash commands, custom prompts, plugins, marketplaces
41
+
42
+ - Custom prompts are deprecated. They live in `~/.codex/prompts/*.md` (top level only), invoked as `/prompts:<name>`, with `$1..$9`, `$ARGUMENTS`, named `$KEY` placeholders ([custom prompts](https://learn.chatgpt.com/docs/custom-prompts)). Not repo-shareable. Use skills instead.
43
+ - Useful built-ins: `/skills`, `/plugins`, `/subagents`, `/agents`, `/plan`, `/review`, `/compact`, `/fork`, `/resume`, `/permissions`, `/status`, `/mcp`, `/hooks`, `/init`, `/goal`, `/diff` ([developer commands](https://learn.chatgpt.com/docs/developer-commands)).
44
+ - Plugins bundle skills, MCP servers, hooks; IDE extension does not support plugins; CLI uses `/plugins` browser ([plugins](https://learn.chatgpt.com/docs/plugins)). Start a new session after install.
45
+ - CLI (codex 0.163.0 --help): `codex plugin marketplace add <path|owner/repo[@ref]|git-url> [--ref R] [--sparse PATH]`, `marketplace list|upgrade [name]|remove <name>`, `codex plugin list`, `codex plugin add PLUGIN@MARKETPLACE`, `codex plugin remove`.
46
+ - Marketplace files read: `$REPO_ROOT/.agents/plugins/marketplace.json`, legacy-compatible `$REPO_ROOT/.claude-plugin/marketplace.json`, `~/.agents/plugins/marketplace.json` ([build plugins](https://developers.openai.com/plugins/build/plugins)).
47
+ - Manifests: portable root `plugin.json` (Agent Plugins schema) preferred; `.codex-plugin/plugin.json` is a fallback; "legacy and Claude-compatible manifests" accepted ([build plugins](https://developers.openai.com/plugins/build/plugins)).
48
+ - Installed copies go to `~/.codex/plugins/cache/<marketplace>/<plugin>/<version>/`; enablement in config as `[plugins."<plugin>@<marketplace>"] enabled = true` ([build plugins](https://developers.openai.com/plugins/build/plugins)).
49
+ - Verified for this repo (codex 0.163.0, throwaway `CODEX_HOME`): `codex plugin marketplace add <deepmodebot checkout>` registers marketplace `deepmodebot` from `.claude-plugin/marketplace.json`; `codex plugin add deepmodebot@deepmodebot` installs the packaged plugin version (originally probed at 0.3.0; now ships all 12 skills under `plugins/deepmodebot/skills/`) and loads each skill as `deepmodebot:<skill>`.
50
+ - GitHub form, same flow: `codex plugin marketplace add TimothyVang/deepmodebot` then `codex plugin add deepmodebot@deepmodebot` [inference: shorthand documented, not run against GitHub].
51
+ - Claude `commands/*.md` inside the plugin (e.g. `/deepmodebot:deep`) are copied but are not surfaced as Codex slash commands [inference: no Codex doc maps plugin `commands/`; not seen in prompt input]. Use `$deepmodebot:deepmodebot` instead.
52
+ - Plugin hooks get `PLUGIN_ROOT`, `PLUGIN_DATA`, plus `CLAUDE_PLUGIN_ROOT`, `CLAUDE_PLUGIN_DATA`; they must be trusted before they run ([build plugins](https://developers.openai.com/plugins/build/plugins)).
53
+
54
+ ## 5. Agent tools
55
+
56
+ | Need | Codex tool / mechanism | Source |
57
+ | --- | --- | --- |
58
+ | Shell | shell command tool; hooks see it as `Bash` | [hooks](https://learn.chatgpt.com/docs/hooks) |
59
+ | Edit files | `apply_patch` (hook matcher aliases `Edit`, `Write`) | [hooks](https://learn.chatgpt.com/docs/hooks) |
60
+ | Plan / todo | plan tool; exec JSON emits plan-update items; `/plan` mode | [non-interactive](https://learn.chatgpt.com/docs/non-interactive-mode); tool name `update_plan` [unverified] |
61
+ | Ask user | `request_user_input`, only when listed for the turn (mainly Plan mode) | codex 0.163.0 `debug prompt-input` |
62
+ | Web search | `web_search`; config `web_search = "cached"` (default), `"live"` (= `--search`), `"indexed"`, `"disabled"` | [approvals & security](https://learn.chatgpt.com/docs/agent-approvals-security) |
63
+ | Images | `-i/--image FILE` on launch; view-image tool | codex 0.163.0 --help |
64
+ | Subagents | `spawn_agent`, `followup_task`, `send_message`, `wait_agent`, `interrupt_agent`, `list_agents` | codex 0.163.0 `debug prompt-input` |
65
+
66
+ - Subagents spawn only on explicit request from the user, AGENTS.md, or a skill ([subagents](https://learn.chatgpt.com/docs/agent-configuration/subagents)). So a skill saying "spawn a read-only explorer" is enough to trigger them.
67
+ - Built-in agents: `default`, `worker`, `explorer` (read-heavy) ([subagents](https://learn.chatgpt.com/docs/agent-configuration/subagents)).
68
+ - Custom agents: one TOML per agent in `~/.codex/agents/` or `.codex/agents/`; required `name`, `description`, `developer_instructions`; optional `model`, `model_reasoning_effort`, `model_reasoning_summary`, `model_verbosity`, `features.shell_tool = false` etc., `skills.config` ([subagents](https://learn.chatgpt.com/docs/agent-configuration/subagents)).
69
+ - `sandbox_mode`, `approval_policy`, `mcp_servers` in an agent file are ignored. A custom agent cannot be made read-only by sandbox; only by instructions or `features.shell_tool = false` ([subagents](https://learn.chatgpt.com/docs/agent-configuration/subagents)).
70
+ - `[agents]` config: `enabled`, `max_concurrent_threads_per_session` (legacy `max_threads`), `default_subagent_model`, `default_subagent_reasoning_effort` ([subagents](https://learn.chatgpt.com/docs/agent-configuration/subagents)).
71
+ - Prefer long `wait_agent` waits over polling; file edits by one agent are visible to all (codex 0.163.0 `debug prompt-input`).
72
+
73
+ ## 6. Sandbox and approvals
74
+
75
+ - `-s/--sandbox read-only|workspace-write|danger-full-access`; `-a/--ask-for-approval on-request|never` (codex 0.163.0 --help). `untrusted` policy is retired and can block startup ([approvals & security](https://learn.chatgpt.com/docs/agent-approvals-security)).
76
+ - `--full-auto` and `--yolo` are absent from 0.163.0 `--help`. Use `-s workspace-write -a on-request` ("Auto" preset) or `--approve-for-me` (auto-review in workspace-write) (codex 0.163.0 --help; [approvals & security](https://learn.chatgpt.com/docs/agent-approvals-security)).
77
+ - `--dangerously-bypass-approvals-and-sandbox`: no prompts, no sandbox; only inside external isolation (codex 0.163.0 --help).
78
+ - `approvals_reviewer = "user" | "auto_review"`; `approval_policy = { granular = {...} }` for per-category prompts ([config-reference](https://learn.chatgpt.com/docs/config-file/config-reference); [approvals & security](https://learn.chatgpt.com/docs/agent-approvals-security)).
79
+ - Network off by default in workspace-write; enable with `[sandbox_workspace_write] network_access = true` or a permission profile with `network.enabled = true` (+ `features.network_proxy = true` to enforce domains) ([approvals & security](https://learn.chatgpt.com/docs/agent-approvals-security)).
80
+ - Unversioned folders default to read-only; untrusted dirs may start read-only until trusted via `/permissions` ([approvals & security](https://learn.chatgpt.com/docs/agent-approvals-security)).
81
+ - Windows native sandbox: `windows.sandbox = "mxc" | "elevated" | "unelevated"`; MXC recommended, `unelevated` has weaker network isolation and no denied read paths ([Windows sandbox](https://learn.chatgpt.com/docs/windows/windows-sandbox); [config-reference](https://learn.chatgpt.com/docs/config-file/config-reference)). `codex sandbox [CMD]` runs a command under it (codex 0.163.0 --help).
82
+ - Subagents inherit the parent's live sandbox and approvals, including `/permissions` changes; a subagent needing new approval fails back to the parent ([subagents](https://learn.chatgpt.com/docs/agent-configuration/subagents)).
83
+
84
+ ## 7. Headless and automation
85
+
86
+ - `codex exec [PROMPT|-]` (alias `e`); stdin appended as `<stdin>` when both given (codex 0.163.0 --help). Default sandbox for exec is read-only ([non-interactive](https://learn.chatgpt.com/docs/non-interactive-mode)).
87
+ - Flags: `--json` (JSONL events `thread.started`, `turn.started|completed|failed`, `item.*`, `error`), `-o/--output-last-message FILE`, `--output-schema FILE`, `--ephemeral`, `--skip-git-repo-check`, `--ignore-user-config`, `--ignore-rules`, `-C DIR`, `--add-dir`, `--worktree` (codex 0.163.0 --help; [non-interactive](https://learn.chatgpt.com/docs/non-interactive-mode)).
88
+ - Chain runs: `codex exec resume --last "next step"` or `codex exec resume <SESSION_ID>`; `codex exec fork` (same sources).
89
+ - Git repo required unless `--skip-git-repo-check` ([non-interactive](https://learn.chatgpt.com/docs/non-interactive-mode)).
90
+ - Review: `codex review [--uncommitted | --base BRANCH | --commit SHA] [instructions]`; also `codex exec review` (codex 0.163.0 --help).
91
+ - Subscription billing in scripts: `codex exec` reuses the saved ChatGPT login by default; do not set `CODEX_API_KEY`/`OPENAI_API_KEY` ([non-interactive](https://learn.chatgpt.com/docs/non-interactive-mode)).
92
+ - GitHub Action: `openai/codex-action@v1` with `openai-api-key`, `prompt` or `prompt-file`, `output-file`, `codex-args`, `safety-strategy` (Windows runners need `unsafe`) ([GitHub Action](https://learn.chatgpt.com/docs/github-action)).
93
+ - SDK: `npm install @openai/codex-sdk`; `new Codex().startThread().run(prompt)`, `resumeThread(id, { sandboxMode })` ([SDK](https://learn.chatgpt.com/docs/codex-sdk)).
94
+ - Cloud: `codex cloud exec --env ENV_ID [--attempts N] [--branch B] "task"`, `codex cloud list|status|diff|apply` (codex 0.163.0 --help).
95
+
96
+ ## 8. config.toml
97
+
98
+ - User `~/.codex/config.toml`; project `.codex/config.toml` from root down to cwd (trusted projects only); precedence: CLI flags and `-c key=value` > project > profile > user > cloud-managed > `/etc/codex/config.toml` > defaults ([config-basic](https://learn.chatgpt.com/docs/config-file/config-basic)).
99
+ - Trust: `[projects."/abs/path"] trust_level = "trusted" | "untrusted"`; untrusted skips project `.codex/` config, hooks, rules ([config-reference](https://learn.chatgpt.com/docs/config-file/config-reference)).
100
+ - Project-local config ignores provider, `notify`, `profile(s)`, `otel` keys; put them in user config ([config-reference](https://learn.chatgpt.com/docs/config-file/config-reference)).
101
+ - Features: `[features] name = true` or `--enable/--disable NAME`; list with `codex features list` (0.163.0 shows `multi_agent`, `hooks`, `plugins`, `goals`, `worktrees`, `memories` stable+on). `--strict-config` rejects unknown keys (codex 0.163.0 --help).
102
+ - `notify = ["cmd", ...]` gets a JSON payload ([config-reference](https://learn.chatgpt.com/docs/config-file/config-reference)).
103
+ - Hooks: `~/.codex/hooks.json`, `<repo>/.codex/hooks.json`, or inline `[hooks]` in either config.toml; all layers load; non-managed hooks need trust review. Events include `SessionStart`, `PreToolUse`, `PermissionRequest`, `PostToolUse`, `PreCompact`, `PostCompact`, `UserPromptSubmit`, `SubagentStop`, `Stop` ([hooks](https://learn.chatgpt.com/docs/hooks)).
104
+
105
+ ## 9. MCP and app server
106
+
107
+ - Add: `codex mcp add NAME [--env K=V] -- CMD ARGS` or `--url URL [--bearer-token-env-var VAR]`; also `list`, `get`, `remove`, `login`, `logout` (codex 0.163.0 --help). This writes user config; agents must not run it unasked.
108
+ - Config: `[mcp_servers.NAME]` with `command`, `args`, `env`, or `url`; `startup_timeout_sec` (10), `tool_timeout_sec` (60), `enabled`, `required`, `enabled_tools`, `disabled_tools`, `default_tools_approval_mode = auto|prompt|writes|approve` ([MCP](https://learn.chatgpt.com/docs/extend/mcp)).
109
+ - MCP tool names in hooks: `mcp__<server>__<tool>` ([hooks](https://learn.chatgpt.com/docs/hooks)).
110
+ - `codex mcp-server` is removed; Codex is no longer an MCP server ([MCP server removal](https://learn.chatgpt.com/docs/mcp-server)).
111
+ - Integrations use `codex app-server` (experimental): JSON-RPC 2.0 over stdio JSONL (default), `ws://`, or `unix://`; `generate-ts`, `generate-json-schema` emit bindings ([app server](https://learn.chatgpt.com/docs/app-server); codex 0.163.0 --help).
112
+
113
+ ## 10. ACP
114
+
115
+ - Codex has no native ACP mode. Use the adapter `@agentclientprotocol/codex-acp` ([agentclientprotocol/codex-acp](https://github.com/agentclientprotocol/codex-acp)), built on the app server; the older `@zed-industries/codex-acp` repo points there ([zed-industries/codex-acp](https://github.com/zed-industries/codex-acp)).
116
+ - Adapter maps model, effort, approval, sandbox, permission profiles, plan, MCP, subagent sessions; auth via ChatGPT, `CODEX_API_KEY`, or `OPENAI_API_KEY` (same sources). Zed: Agent Panel, "New Codex Thread".
117
+
118
+ ## 11. Sessions
119
+
120
+ - Resume: `codex resume [ID|name] [--last] [--all] [--include-non-interactive]`; fork: `codex fork [ID] [--last]`; `codex archive|unarchive|delete <id|name>`; `codex queue` posts to a running session (codex 0.163.0 --help).
121
+ - TUI: `/resume`, `/fork`, `/compact` (summarize to free context), `/new` ([developer commands](https://learn.chatgpt.com/docs/developer-commands)).
122
+ - Worktrees: `--worktree` starts in a new managed Git worktree; TUI command offers "Browse worktrees" (codex 0.163.0 --help; [developer commands](https://learn.chatgpt.com/docs/developer-commands)). Managed worktree path is not documented [unverified].
123
+ - `codex apply` git-applies the latest agent diff; `codex cloud apply` applies a cloud task diff (codex 0.163.0 --help).
124
+
125
+ ## Containing writes to the project root
126
+
127
+ - Write boundary: `workspace-write` permits writes in the workspace, which by default ALSO includes temp dirs like `/tmp` ([approvals & security](https://learn.chatgpt.com/docs/agent-approvals-security)). `/status` lists the writable dirs.
128
+ - Exclude temp: `[sandbox_workspace_write] exclude_tmpdir_env_var = true` and `exclude_slash_tmp = true` ([config-reference](https://learn.chatgpt.com/docs/config-file/config-reference)). Windows `%TEMP%` handling is not documented [unverified]; check `/status`.
129
+ - Extra roots: `--add-dir DIR` (codex 0.163.0 --help) and `sandbox_workspace_write.writable_roots = [...]` ([config-reference](https://learn.chatgpt.com/docs/config-file/config-reference)). Do not add any for contained work.
130
+ - Permission profiles (alternative to `sandbox_mode`, don't combine): `default_permissions = "contained"`, `[permissions.contained] extends = ":workspace"`, then `[permissions.contained.filesystem.":workspace_roots"]` path rules `"." = "write"`, `"**/*.env" = "deny"` ([permissions](https://learn.chatgpt.com/docs/permissions); [config-reference](https://learn.chatgpt.com/docs/config-file/config-reference)).
131
+ - Special path keys: `:workspace_roots`, `:tmpdir`, `:slash_tmp`, `:minimal`, `:root`, absolute and `~/` paths. Narrower `deny` wins inside the profile ([permissions](https://learn.chatgpt.com/docs/permissions)). Whether `:workspace` already grants `:tmpdir` write is not stated [unverified]; set temp keys to `"read"` explicitly.
132
+ - Protected even inside roots: `.git` (and resolved gitdir), `.agents`, `.codex`, `.aws` are read-only under workspace-write ([approvals & security](https://learn.chatgpt.com/docs/agent-approvals-security)). Commits from inside the sandbox need approval [inference].
133
+ - Outside-root writes under `-a on-request` trigger an approval prompt; under `-a never` they fail ([approvals & security](https://learn.chatgpt.com/docs/agent-approvals-security)).
134
+ - Hook guard: `PreToolUse` with matcher `apply_patch` (aliases `Edit`, `Write`) or `Bash`; target path is inside `tool_input.command` (the patch text or shell string), not a separate field. Parse `*** Add/Update/Delete File:` lines [inference on patch format].
135
+ - Deny by stdout `{"hookSpecificOutput":{"hookEventName":"PreToolUse","permissionDecision":"deny","permissionDecisionReason":"..."}}`, or exit code 2 with reason on stderr ([hooks](https://learn.chatgpt.com/docs/hooks)). `"ask"` is unsupported and lets the call through.
136
+ - Codex's own state, not yours: `$CODEX_HOME` (`~/.codex`) holds `config.toml`, `auth.json`, `history.jsonl`, `log/` (`log_dir`), SQLite state (`sqlite_home`), `sessions/YYYY/...`, `plugins/cache/`, `.tmp/`, `tmp/` ([config-advanced](https://learn.chatgpt.com/docs/config-file/config-advanced); [config-reference](https://learn.chatgpt.com/docs/config-file/config-reference); local listing). `--ephemeral` skips session files (codex 0.163.0 --help).
137
+
138
+ ## Traps for deepmodebot
139
+
140
+ - `task` with `agent: "scout"` / `reviewer`: no such tool. Say in prose "spawn an explorer subagent" (built-in `explorer`) or define `.codex/agents/reviewer.toml`. Read-only is instruction-only; sandbox is inherited, so a "read-only scout" can still write.
141
+ - `todo`: use the plan tool / `/plan`. `ask`: `request_user_input` exists only in Plan mode; in Default mode end the turn with the question. In `codex exec` nobody answers: decide and record the assumption.
142
+ - `skill://deepmodebot/...` paths do not resolve. Read files by real path relative to the skill folder; Codex shows each skill's file path in its skill list.
143
+ - `/skill:<name>` and `/deepmodebot:deep` do not exist. Use `$deepmodebot:deepmodebot` (plugin install) or `$deepmodebot` (folder in `.agents/skills`).
144
+ - `.omp/skills/verify-<app>/` is not discovered. Put project verify skills in `.agents/skills/verify-<app>/`. Note `.agents` is read-only to the sandbox, so creating one needs approval.
145
+ - `.omp/RULES.md` is never loaded. Put subagent rules in AGENTS.md and restate them in each spawn prompt.
146
+ - `omp -p` scripted calls: use `codex exec -s read-only --ephemeral -o out.txt "..."` on the saved ChatGPT login. Never set `OPENAI_API_KEY`/`CODEX_API_KEY` (switches to API billing).
147
+ - `local://` artifacts do not exist. Write to a gitignored dir inside the repo (not `/tmp`, which deepmodebot forbids even though Codex allows it).
148
+ - Spawning: Codex only spawns on explicit instruction, and slots are capped (4 observed). Fan out in waves; do not assume omp's 32.
149
+ - Plugin install edits `~/.codex/config.toml`; never run `codex plugin add`, `codex mcp add`, `codex login` on the user's behalf.
150
+ - `CLAUDE.md`-only repos give Codex no project instructions. Add `AGENTS.md` (or `project_doc_fallback_filenames = ["CLAUDE.md"]` in user config, with consent).
151
+ - Hooks in `.codex/hooks.json` do not run until the user trusts them; do not assume a containment hook is active. Check `/hooks`.