devworkspace 0.5.0 → 0.5.2

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 (384) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/README.md +57 -509
  3. package/dist/agents/claude/adapter.js +0 -1
  4. package/dist/agents/claude/content.js +0 -1
  5. package/dist/agents/codex/adapter.js +0 -1
  6. package/dist/agents/copilot/adapter.js +0 -1
  7. package/dist/agents/cursor/adapter.js +0 -1
  8. package/dist/agents/index.js +0 -1
  9. package/dist/agents/shared.js +0 -1
  10. package/dist/agents/types.js +0 -1
  11. package/dist/cli/args.d.ts +16 -0
  12. package/dist/cli/args.js +5 -1
  13. package/dist/cli/help.js +59 -17
  14. package/dist/cli/main.js +0 -1
  15. package/dist/cli/prompt.d.ts +15 -0
  16. package/dist/cli/prompt.js +113 -0
  17. package/dist/cli/render.d.ts +10 -0
  18. package/dist/cli/render.js +174 -4
  19. package/dist/cli/run.d.ts +3 -0
  20. package/dist/cli/run.js +366 -17
  21. package/dist/config/feature-gate.d.ts +15 -0
  22. package/dist/config/feature-gate.js +77 -0
  23. package/dist/config/feature-registry.d.ts +49 -0
  24. package/dist/config/feature-registry.js +451 -0
  25. package/dist/config/schemas.js +0 -1
  26. package/dist/config/settings.d.ts +54 -0
  27. package/dist/config/settings.js +293 -0
  28. package/dist/config/validate.js +0 -1
  29. package/dist/core/artifacts.js +0 -1
  30. package/dist/core/contracts.js +0 -1
  31. package/dist/core/migrations.js +0 -1
  32. package/dist/core/version.js +0 -1
  33. package/dist/core/versioned.js +0 -1
  34. package/dist/core/workspace.d.ts +1 -0
  35. package/dist/core/workspace.js +1 -1
  36. package/dist/decisions/decision.js +0 -1
  37. package/dist/discovery/cache.js +0 -1
  38. package/dist/discovery/commands.js +0 -1
  39. package/dist/discovery/detect.js +0 -1
  40. package/dist/discovery/docs.js +0 -1
  41. package/dist/discovery/entrypoints.js +0 -1
  42. package/dist/discovery/ignore.js +0 -1
  43. package/dist/discovery/scan.js +0 -1
  44. package/dist/discovery/types.js +0 -1
  45. package/dist/dx/dashboard.js +2 -1
  46. package/dist/dx/guidance.js +0 -1
  47. package/dist/dx/guided-setup.d.ts +102 -0
  48. package/dist/dx/guided-setup.js +508 -0
  49. package/dist/dx/index.js +0 -1
  50. package/dist/dx/onboarding.js +0 -1
  51. package/dist/dx/types.js +0 -1
  52. package/dist/errors/index.js +0 -1
  53. package/dist/features/schema.js +0 -1
  54. package/dist/features/types.js +0 -1
  55. package/dist/features/validate.js +0 -1
  56. package/dist/git/git.js +0 -1
  57. package/dist/index.d.ts +15 -5
  58. package/dist/index.js +10 -2
  59. package/dist/integrations/adapters/agent-skills.js +0 -1
  60. package/dist/integrations/adapters/claudePlugin.js +0 -1
  61. package/dist/integrations/adapters/graphify.js +0 -1
  62. package/dist/integrations/adapters/omniroute.js +0 -1
  63. package/dist/integrations/adapters/pluginSkill.js +0 -1
  64. package/dist/integrations/adapters/ponytail.js +0 -1
  65. package/dist/integrations/exec.js +0 -1
  66. package/dist/integrations/index.js +0 -1
  67. package/dist/integrations/manager.d.ts +2 -1
  68. package/dist/integrations/manager.js +22 -3
  69. package/dist/integrations/notices.js +0 -1
  70. package/dist/integrations/persistentPath.js +0 -1
  71. package/dist/integrations/protect.js +0 -1
  72. package/dist/integrations/state.js +0 -1
  73. package/dist/integrations/types.d.ts +1 -1
  74. package/dist/integrations/types.js +1 -1
  75. package/dist/intelligence/agents/profiles.js +0 -1
  76. package/dist/intelligence/agents/registry.js +0 -1
  77. package/dist/intelligence/agents/types.js +0 -1
  78. package/dist/intelligence/observability/tracer.js +0 -1
  79. package/dist/intelligence/observability/types.js +0 -1
  80. package/dist/intelligence/orchestration/engine.d.ts +21 -3
  81. package/dist/intelligence/orchestration/engine.js +486 -48
  82. package/dist/intelligence/orchestration/lock-manager.js +0 -1
  83. package/dist/intelligence/orchestration/store.js +0 -1
  84. package/dist/intelligence/orchestration/types.d.ts +40 -2
  85. package/dist/intelligence/orchestration/types.js +2 -3
  86. package/dist/intelligence/routing/matcher.js +0 -1
  87. package/dist/intelligence/routing/router.js +0 -1
  88. package/dist/intelligence/routing/types.js +0 -1
  89. package/dist/intelligence/runtime/adk/adapter.js +21 -33
  90. package/dist/intelligence/runtime/adk/detector.js +0 -1
  91. package/dist/intelligence/runtime/auth-provider.d.ts +63 -0
  92. package/dist/intelligence/runtime/auth-provider.js +201 -0
  93. package/dist/intelligence/runtime/boundary.d.ts +142 -0
  94. package/dist/intelligence/runtime/boundary.js +845 -0
  95. package/dist/intelligence/runtime/changes.d.ts +59 -0
  96. package/dist/intelligence/runtime/changes.js +362 -0
  97. package/dist/intelligence/runtime/external.d.ts +1 -0
  98. package/dist/intelligence/runtime/external.js +38 -61
  99. package/dist/intelligence/runtime/native.js +23 -56
  100. package/dist/intelligence/runtime/types.d.ts +91 -1
  101. package/dist/intelligence/runtime/types.js +11 -2
  102. package/dist/intelligence/security/audit.js +8 -2
  103. package/dist/intelligence/security/policy.js +0 -1
  104. package/dist/intelligence/security/types.d.ts +8 -0
  105. package/dist/intelligence/security/types.js +0 -1
  106. package/dist/intelligence/skills/builtins.js +0 -1
  107. package/dist/intelligence/skills/loader.js +0 -1
  108. package/dist/intelligence/skills/registry.js +0 -1
  109. package/dist/intelligence/skills/types.js +0 -1
  110. package/dist/intelligence/verification/engine.d.ts +30 -8
  111. package/dist/intelligence/verification/engine.js +126 -21
  112. package/dist/intelligence/verification/reviewer.d.ts +18 -2
  113. package/dist/intelligence/verification/reviewer.js +356 -4
  114. package/dist/intelligence/verification/types.d.ts +71 -0
  115. package/dist/intelligence/verification/types.js +0 -1
  116. package/dist/knowledge/facts.js +0 -1
  117. package/dist/mcp/protocol.js +0 -1
  118. package/dist/mcp/server.js +38 -2
  119. package/dist/mcp/setup.js +5 -2
  120. package/dist/mcp/tools.js +0 -1
  121. package/dist/mcp/types.js +0 -1
  122. package/dist/mcp/verify.js +0 -1
  123. package/dist/portability/bundle.js +0 -1
  124. package/dist/prompts/onboarding.js +0 -1
  125. package/dist/prompts/refresh.js +0 -1
  126. package/dist/prompts/requirements.js +0 -1
  127. package/dist/security/files.js +0 -1
  128. package/dist/security/redact.js +0 -1
  129. package/dist/services/agent.js +2 -1
  130. package/dist/services/analysis.js +0 -1
  131. package/dist/services/common.js +0 -1
  132. package/dist/services/doctor.js +13 -2
  133. package/dist/services/drift.js +0 -1
  134. package/dist/services/features.js +5 -1
  135. package/dist/services/graph.js +4 -1
  136. package/dist/services/init.js +0 -1
  137. package/dist/services/integrations.d.ts +2 -1
  138. package/dist/services/integrations.js +29 -6
  139. package/dist/services/intelligence.d.ts +2 -2
  140. package/dist/services/intelligence.js +38 -36
  141. package/dist/services/knowledge.js +0 -1
  142. package/dist/services/migrate.js +0 -1
  143. package/dist/services/modules.d.ts +85 -0
  144. package/dist/services/modules.js +313 -0
  145. package/dist/services/portability.js +0 -1
  146. package/dist/services/records.js +5 -1
  147. package/dist/services/refresh.js +0 -1
  148. package/dist/services/reset.js +0 -1
  149. package/dist/services/settings.d.ts +36 -0
  150. package/dist/services/settings.js +102 -0
  151. package/dist/services/setup.d.ts +4 -5
  152. package/dist/services/setup.js +40 -28
  153. package/dist/services/standards.js +10 -1
  154. package/dist/services/status.js +0 -1
  155. package/dist/services/taskContext.js +0 -1
  156. package/dist/services/tasks.js +9 -1
  157. package/dist/services/verify.js +7 -2
  158. package/dist/sessions/session.js +0 -1
  159. package/dist/standards/acquisition/ingest.js +0 -1
  160. package/dist/standards/applicability/engine.js +0 -1
  161. package/dist/standards/builtin/code-quality.js +0 -1
  162. package/dist/standards/builtin/database-safety.js +0 -1
  163. package/dist/standards/builtin/index.js +0 -1
  164. package/dist/standards/builtin/security-baseline.js +0 -1
  165. package/dist/standards/builtin/testing-contracts.js +0 -1
  166. package/dist/standards/builtin/undo-kit.js +0 -1
  167. package/dist/standards/config/config.js +0 -1
  168. package/dist/standards/distribution/cache.d.ts +1 -0
  169. package/dist/standards/distribution/cache.js +199 -186
  170. package/dist/standards/distribution/index.js +0 -1
  171. package/dist/standards/distribution/keys.js +0 -1
  172. package/dist/standards/distribution/package.js +6 -1
  173. package/dist/standards/distribution/server.js +0 -1
  174. package/dist/standards/distribution/sync.d.ts +7 -2
  175. package/dist/standards/distribution/sync.js +41 -9
  176. package/dist/standards/distribution/types.js +0 -1
  177. package/dist/standards/engine/compliance.js +0 -1
  178. package/dist/standards/engine/engine.js +0 -1
  179. package/dist/standards/engine/reporter.js +0 -1
  180. package/dist/standards/index.js +0 -1
  181. package/dist/standards/registry/registry.js +0 -1
  182. package/dist/standards/schema/types.js +0 -1
  183. package/dist/standards/schema/validate.js +0 -1
  184. package/dist/standards/templates/index.js +0 -1
  185. package/dist/standards/validators/database.js +0 -1
  186. package/dist/standards/validators/quality.js +0 -1
  187. package/dist/standards/validators/registry.js +0 -1
  188. package/dist/standards/validators/security.js +0 -1
  189. package/dist/standards/validators/testing.js +0 -1
  190. package/dist/standards/validators/types.js +0 -1
  191. package/dist/standards/validators/undo-kit.js +0 -1
  192. package/dist/tasks/routing.js +0 -1
  193. package/dist/tasks/task.js +0 -1
  194. package/dist/utils/cleanup.js +0 -1
  195. package/dist/utils/fs.js +0 -1
  196. package/dist/utils/lock.js +92 -49
  197. package/dist/utils/logger.js +0 -1
  198. package/dist/utils/paths.js +0 -1
  199. package/dist/utils/proc.d.ts +12 -0
  200. package/dist/utils/proc.js +106 -44
  201. package/dist/verification/safety.js +0 -1
  202. package/dist/verification/scope.js +0 -1
  203. package/docs/agents.md +15 -0
  204. package/docs/architecture/global-standards-architecture.md +287 -0
  205. package/docs/archive/global-standards/GLOBAL_STANDARDS_AUDIT.md +99 -0
  206. package/docs/archive/global-standards/GLOBAL_STANDARDS_FINAL_STATUS.md +138 -0
  207. package/docs/archive/global-standards/GLOBAL_STANDARDS_IMPLEMENTATION_PLAN.md +100 -0
  208. package/docs/archive/global-standards/GLOBAL_STANDARDS_INDEPENDENT_AUDIT.md +219 -0
  209. package/docs/archive/global-standards/GLOBAL_STANDARDS_SECURITY_REPORT.md +184 -0
  210. package/docs/configuration.md +67 -0
  211. package/docs/contributing.md +15 -5
  212. package/docs/development/EXECUTION_STATE.md +50 -0
  213. package/docs/features.md +80 -0
  214. package/docs/getting-started.md +69 -111
  215. package/docs/guides/global-standards-migration.md +100 -0
  216. package/docs/integrations.md +7 -0
  217. package/docs/mcp.md +13 -0
  218. package/docs/security/THIRD_PARTY_LICENSES.md +41 -0
  219. package/docs/security.md +8 -2
  220. package/docs/testing/FINAL_CORRECTION_AND_CLEANUP_REPORT.md +92 -0
  221. package/docs/testing/global-standards-real-project-tests.md +218 -0
  222. package/docs/testing/global-standards-test-report.md +89 -0
  223. package/docs/testing/global-standards-verification-matrix.md +174 -0
  224. package/docs/troubleshooting.md +3 -0
  225. package/package.json +1 -1
  226. package/dist/agents/claude/adapter.js.map +0 -1
  227. package/dist/agents/claude/content.js.map +0 -1
  228. package/dist/agents/codex/adapter.js.map +0 -1
  229. package/dist/agents/copilot/adapter.js.map +0 -1
  230. package/dist/agents/cursor/adapter.js.map +0 -1
  231. package/dist/agents/index.js.map +0 -1
  232. package/dist/agents/shared.js.map +0 -1
  233. package/dist/agents/types.js.map +0 -1
  234. package/dist/cli/args.js.map +0 -1
  235. package/dist/cli/help.js.map +0 -1
  236. package/dist/cli/main.js.map +0 -1
  237. package/dist/cli/render.js.map +0 -1
  238. package/dist/cli/run.js.map +0 -1
  239. package/dist/config/schemas.js.map +0 -1
  240. package/dist/config/validate.js.map +0 -1
  241. package/dist/core/artifacts.js.map +0 -1
  242. package/dist/core/contracts.js.map +0 -1
  243. package/dist/core/migrations.js.map +0 -1
  244. package/dist/core/version.js.map +0 -1
  245. package/dist/core/versioned.js.map +0 -1
  246. package/dist/core/workspace.js.map +0 -1
  247. package/dist/decisions/decision.js.map +0 -1
  248. package/dist/discovery/cache.js.map +0 -1
  249. package/dist/discovery/commands.js.map +0 -1
  250. package/dist/discovery/detect.js.map +0 -1
  251. package/dist/discovery/docs.js.map +0 -1
  252. package/dist/discovery/entrypoints.js.map +0 -1
  253. package/dist/discovery/ignore.js.map +0 -1
  254. package/dist/discovery/scan.js.map +0 -1
  255. package/dist/discovery/types.js.map +0 -1
  256. package/dist/dx/dashboard.js.map +0 -1
  257. package/dist/dx/guidance.js.map +0 -1
  258. package/dist/dx/index.js.map +0 -1
  259. package/dist/dx/onboarding.js.map +0 -1
  260. package/dist/dx/types.js.map +0 -1
  261. package/dist/errors/index.js.map +0 -1
  262. package/dist/features/schema.js.map +0 -1
  263. package/dist/features/types.js.map +0 -1
  264. package/dist/features/validate.js.map +0 -1
  265. package/dist/git/git.js.map +0 -1
  266. package/dist/index.js.map +0 -1
  267. package/dist/integrations/adapters/agent-skills.js.map +0 -1
  268. package/dist/integrations/adapters/claudePlugin.js.map +0 -1
  269. package/dist/integrations/adapters/graphify.js.map +0 -1
  270. package/dist/integrations/adapters/omniroute.js.map +0 -1
  271. package/dist/integrations/adapters/pluginSkill.js.map +0 -1
  272. package/dist/integrations/adapters/ponytail.js.map +0 -1
  273. package/dist/integrations/exec.js.map +0 -1
  274. package/dist/integrations/index.js.map +0 -1
  275. package/dist/integrations/manager.js.map +0 -1
  276. package/dist/integrations/notices.js.map +0 -1
  277. package/dist/integrations/persistentPath.js.map +0 -1
  278. package/dist/integrations/protect.js.map +0 -1
  279. package/dist/integrations/state.js.map +0 -1
  280. package/dist/integrations/types.js.map +0 -1
  281. package/dist/intelligence/agents/profiles.js.map +0 -1
  282. package/dist/intelligence/agents/registry.js.map +0 -1
  283. package/dist/intelligence/agents/types.js.map +0 -1
  284. package/dist/intelligence/observability/tracer.js.map +0 -1
  285. package/dist/intelligence/observability/types.js.map +0 -1
  286. package/dist/intelligence/orchestration/engine.js.map +0 -1
  287. package/dist/intelligence/orchestration/lock-manager.js.map +0 -1
  288. package/dist/intelligence/orchestration/store.js.map +0 -1
  289. package/dist/intelligence/orchestration/types.js.map +0 -1
  290. package/dist/intelligence/routing/matcher.js.map +0 -1
  291. package/dist/intelligence/routing/router.js.map +0 -1
  292. package/dist/intelligence/routing/types.js.map +0 -1
  293. package/dist/intelligence/runtime/adk/adapter.js.map +0 -1
  294. package/dist/intelligence/runtime/adk/detector.js.map +0 -1
  295. package/dist/intelligence/runtime/external.js.map +0 -1
  296. package/dist/intelligence/runtime/native.js.map +0 -1
  297. package/dist/intelligence/runtime/types.js.map +0 -1
  298. package/dist/intelligence/security/audit.js.map +0 -1
  299. package/dist/intelligence/security/policy.js.map +0 -1
  300. package/dist/intelligence/security/types.js.map +0 -1
  301. package/dist/intelligence/skills/builtins.js.map +0 -1
  302. package/dist/intelligence/skills/loader.js.map +0 -1
  303. package/dist/intelligence/skills/registry.js.map +0 -1
  304. package/dist/intelligence/skills/types.js.map +0 -1
  305. package/dist/intelligence/verification/engine.js.map +0 -1
  306. package/dist/intelligence/verification/reviewer.js.map +0 -1
  307. package/dist/intelligence/verification/types.js.map +0 -1
  308. package/dist/knowledge/facts.js.map +0 -1
  309. package/dist/mcp/protocol.js.map +0 -1
  310. package/dist/mcp/server.js.map +0 -1
  311. package/dist/mcp/setup.js.map +0 -1
  312. package/dist/mcp/tools.js.map +0 -1
  313. package/dist/mcp/types.js.map +0 -1
  314. package/dist/mcp/verify.js.map +0 -1
  315. package/dist/portability/bundle.js.map +0 -1
  316. package/dist/prompts/onboarding.js.map +0 -1
  317. package/dist/prompts/refresh.js.map +0 -1
  318. package/dist/prompts/requirements.js.map +0 -1
  319. package/dist/security/files.js.map +0 -1
  320. package/dist/security/redact.js.map +0 -1
  321. package/dist/services/agent.js.map +0 -1
  322. package/dist/services/analysis.js.map +0 -1
  323. package/dist/services/common.js.map +0 -1
  324. package/dist/services/doctor.js.map +0 -1
  325. package/dist/services/drift.js.map +0 -1
  326. package/dist/services/features.js.map +0 -1
  327. package/dist/services/graph.js.map +0 -1
  328. package/dist/services/init.js.map +0 -1
  329. package/dist/services/integrations.js.map +0 -1
  330. package/dist/services/intelligence.js.map +0 -1
  331. package/dist/services/knowledge.js.map +0 -1
  332. package/dist/services/migrate.js.map +0 -1
  333. package/dist/services/portability.js.map +0 -1
  334. package/dist/services/records.js.map +0 -1
  335. package/dist/services/refresh.js.map +0 -1
  336. package/dist/services/reset.js.map +0 -1
  337. package/dist/services/setup.js.map +0 -1
  338. package/dist/services/standards.js.map +0 -1
  339. package/dist/services/status.js.map +0 -1
  340. package/dist/services/taskContext.js.map +0 -1
  341. package/dist/services/tasks.js.map +0 -1
  342. package/dist/services/verify.js.map +0 -1
  343. package/dist/sessions/session.js.map +0 -1
  344. package/dist/standards/acquisition/ingest.js.map +0 -1
  345. package/dist/standards/applicability/engine.js.map +0 -1
  346. package/dist/standards/builtin/code-quality.js.map +0 -1
  347. package/dist/standards/builtin/database-safety.js.map +0 -1
  348. package/dist/standards/builtin/index.js.map +0 -1
  349. package/dist/standards/builtin/security-baseline.js.map +0 -1
  350. package/dist/standards/builtin/testing-contracts.js.map +0 -1
  351. package/dist/standards/builtin/undo-kit.js.map +0 -1
  352. package/dist/standards/config/config.js.map +0 -1
  353. package/dist/standards/distribution/cache.js.map +0 -1
  354. package/dist/standards/distribution/index.js.map +0 -1
  355. package/dist/standards/distribution/keys.js.map +0 -1
  356. package/dist/standards/distribution/package.js.map +0 -1
  357. package/dist/standards/distribution/server.js.map +0 -1
  358. package/dist/standards/distribution/sync.js.map +0 -1
  359. package/dist/standards/distribution/types.js.map +0 -1
  360. package/dist/standards/engine/compliance.js.map +0 -1
  361. package/dist/standards/engine/engine.js.map +0 -1
  362. package/dist/standards/engine/reporter.js.map +0 -1
  363. package/dist/standards/index.js.map +0 -1
  364. package/dist/standards/registry/registry.js.map +0 -1
  365. package/dist/standards/schema/types.js.map +0 -1
  366. package/dist/standards/schema/validate.js.map +0 -1
  367. package/dist/standards/templates/index.js.map +0 -1
  368. package/dist/standards/validators/database.js.map +0 -1
  369. package/dist/standards/validators/quality.js.map +0 -1
  370. package/dist/standards/validators/registry.js.map +0 -1
  371. package/dist/standards/validators/security.js.map +0 -1
  372. package/dist/standards/validators/testing.js.map +0 -1
  373. package/dist/standards/validators/types.js.map +0 -1
  374. package/dist/standards/validators/undo-kit.js.map +0 -1
  375. package/dist/tasks/routing.js.map +0 -1
  376. package/dist/tasks/task.js.map +0 -1
  377. package/dist/utils/cleanup.js.map +0 -1
  378. package/dist/utils/fs.js.map +0 -1
  379. package/dist/utils/lock.js.map +0 -1
  380. package/dist/utils/logger.js.map +0 -1
  381. package/dist/utils/paths.js.map +0 -1
  382. package/dist/utils/proc.js.map +0 -1
  383. package/dist/verification/safety.js.map +0 -1
  384. package/dist/verification/scope.js.map +0 -1
