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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
# The rig agent's plugins, added in this order. `rig build`, or /reload in
# the agent, applies changes. CARGO_BUILD_JOBS sets cargo's -j for them.
# Each [[plugin]] names a type implementing Bevy's Plugin + Default
# (`plugin`) and the package it is in (`crate`), with at most one source:
# `path` (relative to this file), `git` (with an optional `branch` or
# `rev`) or `version`. An entry without one is one of rig's own plugin
# crates, at the launcher's version: from crates.io, or from the rig
# checkout the agent is built from (RIG_SOURCE). The harness
# (the session and the launcher protocol) is always there; every entry
# below can go. A commented-out entry is a disabled one, and the comment
# above an entry is its description: `rig plugin list` and /plugins show
# them, and `rig plugin enable` and `disable` turn entries on and off.
# `rig plugin new <name>` makes a plugin crate in plugins/<name> and adds
# its entry; `rig plugin check` checks this file.
# rig's own system prompt: one fixed text, so the prompt cache keeps it.
[[]]
= "rig-basics"
= "rig_basics::prompt::DefaultPromptPlugin"
# /model, /effort and the model picker.
[[]]
= "rig-basics"
= "rig_basics::models::ModelsPlugin"
# /login and /logout for the ChatGPT plan's models.
[[]]
= "rig-basics"
= "rig_basics::login_chatgpt::ChatgptLoginPlugin"
# The model and reasoning a new session starts with: the last ones chosen.
[[]]
= "rig-basics"
= "rig_basics::models::defaults::DefaultsPlugin"
# /new, /resume and /name.
[[]]
= "rig-basics"
= "rig_basics::sessions::SessionsPlugin"
# /fork, /agents and rewind (Alt+Up to an earlier message of yours, then Enter): the agents of this session.
[[]]
= "rig-basics"
= "rig_basics::sessions::agents::AgentsPlugin"
# Summarizing a conversation near the context window, and /compact.
[[]]
= "rig-basics"
= "rig_basics::compaction::CompactionPlugin"
# What model calls cost, and /usage.
[[]]
= "rig-basics"
= "rig_basics::telemetry::usage::UsagePlugin"
# What each agent is doing, for views.
[[]]
= "rig-basics"
= "rig_basics::activity::ActivityPlugin"
# The tools: read, edit, write and shell.
[[]]
= "rig-basics"
= "rig_basics::coding_tools::ReadTool"
[[]]
= "rig-basics"
= "rig_basics::coding_tools::EditTool"
[[]]
= "rig-basics"
= "rig_basics::coding_tools::WriteTool"
[[]]
= "rig-basics"
= "rig_basics::coding_tools::ShellTool"
# Files named as @path in what the user types go with the message.
[[]]
= "rig-basics"
= "rig_basics::coding_tools::AttachPlugin"
# Paths written HOST:PATH reach the hosts [remote.hosts] in settings.toml
# names (ssh, koh exec, ...); nothing without hosts.
[[]]
= "rig-basics"
= "rig_basics::coding_tools::remote::RemoteHostsPlugin"
# One question for every effect a plugin wants approved; nothing asks by default. SubagentsPlugin adds it.
# [[plugin]]
# crate = "rig-basics"
# plugin = "rig_basics::approval::ApprovalPlugin"
# What a tool call would change on disk, before it runs, for gates that ask (Preview).
# [[plugin]]
# crate = "rig-basics"
# plugin = "rig_basics::preview::PreviewPlugin"
# What each tool call changed on disk (FilesChanged), with snapshots before and after.
# [[plugin]]
# crate = "rig-basics"
# plugin = "rig_basics::checkpoint::CheckpointPlugin"
# /reload and the reload tool, with which the agent rebuilds itself, and the
# system prompt's fixed section on how the agent writes plugins.
# Without it the agent runs the build it started with.
[[]]
= "rig-basics"
= "rig_basics::reload::ReloadPlugin"
# /plugins: every plugin here, enabled and disabled, to turn on and off;
# applying rebuilds the agent at once.
[[]]
= "rig-basics"
= "rig_basics::reload::plugins::PluginsPlugin"
# /help, /retry and /quit.
[[]]
= "rig-basics"
= "rig_basics::BasicCommandsPlugin"
# The welcome at the top of the transcript: rig's mark, its version, the
# model and the project's directory. Never sent to the model.
[[]]
= "rig-basics"
= "rig_basics::welcome::WelcomePlugin"
# The inspect tool, with which the agent reads its own running world; it pulls in Bevy Remote, a heavier build, and on Linux the ALSA headers.
# [[plugin]]
# crate = "rig-inspect"
# plugin = "rig_inspect::InspectPlugin"
# -p and --json: answers one prompt, or what is piped in, and drives the
# agent with JSON lines on stdin and stdout; the front of every run that is
# not on an interactive terminal.
[[]]
= "rig-basics"
= "rig_basics::print::PrintPlugin"
# The terminal view, the front of a run on an interactive terminal. Without
# it the agent answers -p or what is piped in, and says so when started on
# a terminal.
[[]]
= "rig-tui"
= "rig_tui::TuiPlugin"
# The helper tool: hands tasks to other rig agents, each a `rig -p --json` child process, one, several side by side or a chain, and returns their final answers.
# [[plugin]]
# crate = "rig-basics"
# plugin = "rig_basics::helpers::HelpersPlugin"
# Subagents: the task, message and wait tools, with which the agent starts other agents, messages them and waits on their reports.
# [[plugin]]
# crate = "rig-basics"
# plugin = "rig_basics::subagents::SubagentsPlugin"
# The run_steel tool: one Scheme program that runs several agents and tool calls and branches on their results.
# [[plugin]]
# crate = "rig-steel"
# plugin = "rig_steel::SteelPlugin"
# The effect log: every model call, tool call and message, as a record in the session's effects.jsonl.
# [[plugin]]
# crate = "rig-basics"
# plugin = "rig_basics::telemetry::effect_log::EffectLogPlugin"
# The warnings and errors the agent logs, kept as data for the inspect tool.
# [[plugin]]
# crate = "rig-basics"
# plugin = "rig_basics::telemetry::diagnostics::DiagnosticsPlugin"