@creative-dswork/dscode 0.2.5 → 0.2.7

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/README.md CHANGED
@@ -4,8 +4,8 @@
4
4
 
5
5
  <p align="center">
6
6
  <strong>
7
- MCP-first coding agent for digital studios.<br />
8
- Powering creative work across Blender, game engines, and production tools.
7
+ A digital studio for content-driven creation.<br />
8
+ Code, write, design, and build with an AI that thinks like a maker.
9
9
  </strong>
10
10
  </p>
11
11
 
@@ -24,20 +24,11 @@
24
24
 
25
25
  ## See it in action
26
26
 
27
- <table align="center">
28
- <tr>
29
- <td align="center" width="50%">
30
- <video src="https://github.com/user-attachments/assets/b92aedab-93cc-4188-976a-0fcae614c04d" controls width="100%"></video>
31
- <br /><sub><b>Web UI</b> — streaming chat, tool calls, permission dialogs</sub>
32
- </td>
33
- <td align="center" width="50%">
34
- <video src="https://github.com/user-attachments/assets/79790daa-d6f3-4d43-8306-e1d93561600c" controls width="100%"></video>
35
- <br /><sub><b>Terminal UI</b> — real-time streaming, slash commands, inline rendering</sub>
36
- </td>
37
- </tr>
38
-
27
+ <p align="center">
28
+ <img src="docs/assets/work-main-ui.png" alt="dscode — editorial workshop" width="800" />
29
+ </p>
39
30
 
40
- > **Tip:** Videos play inline click to watch demos directly in GitHub.
31
+ > dscode's editorial workshopa creative space for code, design, and conversation.
41
32
 
42
33
  ## What makes dscode different
43
34
 
@@ -74,11 +65,11 @@ Too many MCP servers? Context explosion is a real problem when every tool schema
74
65
  </td>
75
66
  <td width="50%" valign="top">
76
67
 
77
- ### 🐋 DeepSeek V4 Pro — Recommended
68
+ ### 🎨 Editorial Workshop
78
69
 
79
- dscode is purpose-built for DeepSeek V4 Pro our recommended model for digital creation. Its reasoning depth handles complex multi-tool workflows ("model this in Blender, render in PlayCanvas, document the result") without losing context. A **vision model fallback pipeline** transparently routes screenshots and reference images to vision-capable models. Prompt caching is tuned to maintain **97–99% cache hit rates** via `prompt_cache_key` affinity and prefix-stable message construction. Every optimization is measured against DeepSeek's API behavior.
70
+ dscode is not a chatbot with a dark theme. It's a **digital studio** a creative workspace with editorial typography, generous whitespace, and a warm, tool-like aesthetic. The interface is designed for makers: phase-labeled message groups, serif structural labels, sidebar detail panels, and a Dashboard that's a mode of Chat, not a separate page. Every pixel earns its place.
80
71
 
81
- **DeepSeek V4 Pro. For when your toolchain needs more than autocomplete.**
72
+ **A creative space. Not just a chat window.**
82
73
 
83
74
  </td>
84
75
  </tr>
@@ -113,8 +104,8 @@ dscode is purpose-built for DeepSeek V4 Pro — our recommended model for digita
113
104
  <sub>Auto-routing to vision-capable models. tesseract OCR fallback (ENG + CHI). Drag, paste, or @-file images.</sub>
114
105
  </td>
115
106
  <td width="33%" valign="top">
116
- <strong>🔧 Built-in Drivers</strong><br />
117
- <sub><code>read_file</code>, <code>write_file</code>, <code>edit</code> (hash-anchor), <code>bash</code>, <code>grep</code>, <code>glob</code>. MCP tools discovered on-demand via <code>search_tools</code>.</sub>
107
+ <strong>🔧 Open Design</strong><br />
108
+ <sub>AI-driven visual design workspace with frontend generation, image-to-code, and design-system management. Integrated via MCP.</sub>
118
109
  </td>
119
110
  </tr>
120
111
  <tr>
@@ -303,26 +294,45 @@ All settings can also be set via environment variables for CI / containers:
303
294
  ---
304
295
 
305
296
 