package/README.md CHANGED
@@ -1,556 +1,104 @@
1
1
  # DevWorkspace
2
2
 
3
- DevWorkspace is a **local-first engineering memory and verification layer** for software repositories. It provides AI coding agents (such as Claude Code, OpenAI Codex, Cursor, GitHub Copilot, and Google Antigravity) with a small, evidence-backed model of your project's architecture, verification commands, and safety boundaries—without sending your code to a third-party service, creating an account, or requiring an API key.
4
-
5
- ```bash
6
- cd my-project
7
- npx devworkspace setup --agent auto # detects your agent; or name it: claude-code | codex | antigravity | all
8
- ```
9
-
10
- One command initializes and analyzes the workspace if needed, writes the agent's MCP configuration, starts the MCP server and calls its tools to prove it works, and tells you exactly what is left (usually: reload the agent and approve the server). Requires Node.js 20.11+; see [Quick Start](#quick-start) for details, optional integrations and recovery.
11
-
12
- This is the same on Windows PowerShell, `cmd.exe`, macOS and Linux. It runs the **published** package; to try a local checkout instead, build it (`npm run build`) and run `node <checkout>/dist/cli/main.js setup --agent claude-code` inside the target project (an unpublished build is left unpinned in `.mcp.json`, so the agent will still start the latest *published* release unless you pass `--package-version`).
13
-
14
- `setup --agent … --no-verify` is configuration-only (for CI/offline) and says plainly that the server was not started.
15
-
16
- ---
17
-
18
- ## What Problem Does It Solve?
19
-
20
- AI coding sessions start cold. Agents repeatedly re-read the same directory trees, infer incorrect architectural assumptions, forget past decisions, run the wrong test suites, or claim tasks are complete while the build is failing.
21
-
22
- DevWorkspace solves this by:
23
- 1. **Storing durable knowledge, not code:** Captures facts, decisions, and verification contracts in `.devworkspace/`.
24
- 2. **Keeping context honest:** Tracks evidence sources, confidence ratings, and staleness so outdated assumptions are flagged.
25
- 3. **Establishing operating rules:** Injects progressive context loading, Git safety rules (preventing destructive resets), and verification gates into agent workflows.
26
-
27
- ---
28
-
29
- ## How It Works
30
-
31
- ```mermaid
32
- flowchart LR
33
- subgraph Local ["Your Local Machine"]
34
- Repo["Repository Code & Manifests"] --> DW["DevWorkspace (.devworkspace/)"]
35
- DW -->|"MCP stdio tools"| Agent["AI Coding Agent"]
36
- DW -->|"Markdown instructions"| Agent
37
- Agent -->|"Execute verification"| Gate["Tests, Lint & Typecheck"]
38
- end
39
- subgraph Cloud ["External AI Provider"]
40
- Agent -.->|"Context in prompts"| Model["Cloud LLM (Anthropic / OpenAI / Google)"]
41
- end
42
- ```
43
-
44
- 1. **Discover & Record:** Reads package manifests, configs, and file structure offline to construct a deterministic testing contract (`commands.json`) and discovery report.
45
- 2. **Equip the Agent:** Exposes project context either via the local **Model Context Protocol (MCP)** server or via **file-based instruction blocks** (`CLAUDE.md`, `AGENTS.md`, `.cursor/rules/`).
46
- 3. **Enforce Verification:** Holds the agent accountable to your real test suites, linters, and typecheckers before marking work complete.
3
+ DevWorkspace is a **local-first project context and verification workspace** that equips AI coding agents with accurate repository facts, test commands, and safety boundaries without sending your source code to external servers or requiring API keys.
47
4
 
