devworkspace 0.5.1 → 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.
- package/CHANGELOG.md +30 -2
- package/README.md +57 -509
- package/dist/agents/claude/adapter.js +0 -1
- package/dist/agents/claude/content.js +0 -1
- package/dist/agents/codex/adapter.js +0 -1
- package/dist/agents/copilot/adapter.js +0 -1
- package/dist/agents/cursor/adapter.js +0 -1
- package/dist/agents/index.js +0 -1
- package/dist/agents/shared.js +0 -1
- package/dist/agents/types.js +0 -1
- package/dist/cli/args.d.ts +16 -0
- package/dist/cli/args.js +5 -1
- package/dist/cli/help.js +59 -17
- package/dist/cli/main.js +0 -1
- package/dist/cli/prompt.d.ts +15 -0
- package/dist/cli/prompt.js +113 -0
- package/dist/cli/render.d.ts +10 -0
- package/dist/cli/render.js +174 -4
- package/dist/cli/run.d.ts +3 -0
- package/dist/cli/run.js +366 -17
- package/dist/config/feature-gate.d.ts +15 -0
- package/dist/config/feature-gate.js +77 -0
- package/dist/config/feature-registry.d.ts +49 -0
- package/dist/config/feature-registry.js +451 -0
- package/dist/config/schemas.js +0 -1
- package/dist/config/settings.d.ts +54 -0
- package/dist/config/settings.js +293 -0
- package/dist/config/validate.js +0 -1
- package/dist/core/artifacts.js +0 -1
- package/dist/core/contracts.js +0 -1
- package/dist/core/migrations.js +0 -1
- package/dist/core/version.js +0 -1
- package/dist/core/versioned.js +0 -1
- package/dist/core/workspace.d.ts +1 -0
- package/dist/core/workspace.js +1 -1
- package/dist/decisions/decision.js +0 -1
- package/dist/discovery/cache.js +0 -1
- package/dist/discovery/commands.js +0 -1
- package/dist/discovery/detect.js +0 -1
- package/dist/discovery/docs.js +0 -1
- package/dist/discovery/entrypoints.js +0 -1
- package/dist/discovery/ignore.js +0 -1
- package/dist/discovery/scan.js +0 -1
- package/dist/discovery/types.js +0 -1
- package/dist/dx/dashboard.js +2 -1
- package/dist/dx/guidance.js +0 -1
- package/dist/dx/guided-setup.d.ts +102 -0
- package/dist/dx/guided-setup.js +508 -0
- package/dist/dx/index.js +0 -1
- package/dist/dx/onboarding.js +0 -1
- package/dist/dx/types.js +0 -1
- package/dist/errors/index.js +0 -1
- package/dist/features/schema.js +0 -1
- package/dist/features/types.js +0 -1
- package/dist/features/validate.js +0 -1
- package/dist/git/git.js +0 -1
- package/dist/index.d.ts +15 -5
- package/dist/index.js +10 -2
- package/dist/integrations/adapters/agent-skills.js +0 -1
- package/dist/integrations/adapters/claudePlugin.js +0 -1
- package/dist/integrations/adapters/graphify.js +0 -1
- package/dist/integrations/adapters/omniroute.js +0 -1
- package/dist/integrations/adapters/pluginSkill.js +0 -1
- package/dist/integrations/adapters/ponytail.js +0 -1
- package/dist/integrations/exec.js +0 -1
- package/dist/integrations/index.js +0 -1
- package/dist/integrations/manager.d.ts +2 -1
- package/dist/integrations/manager.js +22 -3
- package/dist/integrations/notices.js +0 -1
- package/dist/integrations/persistentPath.js +0 -1
- package/dist/integrations/protect.js +0 -1
- package/dist/integrations/state.js +0 -1
- package/dist/integrations/types.d.ts +1 -1
- package/dist/integrations/types.js +1 -1
- package/dist/intelligence/agents/profiles.js +0 -1
- package/dist/intelligence/agents/registry.js +0 -1
- package/dist/intelligence/agents/types.js +0 -1
- package/dist/intelligence/observability/tracer.js +0 -1
- package/dist/intelligence/observability/types.js +0 -1
- package/dist/intelligence/orchestration/engine.d.ts +13 -4
- package/dist/intelligence/orchestration/engine.js +332 -54
- package/dist/intelligence/orchestration/lock-manager.js +0 -1
- package/dist/intelligence/orchestration/store.js +0 -1
- package/dist/intelligence/orchestration/types.d.ts +28 -1
- package/dist/intelligence/orchestration/types.js +0 -1
- package/dist/intelligence/routing/matcher.js +0 -1
- package/dist/intelligence/routing/router.js +0 -1
- package/dist/intelligence/routing/types.js +0 -1
- package/dist/intelligence/runtime/adk/adapter.js +1 -2
- package/dist/intelligence/runtime/adk/detector.js +0 -1
- package/dist/intelligence/runtime/auth-provider.d.ts +63 -0
- package/dist/intelligence/runtime/auth-provider.js +201 -0
- package/dist/intelligence/runtime/boundary.d.ts +118 -6
- package/dist/intelligence/runtime/boundary.js +720 -38
- package/dist/intelligence/runtime/changes.d.ts +59 -0
- package/dist/intelligence/runtime/changes.js +362 -0
- package/dist/intelligence/runtime/external.d.ts +1 -0
- package/dist/intelligence/runtime/external.js +9 -6
- package/dist/intelligence/runtime/native.js +0 -1
- package/dist/intelligence/runtime/types.d.ts +64 -2
- package/dist/intelligence/runtime/types.js +0 -1
- package/dist/intelligence/security/audit.js +8 -2
- package/dist/intelligence/security/policy.js +0 -1
- package/dist/intelligence/security/types.d.ts +8 -0
- package/dist/intelligence/security/types.js +0 -1
- package/dist/intelligence/skills/builtins.js +0 -1
- package/dist/intelligence/skills/loader.js +0 -1
- package/dist/intelligence/skills/registry.js +0 -1
- package/dist/intelligence/skills/types.js +0 -1
- package/dist/intelligence/verification/engine.d.ts +10 -2
- package/dist/intelligence/verification/engine.js +53 -9
- package/dist/intelligence/verification/reviewer.d.ts +18 -2
- package/dist/intelligence/verification/reviewer.js +356 -4
- package/dist/intelligence/verification/types.d.ts +60 -0
- package/dist/intelligence/verification/types.js +0 -1
- package/dist/knowledge/facts.js +0 -1
- package/dist/mcp/protocol.js +0 -1
- package/dist/mcp/server.js +38 -2
- package/dist/mcp/setup.js +5 -2
- package/dist/mcp/tools.js +0 -1
- package/dist/mcp/types.js +0 -1
- package/dist/mcp/verify.js +0 -1
- package/dist/portability/bundle.js +0 -1
- package/dist/prompts/onboarding.js +0 -1
- package/dist/prompts/refresh.js +0 -1
- package/dist/prompts/requirements.js +0 -1
- package/dist/security/files.js +0 -1
- package/dist/security/redact.js +0 -1
- package/dist/services/agent.js +2 -1
- package/dist/services/analysis.js +0 -1
- package/dist/services/common.js +0 -1
- package/dist/services/doctor.js +13 -2
- package/dist/services/drift.js +0 -1
- package/dist/services/features.js +5 -1
- package/dist/services/graph.js +4 -1
- package/dist/services/init.js +0 -1
- package/dist/services/integrations.d.ts +2 -1
- package/dist/services/integrations.js +29 -6
- package/dist/services/intelligence.d.ts +2 -2
- package/dist/services/intelligence.js +38 -36
- package/dist/services/knowledge.js +0 -1
- package/dist/services/migrate.js +0 -1
- package/dist/services/modules.d.ts +85 -0
- package/dist/services/modules.js +313 -0
- package/dist/services/portability.js +0 -1
- package/dist/services/records.js +5 -1
- package/dist/services/refresh.js +0 -1
- package/dist/services/reset.js +0 -1
- package/dist/services/settings.d.ts +36 -0
- package/dist/services/settings.js +102 -0
- package/dist/services/setup.d.ts +4 -5
- package/dist/services/setup.js +40 -28
- package/dist/services/standards.js +10 -1
- package/dist/services/status.js +0 -1
- package/dist/services/taskContext.js +0 -1
- package/dist/services/tasks.js +9 -1
- package/dist/services/verify.js +7 -2
- package/dist/sessions/session.js +0 -1
- package/dist/standards/acquisition/ingest.js +0 -1
- package/dist/standards/applicability/engine.js +0 -1
- package/dist/standards/builtin/code-quality.js +0 -1
- package/dist/standards/builtin/database-safety.js +0 -1
- package/dist/standards/builtin/index.js +0 -1
- package/dist/standards/builtin/security-baseline.js +0 -1
- package/dist/standards/builtin/testing-contracts.js +0 -1
- package/dist/standards/builtin/undo-kit.js +0 -1
- package/dist/standards/config/config.js +0 -1
- package/dist/standards/distribution/cache.js +0 -1
- package/dist/standards/distribution/index.js +0 -1
- package/dist/standards/distribution/keys.js +0 -1
- package/dist/standards/distribution/package.js +0 -1
- package/dist/standards/distribution/server.js +0 -1
- package/dist/standards/distribution/sync.js +0 -1
- package/dist/standards/distribution/types.js +0 -1
- package/dist/standards/engine/compliance.js +0 -1
- package/dist/standards/engine/engine.js +0 -1
- package/dist/standards/engine/reporter.js +0 -1
- package/dist/standards/index.js +0 -1
- package/dist/standards/registry/registry.js +0 -1
- package/dist/standards/schema/types.js +0 -1
- package/dist/standards/schema/validate.js +0 -1
- package/dist/standards/templates/index.js +0 -1
- package/dist/standards/validators/database.js +0 -1
- package/dist/standards/validators/quality.js +0 -1
- package/dist/standards/validators/registry.js +0 -1
- package/dist/standards/validators/security.js +0 -1
- package/dist/standards/validators/testing.js +0 -1
- package/dist/standards/validators/types.js +0 -1
- package/dist/standards/validators/undo-kit.js +0 -1
- package/dist/tasks/routing.js +0 -1
- package/dist/tasks/task.js +0 -1
- package/dist/utils/cleanup.js +0 -1
- package/dist/utils/fs.js +0 -1
- package/dist/utils/lock.js +92 -49
- package/dist/utils/logger.js +0 -1
- package/dist/utils/paths.js +0 -1
- package/dist/utils/proc.d.ts +8 -0
- package/dist/utils/proc.js +54 -46
- package/dist/verification/safety.js +0 -1
- package/dist/verification/scope.js +0 -1
- package/docs/architecture/global-standards-architecture.md +287 -0
- package/docs/archive/global-standards/GLOBAL_STANDARDS_AUDIT.md +99 -0
- package/docs/archive/global-standards/GLOBAL_STANDARDS_FINAL_STATUS.md +138 -0
- package/docs/archive/global-standards/GLOBAL_STANDARDS_IMPLEMENTATION_PLAN.md +100 -0
- package/docs/archive/global-standards/GLOBAL_STANDARDS_INDEPENDENT_AUDIT.md +219 -0
- package/docs/archive/global-standards/GLOBAL_STANDARDS_SECURITY_REPORT.md +184 -0
- package/docs/configuration.md +67 -0
- package/docs/contributing.md +15 -4
- package/docs/development/EXECUTION_STATE.md +50 -0
- package/docs/features.md +80 -0
- package/docs/getting-started.md +69 -111
- package/docs/guides/global-standards-migration.md +100 -0
- package/docs/integrations.md +7 -0
- package/docs/security/THIRD_PARTY_LICENSES.md +41 -0
- package/docs/testing/FINAL_CORRECTION_AND_CLEANUP_REPORT.md +92 -0
- package/docs/testing/global-standards-real-project-tests.md +218 -0
- package/docs/testing/global-standards-test-report.md +89 -0
- package/docs/testing/global-standards-verification-matrix.md +174 -0
- package/docs/troubleshooting.md +3 -0
- package/package.json +1 -1
- package/dist/agents/claude/adapter.js.map +0 -1
- package/dist/agents/claude/content.js.map +0 -1
- package/dist/agents/codex/adapter.js.map +0 -1
- package/dist/agents/copilot/adapter.js.map +0 -1
- package/dist/agents/cursor/adapter.js.map +0 -1
- package/dist/agents/index.js.map +0 -1
- package/dist/agents/shared.js.map +0 -1
- package/dist/agents/types.js.map +0 -1
- package/dist/cli/args.js.map +0 -1
- package/dist/cli/help.js.map +0 -1
- package/dist/cli/main.js.map +0 -1
- package/dist/cli/render.js.map +0 -1
- package/dist/cli/run.js.map +0 -1
- package/dist/config/schemas.js.map +0 -1
- package/dist/config/validate.js.map +0 -1
- package/dist/core/artifacts.js.map +0 -1
- package/dist/core/contracts.js.map +0 -1
- package/dist/core/migrations.js.map +0 -1
- package/dist/core/version.js.map +0 -1
- package/dist/core/versioned.js.map +0 -1
- package/dist/core/workspace.js.map +0 -1
- package/dist/decisions/decision.js.map +0 -1
- package/dist/discovery/cache.js.map +0 -1
- package/dist/discovery/commands.js.map +0 -1
- package/dist/discovery/detect.js.map +0 -1
- package/dist/discovery/docs.js.map +0 -1
- package/dist/discovery/entrypoints.js.map +0 -1
- package/dist/discovery/ignore.js.map +0 -1
- package/dist/discovery/scan.js.map +0 -1
- package/dist/discovery/types.js.map +0 -1
- package/dist/dx/dashboard.js.map +0 -1
- package/dist/dx/guidance.js.map +0 -1
- package/dist/dx/index.js.map +0 -1
- package/dist/dx/onboarding.js.map +0 -1
- package/dist/dx/types.js.map +0 -1
- package/dist/errors/index.js.map +0 -1
- package/dist/features/schema.js.map +0 -1
- package/dist/features/types.js.map +0 -1
- package/dist/features/validate.js.map +0 -1
- package/dist/git/git.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/integrations/adapters/agent-skills.js.map +0 -1
- package/dist/integrations/adapters/claudePlugin.js.map +0 -1
- package/dist/integrations/adapters/graphify.js.map +0 -1
- package/dist/integrations/adapters/omniroute.js.map +0 -1
- package/dist/integrations/adapters/pluginSkill.js.map +0 -1
- package/dist/integrations/adapters/ponytail.js.map +0 -1
- package/dist/integrations/exec.js.map +0 -1
- package/dist/integrations/index.js.map +0 -1
- package/dist/integrations/manager.js.map +0 -1
- package/dist/integrations/notices.js.map +0 -1
- package/dist/integrations/persistentPath.js.map +0 -1
- package/dist/integrations/protect.js.map +0 -1
- package/dist/integrations/state.js.map +0 -1
- package/dist/integrations/types.js.map +0 -1
- package/dist/intelligence/agents/profiles.js.map +0 -1
- package/dist/intelligence/agents/registry.js.map +0 -1
- package/dist/intelligence/agents/types.js.map +0 -1
- package/dist/intelligence/observability/tracer.js.map +0 -1
- package/dist/intelligence/observability/types.js.map +0 -1
- package/dist/intelligence/orchestration/engine.js.map +0 -1
- package/dist/intelligence/orchestration/lock-manager.js.map +0 -1
- package/dist/intelligence/orchestration/store.js.map +0 -1
- package/dist/intelligence/orchestration/types.js.map +0 -1
- package/dist/intelligence/routing/matcher.js.map +0 -1
- package/dist/intelligence/routing/router.js.map +0 -1
- package/dist/intelligence/routing/types.js.map +0 -1
- package/dist/intelligence/runtime/adk/adapter.js.map +0 -1
- package/dist/intelligence/runtime/adk/detector.js.map +0 -1
- package/dist/intelligence/runtime/boundary.js.map +0 -1
- package/dist/intelligence/runtime/external.js.map +0 -1
- package/dist/intelligence/runtime/native.js.map +0 -1
- package/dist/intelligence/runtime/types.js.map +0 -1
- package/dist/intelligence/security/audit.js.map +0 -1
- package/dist/intelligence/security/policy.js.map +0 -1
- package/dist/intelligence/security/types.js.map +0 -1
- package/dist/intelligence/skills/builtins.js.map +0 -1
- package/dist/intelligence/skills/loader.js.map +0 -1
- package/dist/intelligence/skills/registry.js.map +0 -1
- package/dist/intelligence/skills/types.js.map +0 -1
- package/dist/intelligence/verification/engine.js.map +0 -1
- package/dist/intelligence/verification/reviewer.js.map +0 -1
- package/dist/intelligence/verification/types.js.map +0 -1
- package/dist/knowledge/facts.js.map +0 -1
- package/dist/mcp/protocol.js.map +0 -1
- package/dist/mcp/server.js.map +0 -1
- package/dist/mcp/setup.js.map +0 -1
- package/dist/mcp/tools.js.map +0 -1
- package/dist/mcp/types.js.map +0 -1
- package/dist/mcp/verify.js.map +0 -1
- package/dist/portability/bundle.js.map +0 -1
- package/dist/prompts/onboarding.js.map +0 -1
- package/dist/prompts/refresh.js.map +0 -1
- package/dist/prompts/requirements.js.map +0 -1
- package/dist/security/files.js.map +0 -1
- package/dist/security/redact.js.map +0 -1
- package/dist/services/agent.js.map +0 -1
- package/dist/services/analysis.js.map +0 -1
- package/dist/services/common.js.map +0 -1
- package/dist/services/doctor.js.map +0 -1
- package/dist/services/drift.js.map +0 -1
- package/dist/services/features.js.map +0 -1
- package/dist/services/graph.js.map +0 -1
- package/dist/services/init.js.map +0 -1
- package/dist/services/integrations.js.map +0 -1
- package/dist/services/intelligence.js.map +0 -1
- package/dist/services/knowledge.js.map +0 -1
- package/dist/services/migrate.js.map +0 -1
- package/dist/services/portability.js.map +0 -1
- package/dist/services/records.js.map +0 -1
- package/dist/services/refresh.js.map +0 -1
- package/dist/services/reset.js.map +0 -1
- package/dist/services/setup.js.map +0 -1
- package/dist/services/standards.js.map +0 -1
- package/dist/services/status.js.map +0 -1
- package/dist/services/taskContext.js.map +0 -1
- package/dist/services/tasks.js.map +0 -1
- package/dist/services/verify.js.map +0 -1
- package/dist/sessions/session.js.map +0 -1
- package/dist/standards/acquisition/ingest.js.map +0 -1
- package/dist/standards/applicability/engine.js.map +0 -1
- package/dist/standards/builtin/code-quality.js.map +0 -1
- package/dist/standards/builtin/database-safety.js.map +0 -1
- package/dist/standards/builtin/index.js.map +0 -1
- package/dist/standards/builtin/security-baseline.js.map +0 -1
- package/dist/standards/builtin/testing-contracts.js.map +0 -1
- package/dist/standards/builtin/undo-kit.js.map +0 -1
- package/dist/standards/config/config.js.map +0 -1
- package/dist/standards/distribution/cache.js.map +0 -1
- package/dist/standards/distribution/index.js.map +0 -1
- package/dist/standards/distribution/keys.js.map +0 -1
- package/dist/standards/distribution/package.js.map +0 -1
- package/dist/standards/distribution/server.js.map +0 -1
- package/dist/standards/distribution/sync.js.map +0 -1
- package/dist/standards/distribution/types.js.map +0 -1
- package/dist/standards/engine/compliance.js.map +0 -1
- package/dist/standards/engine/engine.js.map +0 -1
- package/dist/standards/engine/reporter.js.map +0 -1
- package/dist/standards/index.js.map +0 -1
- package/dist/standards/registry/registry.js.map +0 -1
- package/dist/standards/schema/types.js.map +0 -1
- package/dist/standards/schema/validate.js.map +0 -1
- package/dist/standards/templates/index.js.map +0 -1
- package/dist/standards/validators/database.js.map +0 -1
- package/dist/standards/validators/quality.js.map +0 -1
- package/dist/standards/validators/registry.js.map +0 -1
- package/dist/standards/validators/security.js.map +0 -1
- package/dist/standards/validators/testing.js.map +0 -1
- package/dist/standards/validators/types.js.map +0 -1
- package/dist/standards/validators/undo-kit.js.map +0 -1
- package/dist/tasks/routing.js.map +0 -1
- package/dist/tasks/task.js.map +0 -1
- package/dist/utils/cleanup.js.map +0 -1
- package/dist/utils/fs.js.map +0 -1
- package/dist/utils/lock.js.map +0 -1
- package/dist/utils/logger.js.map +0 -1
- package/dist/utils/paths.js.map +0 -1
- package/dist/utils/proc.js.map +0 -1
- package/dist/verification/safety.js.map +0 -1
- 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
|
|
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
|
-
|
|
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
|
|
70
|
-
npx devworkspace analyze
|
|
13
|
+
npx devworkspace setup
|
|
71
14
|
```
|
|
72
15
|
|
|
73
|
-
|
|
74
|
-
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
##
|
|
244
|
-
|
|
245
|
-
For Windows developers using PowerShell, here is the complete sequence of commands:
|
|
33
|
+
## Setup Presets & Optional Tools
|
|
246
34
|
|
|
247
|
-
|
|
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
|
-
|
|
252
|
-
|
|
253
|
-
|
|
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
|
-
|
|
256
|
-
|
|
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
|
-
##
|
|
49
|
+
## Supported Coding Agents
|
|
477
50
|
|
|
478
|
-
|
|
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
|
-
|
|
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
|
-
##
|
|
63
|
+
## Security & Privacy
|
|
495
64
|
|
|
496
|
-
|
|
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
|
-
|
|
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
|
-
##
|
|
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
|
-
|
|
84
|
+
All CLI commands remain available for scripting and advanced workflows (`devworkspace <command> --help`):
|
|
524
85
|
|
|
525
|
-
|
|
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
|
-
##
|
|
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
|
-
|
|
539
|
-
|
|
540
|
-
-
|
|
541
|
-
-
|
|
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
|
|