@shigar/muaz 0.4.0 → 0.6.0

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
@@ -1,6 +1,31 @@
1
1
  # muaz
2
2
 
3
- A terminal-first LLM agent platform. Chat with AI agents, run multi-agent pipelines, and install plugins — all from a single binary. Agents are model-agnostic and bind to a model through named provider profiles (OpenAI-compatible, Google Gemini, local Ollama, or AWS Bedrock).
3
+ > **Beta.** Everything documented works and is tested, but muaz is pre-1.0 —
4
+ > config formats, CLI flags and APIs can still change between releases. Read the
5
+ > release notes before upgrading, and pin a version if you build on top of it.
6
+
7
+ A local, web-first LLM agent platform in a single binary. Bare `muaz` opens a
8
+ browser UI (the terminal REPL is still there for power users) where you chat with
9
+ agents, run multi-agent pipelines, add connectors, and install plugins — all
10
+ running on your own machine, against your own models.
11
+
12
+ Built around four flagship workflows:
13
+
14
+ - **Coding agent** — reads, edits, and verifies code with diff-preview approvals,
15
+ a live task list, and cross-session memory.
16
+ - **Multi-agent pipelines** — chain a cheap router to specialists with structured
17
+ routing, retries, and per-step cost/token/time budgets.
18
+ - **Your data** — attach MCP data connectors (or per-agent memory) to ground
19
+ agents in your own sources.
20
+ - **Connector automation** — wire agents to GitHub, Linear, the filesystem, and
21
+ any MCP server, with tool approvals as the safety net.
22
+
23
+ Agents are **model-agnostic**: they bind to a model through named provider
24
+ profiles in one `models.yaml` (native Anthropic with prompt caching,
25
+ OpenAI-compatible, Google Gemini, local Ollama, or AWS Bedrock), so you point
26
+ everything at a different model in one place. Agents, skills, pipelines, and
27
+ connectors are packaged as signed **plugins** you can install, enable, and share.
28
+ Built for regulated environments — see [Security](https://shigar.dev/muaz/docs/concepts/security/).
4
29
 
5
30
  ## Installation
6
31
 
@@ -21,697 +46,82 @@ brew install muaz
21
46
  irm https://github.com/shigar-dev/releases-muaz/releases/latest/download/muaz-installer.ps1 | iex
22
47
  ```
23
48
 
24
- **Windows (MSI)**
25
-
26
- Download `muaz-x86_64-pc-windows-msvc.msi` from the
27
- [releases page](https://github.com/shigar-dev/releases-muaz/releases) and run
28
- the installer.
29
-
30
49
  **npm (any platform)**
31
50
  ```bash
32
51
  npm install -g @shigar/muaz
33
52
  ```
34
53
 
35
- **From source** (from a checkout of this repository)
36
- ```bash
37
- cargo build --release -p muaz
38
- cp target/release/muaz ~/.local/bin/ # or anywhere on $PATH
39
- ```
40
-
41
- On first run, `muaz` bootstraps `~/.muaz/` with sensible defaults.
54
+ Pre-built binaries for macOS (Apple Silicon + Intel), Linux (x64 + arm64), and
55
+ Windows (x64) are available on the
56
+ [releases page](https://github.com/shigar-dev/releases-muaz/releases).
42
57
 
43
- ## Quick start
58
+ ## Quick Start
44
59
 
45
60
  ```bash
46
- export OPENAI_API_KEY=sk-...
47
-
48
- muaz chat # open the default (starter) agent
49
- muaz chat --agent starter # pick an agent explicitly
50
- muaz chat --incognito # don't save the session to disk
51
- muaz chat --session <id> # resume a previous session
52
- ```
53
-
54
- The REPL opens immediately. Type your message and press Enter. Use `/help` to see all slash commands.
55
-
56
- ## Directory layout
57
-
58
- After the first run, `~/.muaz/` looks like this. Authored content lives inside
59
- plugins — your own in the `local` workspace, shared ones under `plugins/`, and
60
- read-only defaults under `builtins/`:
61
-
62
- ```
63
- ~/.muaz/
64
- ├── config.yaml # global settings (default agent, tool access, web tools, telemetry)
65
- ├── models.yaml # provider profiles + global default + per-agent bindings (one file)
66
- ├── plugins.yaml # per-plugin state (enabled / priority / trusted / source)
67
- ├── mcp.json # global MCP server registry
68
- ├── secrets.json # chmod-600 API-key store (only when no OS keychain is available)
69
- ├── builtins/
70
- │ └── preset/ # embedded read-only `starter` agent + preset pipelines (refreshed each start)
71
- ├── plugins/
72
- │ ├── local/ # YOUR workspace
73
- │ │ ├── agents/ # agents you create
74
- │ │ ├── skills/ # each skill is a dir with a SKILL.md
75
- │ │ ├── pipelines/ # multi-agent pipeline definitions
76
- │ │ ├── prompts/
77
- │ │ └── commands/ # custom slash commands
78
- │ └── <installed>/ # plugins you install (e.g. auto-sde, the `coding` agent)
79
- ├── sessions/ # saved sessions + index.json
80
- ├── memory/ # cross-session notebooks: global.md, agents/, projects/
81
- ├── audit/ # append-only security audit log (audit.jsonl)
82
- └── runtimes/ # on-demand Node.js / uv runtimes for MCP servers
83
- ```
84
-
85
- ## Configuration
86
-
87
- ### Global config (`~/.muaz/config.yaml`)
88
-
89
- ```yaml
90
- # The agent used when no --agent flag is passed
91
- default_agent: starter
92
-
93
- # Provider/model selection lives in models.yaml (see below), not here.
94
-
95
- # Plugin registries for `muaz plugins install <name>` / `search`, consulted in
96
- # order (first hit wins). Omit the block to use the official muaz registry.
97
- # Each registry carries its OWN signing keys, so an internal one is trusted for
98
- # its own plugins only.
99
- # plugin_registries:
100
- # - name: acme-internal
101
- # index_url: "https://plugins.acme.internal/index.json"
102
- # trusted_keys: ["RW<your minisign public key>"]
103
- # require_signed: true # an invalid signature is always fatal
104
- # # allow_plaintext: true # only for an http:// intranet host you control
105
-
106
- # Global tool access — one level per tool (off | ask | auto). Per-agent `tools:`
107
- # blocks override these; `blocked` forces a tool Off everywhere.
108
- tools:
109
- default: ask
110
- built_in:
111
- read_file: auto
112
- list_dir: auto
113
- search: auto
114
- edit_file: ask
115
- write_file: ask
116
- patch_file: ask
117
- shell: ask
118
- fetch_webpage: ask
119
- web_search: ask
120
- blocked: []
121
- ```
122
-
123
- ### Models (`~/.muaz/models.yaml`)
124
-
125
- Everything about model routing lives in one file: named connection `profiles`, the
126
- global `default`, and per-agent `agents` overrides. Agents are provider-agnostic,
127
- so this is the single place models are chosen. It is re-read on every resolution,
128
- so edits take effect without a restart.
129
-
130
- ```yaml
131
- profiles:
132
- gemini-main:
133
- type: gemini
134
- default_model: gemini-2.5-pro
135
- api_key: ${GEMINI_API_KEY}
136
- bedrock-work:
137
- type: bedrock
138
- region: us-east-1
139
- default_model: anthropic.claude-3-5-sonnet-20241022-v2:0
140
- profile: work
141
-
142
- # Global default: every agent that isn't bound below uses this profile.
143
- default: gemini-main
144
-
145
- # Per-agent overrides (agent name, or @plugin/agent), with an optional model swap.
146
- agents:
147
- coding:
148
- profile: bedrock-work
149
- ```
150
-
151
- Effective provider for an agent resolves as: per-agent binding under `agents:` →
152
- the global `default:` → error. Manage it with `muaz models list/set/default/bind`
153
- or by editing the file.
154
-
155
- Keep the `api_key: ${OPENAI_API_KEY}` reference and store the actual key with muaz
156
- instead of exporting it: run `muaz auth [profile]` (hidden input) — or `/auth
157
- [profile]` inside a chat session — or use the browser UI's **Providers** page.
158
- Use `muaz auth` for the first-run case: when a profile's key is unset the REPL
159
- can't start (provider resolution fails on the missing `${VAR}`), so authenticate
160
- from the CLI first. Keys go to your OS keychain (chmod-600 `~/.muaz/secrets.json`
161
- fallback); `${VAR}` resolves from the store first, then the environment. If a
162
- turn fails auth (401/403), the REPL prints a `/auth` hint and the UI shows an
163
- inline "set your API key" banner.
164
-
165
- ### MCP registry (`~/.muaz/mcp.json`)
166
-
167
- MCP server definitions live in their own JSON file. Use `muaz mcp install` to manage entries, or edit it directly:
168
-
169
- ```json
170
- [
171
- {
172
- "transport": "stdio",
173
- "name": "filesystem",
174
- "command": ["npx", "-y", "@modelcontextprotocol/server-filesystem", "/tmp"]
175
- },
176
- {
177
- "transport": "http",
178
- "name": "my-api",
179
- "url": "http://localhost:3000/mcp"
180
- }
181
- ]
182
- ```
183
-
184
- ### Agent config (`~/.muaz/plugins/local/agents/<name>.yaml`)
185
-
186
- ```yaml
187
- name: coding
188
- description: "An expert coding assistant"
189
-
190
- # No provider/model here — agents are provider-agnostic. The model is chosen in
191
- # ~/.muaz/models.yaml (global `default` plus optional per-agent overrides).
192
-
193
- # system_prompt: path (~/…, /…, ./…, ../…) OR inline text. Co-locate and use a
194
- # relative path so the agent is portable across namespaces.
195
- system_prompt: "./coding.md"
196
-
197
- # Optional: path to a markdown SOP file appended after system_prompt
198
- sop_file: "./coding-sop.md"
199
-
200
- streaming: true # stream tokens as they arrive (default: true)
201
-
202
- # Agentic loop limits (null = use built-in default)
203
- max_iterations: 20 # tool-call rounds before giving up
204
- max_concurrent_tools: 4 # parallel tool executions per round
205
-
206
- # LLM inference parameters (null = use model default)
207
- max_tokens: ~
208
- temperature: ~
209
-
210
- # Compact conversation history when accumulated input tokens exceed this threshold.
211
- # null disables compaction.
212
- compaction_token_threshold: 80000
213
-
214
- # Custom compaction summarization instructions (null = use built-in default)
215
- compaction_summary_prompt: ~
216
-
217
- # Agent Skills configuration
218
- # skills:
219
- # paths: [] # extra search paths
220
- # allow: [] # allowlist by name
221
- # deny: [] # denylist by name
222
-
223
- # Hard local-egress lock: `none` strips web tools + drops HTTP MCP (default: full)
224
- network: full
225
-
226
- # Tool access: one level per tool (off | ask | auto). Overrides the global
227
- # config.yaml `tools:` defaults; the most specific setting wins. Setting a tool
228
- # `off` removes it from the agent's toolset.
229
- tools:
230
- default: ask
231
- built_in:
232
- edit_file: ask
233
- fetch_webpage: auto
234
- shell: # stay at ask, but auto-approve read-only git/cargo
235
- level: ask
236
- allow_when:
237
- - "program=git"
238
- - "program=cargo"
239
- # MCP servers are opt-in: an agent attaches one by listing it here.
240
- servers:
241
- filesystem:
242
- default: ask
243
- ```
244
-
245
- **Access levels:** `off` (removed from the toolset), `ask` (every call prompts),
246
- `auto` (runs without prompting). A tool value is a bare level or
247
- `{ level, allow_when }`, where `allow_when` auto-approves specific calls:
248
- `program=NAME` (first shell token), `dir=PATH` (path containment), or a glob over
249
- the primary argument.
250
-
251
- **Resolution order (most specific wins):** global `tools.blocked` → agent per-tool
252
- → agent per-server default → agent `tools.default` → global `tools.built_in.<tool>`
253
- → global `tools.default`. A session grant or a matching `allow_when` lets an
254
- otherwise-`ask` call through without re-prompting.
255
-
256
- At the interactive prompt:
257
- - `a` — approve once
258
- - `s` — approve for this session
259
- - `d` — deny once
260
- - `D` — deny always (persisted to `config.yaml`)
261
-
262
- ### Supported providers
263
-
264
- | `type` | Notes |
265
- |---|---|
266
- | `openai-compatible` | OpenAI, Together.ai, Groq, Ollama, any OpenAI-compatible endpoint |
267
- | `bedrock` | AWS Bedrock (uses ambient AWS credentials) |
268
- | `gemini` | Google Gemini (generativelanguage.googleapis.com) |
269
- | `ollama` | Locally-running Ollama server |
270
-
271
- Each provider type accepts only its own fields — unknown fields are rejected with a clear error.
272
-
273
- **Bedrock example:**
274
-
275
- ```yaml
276
- provider:
277
- type: bedrock
278
- model: us.anthropic.claude-sonnet-4-6-20251001-v1:0
279
- region: us-east-1 # optional; falls back to AWS_DEFAULT_REGION → AWS_REGION → us-east-1
280
- timeout_secs: 120 # optional
281
- profile: my-aws-profile # optional; AWS credential profile
282
- endpoint_url: "https://vpce-xxx.bedrock-runtime.us-east-1.vpce.amazonaws.com" # optional; VPC endpoint
283
- ```
284
-
285
- **Gemini example:**
286
-
287
- ```yaml
288
- provider:
289
- type: gemini
290
- model: gemini-2.5-flash
291
- api_key: "${GEMINI_API_KEY}"
292
- timeout_secs: 60
293
- thinking_budget: 8192 # token budget for extended thinking (0 = off)
294
- # thinking_mode: "medium" # alternative: low / medium / high / max
295
- ```
296
-
297
- **Ollama example:**
298
-
299
- ```yaml
300
- provider:
301
- type: ollama
302
- base_url: "http://localhost:11434"
303
- model: llama3.2
304
- timeout_secs: 120
305
- keep_alive: "5m" # optional; how long Ollama keeps the model loaded
306
- think: "high" # optional; thinking mode: enabled / high / medium / low
307
- ```
308
-
309
- ## CLI reference
310
-
311
- ```
312
- muaz <COMMAND>
313
-
314
- Commands:
315
- chat Start an interactive chat session
316
- run Run one non-interactive turn and print the result (scriptable)
317
- pipeline Run or list multi-agent pipelines
318
- agents Manage agents
319
- skills Manage Agent Skills
320
- plugins Install and manage plugins (agents, skills, pipelines, prompts)
321
- models Provider profiles, the global default, and per-agent bindings
322
- auth Store a provider profile's API key securely (hidden prompt)
323
- config View and edit global configuration
324
- mcp Manage MCP server registrations
325
- runtime Manage bundled MCP runtimes (Node.js, uv)
326
- audit Inspect the append-only security audit log
327
- gateway Start the web server with browser UI
328
- doctor Diagnose config, runtimes, and MCP server health
329
- ```
330
-
331
- Running bare `muaz` (no subcommand) starts the gateway on `127.0.0.1:7878` and
332
- opens the browser UI — the primary surface. Over SSH or without a tty it prints
333
- the URL instead. `muaz chat` is the terminal surface.
334
-
335
- ### `muaz chat`
336
-
337
- ```
338
- muaz chat [OPTIONS]
339
-
340
- Options:
341
- -a, --agent <AGENT> Agent to load (default: value in config.yaml)
342
- --incognito Do not save session to disk
343
- --session <SESSION> Resume an existing session by ID
344
- --remember-approvals Persist "approve for session" grants into the
345
- session file and restore them on resume
346
- ```
347
-
348
- ### `muaz run`
349
-
350
- Run a single non-interactive turn and print the result. Useful for scripting and piping.
351
-
352
- ```
353
- muaz run [PROMPT] [OPTIONS]
354
-
355
- Arguments:
356
- [PROMPT] The prompt (combined with piped stdin when both are present)
357
-
358
- Options:
359
- -a, --agent <AGENT> Agent to use (default: value in config.yaml)
360
- --session <SESSION> Append this turn to an existing session
361
- --output <FORMAT> text (default) or json
362
- --incognito Do not save the session
363
-
364
- Examples:
365
- muaz run "summarise this file" < README.md
366
- git diff | muaz run "review this change"
367
- muaz run "what day is it?" --output json
368
- ```
369
-
370
- ### `muaz pipeline`
371
-
372
- ```
373
- muaz pipeline <COMMAND>
374
-
375
- Commands:
376
- run <name> [input] Run a pipeline (reads stdin when input is omitted and piped)
377
- list List pipelines in your local workspace
378
- ```
379
-
380
- ### `muaz gateway`
381
-
382
- Start the Axum web server with the embedded React UI. The first browser request
383
- opens the UI at `http://localhost:<port>`.
384
-
385
- ```
386
- muaz gateway [OPTIONS]
387
-
388
- Options:
389
- -p, --port <PORT> Port to listen on (default: 7878)
390
- --host <HOST> Bind address (default: 127.0.0.1; use 0.0.0.0 to expose
391
- to the network — muaz will warn you)
392
- --token <TOKEN> Shared secret for all requests (default: $MUAZ_GATEWAY_TOKEN,
393
- else a freshly generated token printed at startup)
394
- ```
395
-
396
- ### `muaz doctor`
397
-
398
- Check the installation: config validity, bootstrapped layout, bundled runtime
399
- status, and MCP server reachability.
400
-
401
- ```
402
- muaz doctor
403
- ```
404
-
405
- ### `muaz agents`
406
-
407
- ```
408
- muaz agents <COMMAND>
409
-
410
- Commands:
411
- list List all available agents
412
- create Create a new agent interactively
413
- show <name> Show the full config of an agent
414
- edit <name> Open an agent config in $EDITOR
415
- ```
416
-
417
- ### `muaz skills`
418
-
419
- ```
420
- muaz skills <COMMAND>
421
-
422
- Commands:
423
- list List all discovered skills
424
- create Create a new skill interactively
425
- show <name> Show the SKILL.md of a skill
426
- edit <name> Open a skill's SKILL.md in $EDITOR
427
- ```
428
-
429
- ### `muaz plugins`
430
-
431
- Install and manage [plugins](https://shigar.dev/muaz/docs/concepts/plugins/) —
432
- bundles of agents, skills, pipelines, and prompts.
433
-
434
- ```
435
- muaz plugins <COMMAND>
436
-
437
- Commands:
438
- install <target> Install from a local .zip path, or by registry name (name@version)
439
- search <query> Search the configured registries
440
- update [id] Apply available updates (--check to only report them)
441
- list List installed plugins (enabled/disabled, trusted) + built-ins
442
- show <id> Show a plugin's manifest and contents
443
- enable <id> Enable a disabled plugin
444
- disable <id> Disable a plugin without uninstalling it
445
- trust <id> Honour its skill tool pre-approvals and run its hooks
446
- untrust <id> Revoke that, without uninstalling
447
- uninstall <id> Uninstall a plugin (deletes its directory)
448
-
449
- Authoring:
450
- pack <dir> Build the reproducible .zip a registry publishes (--json for CI)
451
- verify <zip> Check a .zip the way an install will: sha256, manifest, signature
452
-
453
- Registries:
454
- registries What muaz has recorded per registry (index serial, signing)
455
- forget-registry <name>
456
- Reset that record, so a lower serial is accepted again
457
-
458
- Options (install):
459
- --force Overwrite an existing plugin with the same id
460
- --registry <name> Install only from this configured registry
461
- --allow-unsigned Take a plugin the registry serves unsigned (CLI only —
462
- the browser UI never offers it)
463
- ```
464
-
465
- A plugin from a registry is verified against **that registry's** trusted keys.
466
- An unsigned one is refused under the default `require_signed: true`, and an
467
- invalid signature is always fatal — `--allow-unsigned` says "unsigned is
468
- acceptable here", never "forgeries are". Updates are re-fetched only from the
469
- registry a plugin was installed from, and trust does not survive an update that
470
- adds capabilities: the digest recorded when you trusted it is re-checked, and a
471
- mismatch revokes trust rather than running the new `post_update` hook.
472
-
473
- Manage provider profiles and bindings with `muaz models`
474
- (`list`/`set`/`set-model`/`default`/`bind`/`unbind`/`remove`), by editing
475
- `~/.muaz/models.yaml` directly, or from the browser UI's Providers + Agents pages.
476
-
477
- ### `muaz config`
478
-
479
- ```
480
- muaz config [COMMAND]
481
-
482
- Commands:
483
- show Print the current config.yaml
484
- edit Edit config fields interactively (default)
485
- validate Check config.yaml, agents, mcp.json, and pipelines for problems
486
- ```
487
-
488
- ### `muaz mcp`
489
-
490
- ```
491
- muaz mcp <COMMAND>
492
-
493
- Commands:
494
- install <spec> Register an MCP server (npm package, uvx package, or HTTP URL)
495
- list List all registered MCP servers
496
- remove <name> Remove a registered MCP server by name
497
-
498
- Options (install):
499
- --name <name> Override the derived server name
500
- --uvx Use uvx (uv tool run) instead of npx
501
- [args...] Extra arguments passed to the server process (stdio only)
502
- ```
503
-
504
- ### `muaz runtime`
505
-
506
- Manages the Node.js and uv runtimes that muaz downloads on demand for MCP servers.
507
-
508
- ```
509
- muaz runtime <COMMAND>
510
-
511
- Commands:
512
- list Show installed runtime status and pinned versions
513
- install [name] Download a runtime now (node | uv; omit to install what's needed)
514
- update Re-download installed runtimes to refresh pinned versions
515
- clean Remove all downloaded runtimes
516
- ```
517
-
518
- ### `muaz audit`
519
-
520
- The append-only security log at `~/.muaz/audit/audit.jsonl` (chmod 600): tool
521
- executions, secret changes, plugin/config/connector changes, plugin hook runs,
522
- and gateway auth failures. It records *what happened*, never values — tool
523
- arguments are stored as a SHA-256 hash and secret events carry only the name.
524
-
525
- ```
526
- muaz audit <COMMAND>
527
-
528
- Commands:
529
- tail [--count N] [--json] Show the most recent events
530
- export Print the whole log (raw JSON Lines) to stdout
531
- ```
532
-
533
- ## Slash commands
534
-
535
- | Command | Description |
536
- |---|---|
537
- | `/help` | Show all commands |
538
- | `/agents` | List agents across all namespaces |
539
- | `/switch <name>` | Load a different agent, start a fresh session |
540
- | `/mcp` | Show MCP server connection status |
541
- | `/tools` | List registered tools and their approval policy |
542
- | `/session` | Show current session metadata (id, model, message count) |
543
- | `/sessions` | Browse recent sessions; choose one to resume |
544
- | `/run <name> [input]` | Run a multi-agent pipeline |
545
- | `/pipelines` | List pipelines in your local workspace |
546
- | `/skills` | List available Agent Skills |
547
- | `/skill <name>` | Show the body of a skill's SKILL.md |
548
- | `/auth [profile]` | Store a provider profile's API key (hidden input) |
549
- | `/incognito` | Toggle incognito mode (session not saved) |
550
- | `/compact` | Summarize and compact conversation history now |
551
- | `/usage` | Show token and latency stats for this session |
552
- | `/clear` | Start a fresh session (old transcript stays saved) |
553
- | `/exit` | Exit muaz |
554
-
555
- Custom commands defined in `~/.muaz/plugins/local/commands/<name>.yaml` also
556
- appear in `/help`.
557
-
558
- ## Built-in tools
559
-
560
- | Tool | Description |
561
- |---|---|
562
- | `edit_file` | Overwrite a file with new content (creates if missing) |
563
- | `patch_file` | Apply a unified diff patch to an existing file |
564
- | `shell` | Execute a shell command via `sh -c` and return combined stdout/stderr |
565
- | `fetch_webpage` | Fetch a URL and return the page content as plain text |
566
-
567
- MCP tools are also registered when MCP servers are connected.
568
-
569
- ## Agent Skills
570
-
571
- Skills are reusable instruction sets that the agent can load on demand. Each skill lives in its own directory containing a `SKILL.md` file.
572
-
573
- ### Skill discovery paths
574
-
575
- Skills are discovered from these locations (in order of precedence):
576
-
577
- 1. `<cwd>/.muaz/skills/` and `<cwd>/.agents/skills/` — project-level
578
- 2. `~/.muaz/plugins/local/skills/` — your local workspace
579
- 3. installed plugin `skills/` directories
580
- 4. built-in `skills/` directories
581
-
582
- Local/project skills are trusted automatically; a plugin skill's `allowed-tools`
583
- are pre-approved only when the plugin is trusted.
584
-
585
- ### SKILL.md format
586
-
587
- ```markdown
588
- ---
589
- name: my-skill
590
- description: A short description shown in listings
591
- compatibility: muaz>=1.0 # optional
592
- allowed-tools: shell:git * fetch_webpage:* # optional; space-separated tool patterns
593
- ---
594
-
595
- # my-skill
596
-
597
- Full skill instructions go here. The agent reads this file when it wants to use the skill.
598
- ```
599
-
600
- ### Skill catalog in prompts
601
-
602
- When skills are discovered, the agent's system prompt gets an appended `## Available Skills` block listing each skill's name, description, and SKILL.md path. The agent reads the file when it wants to invoke a skill.
603
-
604
- ### Managing skills via CLI
61
+ muaz # opens the web UI in your browser — the primary surface
62
+ muaz chat # terminal REPL, if you prefer the command line
63
+ ```
64
+
65
+ Store your provider API key from the UI's **Providers** page, with `muaz auth`,
66
+ or with `/auth` in a chat session. Keys are saved to your OS keychain (with a
67
+ chmod-600 file fallback) and used automatically — no shell exports needed
68
+ (though a plain `export OPENAI_API_KEY=…` works too).
69
+
70
+ On first run, `muaz` bootstraps `~/.muaz/` with the built-in agents (`starter`
71
+ for general chat, `codebase` to explain an unfamiliar repo), the adversarial
72
+ `code-review` pipeline, and your own `local` workspace; the browser UI's
73
+ first-run wizard gets you from nothing to a working chat with just a pasted API
74
+ key. Nothing else is installed on your behalf — for a coding agent, run
75
+ `muaz plugins install auto-sde`. Configuration, agents, providers, plugins,
76
+ pipelines, the browser UI and the full CLI reference are on the
77
+ [documentation site](https://shigar.dev/muaz/docs/).
78
+
79
+ End-to-end walkthroughs of the four flagship workflows are in the
80
+ [Guides](https://shigar.dev/muaz/docs/guides/coding-agent/).
81
+
82
+ Copy-pasteable provider profiles and a complete sample plugin are in the
83
+ [Examples](https://shigar.dev/muaz/docs/getting-started/examples/) docs.
84
+
85
+ Evaluating muaz for a regulated environment? The
86
+ [Security](https://shigar.dev/muaz/docs/concepts/security/) page covers the
87
+ local-first data flow, secrets storage, gateway trust boundary, egress controls,
88
+ plugin/connector signing, and the append-only audit log.
89
+
90
+ ## Workspace Members
91
+
92
+ | Crate | Folder | Description |
93
+ |-------|--------|-------------|
94
+ | [`muaz`](cli/) | `cli/` | CLI binary — interactive REPL, one-shot runner, all subcommands; the host boundary that wires an engine to its adapters |
95
+ | [`muaz-engine`](engine/) | `engine/` | The engine — all business logic (agent builder, chat, config, sessions, pipelines, approval, tools) and the trait contracts (`ObjectStore`/`SecretStore`/`SessionRepo`/`AuditSink`/`HostServices`); names no OS or driver code |
96
+ | [`muaz-gateway`](gateway/) | `gateway/` | Axum web server + SSE API; embeds the React UI for browser-based access |
97
+ | [`muaz-api-types`](api-types/) | `api-types/` | The stable HTTP/SSE wire DTOs (for the UI + future mobile/SDK clients) |
98
+ | [`muaz-host-local`](host-local/) | `host-local/` | Desktop host adapter — process/runtime/browser (`LocalHost`) and OS-keychain secrets (`LocalSecrets`) |
99
+ | [`muaz-host-cloud`](host-cloud/) | `host-cloud/` | Cloud host adapter — the MongoDB/DynamoDB backends, behind the `store-mongodb`/`store-dynamodb` features (optional) |
100
+ | [`muaz-control`](control/) | `control/` | The hosted control plane: authn, routing, and lifecycle in front of per-user sandboxes (not released) |
101
+ | [`muaz-supervisor`](control/supervisor/) | `control/supervisor/` | Sandbox image entrypoint + the bootstrap wire contract it shares with `muaz-control` |
102
+ | [`ui`](ui/) | `ui/` | React browser UI served by `muaz-gateway` |
103
+ | (docs) | `docs/` | The public documentation site |
104
+
105
+ ## Building & Testing
605
106
 
606
107
  ```bash
607
- muaz skills list # show all discovered skills with scope
608
- muaz skills create # interactive wizard to create a new skill
609
- muaz skills show my-skill # print the SKILL.md of a skill
610
- muaz skills edit my-skill # open SKILL.md in $EDITOR
611
- ```
612
-
613
- From within the REPL:
614
-
615
- ```
616
- /skills list available skills
617
- /skill my-skill print a skill's SKILL.md
618
- ```
619
-
620
- ## Pipelines
621
-
622
- Pipelines wire multiple agents together for complex workflows. Define them as YAML files in `~/.muaz/plugins/local/pipelines/`, then run them with `/run <name> [input]` in the REPL or `muaz pipeline run <name> [input]` from the shell.
623
-
624
- A pipeline is a single ordered list of **`steps`**. There is no `pattern` field — sequential, parallel, and router flows are all expressed with steps.
625
-
626
- ### Sequential
627
-
628
- Each step names itself, so later steps can read its output.
629
-
630
- ```yaml
631
- # ~/.muaz/plugins/local/pipelines/research-write.yaml
632
- name: research-write
633
- steps:
634
- - name: research
635
- agent: researcher # resolved across namespaces; @plugin/name disambiguates
636
- input: "Research this topic:\n\n${input}"
637
- retry: { max: 1, backoff_secs: 2 }
638
- - name: write
639
- agent: writer
640
- input: |
641
- Write the piece requested below from these notes.
642
-
643
- Request: ${input}
644
- Notes: ${steps.research.output}
645
- ```
646
-
647
- Templates resolve `${input}`, `${vars.<name>}`, `${steps.<name>.output}`, and `${steps.<name>.<field>}`. An unknown placeholder is a hard error, so a typo fails at load rather than silently interpolating nothing.
648
-
649
- ### Parallel
650
-
651
- A step may be a `parallel:` group whose members run concurrently:
652
-
653
- ```yaml
654
- steps:
655
- - name: reviews
656
- parallel:
657
- - name: security
658
- agent: security-reviewer
659
- input: "${input}"
660
- - name: style
661
- agent: style-reviewer
662
- input: "${input}"
663
- - name: summary
664
- agent: editor
665
- input: "Security:\n${steps.security.output}\n\nStyle:\n${steps.style.output}"
666
- ```
667
-
668
- ### Router
669
-
670
- A router is a step whose `output_schema` carries a `route` field; specialists gate on it with `when:`. The route is typed structured output, not free text scanned out of a reply.
671
-
672
- ```yaml
673
- name: triage
674
- steps:
675
- - name: route
676
- agent: triage-router
677
- output_schema:
678
- type: object
679
- properties:
680
- route: { type: string, enum: [write, analyze] }
681
- message: { type: string }
682
- required: [route, message]
683
- additionalProperties: false
684
- - name: write
685
- agent: writer
686
- when: { value: "${steps.route.route}", equals: write }
687
- input: "${steps.route.message}"
108
+ cargo build --workspace # build everything
109
+ cargo test --workspace # run every test
110
+ cargo build --release -p muaz
688
111
  ```
689
112
 
690
- Steps also take `on_error: fail | continue | fallback` and a `budget:` (`max_cost_usd`, `max_tokens`, `max_seconds`), which the pipeline as a whole accepts too.
691
-
692
- ## Custom slash commands
113
+ State lives under `~/.muaz/` by default. A shared deployment can point it
114
+ somewhere else — another directory, MongoDB, or DynamoDB — with `MUAZ_STORE`,
115
+ partitioned per tenant by `MUAZ_SCOPE`, and can pin settings its users must not
116
+ be able to loosen. See
117
+ [Deployment settings](https://shigar.dev/muaz/docs/cli/configuration/#deployment-settings).
693
118
 
694
- Drop a YAML file in `~/.muaz/plugins/local/commands/` to add a custom `/` command:
119
+ ## Contributing
695
120
 
696
- ```yaml
697
- # ~/.muaz/plugins/local/commands/deploy.yaml
698
- name: deploy
699
- description: "Deploy to staging"
700
- command: "cd ~/project && make deploy-staging"
701
- ```
702
-
703
- The command runs via `sh -c`. Environment variables available:
704
-
705
- | Variable | Value |
121
+ | Doc | What it answers |
706
122
  |---|---|
707
- | `MUAZ_SESSION_ID` | Current session UUID |
708
- | `MUAZ_AGENT_NAME` | Current agent name |
709
- | `MUAZ_MODEL` | Current model identifier |
710
-
711
- ## Session management
712
-
713
- Sessions are saved to `~/.muaz/sessions/` as JSON files (one per session). An `index.json` tracks metadata for the last 20 sessions.
714
-
715
- - Use `--session <id>` to resume a session on startup
716
- - Use `/sessions` to browse and resume from within the REPL
717
- - Use `--incognito` or `/incognito` to skip saving
123
+ | [specs/intent.md](specs/intent.md) | What the product is for, and the principles behind it |
124
+ | [specs/design.md](specs/design.md) | How the crates fit together, and how testing is layered |
125
+ | [specs/running.md](specs/running.md) | Running it — locally, hosted-locally, and on AWS |
126
+ | `<crate>/AGENTS.md` | What each crate owns and where to change things |
127
+ | [CLAUDE.md](CLAUDE.md) | Conventions, entry points, build commands |
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "hasInstallScript": true,
20
20
  "name": "@shigar/muaz",
21
- "version": "0.4.0"
21
+ "version": "0.6.0"
22
22
  },
23
23
  "node_modules/detect-libc": {
24
24
  "engines": {
@@ -47,5 +47,5 @@
47
47
  }
48
48
  },
49
49
  "requires": true,
50
- "version": "0.4.0"
50
+ "version": "0.6.0"
51
51
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "artifactDownloadUrls": [
3
- "https://github.com/shigar-dev/releases-muaz/releases/download/v0.4.0"
3
+ "https://github.com/shigar-dev/releases-muaz/releases/download/v0.6.0"
4
4
  ],
5
5
  "author": "shigar ltd",
6
6
  "bin": {
@@ -81,7 +81,7 @@
81
81
  "zipExt": ".tar.xz"
82
82
  }
83
83
  },
84
- "version": "0.4.0",
84
+ "version": "0.6.0",
85
85
  "volta": {
86
86
  "node": "18.14.1",
87
87
  "npm": "9.5.0"