48
5
  ---
49
6
 
50
7
  ## Quick Start
51
8
 
52
- Follow this end-to-end setup flow to initialize DevWorkspace, connect your AI coding agent, configure optional helper integrations, and verify your repository.
53
-
54
- ### Step 1: Prerequisites
55
-
56
- Before setting up DevWorkspace, verify the following system requirements:
57
-
58
- - **Node.js**: Version **20.11 or newer** (`node --version`). Supported across Windows, macOS, and Linux.
59
- - **Git**: Strongly recommended (`git --version`). DevWorkspace functions in non-Git folders, but Git is recommended for branch tracking, dirty file detection, and uncommitted change protection.
60
- - **AI Coding Agent**: A supported coding agent, such as **Claude Code**, **Cursor**, **GitHub Copilot**, **OpenAI Codex**, or **Google Antigravity**.
61
- - **Optional Integrations Prerequisites**: If you choose to install optional helper tools such as **Graphify**, you will need **Python 3.10+** (or `uv` / `pipx`). Python is **not** required for DevWorkspace core functionality, CLI commands, or MCP tools.
62
-
63
- ### Step 2: Core Initialization & Repository Analysis
64
-
65
- Navigate to your project root and run:
9
+ **1. Open your repository and run setup** (Node.js 20.11+; works identically on Windows, macOS, and Linux):
66
10
 
