@shigar/muaz 0.5.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,769 +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 and shared ones under `plugins/`.
60
- Read-only defaults ship inside the binary:
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
- ├── registry-state.json # chmod-600 newest plugin-index serial seen per registry
70
- ├── gateway-token # chmod-600 persisted gateway token
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
- ├── cache/ # content-addressed mirrors of the shipped built-ins
83
- └── runtimes/ # on-demand Node.js / uv runtimes for MCP servers
84
- ```
85
-
86
- Everything above except `secrets.json`, `audit/`, `gateway-token` and `runtimes/`
87
- is addressed as a *document* rather than a path, which is what lets a shared
88
- deployment keep it in a database instead of on a disk — see
89
- [Deployment settings](#deployment-settings). The exceptions are deliberate:
90
- credentials never enter shared storage, downloaded runtimes are a machine-specific
91
- cache, and the gateway token is a local convenience a server passes as
92
- `MUAZ_GATEWAY_TOKEN` instead.
93
-
94
- ## Configuration
95
-
96
- ### Global config (`~/.muaz/config.yaml`)
97
-
98
- ```yaml
99
- # The agent used when no --agent flag is passed
100
- default_agent: starter
101
-
102
- # Provider/model selection lives in models.yaml (see below), not here.
103
-
104
- # Plugin registries for `muaz plugins install <name>` / `search`, consulted in
105
- # order (first hit wins). Omit the block to use the official muaz registry.
106
- # Each registry carries its OWN signing keys, so an internal one is trusted for
107
- # its own plugins only.
108
- # plugin_registries:
109
- # - name: acme-internal
110
- # index_url: "https://plugins.acme.internal/index.json"
111
- # trusted_keys: ["RW<your minisign public key>"]
112
- # require_signed: true # an invalid signature is always fatal
113
- # # allow_plaintext: true # only for an http:// intranet host you control
114
-
115
- # Global tool access — one level per tool (off | ask | auto). Per-agent `tools:`
116
- # blocks override these; `blocked` forces a tool Off everywhere.
117
- tools:
118
- default: ask
119
- built_in:
120
- read_file: auto
121
- list_dir: auto
122
- search: auto
123
- edit_file: ask
124
- write_file: ask
125
- patch_file: ask
126
- shell: ask
127
- fetch_webpage: ask
128
- web_search: ask
129
- blocked: []
130
- ```
131
-
132
- ### Models (`~/.muaz/models.yaml`)
133
-
134
- Everything about model routing lives in one file: named connection `profiles`, the
135
- global `default`, and per-agent `agents` overrides. Agents are provider-agnostic,
136
- so this is the single place models are chosen. It is re-read on every resolution,
137
- so edits take effect without a restart.
138
-
139
- ```yaml
140
- profiles:
141
- gemini-main:
142
- type: gemini
143
- default_model: gemini-2.5-pro
144
- api_key: ${GEMINI_API_KEY}
145
- bedrock-work:
146
- type: bedrock
147
- region: us-east-1
148
- default_model: anthropic.claude-3-5-sonnet-20241022-v2:0
149
- profile: work
150
-
151
- # Global default: every agent that isn't bound below uses this profile.
152
- default: gemini-main
153
-
154
- # Per-agent overrides (agent name, or @plugin/agent), with an optional model swap.
155
- agents:
156
- coding:
157
- profile: bedrock-work
158
- ```
159
-
160
- Effective provider for an agent resolves as: per-agent binding under `agents:` →
161
- the global `default:` → error. Manage it with `muaz models list/set/default/bind`
162
- or by editing the file.
163
-
164
- Keep the `api_key: ${OPENAI_API_KEY}` reference and store the actual key with muaz
165
- instead of exporting it: run `muaz auth [profile]` (hidden input) — or `/auth
166
- [profile]` inside a chat session — or use the browser UI's **Providers** page.
167
- Use `muaz auth` for the first-run case: when a profile's key is unset the REPL
168
- can't start (provider resolution fails on the missing `${VAR}`), so authenticate
169
- from the CLI first. Keys go to your OS keychain (chmod-600 `~/.muaz/secrets.json`
170
- fallback); `${VAR}` resolves from the store first, then the environment. If a
171
- turn fails auth (401/403), the REPL prints a `/auth` hint and the UI shows an
172
- inline "set your API key" banner.
173
-
174
- ### MCP registry (`~/.muaz/mcp.json`)
175
-
176
- MCP server definitions live in their own JSON file. Use `muaz mcp install` to manage entries, or edit it directly:
177
-
178
- ```json
179
- [
180
- {
181
- "transport": "stdio",
182
- "name": "filesystem",
183
- "command": ["npx", "-y", "@modelcontextprotocol/server-filesystem", "/tmp"]
184
- },
185
- {
186
- "transport": "http",
187
- "name": "my-api",
188
- "url": "http://localhost:3000/mcp"
189
- }
190
- ]
191
- ```
192
-
193
- ### Agent config (`~/.muaz/plugins/local/agents/<name>.yaml`)
194
-
195
- ```yaml
196
- name: coding
197
- description: "An expert coding assistant"
198
-
199
- # No provider/model here — agents are provider-agnostic. The model is chosen in
200
- # ~/.muaz/models.yaml (global `default` plus optional per-agent overrides).
201
-
202
- # system_prompt: path (~/…, /…, ./…, ../…) OR inline text. Co-locate and use a
203
- # relative path so the agent is portable across namespaces.
204
- system_prompt: "./coding.md"
205
-
206
- # Optional: path to a markdown SOP file appended after system_prompt
207
- sop_file: "./coding-sop.md"
208
-
209
- streaming: true # stream tokens as they arrive (default: true)
210
-
211
- # Agentic loop limits (null = use built-in default)
212
- max_iterations: 20 # tool-call rounds before giving up
213
- max_concurrent_tools: 4 # parallel tool executions per round
214
-
215
- # LLM inference parameters (null = use model default)
216
- max_tokens: ~
217
- temperature: ~
218
-
219
- # Compact conversation history when accumulated input tokens exceed this threshold.
220
- # null disables compaction.
221
- compaction_token_threshold: 80000
222
-
223
- # Custom compaction summarization instructions (null = use built-in default)
224
- compaction_summary_prompt: ~
225
-
226
- # Agent Skills configuration
227
- # skills:
228
- # paths: [] # extra search paths
229
- # allow: [] # allowlist by name
230
- # deny: [] # denylist by name
231
-
232
- # Hard local-egress lock: `none` strips web tools + drops HTTP MCP (default: full)
233
- network: full
234
-
235
- # Tool access: one level per tool (off | ask | auto). Overrides the global
236
- # config.yaml `tools:` defaults; the most specific setting wins. Setting a tool
237
- # `off` removes it from the agent's toolset.
238
- tools:
239
- default: ask
240
- built_in:
241
- edit_file: ask
242
- fetch_webpage: auto
243
- shell: # stay at ask, but auto-approve read-only git/cargo
244
- level: ask
245
- allow_when:
246
- - "program=git"
247
- - "program=cargo"
248
- # MCP servers are opt-in: an agent attaches one by listing it here.
249
- servers:
250
- filesystem:
251
- default: ask
252
- ```
253
-
254
- **Access levels:** `off` (removed from the toolset), `ask` (every call prompts),
255
- `auto` (runs without prompting). A tool value is a bare level or
256
- `{ level, allow_when }`, where `allow_when` auto-approves specific calls:
257
- `program=NAME` (first shell token), `dir=PATH` (path containment), or a glob over
258
- the primary argument.
259
-
260
- **Resolution order (most specific wins):** global `tools.blocked` → agent per-tool
261
- → agent per-server default → agent `tools.default` → global `tools.built_in.<tool>`
262
- → global `tools.default`. A session grant or a matching `allow_when` lets an
263
- otherwise-`ask` call through without re-prompting.
264
-
265
- At the interactive prompt:
266
- - `a` — approve once
267
- - `s` — approve for this session
268
- - `d` — deny once
269
- - `D` — deny always (persisted to `config.yaml`)
270
-
271
- ### Supported providers
272
-
273
- | `type` | Notes |
274
- |---|---|
275
- | `openai-compatible` | OpenAI, Together.ai, Groq, Ollama, any OpenAI-compatible endpoint |
276
- | `bedrock` | AWS Bedrock (uses ambient AWS credentials) |
277
- | `gemini` | Google Gemini (generativelanguage.googleapis.com) |
278
- | `ollama` | Locally-running Ollama server |
279
-
280
- Each provider type accepts only its own fields — unknown fields are rejected with a clear error.
281
-
282
- **Bedrock example:**
283
-
284
- ```yaml
285
- provider:
286
- type: bedrock
287
- model: us.anthropic.claude-sonnet-4-6-20251001-v1:0
288
- region: us-east-1 # optional; falls back to AWS_DEFAULT_REGION → AWS_REGION → us-east-1
289
- timeout_secs: 120 # optional
290
- profile: my-aws-profile # optional; AWS credential profile
291
- endpoint_url: "https://vpce-xxx.bedrock-runtime.us-east-1.vpce.amazonaws.com" # optional; VPC endpoint
292
- ```
293
-
294
- **Gemini example:**
295
-
296
- ```yaml
297
- provider:
298
- type: gemini
299
- model: gemini-2.5-flash
300
- api_key: "${GEMINI_API_KEY}"
301
- timeout_secs: 60
302
- thinking_budget: 8192 # token budget for extended thinking (0 = off)
303
- # thinking_mode: "medium" # alternative: low / medium / high / max
304
- ```
305
-
306
- **Ollama example:**
307
-
308
- ```yaml
309
- provider:
310
- type: ollama
311
- base_url: "http://localhost:11434"
312
- model: llama3.2
313
- timeout_secs: 120
314
- keep_alive: "5m" # optional; how long Ollama keeps the model loaded
315
- think: "high" # optional; thinking mode: enabled / high / medium / low
316
- ```
317
-
318
- ## Deployment settings
319
-
320
- Everything above describes a personal install, where you own `config.yaml` and
321
- nothing overrides you. A **shared** muaz — a team server, a container, one
322
- sandbox per user — needs two more things: somewhere other than `~/.muaz` to keep
323
- state, and a way to fix settings the person using it must not be able to relax.
324
-
325
- Both come from the process environment, read once at startup. With none of them
326
- set, muaz is exactly the local install described above.
327
-
328
- | Variable | Meaning |
329
- |---|---|
330
- | `MUAZ_STORE` | Backend: unset or `fs` (`~/.muaz`), `fs:<dir>`, an absolute path, `memory`, `mongodb://…`, `dynamodb://<table>` |
331
- | `MUAZ_SCOPE` | Tenant partition, default `local`. One process serves one scope |
332
- | `MUAZ_CONFIG_FILE` | YAML file of settings the user cannot loosen |
333
- | `MUAZ_NETWORK` / `MUAZ_ALLOWLIST_ONLY` / `MUAZ_ALLOWED_URLS` / `MUAZ_DENIED_URLS` / `MUAZ_BLOCKED_TOOLS` | The same pins without a file |
334
-
335
- Scope is part of the key at rest rather than a filter applied afterwards, so one
336
- shared store behind many single-user processes cannot leak between them. Under a
337
- filesystem store, scope `local` maps to the directory itself — which is what
338
- keeps your laptop's `~/.muaz` exactly where it is — and any other scope gets a
339
- sibling directory with its own secrets and audit log.
340
-
341
- MongoDB and DynamoDB are **opt-in build features**, so the binary you install
342
- locally carries neither driver; naming a backend that was not compiled in tells
343
- you which feature is missing rather than failing vaguely.
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
344
106
 
