rhachet 1.19.0 โ 1.19.1
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 +43 -38
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.1",
|
|
6
6
|
"repository": "ehmpathy/rhachet",
|
|
7
7
|
"homepage": "https://github.com/ehmpathy/rhachet",
|
|
8
8
|
"keywords": [
|
package/readme.md
CHANGED
|
@@ -11,9 +11,9 @@ 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
18
|
with rhachet, you can:
|
|
19
19
|
- declare thought routes, reusably and maintainably
|
|
@@ -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
|
|
@@ -87,7 +92,7 @@ rhachet provides cli commands for each thought route:
|
|
|
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
|
|
|
@@ -110,7 +115,7 @@ export const getRoleRegistries = () => [
|
|
|
110
115
|
npx rhachet run --skill gh.workflow.logs --workflow test
|
|
111
116
|
```
|
|
112
117
|
|
|
113
|
-
deterministic
|
|
118
|
+
deterministic operations, no brain.
|
|
114
119
|
|
|
115
120
|
### ๐ฉ rigid: act
|
|
116
121
|
|
|
@@ -125,9 +130,9 @@ npx rhachet act \
|
|
|
125
130
|
--brain openai/codex
|
|
126
131
|
```
|
|
127
132
|
|
|
128
|
-
|
|
133
|
+
augmented orchestration, harness controls flow, brain augments.
|
|
129
134
|
|
|
130
|
-
###
|
|
135
|
+
### ๐ง fluid: ask
|
|
131
136
|
|
|
132
137
|
```sh
|
|
133
138
|
npx rhachet ask \
|
|
@@ -135,17 +140,17 @@ npx rhachet ask \
|
|
|
135
140
|
--ask "are birds real?"
|
|
136
141
|
```
|
|
137
142
|
|
|
138
|
-
brain decides the path
|
|
143
|
+
probabilistic exploration, brain decides the path.
|
|
139
144
|
|
|
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
|
|
|
@@ -178,7 +183,7 @@ await mechanic.run({
|
|
|
178
183
|
});
|
|
179
184
|
```
|
|
180
185
|
|
|
181
|
-
deterministic
|
|
186
|
+
deterministic operations, no brain.
|
|
182
187
|
|
|
183
188
|
### ๐ฉ rigid: act
|
|
184
189
|
|
|
@@ -195,17 +200,17 @@ await mechanic.act({
|
|
|
195
200
|
});
|
|
196
201
|
```
|
|
197
202
|
|
|
198
|
-
|
|
203
|
+
augmented orchestration, harness controls flow, brain augments.
|
|
199
204
|
|
|
200
|
-
###
|
|
205
|
+
### ๐ง fluid: ask
|
|
201
206
|
|
|
202
207
|
```ts
|
|
203
|
-
await
|
|
208
|
+
await skeptic.ask({
|
|
204
209
|
prompt: 'are birds real?',
|
|
205
210
|
});
|
|
206
211
|
```
|
|
207
212
|
|
|
208
|
-
brain decides the path
|
|
213
|
+
probabilistic exploration, brain decides the path.
|
|
209
214
|
|
|
210
215
|
# vision
|
|
211
216
|
|