Skip to content

Commit 5510da0

Browse files
authored
Merge pull request #50 from OpenAF/codex/check-documentation-for-missing-features
2 parents 678107d + b2846bd commit 5510da0

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,25 @@ Common web toggles:
3030
- `logpromptheaders=origin,referer` to emit selected HTTP headers for debugging
3131
- `usediagrams=false` / `usecharts=false` to disable Mermaid diagrams or Chart.js rendering when the runtime lacks those assets
3232
- `useattach=true` to enable the paperclip for uploading supporting text snippets
33+
- `mode=shell` (or any preset below) to reuse a curated bundle of flags from [`mini-a-modes.yaml`](mini-a-modes.yaml)
34+
35+
### Mode presets
36+
37+
Mini-A ships with reusable argument bundles so you can switch behaviors without remembering every flag. Pass `mode=<name>` with
38+
`mini-a.sh`, `mini-a.yaml`, or `mini-a-main.yaml` and the runtime will merge the corresponding preset from
39+
[`mini-a-modes.yaml`](mini-a-modes.yaml) before applying any explicit flags you provide on the command line.
40+
41+
Built-in presets:
42+
43+
- **`shell`** – Read-only shell access (`useshell=true`).
44+
- **`shellrw`** – Shell with write access enabled (`useshell=true readwrite=true`).
45+
- **`shellutils`** – Shell plus the Mini File Tool MCP utilities (`useutils=true usetools=true`).
46+
- **`chatbot`** – Lightweight conversational mode (`chatbotmode=true`).
47+
- **`web`** – Browser UI with tool registration (`usetools=true`).
48+
- **`webfull`** – Web UI with history, attachments, diagrams, charts, and planning enabled (`usetools=true usediagrams=true usecharts=true usehistory=true useattach=true historykeep=true useplanning=true`).
49+
50+
Create your own presets by copying the file and adding new entries or overriding them locally—the agent loads the YAML on each
51+
run, so custom additions are immediately available.
3352

3453
## Documentation
3554

@@ -288,6 +307,7 @@ All Mini-A options can be passed as command line arguments:
288307
- `knowledge` – Extra instructions or the path to a text file to append to the system prompt
289308
- `rules` – Additional numbered rules (JSON/SLON array) injected into the system prompt
290309
- `state` – Initial agent state payload (JSON/SLON string or object) preserved between steps
310+
- `mode` – Apply a preset from [`mini-a-modes.yaml`](mini-a-modes.yaml) to toggle a bundle of arguments at once
291311
- `conversation` – Path to a conversation JSON file to load/save chat history
292312
- `libs` – Comma-separated list of extra OpenAF libraries to load before starting
293313
- `maxsteps` – Maximum consecutive steps without a successful action before forcing a final response (default `15`)
@@ -300,6 +320,7 @@ All Mini-A options can be passed as command line arguments:
300320
- `__format` – Output format (e.g. `md`, `json`)
301321
- `chatbotmode` – Skip the agent workflow and respond like a regular chat assistant (default `false`)
302322
- `useplanning` – Keep a live task plan in agent mode; Mini-A disables it automatically for trivial goals
323+
- `auditch` – Persist every interaction event to an OpenAF channel (JSSLON definition)
303324

304325
For a complete list of options, see the [Usage Guide](USAGE.md).
305326

USAGE.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ The `start()` method accepts various configuration options:
213213
- **`raw`** (boolean, default: false): Return raw string instead of formatted output
214214
- **`chatbotmode`** (boolean, default: false): Replace the agent workflow with a lightweight conversational assistant prompt
215215
- **`useplanning`** (boolean, default: false): Maintain a persistent task plan in agent mode; Mini-A disables it automatically when the goal looks trivial
216+
- **`mode`** (string): Apply a preset from [`mini-a-modes.yaml`](mini-a-modes.yaml) to prefill a bundle of related flags
216217

217218
#### Shell and File System Access
218219
- **`useshell`** (boolean, default: false): Allow shell command execution
@@ -264,6 +265,17 @@ If every stage returns an empty list (or errors), Mini-A logs the issue and fall
264265
- **`conversation`** (string): Path to file for loading/saving conversation history
265266
- **`state`** (object|string): Initial structured state (JSON/SLON) injected before the first step and persisted across turns
266267

268+
#### Mode Presets
269+
- **`mode`** (string): Shortcut for loading a preset argument bundle from [`mini-a-modes.yaml`](mini-a-modes.yaml). Presets are merged before explicit flags, so command-line overrides always win. Bundled configurations include:
270+
- `shell` – Enables read-only shell access.
271+
- `shellrw` – Enables shell access with write permissions (`readwrite=true`).
272+
- `shellutils` – Adds the Mini File Tool helpers as an MCP (`useutils=true usetools=true`).
273+
- `chatbot` – Switches to conversational mode (`chatbotmode=true`).
274+
- `web` – Optimizes for the browser UI with MCP tools registered (`usetools=true`).
275+
- `webfull` – Turns on diagrams, charts, attachments, history retention, and planning for the web UI (`usetools=true usediagrams=true usecharts=true usehistory=true useattach=true historykeep=true useplanning=true`).
276+
277+
Extend or override these presets by editing the YAML file—Mini-A reloads it on each run.
278+
267279
#### Output Configuration
268280
- **`outfile`** (string): Path to file where final answer will be written
269281
- **`__format`** (string): Output format (e.g. "json", "md", ...)

0 commit comments

Comments
 (0)