306
- ## Harness Philosophy
297
+ ## Open Design
298
+
299
+ dscode integrates **[Open Design](https://github.com/wangcan26/open-design)** — a visual design workspace that brings AI-driven frontend generation directly into your workflow. Think of it as Figma meets AI: design tokens, components, and entire layouts generated through natural language, with real-time preview and iteration.
307
300
 
308
- We follow **Occam's razor** in harness design. dscode does not pre-build intent understanding modules, plan modes, or elaborate agentic scaffolding until the system prompt proves insufficient. Most coding agents pile on pre-turn planning, reflection loops, and multi-agent orchestration upfront — we wait until the model demands it.
301
+ ### What Open Design does for dscode
309
302
 
310
- That doesn't mean the harness is bare. It means every piece earns its place.
303
+ - **Visual design workspace** create, edit, and iterate on frontend designs without leaving dscode
304
+ - **Image-to-code** — generate production-ready HTML/CSS from design mockups
305
+ - **Design system management** — maintain consistent design tokens, typography scales, and color palettes across projects
306
+ - **Multi-file artifact generation** — produce complete frontend projects with structured file trees
311
307
 
312
- One example where we went deeper: the **edit tool**. Based on [@_can1357's hash-anchor protocol](https://x.com/_can1357/status/2021828033640911196), our `edit` tool replaces fragile line-number and regex-based editing with a **content-addressable anchor system** ([spec](openspec/specs/edit-tool/spec.md)):
308
+ ### Installation
313
309
 
314
- - **Three-level adaptive resolution** — ambiguous 6-char hashes are resolved silently through 8-char → context-augmented (3-line window) matching before rejection
315
- - **Occurrence + line-hint disambiguation** — `occurrence: 3` picks the Nth match; `line` field auto-selects the closest candidate, rejecting only when equidistant
316
- - **Proximity-based range resolution** — for range endpoints, if one side is unique the other automatically resolves to the nearest candidate in the correct direction
317
- - **Low-entropy filtering** — lines like `}` are rejected as anchors; the tool returns up to 6 neighboring `[high]` anchors as alternatives
318
- - **Atomic batch + overlap detection** — 6 operation types in one call, all-or-nothing. Overlapping ranges within a batch are detected and rejected
319
- - **Checkpoint + safety rollback** — file checkpointed before edit. Post-edit sanity checks (duplicate lines, delimiter balance, orphan `else`) roll back suspicious changes
320
- - **Structured invalidation scope** — `anchors_valid_through` and `must_refresh_from_line` tell the model exactly which anchors survive, enabling chained edits without re-reading
321
- - **Localized diff with live anchors** — successful edits return a diff with fresh 6-char hashes, so the model can continue editing immediately
310
+ ```bash
311
+ git clone https://github.com/wangcan26/open-design.git
312
+ cd open-design
313
+ npm install
314
+ ```
315
+
316
+ Then configure the MCP server in `~/.dscode/settings.json`:
322
317
 
323
- **dscode builds dscode.** This edit tool — combined with our spec-driven workflow — is what enabled dscode to develop itself. Every feature, from the hash-anchor protocol to the checkpoint system, was implemented by dscode running on DeepSeek V4 Pro, editing its own source tree through MCP-driven tools. It's not a demo. It's how this project ships.
318
+ ```jsonc
319
+ {
320
+ "mcpServers": {
321
+ "open-design": {
322
+ "command": "npx",
323
+ "args": [
324
+ "tsx",
325
+ "/path/to/open-design/apps/daemon/src/cli.ts",
326
+ "mcp",
327
+ "--daemon-url",
328
+ "http://127.0.0.1:7456"
329
+ ]
330
+ }
331
+ }
332
+ }
333
+ ```
324
334
 
325
- This is the kind of harness work we invest in: not adding more AI, but making the AI's tools dependable.
335
+ > **Note:** Open Design's dscode integration currently lives on the `add-dscode-agent` branch and has not yet been submitted as a PR to upstream. The integration provides dscode-specific installer targets and agent configuration. Track the progress at [github.com/wangcan26/open-design](https://github.com/wangcan26/open-design).
326
336
 
327
337
  ---
328
338