demian-cli 1.1.2 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -20,7 +20,8 @@ Additional locale: [한국어](./docs/ko/README.md)
20
20
  search, progress reporting, and cowork delegation.
21
21
  - Goal mode with `/goal` for longer objectives that should be verified before
22
22
  completion.
23
- - Cowork mode with `/cowork` for bounded multi-agent coordination.
23
+ - Cowork mode with `/cowork` for bounded multi-agent coordination, including a
24
+ Codex-manager and Claude-Code-worker routing preset.
24
25
  - Provider support for OpenAI-compatible APIs, Anthropic API, Codex,
25
26
  Claude Code, Ollama, LM Studio, vLLM, llama.cpp, OpenRouter, Together, Groq,
26
27
  Gemini, and Azure OpenAI-compatible endpoints.
@@ -76,6 +77,7 @@ npx demian
76
77
  - Press `Esc` then `m` to edit the model.
77
78
  - Press `Esc` then `a` to choose the main agent.
78
79
  - Press `Esc` then `c` to open the config screen for persistent provider/model setup.
80
+ - In the config screen, press `w` to tune cowork providers, routing, fallback, and permission defaults.
79
81
  - Type your request and press `Enter`.
80
82
 
81
83
  3. Try a first prompt:
@@ -114,7 +116,8 @@ The terminal UI creates `~/.demian/config.json` automatically when no user
114
116
  config exists. Press `Esc` then `c` to open the config screen. From there you
115
117
  can set the default provider, choose or add a default model profile for a
116
118
  provider, edit the selected provider's `baseURL`, `apiKeyEnv`, and auth header,
117
- and add common provider presets without hand-editing JSON.
119
+ add common provider presets, and tune cowork provider routing without
120
+ hand-editing JSON.
118
121
 
119
122
  ### OpenAI-Compatible Example
120
123
 
@@ -246,6 +249,23 @@ Demian remains the main coordinator. Sub agents are workers with bounded tasks.
246
249
  The default cowork settings allow read-only parallelism and keep writer
247
250
  coordination conservative.
248
251
 
252
+ By default, cowork routing favors Codex-backed agents for planning,
253
+ architecture, research synthesis, and supervisory review. It favors
254
+ Claude-Code-backed agents for bounded implementation, module-level development,
255
+ detailed code review, and specialist work in the local repo. You can tune this
256
+ split from the TUI config screen: press `Esc`, then `c`, then `w`.
257
+
258
+ The main cowork settings are:
259
+
260
+ - `cowork.providers`: providers that are allowed to participate in cowork runs.
261
+ - `cowork.routing.agentProviders`: provider priority per agent role.
262
+ - `cowork.fallback.nonWrite`: fallback behavior for read-only, review, and manage work.
263
+ - `cowork.fallback.write`: write repair behavior. Write tasks do not
264
+ automatically switch providers after partial side effects; Demian rereads
265
+ changed files and retries repair with the same agent/provider when configured.
266
+ - `cowork.permissionOverlay`: Demian-managed permission defaults that compile
267
+ into provider runtime tool permissions.
268
+
249
269
  Cowork is most useful for:
250
270
 
251
271
  - comparing two implementation paths
@@ -418,6 +438,14 @@ The default path is `~/.local/bin/claude`.
418
438
  ~/.local/bin/claude --version
419
439
  ```
420
440
 
441
+ ### Cowork does not choose the provider you expected
442
+
443
+ Open the TUI config screen with `Esc`, then `c`, then `w`. Check that the
444
+ provider is included in `cowork.providers`, then check the agent-specific
445
+ routing order. If a write task fails after partial file changes, Demian keeps
446
+ the same provider and uses the write repair policy instead of falling through to
447
+ another provider.
448
+
421
449
  ### Permission prompts feel too frequent
422
450
 
423
451
  Use `a` to always allow a specific grant scope, or configure a project policy.