345
107
  ```bash
346
- cargo build --release -p muaz --features store-mongodb,store-dynamodb
347
-
348
- MUAZ_STORE='mongodb://muaz:pw@db.internal:27017/muaz?tls=true' \
349
- MUAZ_SCOPE=user:alice muaz gateway --host 0.0.0.0
350
- ```
351
-
352
- With a database backend, sessions and the audit log stop being files — each
353
- backend brings a native session repository and audit sink alongside the object
354
- store, and `muaz doctor` reports all three. muaz refuses an unencrypted MongoDB
355
- connection to a remote host, and never creates a DynamoDB table (a table with a
356
- secondary index is infrastructure). The full walkthrough, including the
357
- `create-table` invocation and how pinned settings compose with the user's, is in
358
- [Configuration → Deployment settings](https://shigar.dev/muaz/docs/cli/configuration/#deployment-settings).
359
-
360
- ## CLI reference
361
-
362
- ```
363
- muaz <COMMAND>
364
-
365
- Commands:
366
- chat Start an interactive chat session
367
- run Run one non-interactive turn and print the result (scriptable)
368
- pipeline Run or list multi-agent pipelines
369
- agents Manage agents
370
- skills Manage Agent Skills
371
- plugins Install and manage plugins (agents, skills, pipelines, prompts)
372
- models Provider profiles, the global default, and per-agent bindings
373
- auth Store a provider profile's API key securely (hidden prompt)
374
- config View and edit global configuration
375
- mcp Manage MCP server registrations
376
- runtime Manage bundled MCP runtimes (Node.js, uv)
377
- audit Inspect the append-only security audit log
378
- gateway Start the web server with browser UI
379
- doctor Diagnose config, runtimes, and MCP server health
380
- ```
381
-
382
- Running bare `muaz` (no subcommand) starts the gateway on `127.0.0.1:7878` and
383
- opens the browser UI — the primary surface. Over SSH or without a tty it prints
384
- the URL instead. `muaz chat` is the terminal surface.
385
-
386
- ### `muaz chat`
387
-
388
- ```
389
- muaz chat [OPTIONS]
390
-
391
- Options:
392
- -a, --agent <AGENT> Agent to load (default: value in config.yaml)
393
- --incognito Do not save session to disk
394
- --session <SESSION> Resume an existing session by ID
395
- --remember-approvals Persist "approve for session" grants into the
396
- session file and restore them on resume
397
- ```
398
-
399
- ### `muaz run`
400
-
401
- Run a single non-interactive turn and print the result. Useful for scripting and piping.
402
-
403
- ```
404
- muaz run [PROMPT] [OPTIONS]
405
-
406
- Arguments:
407
- [PROMPT] The prompt (combined with piped stdin when both are present)
408
-
409
- Options:
410
- -a, --agent <AGENT> Agent to use (default: value in config.yaml)
411
- --session <SESSION> Append this turn to an existing session
412
- --output <FORMAT> text (default) or json
413
- --incognito Do not save the session
414
-
415
- Examples:
416
- muaz run "summarise this file" < README.md
417
- git diff | muaz run "review this change"
418
- muaz run "what day is it?" --output json
419
- ```
420
-
421
- ### `muaz pipeline`
422
-
423
- ```
424
- muaz pipeline <COMMAND>
425
-
426
- Commands:
427
- run <name> [input] Run a pipeline (reads stdin when input is omitted and piped)
428
- list List pipelines in your local workspace
429
- ```
430
-
431
- ### `muaz gateway`
432
-
433
- Start the Axum web server with the embedded React UI. The first browser request
434
- opens the UI at `http://localhost:<port>`.
435
-
436
- ```
437
- muaz gateway [OPTIONS]
438
-
439
- Options:
440
- -p, --port <PORT> Port to listen on (default: 7878)
441
- --host <HOST> Bind address (default: 127.0.0.1; use 0.0.0.0 to expose
442
- to the network — muaz will warn you)
443
- --token <TOKEN> Shared secret for all requests (default: $MUAZ_GATEWAY_TOKEN,
444
- else a freshly generated token printed at startup)
445
- ```
446
-
447
- ### `muaz doctor`
448
-
449
- Check the installation: config validity, bootstrapped layout, bundled runtime
450
- status, and MCP server reachability.
451
-
452
- ```
453
- muaz doctor
454
- ```
455
-
456
- ### `muaz agents`
457
-
458
- ```
459
- muaz agents <COMMAND>
460
-
461
- Commands:
462
- list List all available agents
463
- create Create a new agent interactively
464
- show <name> Show the full config of an agent
465
- edit <name> Open an agent config in $EDITOR
466
- ```
467
-
468
- ### `muaz skills`
469
-
470
- ```
471
- muaz skills <COMMAND>
472
-
473
- Commands:
474
- list List all discovered skills
475
- create Create a new skill interactively
476
- show <name> Show the SKILL.md of a skill
477
- edit <name> Open a skill's SKILL.md in $EDITOR
478
- ```
479
-
480
- ### `muaz plugins`
481
-
482
- Install and manage [plugins](https://shigar.dev/muaz/docs/concepts/plugins/) —
483
- bundles of agents, skills, pipelines, and prompts.
484
-
485
- ```
486
- muaz plugins <COMMAND>
487
-
488
- Commands:
489
- install <target> Install from a local .zip path, or by registry name (name@version)
490
- search <query> Search the configured registries
491
- update [id] Apply available updates (--check to only report them)
492
- list List installed plugins (enabled/disabled, trusted) + built-ins
493
- show <id> Show a plugin's manifest and contents
494
- enable <id> Enable a disabled plugin
495
- disable <id> Disable a plugin without uninstalling it
496
- trust <id> Honour its skill tool pre-approvals and run its hooks
497
- untrust <id> Revoke that, without uninstalling
498
- uninstall <id> Uninstall a plugin (deletes its directory)
499
-
500
- Authoring:
501
- pack <dir> Build the reproducible .zip a registry publishes (--json for CI)
502
- verify <zip> Check a .zip the way an install will: sha256, manifest, signature
503
-
504
- Registries:
505
- registries What muaz has recorded per registry (index serial, signing)
506
- forget-registry <name>
507
- Reset that record, so a lower serial is accepted again
508
-
509
- Options (install):
510
- --force Overwrite an existing plugin with the same id
511
- --registry <name> Install only from this configured registry
512
- --allow-unsigned Take a plugin the registry serves unsigned (CLI only —
513
- the browser UI never offers it)
514
- ```
515
-
516
- A plugin from a registry is verified against **that registry's** trusted keys.
517
- An unsigned one is refused under the default `require_signed: true`, and an
518
- invalid signature is always fatal — `--allow-unsigned` says "unsigned is
519
- acceptable here", never "forgeries are". Updates are re-fetched only from the
520
- registry a plugin was installed from, and trust does not survive an update that
521
- adds capabilities: the digest recorded when you trusted it is re-checked, and a
522
- mismatch revokes trust rather than running the new `post_update` hook.
523
-
524
- Manage provider profiles and bindings with `muaz models`
525
- (`list`/`set`/`set-model`/`default`/`bind`/`unbind`/`remove`), by editing
526
- `~/.muaz/models.yaml` directly, or from the browser UI's Providers + Agents pages.
527
-
528
- ### `muaz config`
529
-
530
- ```
531
- muaz config [COMMAND]
532
-
533
- Commands:
534
- show Print the current config.yaml
535
- edit Edit config fields interactively (default)
536
- validate Check config.yaml, agents, mcp.json, and pipelines for problems
537
- ```
538
-
539
- ### `muaz mcp`
540
-
541
- ```
542
- muaz mcp <COMMAND>
543
-
544
- Commands:
545
- install <spec> Register an MCP server (npm package, uvx package, or HTTP URL)
546
- list List all registered MCP servers
547
- remove <name> Remove a registered MCP server by name
548
-
549
- Options (install):
550
- --name <name> Override the derived server name
551
- --uvx Use uvx (uv tool run) instead of npx
552
- [args...] Extra arguments passed to the server process (stdio only)
553
- ```
554
-
555
- ### `muaz runtime`
556
-
557
- Manages the Node.js and uv runtimes that muaz downloads on demand for MCP servers.
558
-
559
- ```
560
- muaz runtime <COMMAND>
561
-
562
- Commands:
563
- list Show installed runtime status and pinned versions
564
- install [name] Download a runtime now (node | uv; omit to install what's needed)
565
- update Re-download installed runtimes to refresh pinned versions
566
- clean Remove all downloaded runtimes
567
- ```
568
-
569
- ### `muaz audit`
570
-
571
- The append-only security log at `~/.muaz/audit/audit.jsonl` (chmod 600): tool
572
- executions, secret changes, plugin/config/connector changes, plugin hook runs,
573
- and gateway auth failures. It records *what happened*, never values — tool
574
- arguments are stored as a SHA-256 hash and secret events carry only the name.
575
-
576
- ```
577
- muaz audit <COMMAND>
578
-
579
- Commands:
580
- tail [--count N] [--json] Show the most recent events
581
- export Print the whole log (raw JSON Lines) to stdout
582
- ```
583
-
584
- ## Slash commands
585
-
586
- | Command | Description |
587
- |---|---|
588
- | `/help` | Show all commands |
589
- | `/agents` | List agents across all namespaces |
590
- | `/switch <name>` | Load a different agent, start a fresh session |
591
- | `/mcp` | Show MCP server connection status |
592
- | `/tools` | List registered tools and their approval policy |
593
- | `/session` | Show current session metadata (id, model, message count) |
594
- | `/sessions` | Browse recent sessions; choose one to resume |
595
- | `/run <name> [input]` | Run a multi-agent pipeline |
596
- | `/pipelines` | List pipelines in your local workspace |
597
- | `/skills` | List available Agent Skills |
598
- | `/skill <name>` | Show the body of a skill's SKILL.md |
599
- | `/auth [profile]` | Store a provider profile's API key (hidden input) |
600
- | `/incognito` | Toggle incognito mode (session not saved) |
601
- | `/compact` | Summarize and compact conversation history now |
602
- | `/usage` | Show token and latency stats for this session |
603
- | `/clear` | Start a fresh session (old transcript stays saved) |
604
- | `/exit` | Exit muaz |
605
-
606
- Custom commands defined in `~/.muaz/plugins/local/commands/<name>.yaml` also
607
- appear in `/help`.
608
-
609
- ## Built-in tools
610
-
611
- | Tool | Description |
612
- |---|---|
613
- | `edit_file` | Overwrite a file with new content (creates if missing) |
614
- | `patch_file` | Apply a unified diff patch to an existing file |
615
- | `shell` | Execute a shell command via `sh -c` and return combined stdout/stderr |
616
- | `fetch_webpage` | Fetch a URL and return the page content as plain text |
617
-
618
- MCP tools are also registered when MCP servers are connected.
619
-
620
- ## Agent Skills
621
-
622
- Skills are reusable instruction sets that the agent can load on demand. Each skill lives in its own directory containing a `SKILL.md` file.
623
-
624
- ### Skill discovery paths
625
-
626
- Skills are discovered from these locations (in order of precedence):
627
-
628
- 1. `<cwd>/.muaz/skills/` and `<cwd>/.agents/skills/` — project-level
629
- 2. `~/.muaz/plugins/local/skills/` — your local workspace
630
- 3. installed plugin `skills/` directories
631
- 4. built-in `skills/` directories
632
-
633
- Local/project skills are trusted automatically; a plugin skill's `allowed-tools`
634
- are pre-approved only when the plugin is trusted.
635
-
636
- ### SKILL.md format
637
-
638
- ```markdown
639
- ---
640
- name: my-skill
641
- description: A short description shown in listings
642
- compatibility: muaz>=1.0 # optional
643
- allowed-tools: shell:git * fetch_webpage:* # optional; space-separated tool patterns
644
- ---
645
-
646
- # my-skill
647
-
648
- Full skill instructions go here. The agent reads this file when it wants to use the skill.
649
- ```
650
-
651
- ### Skill catalog in prompts
652
-
653
- 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.
654
-
655
- ### Managing skills via CLI
656
-
657
- ```bash
658
- muaz skills list # show all discovered skills with scope
659
- muaz skills create # interactive wizard to create a new skill
660
- muaz skills show my-skill # print the SKILL.md of a skill
661
- muaz skills edit my-skill # open SKILL.md in $EDITOR
662
- ```
663
-
664
- From within the REPL:
665
-
666
- ```
667
- /skills list available skills
668
- /skill my-skill print a skill's SKILL.md
669
- ```
670
-
671
- ## Pipelines
672
-
673
- 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.
674
-
675
- A pipeline is a single ordered list of **`steps`**. There is no `pattern` field — sequential, parallel, and router flows are all expressed with steps.
676
-
677
- One pipeline ships built in: **`code-review`**, an adversarial review where `review-proposer` reports defects, `review-disputer` attacks the list, and `review-arbiter` decides which findings survive.
678
-
679
- ```bash
680
- muaz pipeline run code-review "the staged changes"
681
- ```
682
-
683
- Because each step names an agent, each step is separately bindable — bind the proposer and disputer to *different* models in `models.yaml` so the dispute step isn't checking the proposer's work with the proposer's blind spots:
684
-
685
- ```yaml
686
- agents:
687
- "@preset/review-proposer": { profile: anthropic-main }
688
- "@preset/review-disputer": { profile: openai-main }
689
- ```
690
-
691
- Agents built purely to be steps carry `entrypoint: false`, which keeps them out of the pickers that start a new chat. They are otherwise ordinary agents: resolvable by name, listed by `muaz agents list` (tagged `(step)`), separately bindable, and chattable on request when you want to iterate on their prompt.
692
-
693
- The examples below name agents like `researcher` and `writer` to show the shape — those are agents you would author, not ones muaz ships.
694
-
695
- ### Sequential
696
-
697
- Each step names itself, so later steps can read its output.
698
-
699
- ```yaml
700
- # ~/.muaz/plugins/local/pipelines/research-write.yaml
701
- name: research-write
702
- steps:
703
- - name: research
704
- agent: researcher # resolved across namespaces; @plugin/name disambiguates
705
- input: "Research this topic:\n\n${input}"
706
- retry: { max: 1, backoff_secs: 2 }
707
- - name: write
708
- agent: writer
709
- input: |
710
- Write the piece requested below from these notes.
711
-
712
- Request: ${input}
713
- Notes: ${steps.research.output}
714
- ```
715
-
716
- 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.
717
-
718
- ### Parallel
719
-
720
- A step may be a `parallel:` group whose members run concurrently:
721
-
722
- ```yaml
723
- steps:
724
- - name: reviews
725
- parallel:
726
- - name: security
727
- agent: security-reviewer
728
- input: "${input}"
729
- - name: style
730
- agent: style-reviewer
731
- input: "${input}"
732
- - name: summary
733
- agent: editor
734
- input: "Security:\n${steps.security.output}\n\nStyle:\n${steps.style.output}"
735
- ```
736
-
737
- ### Router
738
-
739
- 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.
740
-
741
- ```yaml
742
- name: triage
743
- steps:
744
- - name: route
745
- agent: triage-router
746
- output_schema:
747
- type: object
748
- properties:
749
- route: { type: string, enum: [write, analyze] }
750
- message: { type: string }
751
- required: [route, message]
752
- additionalProperties: false
753
- - name: write
754
- agent: writer
755
- when: { value: "${steps.route.route}", equals: write }
756
- input: "${steps.route.message}"
108
+ cargo build --workspace # build everything
109
+ cargo test --workspace # run every test
110
+ cargo build --release -p muaz
757
111
  ```
758
112
 
759
- 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.
760
-
761
- ## 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).
762
118
 
763
- Drop a YAML file in `~/.muaz/plugins/local/commands/` to add a custom `/` command:
119
+ ## Contributing
764
120
 
765
- ```yaml
766
- # ~/.muaz/plugins/local/commands/deploy.yaml
767
- name: deploy
768
- description: "Deploy to staging"
769
- command: "cd ~/project && make deploy-staging"
770
- ```
771
-
772
- The command runs via `sh -c`. Environment variables available:
773
-
774
- | Variable | Value |
121
+ | Doc | What it answers |
775
122
  |---|---|
776
- | `MUAZ_SESSION_ID` | Current session UUID |
777
- | `MUAZ_AGENT_NAME` | Current agent name |
778
- | `MUAZ_MODEL` | Current model identifier |
779
-
780
- ## Session management
781
-
782
- Sessions are saved to `~/.muaz/sessions/` as JSON files (one per session, chmod
783
- 600), with an `index.json` beside them holding the metadata `/sessions` lists.
784
- Under a database backend they are rows instead, listed by recency with no index
785
- document to maintain — the commands below are identical either way.
786
-
787
- - Use `--session <id>` to resume a session on startup
788
- - Use `/sessions` to browse and resume from within the REPL
789
- - 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.5.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.5.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.5.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.5.0",
84
+ "version": "0.6.0",
85
85
  "volta": {
86
86
  "node": "18.14.1",
87
87
  "npm": "9.5.0"