@jamesaphoenix/tx-test-utils 0.5.1 → 0.5.3
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 +16 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,6 +9,14 @@ npm install -g @jamesaphoenix/tx-cli
|
|
|
9
9
|
tx init
|
|
10
10
|
```
|
|
11
11
|
|
|
12
|
+
Agent onboarding (optional, both supported):
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
tx init --claude # CLAUDE.md + .claude/skills
|
|
16
|
+
tx init --codex # AGENTS.md + .codex/agents
|
|
17
|
+
tx init --claude --codex # scaffold both
|
|
18
|
+
```
|
|
19
|
+
|
|
12
20
|
---
|
|
13
21
|
|
|
14
22
|
## The Problem
|
|
@@ -132,18 +140,20 @@ We ship **example loops**, not **the loop**:
|
|
|
132
140
|
|
|
133
141
|
```bash
|
|
134
142
|
# Simple: one agent, one task
|
|
143
|
+
AGENT_CMD=${AGENT_CMD:-codex} # or: claude
|
|
135
144
|
while task=$(tx ready --limit 1 --json | jq -r '.[0].id'); do
|
|
136
|
-
|
|
145
|
+
"$AGENT_CMD" "Work on task $task, then run: tx done $task"
|
|
137
146
|
done
|
|
138
147
|
```
|
|
139
148
|
|
|
140
149
|
```bash
|
|
141
150
|
# Parallel: N agents with claims
|
|
151
|
+
AGENT_CMD=${AGENT_CMD:-codex} # or: claude
|
|
142
152
|
for i in {1..5}; do
|
|
143
153
|
(while task=$(tx ready --json --limit 1 | jq -r '.[0].id // empty'); do
|
|
144
154
|
[ -z "$task" ] && break
|
|
145
155
|
tx claim "$task" "worker-$i" || continue
|
|
146
|
-
|
|
156
|
+
"$AGENT_CMD" "Complete $task" && tx done "$task"
|
|
147
157
|
done) &
|
|
148
158
|
done
|
|
149
159
|
wait
|
|
@@ -151,9 +161,10 @@ wait
|
|
|
151
161
|
|
|
152
162
|
```bash
|
|
153
163
|
# Human-in-loop: agent proposes, human approves
|
|
164
|
+
AGENT_CMD=${AGENT_CMD:-codex} # or: claude
|
|
154
165
|
task=$(tx ready --json --limit 1 | jq -r '.[0].id')
|
|
155
|
-
|
|
156
|
-
read -p "Approve? [y/n] " &&
|
|
166
|
+
"$AGENT_CMD" "Plan implementation for $task" > plan.md
|
|
167
|
+
read -p "Approve? [y/n] " && "$AGENT_CMD" "Execute plan.md"
|
|
157
168
|
tx done $task
|
|
158
169
|
```
|
|
159
170
|
|
|
@@ -326,6 +337,7 @@ Local SQLite for speed. JSONL for git sync. Branch your knowledge with your code
|
|
|
326
337
|
|
|
327
338
|
- **[txdocs.dev](https://txdocs.dev)**: Documentation
|
|
328
339
|
- **[CLAUDE.md](CLAUDE.md)**: Doctrine and quick reference
|
|
340
|
+
- **[AGENTS.md](AGENTS.md)**: Codex onboarding and quick reference
|
|
329
341
|
- **[docs/](docs/)**: PRDs and Design Docs
|
|
330
342
|
|
|
331
343
|
---
|