@turri-dev/cli 0.2.3-next.aee80e7 → 0.2.3-next.d9ab42b
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 +50 -54
- package/dist/cli.js +31 -1
- package/dist/installed-providers.js +1 -1
- package/dist/self-invocation.js +1 -1
- package/docs/claude-subscription.md +6 -6
- package/docs/config.md +1 -1
- package/docs/installation.md +4 -0
- package/docs/using.md +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,7 +7,9 @@
|
|
|
7
7
|
<a href="https://discord.com/invite/REJzFmVQfC"><img src="https://img.shields.io/badge/Discord-join%20the%20community-5865F2?logo=discord&logoColor=white" alt="Join the turri Discord"></a>
|
|
8
8
|
</p>
|
|
9
9
|
|
|
10
|
-
**turri**
|
|
10
|
+
**turri** is the first coding agent with the power of [regenerative software](https://chadfowler.com/regenerative-software/). It gives you back control over engineering while the agent handles the coding. Instead of maintaining code, you maintain the system's definition (specs, tests, and ADRs) structured using [\*\*\*plain](https://plainlang.org/). You describe what you want, **turri** captures it as a durable, reviewable system definition, and generates the code from it. As your intent evolves, **turri** regenerates the affected code rather than patching it prompt after prompt. The system definition remains the source of truth, and tests verify that the generated code conforms to it.
|
|
11
|
+
|
|
12
|
+
Code is disposable, system definition is durable.
|
|
11
13
|
|
|
12
14
|
**turri** is named after *Turritopsis dohrnii*, the immortal jellyfish that regenerates itself from its young form, again and again - as **turri** regenerates the code from the durable intent - see [the name](#the-name).
|
|
13
15
|
|
|
@@ -15,53 +17,53 @@
|
|
|
15
17
|
|
|
16
18
|
## Quick start
|
|
17
19
|
|
|
18
|
-
**turri** is built on [pi](https://pi.dev)
|
|
20
|
+
**turri** is built on [pi](https://pi.dev/) and runs on macOS, Linux, and WSL (native Windows via Git Bash is best effort). You'll need Git, Bash, and Node.js 22.19+.
|
|
21
|
+
|
|
22
|
+
### Install
|
|
19
23
|
|
|
20
24
|
```bash
|
|
21
|
-
npm install -g @turri-dev/cli
|
|
22
|
-
turri
|
|
23
|
-
turri doctor # checks the machine
|
|
25
|
+
npm install -g @turri-dev/cli
|
|
26
|
+
turri doctor
|
|
24
27
|
```
|
|
25
28
|
|
|
26
|
-
|
|
29
|
+
`turri doctor` checks your environment and tells you how to fix any missing dependencies. See the [installation guide](docs/installation.md) for details.
|
|
27
30
|
|
|
28
|
-
|
|
31
|
+
### Configure your models
|
|
29
32
|
|
|
30
|
-
|
|
33
|
+
**turri** uses a capable model to define the system and plan the work, and a smaller, cheaper model to write the code. It supports any model provider available through [pi](https://pi.dev/), and some subscriptions too.
|
|
31
34
|
|
|
32
35
|
```bash
|
|
33
|
-
cd
|
|
34
|
-
turri init-config
|
|
35
|
-
export ANTHROPIC_API_KEY=... # the key it names - or skip it, and type /login in turri once it has started
|
|
36
|
-
turri
|
|
36
|
+
mkdir my-project && cd my-project
|
|
37
|
+
turri init-config
|
|
37
38
|
```
|
|
38
39
|
|
|
39
|
-
|
|
40
|
+
Choose your model provider, then sign in with `/login` once **turri** has started.
|
|
40
41
|
|
|
41
|
-
|
|
42
|
-
harness-model: anthropic/claude-opus-5-5:medium # you talk to it
|
|
43
|
-
coding-model: anthropic/claude-haiku-5-5:low # it writes the code
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
To skip the question, name the vendor - `anthropic`, `openai`, `google`, `amazon-bedrock` (with `--maker` and `--region`), `claude-code` - your Claude Pro or Max subscription, through Claude Code ([how](docs/claude-subscription.md)) - or `other`:
|
|
42
|
+
### Build your first app
|
|
47
43
|
|
|
48
44
|
```bash
|
|
49
|
-
turri
|
|
45
|
+
turri
|
|
50
46
|
```
|
|
51
47
|
|
|
52
|
-
|
|
48
|
+
Then simply describe what you want:
|
|
49
|
+
|
|
50
|
+
> Build a small API where users can register and sign in.
|
|
53
51
|
|
|
54
|
-
|
|
52
|
+
**turri** captures your intent in [\*\*\*plain](https://plainlang.org/), generates the code, and validates it against the system definition.
|
|
55
53
|
|
|
56
|
-
|
|
54
|
+
As your requirements evolve, just describe the changes. **turri** updates the system definition and regenerates the affected code.
|
|
57
55
|
|
|
58
|
-
|
|
56
|
+
### Other ways to run turri
|
|
59
57
|
|
|
60
|
-
|
|
58
|
+
Prefer a graphical interface? Try [turri desktop](https://github.com/turri-oss/turri-desktop).
|
|
59
|
+
|
|
60
|
+
You can also run **turri** [in Docker](docker/README.md), or [from a clone](#from-a-clone) to follow `main` or work on **turri** itself.
|
|
61
|
+
|
|
62
|
+
For more, see [Using **turri**](docs/using.md) and [Examples](examples/README.md).
|
|
61
63
|
|
|
62
64
|
### From a clone
|
|
63
65
|
|
|
64
|
-
|
|
66
|
+
To run the local version of **turri** instead of the npm package:
|
|
65
67
|
|
|
66
68
|
```bash
|
|
67
69
|
git clone git@github.com:turri-oss/turri.git && cd turri
|
|
@@ -70,47 +72,41 @@ npm link # puts `turri` on your PATH, pointing at this clone
|
|
|
70
72
|
turri doctor
|
|
71
73
|
```
|
|
72
74
|
|
|
73
|
-
The clone runs its TypeScript sources directly, so there is nothing to build.
|
|
75
|
+
The clone runs its TypeScript sources directly, so there is nothing to build. To pick up new commits, run `git pull` and `npm install`, then start **turri** again - a running one keeps the code it started with. More in the [installation guide](docs/installation.md#from-a-clone).
|
|
74
76
|
|
|
75
|
-
|
|
76
|
-
git pull
|
|
77
|
-
npm install # picks up any dependency that changed
|
|
78
|
-
```
|
|
77
|
+
## Why
|
|
79
78
|
|
|
80
|
-
|
|
79
|
+
Coding agents write in minutes what used to take teams weeks. But while coding got faster, our ability to understand and review code didn't. We increasingly become accountable for software we don't fully understand.
|
|
81
80
|
|
|
82
|
-
|
|
81
|
+
Software built with coding agents grows prompt after prompt, patch upon patch. Decisions and reasoning get lost in chat sessions, misunderstandings accumulate in the code, and each change builds on top of the last. Eventually, neither the developer nor the agent fully understands the system anymore.
|
|
82
|
+
|
|
83
|
+
Better models and more elaborate agent workflows don't solve the fundamental problem: code remains the source of truth, and humans are expected to understand and maintain something they can no longer meaningfully review.
|
|
84
|
+
|
|
85
|
+
Regenerative software flips the traditional model of software development. Instead of maintaining code and trying to preserve the reasoning behind it, we maintain the system's definition and regenerate the code from it.
|
|
86
|
+
|
|
87
|
+
With **turri**, you engineer the system's definition instead of maintaining its implementation. The agent writes the code, but you retain the understanding and control over what gets built.
|
|
88
|
+
|
|
89
|
+
**The goal isn't to write code faster. It's to understand your software again.**
|
|
83
90
|
|
|
84
|
-
|
|
91
|
+
For the story behind **turri**, read [Why I built turri](https://turri.dev/blog/why-i-built-turri/).
|
|
85
92
|
|
|
86
|
-
Code
|
|
93
|
+
## Code is disposable
|
|
87
94
|
|
|
88
|
-
|
|
95
|
+
### 1. Define
|
|
89
96
|
|
|
90
|
-
|
|
97
|
+
Describe what you want to build or change. **turri** captures your intent as a structured system definition using [\*\*\*plain](https://plainlang.org/), including specifications, architectural decisions, and tests.
|
|
91
98
|
|
|
92
|
-
|
|
99
|
+
### 2. Review
|
|
93
100
|
|
|
94
|
-
|
|
95
|
-
| --- | --- | --- |
|
|
96
|
-
| **What you maintain** | the code, patched prompt after prompt | the durable intent |
|
|
97
|
-
| **What gets built, in what order** | whatever the agent decides, as it goes | the code is built from the durable intent step by step, in a fixed order, so no intent is skipped |
|
|
98
|
-
| **Who writes the code** | the agent, and it decides everything else too | the agent - **turri** decides what it builds, the agent only how, line by line |
|
|
99
|
-
| **How it works** | improvised, differently every time | a developer workflow baked in - build, unit test, review, conformance test, regression test, commit - the same every time |
|
|
100
|
-
| **What counts as done** | the agent says so | every unit of intent is tested and validated by **turri** itself: all its tests pass, or the work goes back |
|
|
101
|
-
| **Tests** | written and changed by the agent that writes the code | written from the durable intent, apart from the code; the agent writing the code cannot change them |
|
|
102
|
-
| **When it gets stuck** | it keeps going, or quietly works around the problem | it stops and tells you which intent to clarify |
|
|
101
|
+
Review the system definition before implementation begins. Make sure it describes what you actually want, without getting lost in implementation details.
|
|
103
102
|
|
|
104
|
-
|
|
103
|
+
### 3. Regenerate
|
|
105
104
|
|
|
106
|
-
**turri**
|
|
105
|
+
**turri** generates code from the approved definition. When requirements change, it regenerates the affected parts of the implementation rather than accumulating patches on top of existing code.
|
|
107
106
|
|
|
108
|
-
|
|
109
|
-
2. **Review and refine.** You review \*\*\*plain and change it with **turri** until it says what you mean.
|
|
110
|
-
3. **Regenerate.** Agents write the code; **turri** decides what they write and when, step by step, the same way every time.
|
|
111
|
-
4. **Validate.** Agents write conformance tests from \*\*\*plain; **turri** runs them, and keeps the code only when it does what \*\*\*plain says.
|
|
107
|
+
### 4. Prove
|
|
112
108
|
|
|
113
|
-
|
|
109
|
+
**turri** verifies the generated implementation against independently defined tests. The coding agent cannot change the tests to make its implementation pass. If validation fails, **turri** iterates until the implementation conforms to the definition.
|
|
114
110
|
|
|
115
111
|
## The name
|
|
116
112
|
|
package/dist/cli.js
CHANGED
|
@@ -88,6 +88,25 @@ const SETUP_COMMANDS = {
|
|
|
88
88
|
"init-config": "write a quick start config.turri.yaml here, from the vendor you use: a strong model to talk to, a smaller one to write the code",
|
|
89
89
|
doctor: "check what turri needs - in a project, what it needs of this machine, and that its models answer",
|
|
90
90
|
};
|
|
91
|
+
/**
|
|
92
|
+
* pi's package commands, run by pi itself: someone who installs turri has no `pi` on the PATH - npm links only turri's
|
|
93
|
+
* own command - and turri reads the packages pi installs (installed-providers.ts). `update` updates packages only: pi's
|
|
94
|
+
* own `update` with no source updates pi, and turri's pi is a pinned dependency (`updatesPi`).
|
|
95
|
+
*/
|
|
96
|
+
const PACKAGE_COMMANDS = {
|
|
97
|
+
install: "install a pi package for every turri, -l for this project only - pi-claude-code for a Claude subscription, say",
|
|
98
|
+
update: "update a pi package, or --extensions for all of them",
|
|
99
|
+
remove: "remove a pi package `turri install` put in",
|
|
100
|
+
list: "the pi packages installed, yours and this project's",
|
|
101
|
+
};
|
|
102
|
+
/** Whether `update <args>` would update pi itself, as pi reads it: no package named, `self` or `pi`, `--self` or `--all`. */
|
|
103
|
+
function updatesPi(args) {
|
|
104
|
+
if (args.some((arg) => arg === "--self" || arg === "--all" || arg === "self" || arg === "pi"))
|
|
105
|
+
return true;
|
|
106
|
+
if (args.some((arg) => arg === "-h" || arg === "--help" || arg === "--extensions" || arg === "--extension" || arg === "--models"))
|
|
107
|
+
return false;
|
|
108
|
+
return !args.some((arg) => !arg.startsWith("-"));
|
|
109
|
+
}
|
|
91
110
|
const USAGE = [
|
|
92
111
|
"usage: turri [options] open the conversation here: pi, with turri's tools and themes loaded",
|
|
93
112
|
" turri <command> [args]",
|
|
@@ -101,6 +120,7 @@ const USAGE = [
|
|
|
101
120
|
...Object.entries(COMMANDS).map(([name, { blurb }]) => ` ${name.padEnd(12)} ${blurb}`),
|
|
102
121
|
"",
|
|
103
122
|
...Object.entries(SETUP_COMMANDS).map(([name, blurb]) => ` ${name.padEnd(12)} ${blurb}`),
|
|
123
|
+
...Object.entries(PACKAGE_COMMANDS).map(([name, blurb]) => ` ${name.padEnd(12)} ${blurb}`),
|
|
104
124
|
"",
|
|
105
125
|
"Run `turri <command> --help` for that command's options.",
|
|
106
126
|
"",
|
|
@@ -152,7 +172,7 @@ if (command === "-v" || command === "--version") {
|
|
|
152
172
|
// The AWS region the project's Bedrock models need, set before any model is called - here, and in the pi the chat starts,
|
|
153
173
|
// which inherits it - unless the person set one (bedrock-region.ts). The models named on the command line count too. A
|
|
154
174
|
// command that calls no model is left alone.
|
|
155
|
-
if (!["parse", "drift", "lineage", "ledger", "init-config"].includes(command ?? "")) {
|
|
175
|
+
if (!["parse", "drift", "lineage", "ledger", "init-config", ...Object.keys(PACKAGE_COMMANDS)].includes(command ?? "")) {
|
|
156
176
|
const { applyBedrockRegion } = await import("./bedrock-region.js");
|
|
157
177
|
const named = argv.flatMap((arg, at) => ["--harness-model", "--coding-model", "--model"].includes(arg) ? [argv[at + 1] ?? ""] : arg.startsWith("--harness-model=") || arg.startsWith("--coding-model=") || arg.startsWith("--model=") ? [arg.slice(arg.indexOf("=") + 1)] : []);
|
|
158
178
|
applyBedrockRegion(process.cwd(), { also: named.filter((model) => model !== "") });
|
|
@@ -169,6 +189,16 @@ if (command === "doctor") {
|
|
|
169
189
|
const { main } = await import("./setup.js");
|
|
170
190
|
process.exit(await main(rest));
|
|
171
191
|
}
|
|
192
|
+
// pi's own main answers them, as `pi install` would - into the same ~/.pi/agent turri reads - and exits.
|
|
193
|
+
if (Object.hasOwn(PACKAGE_COMMANDS, command)) {
|
|
194
|
+
if (command === "update" && updatesPi(rest)) {
|
|
195
|
+
console.error("turri update updates pi packages: name one (turri update <source>), or --extensions for all of them. pi is part of turri - npm install -g @turri-dev/cli@latest updates both.");
|
|
196
|
+
process.exit(1);
|
|
197
|
+
}
|
|
198
|
+
const { main } = await import("@earendil-works/pi-coding-agent");
|
|
199
|
+
await main(argv);
|
|
200
|
+
process.exit(process.exitCode ?? 0);
|
|
201
|
+
}
|
|
172
202
|
const entry = COMMANDS[command];
|
|
173
203
|
if (entry === undefined) {
|
|
174
204
|
console.error(`unknown command: ${command}\n\n${USAGE}`);
|
|
@@ -19,7 +19,7 @@ export const LOADING_PROVIDERS = "TURRI_LOADING_PROVIDERS";
|
|
|
19
19
|
export const EXTENSION_PROVIDERS = {
|
|
20
20
|
"claude-code": {
|
|
21
21
|
label: "Claude subscription (Claude Code)",
|
|
22
|
-
install: "
|
|
22
|
+
install: "turri install https://github.com/earendil-works/pi-claude-code",
|
|
23
23
|
signIn: "Claude Code installed (npm install -g @anthropic-ai/claude-code) and signed in to your Claude Pro or Max subscription: claude auth login",
|
|
24
24
|
},
|
|
25
25
|
};
|
package/dist/self-invocation.js
CHANGED
|
@@ -105,7 +105,7 @@ export const TOOLS_NOT_CLI = [
|
|
|
105
105
|
"run your own command line (turri regenerate, glimpse, conform, change-plain, cultivate, release, turri itself; npm run",
|
|
106
106
|
"regenerate and the like) or start another pi through bash:",
|
|
107
107
|
"that is a separate headless run the user cannot see or stop. Only when the user explicitly asks for the",
|
|
108
|
-
"command line, run it. Configuring pi itself - pi install, update, list, config, auth
|
|
108
|
+
"command line, run it. Configuring pi itself - turri install, update, remove, list; pi install, update, list, config, auth; or its settings files -",
|
|
109
109
|
"is fine; it starts no agent.",
|
|
110
110
|
"</turri-tools>",
|
|
111
111
|
].join("\n");
|
|
@@ -21,13 +21,13 @@ turri does not depend on the extension: it finds it as pi does, once you have in
|
|
|
21
21
|
claude auth login
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
-
2. **The extension**, installed
|
|
24
|
+
2. **The extension**, installed with turri - turri runs on [pi](https://pi.dev), and `turri install` is pi's own `install`, run by the pi inside turri: no `pi` of your own needed:
|
|
25
25
|
|
|
26
26
|
```bash
|
|
27
|
-
|
|
27
|
+
turri install https://github.com/earendil-works/pi-claude-code
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
`
|
|
30
|
+
`turri list` shows it; `turri update https://github.com/earendil-works/pi-claude-code` updates it; `turri remove https://github.com/earendil-works/pi-claude-code` takes it out. A `pi` you installed yourself sees the same packages, as they are kept in pi's own folder, `~/.pi/agent`.
|
|
31
31
|
|
|
32
32
|
3. **Nothing in the environment that points Claude Code elsewhere.** The extension refuses to run while any of these is set - each sends Claude Code to an API key or another backend, not the subscription: `ANTHROPIC_API_KEY`, `ANTHROPIC_AUTH_TOKEN`, `ANTHROPIC_BASE_URL`, `ANTHROPIC_FOUNDRY_API_KEY`, `CLAUDE_CODE_USE_BEDROCK`, `CLAUDE_CODE_USE_VERTEX`, `CLAUDE_CODE_USE_FOUNDRY`. Unset them where turri starts - your shell's profile, say. A project that also uses `anthropic/...` models with a key cannot run both from one shell.
|
|
33
33
|
|
|
@@ -74,10 +74,10 @@ Each step says what you should see; the first one that does not is where it stop
|
|
|
74
74
|
|
|
75
75
|
`"loggedIn": true`, and a `"subscriptionType"` - `pro`, `max` or `team`. None, and Claude Code is signed in with a Console API key instead: `claude auth logout`, then `claude auth login` with the subscription's account.
|
|
76
76
|
|
|
77
|
-
2. **
|
|
77
|
+
2. **The extension is installed.**
|
|
78
78
|
|
|
79
79
|
```bash
|
|
80
|
-
|
|
80
|
+
turri list
|
|
81
81
|
```
|
|
82
82
|
|
|
83
83
|
lists `https://github.com/earendil-works/pi-claude-code`.
|
|
@@ -121,7 +121,7 @@ The desktop app runs turri's chats itself, and finds the extension as the termin
|
|
|
121
121
|
|
|
122
122
|
| what you see | what to do |
|
|
123
123
|
| --- | --- |
|
|
124
|
-
| `claude-code/... need pi-claude-code, pi's extension for a Claude subscription, which is not installed` | `
|
|
124
|
+
| `claude-code/... need pi-claude-code, pi's extension for a Claude subscription, which is not installed` | `turri install https://github.com/earendil-works/pi-claude-code` |
|
|
125
125
|
| `claude-code - Claude subscription (Claude Code) - is not there` | the same: the extension is not installed, so pi has no `claude-code` provider |
|
|
126
126
|
| `Claude Code (claude) is not on the PATH` | `npm install -g @anthropic-ai/claude-code`, or name it in `PI_CLAUDE_CODE_COMMAND` |
|
|
127
127
|
| `Claude Code (...) is not signed in` | `claude auth login` |
|
package/docs/config.md
CHANGED
|
@@ -28,7 +28,7 @@ Beside a `config.yaml` - another tool's, say - the new file takes from it the ke
|
|
|
28
28
|
|
|
29
29
|
### A Claude subscription
|
|
30
30
|
|
|
31
|
-
`--vendor claude-code` runs every agent on your Claude Pro, Max or Team subscription instead of an API key, through Claude Code and [pi-claude-code](https://github.com/earendil-works/pi-claude-code), a [pi](https://pi.dev) extension: `claude-code/claude-opus-5-5` to talk to, `claude-code/claude-sonnet-5` to code. It needs the extension installed (`
|
|
31
|
+
`--vendor claude-code` runs every agent on your Claude Pro, Max or Team subscription instead of an API key, through Claude Code and [pi-claude-code](https://github.com/earendil-works/pi-claude-code), a [pi](https://pi.dev) extension: `claude-code/claude-opus-5-5` to talk to, `claude-code/claude-sonnet-5` to code. It needs the extension installed (`turri install https://github.com/earendil-works/pi-claude-code`) and Claude Code signed in (`claude auth login`), and none of `ANTHROPIC_API_KEY` and the like set; `turri doctor` checks all of it. Setting it up, its models, checking it yourself and what to know: [a Claude subscription](claude-subscription.md).
|
|
32
32
|
|
|
33
33
|
## Where it is read from
|
|
34
34
|
|
package/docs/installation.md
CHANGED
|
@@ -22,6 +22,10 @@ turri # pi, with turri's tools, skills and themes loaded
|
|
|
22
22
|
|
|
23
23
|
The package is `@turri-dev/cli` - npm keeps the name `turri` back, as too like another package's - and the command it puts on your PATH is `turri`. `npm install -g @turri-dev/cli@next` gets the latest prerelease instead, built from the last commit on `main`. Installed again - `@latest` or `@next` - it replaces the one there. `turri --version` says which turri runs, and the [pi](https://pi.dev) under it: `turri 0.1.6 (pi 1.3.0)`, and from a clone its commit too.
|
|
24
24
|
|
|
25
|
+
## pi packages
|
|
26
|
+
|
|
27
|
+
turri installs no `pi` command of its own - npm puts only `turri` on your PATH - so [pi](https://pi.dev)'s package commands are turri's: `turri install <source>` installs a pi package - an extension, such as [pi-claude-code](https://github.com/earendil-works/pi-claude-code) for a [Claude subscription](claude-subscription.md) - for every turri (`-l` for this project only), `turri list` lists them, `turri update <source>` updates one and `turri update --extensions` all of them, and `turri remove <source>` takes one out. They are pi's own commands, run by the pi inside turri, and keep the packages in pi's folder, `~/.pi/agent`, where a `pi` you installed yourself finds them too. `turri update` never updates pi itself - pi is part of turri, and installing turri again updates both.
|
|
28
|
+
|
|
25
29
|
## An older turri runs
|
|
26
30
|
|
|
27
31
|
The install worked, and a bare `turri` still runs an older turri: another one comes before it on your PATH - installed under another Node version (nvm, fnm, volta and the like give each its own global folder), or an old `npm link` of a clone. The shell takes the first it finds.
|
package/docs/using.md
CHANGED
|
@@ -45,7 +45,7 @@ What each regeneration does, in order, is in [regenerating the code](regeneratin
|
|
|
45
45
|
|
|
46
46
|
The conversation knows the \*\*\*plain standard library from its first turn: the stdlib rule in its system prompt lists every stack and where the templates are, so "build this as a Flask backend" becomes an import of `stdlib/backend/python-flask`, not a stack written out by hand. The banner at start says how many stacks there are, and **`/stdlib`** lists them, each with what it is (see [the standard library](authoring-plain.md#the-standard-library)).
|
|
47
47
|
|
|
48
|
-
The agent does this work with these tools, never by running turri's command line - or another [pi](https://pi.dev) - through its shell: that would be a separate, headless run outside regen and `/halt`. The harness refuses such a command unless your message asks for the command line ("run it headless", "use the CLI", or the command itself). [pi](https://pi.dev) configuring itself - `pi install`, `update`, `list`, `config`, `auth`, its settings - is not affected.
|
|
48
|
+
The agent does this work with these tools, never by running turri's command line - or another [pi](https://pi.dev) - through its shell: that would be a separate, headless run outside regen and `/halt`. The harness refuses such a command unless your message asks for the command line ("run it headless", "use the CLI", or the command itself). [pi](https://pi.dev) configuring itself - `turri install`, `update`, `remove`, `list`, or `pi install`, `update`, `list`, `config`, `auth`, its settings - is not affected.
|
|
49
49
|
|
|
50
50
|
## Pulses
|
|
51
51
|
|
|
@@ -146,7 +146,7 @@ A provider failure - no credits, bad key, rate limit - is raised with the provid
|
|
|
146
146
|
|
|
147
147
|
### Models from a pi extension
|
|
148
148
|
|
|
149
|
-
A provider a [pi](https://pi.dev) extension registers - a Claude subscription through Claude Code ([pi-claude-code](https://github.com/earendil-works/pi-claude-code), `claude-code/...`, see [a Claude subscription](claude-subscription.md)), your company's own LLM gateway - works everywhere turri needs a model. Install the extension
|
|
149
|
+
A provider a [pi](https://pi.dev) extension registers - a Claude subscription through Claude Code ([pi-claude-code](https://github.com/earendil-works/pi-claude-code), `claude-code/...`, see [a Claude subscription](claude-subscription.md)), your company's own LLM gateway - works everywhere turri needs a model. Install the extension with `turri install <source>` - pi's own `install`, run by the pi inside turri, so no `pi` of your own is needed; `turri list`, `turri update <source>` and `turri remove <source>` are pi's too - and name its models in `config.turri.yaml` as any. In the chat, pi loads it, and every agent the conversation starts is given the providers the conversation's extensions registered, as they are when it starts - the agents themselves load no extensions, which would load a second copy of turri. A run with no conversation - `turri regenerate`, `turri change-plain`, `turri release` and the rest - loads the installed extensions itself, once, as pi loads them, and keeps only the providers they register; so do `turri doctor` and `turri init-config`, which check a model against them. An older turri that installed itself into every pi is among them, and is loaded as nothing.
|
|
150
150
|
|
|
151
151
|
## Module history
|
|
152
152
|
|