pi-harness-runtime 0.3.0 → 0.3.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/README.md +25 -9
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,18 +1,23 @@
|
|
|
1
1
|
# Pi Harness Runtime
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
[](https://www.npmjs.com/package/pi-harness-runtime)
|
|
3
|
+
[](https://github.com/ManotLuijiu/pi-harness-runtime)
|
|
4
|
+
[](https://www.npmjs.com/package/pi-harness-runtime)
|
|
6
5
|
[](https://opensource.org/licenses/MIT)
|
|
7
6
|
[]()
|
|
8
7
|
|
|
8
|
+
> ⚠️ **⚠️ Beta Notice — Not Production Ready ⚠️**
|
|
9
|
+
> This project is in active development. Core features work but E2E testing is not yet implemented.
|
|
10
|
+
> **148+ downloads** and counting — we appreciate the interest! Help us test by filing issues.
|
|
11
|
+
|
|
12
|
+
**Autonomous AI coding harness for pi: local token tracking + provider mirror + task orchestration.**
|
|
13
|
+
|
|
9
14
|
## Two Flavors
|
|
10
15
|
|
|
11
|
-
### 1. `/usage` — Token Tracking (
|
|
16
|
+
### 1. `/usage` — Token Tracking (stable ✅)
|
|
12
17
|
|
|
13
18
|
Codex-style usage tracking with local tokens + provider mirror.
|
|
14
19
|
|
|
15
|
-
### 2. `/harness` — Autonomous Coding Loop (
|
|
20
|
+
### 2. `/harness` — Autonomous Coding Loop (beta 🔨)
|
|
16
21
|
|
|
17
22
|
Give the runtime a requirement. It keeps working, survives interruption, and returns with code ready for review.
|
|
18
23
|
|
|
@@ -37,7 +42,7 @@ Requires Pi v0.37.3+.
|
|
|
37
42
|
## Harness Commands
|
|
38
43
|
|
|
39
44
|
```bash
|
|
40
|
-
/harness start <requirement> # Start a new harness job
|
|
45
|
+
/harness start <requirement> # Start a new harness job (beta)
|
|
41
46
|
/harness status # Show current job status
|
|
42
47
|
/harness tasks # List all tasks
|
|
43
48
|
/harness pause # Pause when quota low
|
|
@@ -84,12 +89,12 @@ pi-harness-runtime/
|
|
|
84
89
|
│ ├── task-graph.ts # DAG-based task management
|
|
85
90
|
│ ├── master-planner.ts # Requirement → task graph
|
|
86
91
|
│ ├── loop-runtime.ts # Core execution loop
|
|
87
|
-
│ ├── repair-engine.ts
|
|
92
|
+
│ ├── repair-engine.ts # Auto-fix failures
|
|
88
93
|
│ ├── blackboard.ts # Agent coordination
|
|
89
94
|
│ ├── context-window-manager.ts # Context tracking
|
|
90
95
|
│ ├── agent-handoff.ts # Clean agent transitions
|
|
91
96
|
│ ├── e2e/
|
|
92
|
-
│ │ ├── test-engine.ts # E2E test runner
|
|
97
|
+
│ │ ├── test-engine.ts # E2E test runner (coming soon)
|
|
93
98
|
│ │ └── playwright-runner.ts # Browser automation
|
|
94
99
|
│ └── project-detector/
|
|
95
100
|
│ └── detector.ts # Auto-detect project type
|
|
@@ -119,7 +124,7 @@ cancelled blocked waiting_human repairing ready_for_client
|
|
|
119
124
|
- **Provider-agnostic**: MiniMax, OpenAI, Claude adapters
|
|
120
125
|
- **Task DAG**: Dependencies tracked, topological execution
|
|
121
126
|
- **Auto-repair**: Failure classification + retry with exponential backoff
|
|
122
|
-
- **E2E testing**: Scenario-based Playwright integration
|
|
127
|
+
- **E2E testing**: Scenario-based Playwright integration (coming soon)
|
|
123
128
|
- **Project detection**: Auto-detects Frappe, Next.js, React, Django, Laravel
|
|
124
129
|
|
|
125
130
|
## Data Directory
|
|
@@ -155,6 +160,17 @@ All data stored locally in `~/.pi/`:
|
|
|
155
160
|
bun test # 131+ tests passing
|
|
156
161
|
```
|
|
157
162
|
|
|
163
|
+
## Roadmap
|
|
164
|
+
|
|
165
|
+
- [x] Core harness infrastructure (job state machine, task graph)
|
|
166
|
+
- [x] Master planner
|
|
167
|
+
- [x] Repair engine
|
|
168
|
+
- [x] Shared blackboard
|
|
169
|
+
- [ ] E2E test engine integration
|
|
170
|
+
- [ ] MiniMax Web automatic quota detection
|
|
171
|
+
- [ ] Claude adapter
|
|
172
|
+
- [ ] Production stress testing
|
|
173
|
+
|
|
158
174
|
## License
|
|
159
175
|
|
|
160
176
|
MIT © 2026 MooCoding
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-harness-runtime",
|
|
3
|
-
"version": "0.3.
|
|
4
|
-
"description": "Codex-style /usage status for pi
|
|
3
|
+
"version": "0.3.1",
|
|
4
|
+
"description": "[BETA] Codex-style /usage status + autonomous coding harness for pi. Not production ready — expect breaking changes.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "node --test",
|