67
11
  ```bash
68
12
  cd my-project
69
- npx devworkspace init
70
- npx devworkspace analyze
13
+ npx devworkspace setup
71
14
  ```
72
15
 
73
- What these commands do:
74
- - **`devworkspace init`**: Creates the `.devworkspace/` directory and writes a nested `.gitignore` for machine-local state (`.devworkspace/local/`). It never touches your application source files and is completely safe to re-run.
75
- - **`devworkspace analyze`**: Scans package manifests, lockfiles, frameworks, entry points, and build scripts offline. It generates:
76
- - `.devworkspace/context/commands.json`: Your project's deterministic verification contract (test, lint, and typecheck commands).
77
- - `.devworkspace/context/facts.json`: Detected repository facts (ecosystems, package manager, frameworks).
78
- - `.devworkspace/analysis/onboarding-prompt.md`: An optional onboarding prompt you can paste into Claude Code to review findings and record baseline knowledge.
79
-
80
- ### Step 3: Configure Your Coding Agent (MCP and/or Instructions)
81
-
82
- DevWorkspace provides two distinct ways to equip coding agents with repository context. You can use either or both:
83
-
84
- 1. **Model Context Protocol (MCP)**: Exposes dynamic context retrieval tools over stdio to compatible agents (**Claude Code**, **OpenAI Codex**, **Google Antigravity**).
85
- 2. **File-Based Agent Instructions**: Injects managed Markdown operating rules into persistent instruction files for **Cursor**, **GitHub Copilot**, **OpenAI Codex**, and **Claude Code**.
86
-
87
- > [!NOTE]
88
- > Installing file-based agent instructions and configuring MCP are separate operations. Both can be configured in the same repository and coexist seamlessly without conflict.
89
-
90
- #### Option A: Configure MCP Server (Claude Code, Codex, Antigravity)
91
-
92
- Generate the agent's MCP configuration and rule references. DevWorkspace automatically detects whether to use direct execution or `npx` without requiring manual JSON edits:
16
+ **2. Pick a setup preset and coding agent:**
17
+ In an interactive terminal, DevWorkspace walks you through plain-language choices (`Minimal`, `Recommended`, `Full`, or `Custom`), previews every file and external action before writing, and asks to confirm. In scripts or non-interactive terminals, bare `devworkspace setup` persists `Minimal` deterministically by default, or accepts explicit flags:
93
18
 
94
19
  ```bash
95
- # For Claude Code (writes .mcp.json and managed section in CLAUDE.md)
96
- npx devworkspace setup --agent claude-code
97
-
98
- # For OpenAI Codex (writes .codex/config.toml and a managed section in AGENTS.md)
99
- npx devworkspace setup --agent codex
100
-
101
- # For Google Antigravity (user-level config: ~/.gemini/.../mcp_config.json)
102
- npx devworkspace setup --agent antigravity --user
103
-
104
- # Or configure all supported MCP agents at once:
105
- npx devworkspace setup --agent all
20
+ npx devworkspace setup --preset minimal --dry-run
21
+ npx devworkspace setup --preset recommended --agent claude-code
106
22
  ```
107
23
 
108
- *(Pass `--check` to preview planned file edits without modifying disk: `npx devworkspace setup --agent claude-code --check`. Override launcher mode if desired with `--launcher auto|direct|npx`).*
24
+ > Packaging note: DevWorkspace ships in one zero-runtime-dependency npm package. Presets and `devworkspace modules` control runtime activation, workspace files created, MCP tools exposed, and explicit external tool consent—not partial npm downloads.
109
25
 
110
- #### Option B: Install File-Based Agent Instructions (Cursor, Copilot, Codex, Claude)
26
+ **3. Connect or reload your coding agent (if configured):**
27
+ If you configured an MCP client (`Claude Code`, `Codex`, `Antigravity`) or installed skills, reload your editor/agent session when prompted and approve the local `devworkspace` server.
111
28
 
