nandi/oripublic Fork 0
5d476ff5f3dc3b7db3afaccaedc7d9661981449e
Commits
Clone
git clone https://git.rickub.com/nandi/ori.git
git clone ssh://git@rickub.com/nandi/ori.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

forked from bots-garden/ori

main.go · 27 lines · 660 BGo Blame HistoryRaw
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Command ori-mock-agent is a deterministic ACP agent speaking on stdio.
// It lets you try the full ori experience — streaming, thoughts, plan, tool
// calls, permissions — without Claude Code or any network access:
//
//	ori --agent-cmd "bin/ori-mock-agent"
package main

import (
	"flag"
	"fmt"
	"os"
	"time"

	"rickub.com/bots-garden/ori/internal/mockagent"
)

func main() {
	delay := flag.Duration("delay", 300*time.Millisecond, "pause between streamed updates")
	flag.Parse()

	agent := mockagent.New()
	agent.Delay = *delay
	if err := agent.Run(os.Stdin, os.Stdout); err != nil {
		fmt.Fprintln(os.Stderr, "ori-mock-agent:", err)
		os.Exit(1)
	}
}