summaryrefslogtreecommitdiff
path: root/examples/plain_ruby/README.md
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-14 09:56:52 +0200
committerPaul Buetow <paul@buetow.org>2026-03-14 09:56:52 +0200
commit818ed50e2a54b40ccf7a7771bebe0312dc01a8b5 (patch)
tree16bfb301c1192a1d301d50388eb33a52ecdc7e69 /examples/plain_ruby/README.md
parent63607f415c45a8670cd2eb4d346e448dceb5422f (diff)
Add agent-backed file processing DSL
Diffstat (limited to 'examples/plain_ruby/README.md')
-rw-r--r--examples/plain_ruby/README.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/plain_ruby/README.md b/examples/plain_ruby/README.md
index 7208317..464d537 100644
--- a/examples/plain_ruby/README.md
+++ b/examples/plain_ruby/README.md
@@ -13,6 +13,10 @@ ruby config.rb --debug
# Apply configuration
ruby config.rb
+
+# Agent-backed file processing example
+ruby agents.rb --dry
+ruby agents.rb
```
## What it does
@@ -20,3 +24,4 @@ ruby config.rb
- Creates `/tmp/example/hello.txt` with static content (parent directory created automatically)
- Ensures the line `127.0.0.1 localhost` is present in `/tmp/example/hosts.txt`
- Creates `/tmp/example/greeting.txt` from an inline ERB template
+- `agents.rb` drafts `/tmp/example/notes.txt` and then runs it through `hexai` with a prompt that fixes English grammar and clarity