112
- Inject managed instruction blocks and workflow skills into your repository:
113
-
114
- ```bash
115
- # For Cursor (.cursor/rules/devworkspace.mdc)
116
- npx devworkspace agent install --agent cursor
117
-
118
- # For GitHub Copilot (.github/copilot-instructions.md)
119
- npx devworkspace agent install --agent copilot
120
-
121
- # For OpenAI Codex (AGENTS.md)
122
- npx devworkspace agent install --agent codex
123
-
124
- # For Claude Code (CLAUDE.md and .claude/skills/devworkspace/SKILL.md)
125
- npx devworkspace agent install --agent claude
126
-
127
- # Or install for all supported agents in one command:
128
- npx devworkspace agent install --agent all
129
- ```
130
-
131
- *(Pass `--dry-run` to preview changes: `npx devworkspace agent install --agent all --dry-run`.)*
132
-
133
- ### Step 4: Install Optional Helper Integrations (Optional)
134
-
135
- DevWorkspace can orchestrate external developer tools to expand your agent's capabilities:
136
- - **[Graphify](https://github.com/Graphify-Labs/graphify)**: Structural code knowledge graphs for call hierarchies, imports, and symbol dependencies.
137
- - **[Agent Skills](https://github.com/addyosmani/agent-skills)**: Workflows for spec drafting, implementation plans, and shipping checklists.
138
- - **[Ponytail](https://github.com/DietrichGebert/ponytail)**: Code quality review and complexity reduction.
139
-
140
- > [!TIP]
141
- > These integrations are **strictly optional**. DevWorkspace's core workspace, facts, verification contracts, and MCP tools function fully without them.
142
-
143
- Preview and install optional integrations:
144
-
145
- ```bash
146
- # Preview what would be installed without making changes
147
- npx devworkspace setup --integrations --dry-run
148
-
149
- # Install and verify optional integrations (requires explicit consent with --yes)
150
- npx devworkspace setup --integrations --yes
151
- ```
152
-
153
- *(You can limit installation to specific tools using `--only graphify` or `--only graphify,agent-skills`.)*
154
-
155
- ### Step 5: Agent Reload & Restart Requirements
156
-
157
- When DevWorkspace installs native plugins or skills for Claude Code (such as Graphify or Agent Skills), the agent's running process must load them into memory:
158
-
159
- 1. **Check for `RESTART_REQUIRED`**: If diagnostic output reports `RESTART_REQUIRED`, the integration files exist on disk, but the coding agent has not yet loaded them.
160
- 2. **Reload or Restart**:
161
- - In **Claude Code**: Run `/reload-plugins` inside your interactive session, or exit and restart the `claude` CLI.
162
- - In **VS Code / Cursor**: Restart the IDE window or reload the editor developer window (`Developer: Reload Window`).
163
- 3. **Acknowledge Restart in DevWorkspace**: Once the agent has been restarted, clear the pending notice:
164
- ```bash
165
- npx devworkspace integrations status --restarted
166
- ```
167
-
168
- *Note: File-on-disk presence is not proof of in-memory agent loading. Acknowledging the restart updates DevWorkspace's tracking so diagnostics report accurate statuses.*
169
-
170
- ### Step 6: Build the Graphify Project Graph (If Graphify is Installed)
171
-
172
- Installing the Graphify CLI and its project skill does **not** automatically build the project knowledge graph. Generating the graph is an explicit, model-driven operation:
173
-
174
- 1. **Open Claude Code**: Launch your interactive agent session in the repository:
175
- ```bash
176
- claude
177
- ```
178
- 2. **Execute Graph Generation**: Inside the Claude Code prompt, run:
179
- ```text
180
- /graphify .
181
- ```
182
- *Generating the graph uses the model to analyze ASTs, symbols, and relationships. It may take several minutes depending on repository size.*
183
-
184
- > [!IMPORTANT]
185
- > **If Claude Code reports `"/graphify" isn't installed in this session`:**
186
- > Claude Code indexes skills (`.claude/skills/`) and slash commands only when the session starts.
187
- > 1. **Ensure the project skill exists on disk:** If `npx devworkspace doctor` reports `X Claude skill: missing` or `DEGRADED (cli without project skill)`, run:
188
- > ```bash
189
- > npx devworkspace setup --integrations --yes
190
- > ```
191
- > *(This executes `graphify install --project` to generate `.claude/skills/graphify/SKILL.md` and configure hooks).*
192
- > 2. **Reload the session:** If your Claude Code session was already open when the skill was installed, reload it so the agent detects the new skill:
193
- > - In Claude Code, run: `/reload-plugins`
194
- > - Or restart your Claude Code session / restart VS Code.
195
- > 3. **Run `/graphify .` again** to generate the graph.
196
-
197
- 3. **Verify the Graph**: Exit back to your terminal and check graph status:
198
- ```bash
199
- npx devworkspace graph status
200
- ```
201
- When generated, DevWorkspace will display the graph location (`graphify-out/graph.json`), total node counts, and edge relationships. You can trace symbols with:
202
- ```bash
203
- npx devworkspace graph trace --from src/index.ts --depth 2
204
- ```
205
-
206
- **Fallback Guidance When Graphify is Not Used:**
207
- If Graphify is not installed or `graphify-out/graph.json` has not been built, DevWorkspace continues to operate normally. MCP tools like `trace_symbol_dependencies` gracefully detect the absence of the graph, notify the agent that the knowledge graph is unavailable, and provide direct file paths to inspect instead.
208
-
209
- ### Step 7: Verify Health and MCP Connectivity
210
-
211
- Run the comprehensive health check to verify your setup:
212
-
213
- ```bash
214
- npx devworkspace doctor
215
- ```
216
-
217
- And if you installed optional integrations:
218
-
219
- ```bash
220
- npx devworkspace integrations status
221
- ```
222
-
223
- **Verifying MCP Connectivity & Launcher Status:**
224
- - When an MCP agent is configured, `devworkspace doctor` automatically inspects `.mcp.json`, `mcp.json`, or `.antigravity/mcp.json` and verifies that the configured launcher executable (`devworkspace` or `npx`) can be resolved in your current environment:
225
- `✓ PASS Configured MCP launcher is resolvable (command)`
226
- - Inside your interactive coding agent session, verify end-to-end tool connectivity by invoking the built-in diagnostic tool:
227
- `check_mcp_health`
228
- - Or prompt your agent to inspect project architecture using:
229
- `"Use get_project_overview to inspect this project."`
230
-
231
- **Understanding the Output Terminology:**
232
- - **`Core workspace: READY`** (or `HEALTHY`): All core checks pass—`.devworkspace/` is valid, verification commands match manifests, agent instruction files are intact, and MCP launchers resolve.
233
- - **Integrations Statuses (reported independently from core)**:
234
- - **`VERIFIED`**: The tool was executed and all documented capabilities checked out.
235
- - **`NOT_INSTALLED`**: Optional integration is absent. This is normal if you did not install it.
236
- - **`RESTART_REQUIRED`**: Files installed; agent needs to be restarted or `/reload-plugins` executed.
237
- - **`PREREQUISITES_MISSING`**: Python 3.10+ or required tool missing; output provides exact remediation.
238
- - **`DEGRADED`**: Installed as portable fallback skills without native CLI hooks.
239
- - **Independent Readiness**: A healthy core workspace (`Core workspace: READY`) safely coexists with optional integrations that are `NOT_INSTALLED`. Missing optional integrations do **not** fail `devworkspace doctor`.
29
+ > Note: Running via `npx devworkspace` uses the latest published npm release; local source checkouts can run `node dist/cli/main.js setup`. Inspect or change your choices any time with `npx devworkspace settings`.
240
30
 
241
31
  ---
242
32
 
243
- ## Windows PowerShell Setup Example
244
-
245
- For Windows developers using PowerShell, here is the complete sequence of commands:
33
+ ## Setup Presets & Optional Tools
246
34
 
247
- ```powershell
248
- # 1. Navigate to your project folder (use your actual project path)
249
- Set-Location "C:\Projects\sample-app"
35
+ DevWorkspace never installs third-party packages or modifies user-global config files unless you explicitly choose and consent to them:
250
36
 
251
- # 2. Initialize and discover repository structure
252
- npx devworkspace init
253
- npx devworkspace analyze
37
+ | Preset | What It Configures | External Tools Installed |
38
+ |---|---|---|
39
+ | **Minimal** | Core `.devworkspace/` metadata, offline repository discovery, test contract, privacy boundaries, diagnostics | None |
40
+ | **Recommended** | Minimal + task & decision workflows + 1 detected or selected coding agent connection | None |
41
+ | **Full** | All built-in modules (`standards`, `feature` maps, `graph`, `orchestrate`, `dashboard`) + agent setup | Opt-in & `--yes` only |
42
+ | **Custom** | Choose individual built-in modules and optional integrations with dependency preview | Opt-in & `--yes` only |
254
43
 
255
- # 3. Configure your agent (choose MCP, file-based instructions, or both)
256
- # Option A: Configure MCP for Claude Code
257
- npx devworkspace setup --agent claude-code
258
-
259
- # Option B: Install instructions for Cursor, Copilot, Codex, or Claude
260
- npx devworkspace agent install --agent all
261
-
262
- # 4. Optional: Install Graphify, Agent Skills & Ponytail (requires Python 3.10+ / uv)
263
- npx devworkspace setup --integrations --yes
264
-
265
- # 5. Verify core health and integration status
266
- npx devworkspace doctor
267
- npx devworkspace integrations status
268
-
269
- # 6. If Graphify was installed, build the knowledge graph inside Claude Code:
270
- # NOTE: Run this inside an interactive Claude Code session, NOT in PowerShell!
271
- # claude
272
- # > /graphify .
273
-
274
- # 7. Acknowledge agent restart after reloading Claude Code
275
- npx devworkspace integrations status --restarted
276
- ```
277
-
278
- ### macOS & Linux Setup Example
279
-
280
- ```bash
281
- # 1. Navigate to your project folder
282
- cd ~/projects/sample-app
283
-
284
- # 2. Initialize and discover repository structure
285
- npx devworkspace init && npx devworkspace analyze
286
-
287
- # 3. Configure your agent (choose MCP, file-based instructions, or both)
288
- # Option A: Configure MCP for Claude Code
289
- npx devworkspace setup --agent claude-code
290
-
291
- # Option B: Install instructions for Cursor, Copilot, Codex, or Claude
292
- npx devworkspace agent install --agent all
293
-
294
- # 4. Optional: Install Graphify, Agent Skills & Ponytail (requires Python 3.10+ / uv)
295
- npx devworkspace setup --integrations --yes
296
-
297
- # 5. Verify core health, MCP launcher, and integration status
298
- npx devworkspace doctor
299
- npx devworkspace integrations status
300
-
301
- # 6. If Graphify was installed, build the knowledge graph inside Claude Code:
302
- # NOTE: Run this inside an interactive Claude Code session, not your terminal!
303
- # (If Claude Code was already open, run /reload-plugins first)
304
- # claude
305
- # > /graphify .
306
-
307
- # 7. Acknowledge agent restart after reloading Claude Code
308
- npx devworkspace integrations status --restarted
309
- ```
310
-
311
- ---
312
-
313
- ## Connecting Your Agent: Two Approaches
314
-
315
- DevWorkspace supports two ways to equip AI coding agents with project context. You can use either or both:
316
-
317
- | Capability | Approach A: Model Context Protocol (MCP) | Approach B: File-Based Instructions |
318
- | --- | --- | --- |
319
- | **How it works** | Runs a local stdio server exposing structured tools | Injects managed Markdown sections into instruction files |
320
- | **Target files** | `.mcp.json`, `mcp.json`, `.antigravity/mcp.json` | `CLAUDE.md`, `AGENTS.md`, `.cursor/rules/`, Copilot instructions |
321
- | **Context retrieval** | Agent invokes tools directly (`get_task_context`, etc.) | Agent reads rules and runs CLI commands (`devworkspace context`) |
322
- | **Best suited for** | Claude Code, OpenAI Codex, Google Antigravity | Cursor, GitHub Copilot, Codex, Claude Code |
323
- | **CLI command** | `devworkspace setup --agent <name>` | `devworkspace agent install --agent <name>` |
324
-
325
- ### Seamless Coexistence
326
- Both approaches can be used simultaneously in the same repository. DevWorkspace uses distinct HTML comment markers:
327
- - **Standard CLI rules:** `<!-- devworkspace:start -->` ... `<!-- devworkspace:end -->`
328
- - **MCP instructions:** `<!-- devworkspace-mcp:start -->` ... `<!-- devworkspace-mcp:end -->`
329
-
330
- Neither command will overwrite or interfere with the other, and custom developer notes outside the markers are preserved byte-for-byte.
331
-
332
- ---
333
-
334
- ## Model Context Protocol (MCP) Integration
335
-
336
- DevWorkspace includes a local-first Model Context Protocol (MCP 2024-11-05) server that enables compatible AI agents to query repository context dynamically over standard input/output (stdio).
337
-
338
- ### Agent Configuration Commands
339
-
340
- ```bash
341
- # Configure Claude Code (.mcp.json and CLAUDE.md)
342
- npx devworkspace setup --agent claude-code
343
-
344
- # Configure OpenAI Codex (.codex/config.toml and AGENTS.md)
345
- npx devworkspace setup --agent codex
346
-
347
- # Antigravity: user-level mcp_config.json with explicit --user opt-in (creates backup)
348
- npx devworkspace setup --agent antigravity --user
349
-
350
- # Configure all supported MCP agents at once
351
- npx devworkspace setup --agent all
352
-
353
- # Preview configuration changes without writing files (dry run)
354
- npx devworkspace setup --agent claude-code --check
355
-
356
- # Run the stdio MCP server directly
357
- devworkspace mcp serve
358
- ```
359
-
360
- ### What `setup --agent` does, and what it cannot verify
361
-
362
- `npx devworkspace setup --agent <claude-code|codex|antigravity|all|auto>` runs, in order: workspace initialization (only if missing) → launcher selection → config merge (other MCP servers and your own instructions are preserved; re-running is a no-op) → re-validation of the written JSON → a live start of the configured server (`initialize`, `tools/list`, `get_project_overview`, `get_task_context`). Each stage is reported separately. Use `--check` to preview without writing and `--no-verify` to skip the live start.
363
-
364
- That live check exercises the server **on its own**. Registration, approval and connection **inside your agent** cannot be verified from outside: Claude Code asks you to approve project-scoped servers (check with `/mcp`), and Codex/Antigravity need a restart to reload their configuration. If a stage fails, the report names it (launch, initialize, tools list, tool call, context) with the fix; setup is safe to re-run.
365
-
366
- ### Automatic Launcher Selection & CLI Flags
367
-
368
- When you configure an MCP agent via `npx devworkspace setup --agent <name>` (or `devworkspace mcp setup --agent <name>`), DevWorkspace automatically inspects your environment and selects the appropriate launcher strategy:
369
-
370
- - **Direct Global Binary (`command: "devworkspace"`, `args: ["mcp", "serve"]`):** Used when `devworkspace` is on `PATH`, is not running from a temporary npx cache, **and** reports the same version as the CLI you are running. A different installed version is not trusted; setup falls back to `npx`.
371
- - **npx Launcher (`command: "npx"`, `args: ["-y", "devworkspace", "mcp", "serve"]`):** Used when no matching executable is found. On Windows the entry is written as `cmd /c npx ...`, because clients cannot spawn `npx.cmd` directly.
372
- - The chosen launcher and the reason are printed by setup. No source-checkout paths are ever written to config.
373
-
374
- Supported CLI options for MCP configuration:
375
- - `--launcher auto`: Default automatic environment detection.
376
- - `--launcher direct`: Force direct executable launcher (`"command": "devworkspace"`).
377
- - `--launcher npx`: Force `npx` launcher (`"command": "npx"`).
378
- - `--package-version <version>`: Explicitly pin an npm package version in npx mode (e.g. `--package-version 0.4.3` produces `devworkspace@0.4.3`).
379
- - `--agent auto`: Configure agents detected from project files (`.claude/`, `CLAUDE.md`, `.mcp.json` → Claude Code; `.codex/`, `AGENTS.md` → Codex; `.antigravity/` → Antigravity guidance); defaults to Claude Code when nothing is detected.
380
- - `--user`: Explicitly authorize modifying user-level configuration (e.g. for Google Antigravity in `~/.gemini/antigravity/mcp_config.json`). Creates backups and validates JSON before writing.
381
- - `--no-verify`: Skip the live server start/handshake check.
382
- - `--check` (or `--dry-run`): Preview planned file changes without modifying disk.
383
-
384
- ### Available MCP Tools
385
-
386
- Once configured, the following tools are available to the agent:
387
-
388
- 1. **`get_project_overview`**: Returns the detected language stack, UI/backend frameworks, context health, and verification contract capabilities. Call at the start of a session or when exploring repository architecture.
389
- 2. **`get_task_context`**: Generates evidence-ranked, role-sliced context tailored to specific requests (`explorer` for entry points, `tester` for test contracts, `reviewer` for ADRs and security rules). Synthesizes ranked files to inspect, displays fact source paths, and shows verification statuses (`[VERIFIED]`, `[DETECTED]`, `[USER_DECISION]`, `[STALE]`).
390
- 3. **`get_file_context`**: Reads workspace-relative files bounded to 32KB (or bounded line ranges) with associated knowledge facts, mapped feature test suites, and governing ADRs. Enforces path containment, workspace ignore rules, and credential blocking.
391
- 4. **`check_mcp_health`**: Diagnoses MCP server readiness, workspace detection, context staleness, verification contract, and agent configuration marker integrity with actionable remediations.
392
- 5. **`explain_context`**: Explains the deterministic retrieval logic, matched query keywords, domain synonyms, role slicing, and selection reasons behind task-context retrieval.
393
- 6. **`trace_symbol_dependencies`**: Traces call hierarchies, imports, definitions, and relationships for functions, classes, and services using the project knowledge graph.
394
-
395
- ### Important Notes on MCP Usage
396
-
397
- - **Automatic Configuration:** Run `npx devworkspace setup --agent claude-code` to generate the Claude Code MCP configuration. DevWorkspace selects the appropriate launcher based on the available installation and runtime environment. Users should not need to edit `.mcp.json` manually for a standard supported setup.
398
- - **Verify Connectivity:** After configuration, restart or reload the coding agent if required. Confirm that the DevWorkspace MCP tools are available and call `check_mcp_health` to verify the connection.
399
- - **Tool Invocation:** Registering an MCP server makes its tools available; it does not guarantee that the AI agent will invoke them for every request. Ask the agent to use `get_project_overview` or `get_task_context` when you want to verify context retrieval.
400
- - **Client Compatibility:** Automated tests verify the MCP server and stdio protocol, but live tool invocation depends on the specific coding agent and its environment.
401
-
402
- For launcher troubleshooting and supported options, see [docs/mcp.md](docs/mcp.md).
403
-
404
- ### Where files are written
405
-
406
- DevWorkspace's own data lives in `.devworkspace/`. Agent files (`.mcp.json`, `CLAUDE.md`, `AGENTS.md`, `.claude/`) stay where agents look for them, and Graphify's `graphify-out/` stays at the project root because Graphify's own commands require it. Existing workspaces need no migration. Details: [docs/integrations.md](docs/integrations.md#where-generated-files-live).
407
-
408
- ---
409
-
410
- ## Daily Workflow
411
-
412
- When working with an AI agent in your repository:
413
-
414
- > *"Fix the invoice total rounding error in the billing service."*
415
- >
416
- > *"Add supplier management REST API endpoints."*
417
- >
418
- > *"Explain how tenant isolation middleware works."*
419
-
420
- The installed instructions direct the agent to follow a proportionate workflow:
421
- - **Questions:** Read-only inspection; runs no tests.
422
- - **Bug fixes:** Write a regression test first, implement the fix, and run verified checks.
423
- - **Refactoring:** Establish a passing test baseline before making modifications.
424
- - **Explicit constraints:** Constraints like *"only explain"*, *"don't commit"*, or *"no e2e"* are strictly respected.
425
-
426
- ### Common Daily Workflow Commands
427
-
428
- For everyday development with an AI agent:
429
-
430
- ```bash
431
- devworkspace status # Inspect workspace health, active tasks, and verification checks
432
- devworkspace context --for "<task>" # Retrieve role-tailored context for a specific request
433
- devworkspace doctor # Run diagnostic and portability checks
434
- devworkspace refresh # Re-check repository evidence after pulling or large edits
435
- ```
436
-
437
- ### Command Reference
438
-
439
- | Command | Summary | Guide |
440
- | --- | --- | --- |
441
- | `init` | Create `.devworkspace/` in the project (safe to re-run) | [Getting Started](docs/getting-started.md) |
442
- | `setup` | One-command setup: initialize, discover contracts, configure agents | [Getting Started](docs/getting-started.md) |
443
- | `analyze` | Deterministic repository discovery and onboarding analysis | [Architecture](docs/architecture.md) |
444
- | `status` | Concise health, Git branch, knowledge, and verification overview | [Getting Started](docs/getting-started.md) |
445
- | `doctor` | Workspace, security, portability, and integration diagnostics | [Troubleshooting](docs/troubleshooting.md) |
446
- | `context` | Task-aware context retrieval with optional role slicing | [Task Routing](docs/routing.md) |
447
- | `refresh` | Re-check repository evidence and mark stale knowledge | [Knowledge Model](docs/knowledge.md) |
448
- | `task` | Engineering task tracking with completion verification gate | [Testing Contract](docs/testing.md) |
449
- | `agent` | Manage agent instructions (`agent install`, `agent list`) | [Agent Integrations](docs/agents.md) |
450
- | `mcp` | Stdio Model Context Protocol server (`serve`) and agent setup (`setup`) | [MCP Guide](docs/mcp.md) |
451
- | `integrations` | Inspect and repair optional helper tools (Graphify, Skills, Ponytail) | [Integrations](docs/integrations.md) |
452
- | `fact` | Record, verify, list, or remove project facts with provenance | [Knowledge Model](docs/knowledge.md) |
453
- | `feature` | End-to-end feature map tracing across routes, services, and tests | [Getting Started](docs/getting-started.md) |
454
- | `graph` | Inspect, trace, and generate Graphify-compatible knowledge graphs | [Integrations](docs/integrations.md) |
455
- | `agents` | Specialist agent registry, capabilities, and health checks | [Agent Integrations](docs/agents.md) |
456
- | `skills` | Portable engineering skill discovery, validation, and installation | [Agent Integrations](docs/agents.md) |
457
- | `orchestrate` | Multi-agent execution planning, single-writer runs, and checkpoints | [Task Routing](docs/routing.md) |
458
- | `intelligence` | Unified status, diagnostics, and orchestration performance benchmarks | [Getting Started](docs/getting-started.md) |
459
- | `standards` | Global engineering standards, The Undo Kit, and automated compliance auditing | [Engineering Standards](docs/standards.md) |
460
- | `guide` | Adaptive onboarding & evidence-backed next-step guidance (`beginner`/`guided`/`professional`) | [Getting Started](docs/getting-started.md) |
461
- | `dashboard` | Generate an optional, local-only accessible HTML dashboard (zero telemetry) | [Getting Started](docs/getting-started.md) |
462
- | `decision` | Append-only architectural decision records (ADRs) | [Architecture](docs/architecture.md) |
463
- | `session` | Record concise session summaries (never transcripts) | [Getting Started](docs/getting-started.md) |
464
- | `testenv` | Declare local test environment for database-touching checks | [Testing Contract](docs/testing.md) |
465
- | `export` | Export portable project knowledge to a bundle | [Portability](docs/portability.md) |
466
- | `import` | Safely import an export bundle without silent overwrites | [Portability](docs/portability.md) |
467
- | `reset` | Reset `.devworkspace/` (optional `--include-agent-files`) | [Getting Started](docs/getting-started.md) |
468
- | `migrate` | Upgrade workspace files to current schema with backups | [Getting Started](docs/getting-started.md) |
469
-
470
- Global flags supported across commands: `--json`, `--cwd <dir>`, `--dry-run`, `--debug`, `--no-color`, `--ascii`.
471
-
472
- Exit codes: `0` success · `1` failure · `2` usage error · `3` warnings (with `--strict`) · `130`/`143` interrupted.
44
+ **Built-in core (always enabled):** `.devworkspace/` project files, secret redaction, safe path checks, and verification gates.
45
+ **Optional helper tools (external):** [Graphify](https://github.com/Graphify-Labs/graphify), [Agent Skills](https://github.com/addyosmani/agent-skills), [Ponytail](https://github.com/DietrichGebert/ponytail), and [OmniRoute](https://github.com/OmniRoute). Preview anytime with `npx devworkspace setup --integrations --dry-run`. See [docs/integrations.md](docs/integrations.md).
473
46
 
474
47
  ---
475
48
 
476
- ## Security, Privacy & Data Transmission
49
+ ## Supported Coding Agents
477
50
 
478
- DevWorkspace enforces defense-in-depth safety controls:
51
+ | Agent | Connection Style | Notes |
52
+ |---|---|---|
53
+ | **Claude Code** | Local stdio MCP + `CLAUDE.md` | Writes `.mcp.json` and managed `CLAUDE.md` section; tests server locally |
54
+ | **OpenAI Codex** | Local stdio MCP + `AGENTS.md` | Writes `.codex/config.toml` and managed `AGENTS.md` section |
55
+ | **Cursor** | Markdown rules | Writes `.cursor/rules/devworkspace.mdc` via `agent install --agent cursor` or wizard |
56
+ | **GitHub Copilot** | Markdown instructions | Writes `.github/copilot-instructions.md` via `agent install --agent copilot` or wizard |
57
+ | **Google Antigravity** | User-level stdio MCP | Shows manual steps by default; writes `~/.gemini/...` only with explicit user-scope consent |
479
58
 
480
- ### Local DevWorkspace Protections
481
- - **Zero Network Listeners:** DevWorkspace never opens HTTP or TCP ports. MCP runs strictly over local stdio child processes.
482
- - **No Telemetry or Cloud Accounts:** DevWorkspace does not collect analytics or transmit data to DevWorkspace servers.
483
- - **Credential Protection:** Credential files (`.env*`, `*.pem`, `*.key`, `id_rsa*`, tokens, keystores) are barred from reads. If an allowed source file contains API keys or tokens, patterns are automatically masked with `[REDACTED:<type>]`.
484
- - **Workspace Boundary Enforcement:** Paths are validated with canonical checks (`resolveInside`) and symlink escape verification (`assertNoSymlinkEscape`). Directory traversal (`..`) and absolute paths are rejected.
485
- - **Prompt-Injection Defense:** All retrieved context is demarcated with `=== BEGIN UNTRUSTED DEVWORKSPACE CONTEXT ===` headers, instructing the agent to treat repository content as untrusted evidence rather than executable instructions.
486
-
487
- ### AI Provider Notice
488
- When an AI coding agent invokes DevWorkspace MCP tools or reads project files, that context enters the agent's context window and is transmitted to the external cloud LLM provider powering that agent (such as Anthropic, OpenAI, or Google). DevWorkspace governs what leaves your local files, while your AI provider's terms and privacy policies govern data processed in their cloud.
489
-
490
- Full security and threat model: [docs/security.md](docs/security.md).
59
+ For comparison details and flags, see [docs/agents.md](docs/agents.md) and [docs/mcp.md](docs/mcp.md).
491
60
 
492
61
  ---
493
62
 
494
- ## Ecosystem & Helper Tools
63
+ ## Security & Privacy
495
64
 
496
- DevWorkspace decides *when and why* engineering workflows apply. It can optionally orchestrate external helper tools:
65
+ - **Zero network telemetry & zero accounts:** Core discovery, context retrieval, and MCP stdio communication run locally on your machine.
66
+ - **Credential protection:** `.env*`, `*.pem`, `*.key`, and keystores are excluded from reads; token patterns inside allowed files are masked (`[REDACTED:<type>]`).
67
+ - **Path & shell safety:** Canonical path checks reject directory traversal (`..`) and external symlink escapes; external commands require array execution without shells.
68
+ - **AI provider notice:** Context retrieved by your coding agent enters that agent's model context window under your AI provider's privacy terms.
497
69
 
498
- | Concern | Tool | Status |
499
- | --- | --- | --- |
500
- | Structural code understanding | [Graphify](https://github.com/Graphify-Labs/graphify) | Optional integration (`setup --integrations`) |
501
- | Engineering skill workflows | [Agent Skills](https://github.com/addyosmani/agent-skills) | Optional integration (`setup --integrations`) |
502
- | Code quality & debt review | [Ponytail](https://github.com/DietrichGebert/ponytail) | Optional integration (`setup --integrations`) |
503
- | Correctness & verification | **Your test suites** | Discovered deterministically in `commands.json` |
504
-
505
- Details on scopes, prerequisites, and integration health checks: [docs/integrations.md](docs/integrations.md).
70
+ Full details: [docs/security.md](docs/security.md) & [Third-Party Licenses](docs/security/THIRD_PARTY_LICENSES.md).
506
71
 
507
72
  ---
508
73
 
509
- ## Troubleshooting & Common Setup Issues
510
-
511
- | Symptom | Documented Resolution | Relevant Guide |
512
- | --- | --- | --- |
513
- | **Agent instructions missing** | Run `npx devworkspace agent install --agent <name>` (or `--agent all`) to generate managed instruction blocks (`CLAUDE.md`, `AGENTS.md`, `.cursor/rules/`, or Copilot rules). | [Agent Integrations](docs/agents.md) |
514
- | **MCP server or configuration missing** | Run `npx devworkspace setup --agent <name>` (or `npx devworkspace mcp setup --agent <name>`) to configure `.mcp.json`, `mcp.json`, or `.antigravity/mcp.json`. DevWorkspace automatically selects the direct binary or npx launcher without manual configuration. | [MCP Guide](docs/mcp.md) |
515
- | **`RESTART_REQUIRED` status** | Newly installed Claude Code plugins or skills must be loaded into memory. In Claude Code, run `/reload-plugins` or restart your CLI session. In IDEs, reload the window. Then acknowledge the restart with `npx devworkspace integrations status --restarted`. | [Integrations](docs/integrations.md) |
516
- | **Graphify CLI missing** | Install Python 3.10+ (or `uv` / `pipx`), then run `npx devworkspace setup --integrations --yes`. Alternatively, install Graphify directly via `uv tool install graphifyy` or `pipx install graphifyy`. | [Integrations](docs/integrations.md) |
517
- | **Graphify skill missing / `"/graphify" isn't installed in this session`** | If `doctor` reports `Claude skill: missing` or `DEGRADED (cli without project skill)`, run `npx devworkspace setup --integrations --yes` (or `npx devworkspace integrations repair --yes`) to install `.claude/skills/graphify/SKILL.md`. If Claude Code was already open, run `/reload-plugins` in Claude Code or restart the session before running `/graphify .`. | [Integrations](docs/integrations.md) |
518
- | **No graph built yet** | Run `npx devworkspace graph generate` for an instant offline fallback graph, or launch Claude Code (`claude`) and run `/graphify .` in the session. Verify the generated graph with `npx devworkspace graph status`. | [Integrations](docs/integrations.md) |
519
- | **Core workspace healthy but integrations incomplete** | Core workspace health (`Core workspace: READY`) and optional integration readiness are independent. Missing optional integrations (status `NOT_INSTALLED`) do not affect core DevWorkspace context, testing contracts, or MCP tools. | [Troubleshooting](docs/troubleshooting.md) |
74
+ ## Documentation & Advanced Commands
520
75
 
521
- ---
76
+ Start with the focused guides for deeper workflows:
77
+ - [Getting Started](docs/getting-started.md) — end-to-end walkthrough and non-interactive CI examples
78
+ - [Configuration & Settings](docs/configuration.md) — presets, `.devworkspace/settings.json`, and scope rules
79
+ - [Modular Features & Toggles](docs/features.md) — built-in module catalog, dependencies, and runtime gating
80
+ - [Coding Agents](docs/agents.md) & [MCP Server](docs/mcp.md) — per-agent details and verification
81
+ - [Optional Integrations](docs/integrations.md) — Graphify, Agent Skills, Ponytail, OmniRoute prerequisites
82
+ - [Knowledge](docs/knowledge.md), [Testing](docs/testing.md), [Standards](docs/standards.md), [Task Routing](docs/routing.md), [Architecture](docs/architecture.md), [Portability](docs/portability.md), [Benchmarking](docs/benchmarking.md), [Claude Code](docs/claude.md), and [Contributing](docs/contributing.md)
522
83
 
523
- ## Portability
84
+ All CLI commands remain available for scripting and advanced workflows (`devworkspace <command> --help`):
524
85
 
525
- Commit `.devworkspace/` to your version control system (machine-local files in `.devworkspace/local/` are ignored automatically). On another workstation, clone the repository and run `npx devworkspace doctor`. Project identity is managed via a UUID in `project.json` rather than hardcoded file paths, so repository paths can change without breaking project state. Full guide: [docs/portability.md](docs/portability.md).
86
+ | Category | Commands |
87
+ |---|---|
88
+ | Setup & settings | `setup`, `settings`, `modules`, `init`, `doctor`, `status` |
89
+ | Discovery & context | `analyze`, `refresh`, `context`, `fact`, `feature`, `graph` |
90
+ | Workflows & tasks | `task`, `decision`, `testenv`, `session`, `standards` |
91
+ | Agents & MCP | `mcp`, `agent`, `agents`, `skills`, `orchestrate`, `intelligence`, `integrations` |
92
+ | DX & maintenance | `guide`, `dashboard`, `export`, `import`, `migrate`, `reset` |
526
93
 
527
94
  ---
528
95
 
529
- ## Limitations
530
-
531
- - **Language Scope:** Manifest and command discovery supports Node.js, Python, Go, Rust, Java, and PHP projects.
532
- - **Client Environments:** Standard stdio protocol handling is verified via automated tests, but live interactive invocation depends on individual third-party agent desktop or CLI releases.
533
- - **Model Prerogative:** MCP tool availability does not force an agent to invoke a tool; invocation depends on model planning and prompt specificity.
534
- - **Integration Prerequisites:** Integrations like Graphify require Python 3.10+ or `uv` and explicit user authorization (`--yes`).
535
-
536
- ---
96
+ ## Troubleshooting
537
97
 
538
- ## Documentation
539
-
540
- - [Getting Started](docs/getting-started.md)
541
- - [Architecture & Design](docs/architecture.md)
542
- - [Model Context Protocol (MCP)](docs/mcp.md)
543
- - [Coding Agent Integrations](docs/agents.md)
544
- - [Knowledge & Context Model](docs/knowledge.md)
545
- - [Testing & Verification Contract](docs/testing.md)
546
- - [Security & Threat Model](docs/security.md)
547
- - [Integrations (Graphify, Skills, Ponytail)](docs/integrations.md)
548
- - [Claude Code Guide](docs/claude.md)
549
- - [Task Routing & Roles](docs/routing.md)
550
- - [Portability & Git](docs/portability.md)
551
- - [Benchmarking & Evaluation](docs/benchmarking.md)
552
- - [Troubleshooting Guide](docs/troubleshooting.md)
553
- - [Contributing](docs/contributing.md)
98
+ - **Re-configure or inspect choices:** `npx devworkspace settings` or `npx devworkspace setup --edit`
99
+ - **Reload needed (`RESTART_REQUIRED`):** Reload your coding agent (`/reload-plugins` in Claude Code) and run `npx devworkspace integrations status --restarted`
100
+ - **Workspace diagnostics:** `npx devworkspace doctor` (add `--fix` for missing safe directories)
101
+ - **Full recovery steps:** [docs/troubleshooting.md](docs/troubleshooting.md)
554
102
 
555
103
  ---
556
104
 
@@ -101,4 +101,3 @@ export const claudeAdapter = {
101
101
  },
102
102
  };
103
103
  export { mergeSection, removeManagedSection, SECTION_START, SECTION_END, SECTION_RE };
104
- //# sourceMappingURL=adapter.js.map
@@ -157,4 +157,3 @@ export function claudeSkill() {
157
157
  '',
158
158
  ].join('\n');
159
159
  }
160
- //# sourceMappingURL=content.js.map
@@ -58,4 +58,3 @@ export const codexAdapter = {
58
58
  ];
59
59
  },
60
60
  };
61
- //# sourceMappingURL=adapter.js.map