rhachet 1.19.0 โ 1.19.2
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/package.json +1 -1
- package/readme.md +49 -44
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "rhachet",
|
|
3
3
|
"author": "ehmpathy",
|
|
4
4
|
"description": "A framework for reliable, thorough thought. Weave threads of thought via stitches.",
|
|
5
|
-
"version": "1.19.
|
|
5
|
+
"version": "1.19.2",
|
|
6
6
|
"repository": "ehmpathy/rhachet",
|
|
7
7
|
"homepage": "https://github.com/ehmpathy/rhachet",
|
|
8
8
|
"keywords": [
|
package/readme.md
CHANGED
|
@@ -11,11 +11,11 @@ a framework for reliable, composable, and iteratively improvable thought.
|
|
|
11
11
|
|
|
12
12
|
rhachet makes it simple to leverage thought routes - safely, easily, and effectively.
|
|
13
13
|
|
|
14
|
-
- ๐ชจ **solid** routes for deterministic
|
|
15
|
-
- ๐ฉ **rigid** routes for augmented
|
|
16
|
-
-
|
|
14
|
+
- ๐ชจ **solid** routes for deterministic operations
|
|
15
|
+
- ๐ฉ **rigid** routes for augmented orchestration
|
|
16
|
+
- ๐ง **fluid** routes for probabalistic exploration
|
|
17
17
|
|
|
18
|
-
with rhachet, you can
|
|
18
|
+
with rhachet, you can
|
|
19
19
|
- declare thought routes, reusably and maintainably
|
|
20
20
|
- apply thought routes, observably and reliably
|
|
21
21
|
- compose and accumulate reusable thought skill
|
|
@@ -28,49 +28,54 @@ with rhachet, you can:
|
|
|
28
28
|
|
|
29
29
|
thought routes describe the determinism profile of an execution path.
|
|
30
30
|
|
|
31
|
-
| route | what | when to use
|
|
32
|
-
| ----------- | ------------------------------------------------ |
|
|
33
|
-
| ๐ชจ **solid** | deterministic throughout |
|
|
34
|
-
| ๐ฉ **rigid** | deterministic harness + probabilistic operations |
|
|
35
|
-
|
|
|
31
|
+
| route | what | when to use |
|
|
32
|
+
| ----------- | ------------------------------------------------ | ------------------------------------------------ |
|
|
33
|
+
| ๐ชจ **solid** | deterministic throughout | whenever you can; faster, cheaper, more reliable |
|
|
34
|
+
| ๐ฉ **rigid** | deterministic harness + probabilistic operations | when you can control the flow, brain fills gaps |
|
|
35
|
+
| ๐ง **fluid** | probabilistic throughout | when brain must decide the flow |
|
|
36
36
|
|
|
37
37
|
the key distinction:
|
|
38
38
|
- ๐ฉ **rigid**: you know when thought is needed, harness controls
|
|
39
|
-
-
|
|
39
|
+
- ๐ง **fluid**: you don't know when or what thought is needed, brain decides
|
|
40
40
|
|
|
41
41
|
## brains
|
|
42
42
|
|
|
43
43
|
brains are probabilistic imagination mechanisms that provide creative thought capabilities:
|
|
44
44
|
|
|
45
|
-
| type
|
|
46
|
-
|
|
|
47
|
-
| **brain.atom** | single inference
|
|
45
|
+
| type | what | characteristics |
|
|
46
|
+
| -------------- | -------------------- | ------------------------------ |
|
|
47
|
+
| **brain.atom** | single inference | stateless, one-shot |
|
|
48
48
|
| **brain.repl** | read-eval-print-loop | stateful, multi-turn, tool use |
|
|
49
49
|
|
|
50
50
|
brain.atom is for single-turn operations. brain.repl is for multi-turn operations.
|
|
51
51
|
|
|
52
52
|
## actors, roles, skills, briefs
|
|
53
53
|
|
|
54
|
-
rhachet organizes thought operators into a composable hierarchy
|
|
54
|
+
rhachet organizes thought operators into a composable hierarchy
|
|
55
55
|
|
|
56
56
|
```
|
|
57
|
-
actor
|
|
58
|
-
|
|
57
|
+
actor
|
|
58
|
+
โโโ brain
|
|
59
|
+
โโโ role
|
|
60
|
+
โโโ briefs
|
|
61
|
+
โโโ skills
|
|
59
62
|
```
|
|
60
63
|
|
|
61
|
-
| concept
|
|
62
|
-
|
|
|
63
|
-
| **actor** | a brain
|
|
64
|
-
| **role** | a bundle of skills + briefs | mechanic, reviewer, architect
|
|
65
|
-
| **
|
|
66
|
-
| **
|
|
64
|
+
| concept | what | example |
|
|
65
|
+
| ----------- | ---------------------------------- | -------------------------------------------- |
|
|
66
|
+
| ๐ญ **actor** | a brain in a role | mechanic actor (brain:codex + role:mechanic) |
|
|
67
|
+
| ๐งข **role** | a bundle of skills + briefs | mechanic, reviewer, architect |
|
|
68
|
+
| ๐ **brief** | curated knowledge for the role | code standards, domain patterns |
|
|
69
|
+
| ๐ช **skill** | executable capability for the role | review, deliver, decompose |
|
|
67
70
|
|
|
68
|
-
|
|
71
|
+
actors cause action - yet are not agents until delegated to.
|
|
69
72
|
|
|
70
|
-
|
|
73
|
+
roles are portable - the same role can be assumed by different brains.
|
|
71
74
|
|
|
72
75
|
briefs are cumulative - they encode institutional knowledge that improves over time.
|
|
73
76
|
|
|
77
|
+
skills are composable - they can invoke other skills, nest thought routes, and build complexity incrementally.
|
|
78
|
+
|
|
74
79
|
# install
|
|
75
80
|
|
|
76
81
|
```sh
|
|
@@ -81,13 +86,13 @@ npm install rhachet
|
|
|
81
86
|
|
|
82
87
|
## cli
|
|
83
88
|
|
|
84
|
-
rhachet provides cli commands for each thought route
|
|
89
|
+
rhachet provides cli commands for each thought route
|
|
85
90
|
|
|
86
91
|
| command | route | what it does |
|
|
87
92
|
| ----------------- | ------- | ------------------------------------------ |
|
|
88
93
|
| `npx rhachet run` | ๐ชจ solid | execute a shell skill, no brain |
|
|
89
94
|
| `npx rhachet act` | ๐ฉ rigid | execute a skill with deterministic harness |
|
|
90
|
-
| `npx rhachet ask` |
|
|
95
|
+
| `npx rhachet ask` | ๐ง fluid | converse with an actor, brain decides path |
|
|
91
96
|
|
|
92
97
|
### setup
|
|
93
98
|
|
|
@@ -106,14 +111,16 @@ export const getRoleRegistries = () => [
|
|
|
106
111
|
|
|
107
112
|
### ๐ชจ solid: run
|
|
108
113
|
|
|
114
|
+
deterministic operations, no brain.
|
|
115
|
+
|
|
109
116
|
```sh
|
|
110
117
|
npx rhachet run --skill gh.workflow.logs --workflow test
|
|
111
118
|
```
|
|
112
119
|
|
|
113
|
-
deterministic execution, no brain involved.
|
|
114
|
-
|
|
115
120
|
### ๐ฉ rigid: act
|
|
116
121
|
|
|
122
|
+
augmented orchestration, harness controls flow, brain augments.
|
|
123
|
+
|
|
117
124
|
```sh
|
|
118
125
|
npx rhachet act \
|
|
119
126
|
--role mechanic --skill review \
|
|
@@ -125,9 +132,9 @@ npx rhachet act \
|
|
|
125
132
|
--brain openai/codex
|
|
126
133
|
```
|
|
127
134
|
|
|
128
|
-
|
|
135
|
+
### ๐ง fluid: ask
|
|
129
136
|
|
|
130
|
-
|
|
137
|
+
probabilistic exploration, brain decides the path.
|
|
131
138
|
|
|
132
139
|
```sh
|
|
133
140
|
npx rhachet ask \
|
|
@@ -135,17 +142,15 @@ npx rhachet ask \
|
|
|
135
142
|
--ask "are birds real?"
|
|
136
143
|
```
|
|
137
144
|
|
|
138
|
-
brain decides the path, exploration is the goal.
|
|
139
|
-
|
|
140
145
|
## sdk
|
|
141
146
|
|
|
142
147
|
rhachet provides a type-safe sdk for programmatic actor usage.
|
|
143
148
|
|
|
144
|
-
| method
|
|
145
|
-
|
|
|
146
|
-
| `actor.run()`
|
|
147
|
-
| `actor.act()`
|
|
148
|
-
| `actor.ask()`
|
|
149
|
+
| method | route | what it does |
|
|
150
|
+
| ------------- | ------- | ------------------------------------------ |
|
|
151
|
+
| `actor.run()` | ๐ชจ solid | execute a shell skill, no brain |
|
|
152
|
+
| `actor.act()` | ๐ฉ rigid | execute a skill with deterministic harness |
|
|
153
|
+
| `actor.ask()` | ๐ง fluid | converse with an actor, brain decides path |
|
|
149
154
|
|
|
150
155
|
### setup
|
|
151
156
|
|
|
@@ -172,16 +177,18 @@ the `brains` allowlist:
|
|
|
172
177
|
|
|
173
178
|
### ๐ชจ solid: run
|
|
174
179
|
|
|
180
|
+
deterministic operations, no brain.
|
|
181
|
+
|
|
175
182
|
```ts
|
|
176
183
|
await mechanic.run({
|
|
177
184
|
skill: { 'gh.workflow.logs': { workflow: 'test' } },
|
|
178
185
|
});
|
|
179
186
|
```
|
|
180
187
|
|
|
181
|
-
deterministic execution, no brain involved.
|
|
182
|
-
|
|
183
188
|
### ๐ฉ rigid: act
|
|
184
189
|
|
|
190
|
+
augmented orchestration, harness controls flow, brain augments.
|
|
191
|
+
|
|
185
192
|
```ts
|
|
186
193
|
// uses default brain (first in allowlist)
|
|
187
194
|
await mechanic.act({
|
|
@@ -195,18 +202,16 @@ await mechanic.act({
|
|
|
195
202
|
});
|
|
196
203
|
```
|
|
197
204
|
|
|
198
|
-
|
|
205
|
+
### ๐ง fluid: ask
|
|
199
206
|
|
|
200
|
-
|
|
207
|
+
probabilistic exploration, brain decides the path.
|
|
201
208
|
|
|
202
209
|
```ts
|
|
203
|
-
await
|
|
210
|
+
await skeptic.ask({
|
|
204
211
|
prompt: 'are birds real?',
|
|
205
212
|
});
|
|
206
213
|
```
|
|
207
214
|
|
|
208
|
-
brain decides the path, exploration is the goal.
|
|
209
|
-
|
|
210
215
|
# vision
|
|
211
216
|
|
|
212
217
|
build or use digital actors, who work even from your laptop, and work for anyone you choose.
|