@artale/pi-pai 4.3.0 → 4.4.0
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/INSTALL.md.pai +224 -0
- package/TELOS.md +45 -0
- package/package.json +1 -1
- package/settings.json.pai +14 -0
package/INSTALL.md.pai
ADDED
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
# Installing PAI on Pi — Step by Step
|
|
2
|
+
|
|
3
|
+
> **Note:** This is v1.0.0 (alpha) — an early release. Expect rough edges as this evolves.
|
|
4
|
+
|
|
5
|
+
This guide takes you from zero to a working PAI system on Pi. Total time: ~15 minutes.
|
|
6
|
+
|
|
7
|
+
## Prerequisites
|
|
8
|
+
|
|
9
|
+
- **Node.js 18+** — [nodejs.org](https://nodejs.org/) or via your package manager
|
|
10
|
+
- **A model provider** — at least one of:
|
|
11
|
+
- [Ollama](https://ollama.ai/) for local models (free, private)
|
|
12
|
+
- An API key for Anthropic, OpenAI, or OpenRouter
|
|
13
|
+
|
|
14
|
+
## Step 1: Install Pi
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npm install -g @mariozechner/pi-coding-agent
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Verify it's installed:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
pi --version
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Step 2: Set Up a Model Provider
|
|
27
|
+
|
|
28
|
+
### Option A: Ollama (Local Models — Free)
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
# Install Ollama
|
|
32
|
+
curl -fsSL https://ollama.ai/install.sh | sh
|
|
33
|
+
|
|
34
|
+
# Pull a model (pick one)
|
|
35
|
+
ollama pull llama3.1:8b # Fast, good for simple tasks (~4.7GB)
|
|
36
|
+
ollama pull llama3.1:70b # Powerful, needs 48GB+ RAM (~40GB)
|
|
37
|
+
ollama pull qwen2.5:32b # Good balance of speed and quality (~19GB)
|
|
38
|
+
ollama pull deepseek-r1:32b # Strong reasoning (~19GB)
|
|
39
|
+
|
|
40
|
+
# Ollama runs automatically at http://localhost:11434
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Option B: Cloud API (Anthropic, OpenAI, OpenRouter)
|
|
44
|
+
|
|
45
|
+
Get an API key from your provider and have it ready for Step 4.
|
|
46
|
+
|
|
47
|
+
## Step 3: Copy the PAI Scaffold
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
# Create the config directory
|
|
51
|
+
mkdir -p ~/.config/PAI-pi
|
|
52
|
+
|
|
53
|
+
# From this directory (Releases/Pi/), copy everything
|
|
54
|
+
cp -r config/* ~/.config/PAI-pi/
|
|
55
|
+
mkdir -p ~/.config/PAI-pi/extensions
|
|
56
|
+
cp -r extensions/* ~/.config/PAI-pi/extensions/
|
|
57
|
+
mkdir -p ~/.config/PAI-pi/skills
|
|
58
|
+
cp -r skills/* ~/.config/PAI-pi/skills/
|
|
59
|
+
mkdir -p ~/.config/PAI-pi/memory
|
|
60
|
+
cp -r memory/* ~/.config/PAI-pi/memory/
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## Step 4: Configure Your Model Provider
|
|
64
|
+
|
|
65
|
+
Edit `~/.config/PAI-pi/models.json`. Here are working examples:
|
|
66
|
+
|
|
67
|
+
### Ollama (Local)
|
|
68
|
+
|
|
69
|
+
```json
|
|
70
|
+
{
|
|
71
|
+
"providers": {
|
|
72
|
+
"ollama": {
|
|
73
|
+
"type": "ollama",
|
|
74
|
+
"baseUrl": "http://localhost:11434",
|
|
75
|
+
"models": {
|
|
76
|
+
"default": "llama3.1:8b"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### Anthropic
|
|
84
|
+
|
|
85
|
+
```json
|
|
86
|
+
{
|
|
87
|
+
"providers": {
|
|
88
|
+
"anthropic": {
|
|
89
|
+
"type": "anthropic",
|
|
90
|
+
"apiKey": "sk-ant-...",
|
|
91
|
+
"models": {
|
|
92
|
+
"default": "claude-sonnet-4-6"
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### OpenRouter (Access Many Models)
|
|
100
|
+
|
|
101
|
+
```json
|
|
102
|
+
{
|
|
103
|
+
"providers": {
|
|
104
|
+
"openrouter": {
|
|
105
|
+
"type": "openai",
|
|
106
|
+
"baseUrl": "https://openrouter.ai/api/v1",
|
|
107
|
+
"apiKey": "sk-or-...",
|
|
108
|
+
"models": {
|
|
109
|
+
"default": "anthropic/claude-sonnet-4-6"
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
### Multiple Providers
|
|
117
|
+
|
|
118
|
+
```json
|
|
119
|
+
{
|
|
120
|
+
"providers": {
|
|
121
|
+
"local": {
|
|
122
|
+
"type": "ollama",
|
|
123
|
+
"baseUrl": "http://localhost:11434",
|
|
124
|
+
"models": {
|
|
125
|
+
"default": "llama3.1:8b",
|
|
126
|
+
"thinking": "qwen2.5:32b"
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"cloud": {
|
|
130
|
+
"type": "anthropic",
|
|
131
|
+
"apiKey": "sk-ant-...",
|
|
132
|
+
"models": {
|
|
133
|
+
"default": "claude-sonnet-4-6"
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
## Step 5: Customize Your Identity
|
|
141
|
+
|
|
142
|
+
Edit `~/.config/PAI-pi/SYSTEM.md` and replace the placeholders:
|
|
143
|
+
|
|
144
|
+
- `{{YOUR_NAME}}` → Your name (e.g., "Alex")
|
|
145
|
+
- `{{YOUR_AI_NAME}}` → Your AI's name (e.g., "Nova", "Atlas", "Friday")
|
|
146
|
+
|
|
147
|
+
Also update:
|
|
148
|
+
- The **Projects** table with your actual projects
|
|
149
|
+
- The **Environment** section with your setup
|
|
150
|
+
- Any **Behavioral Rules** you want to add or modify
|
|
151
|
+
|
|
152
|
+
Edit `~/.config/PAI-pi/AGENTS.md` with your context and preferences.
|
|
153
|
+
|
|
154
|
+
## Step 6: Launch
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
pi
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
You should see the PAI status line and your AI is ready.
|
|
161
|
+
|
|
162
|
+
### Test the Algorithm
|
|
163
|
+
|
|
164
|
+
Try a complex request to see the 7-phase Algorithm in action:
|
|
165
|
+
|
|
166
|
+
```
|
|
167
|
+
Create a TypeScript function that parses CSV files with proper error handling
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
Your AI should enter Algorithm mode, generate ISC criteria, and work through all 7 phases.
|
|
171
|
+
|
|
172
|
+
### Test Skills
|
|
173
|
+
|
|
174
|
+
```
|
|
175
|
+
/status # Check PAI system status
|
|
176
|
+
/algorithm # Force Algorithm mode for next task
|
|
177
|
+
research quick: what is Pi coding agent
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
## Step 7: Optional — Voice Notifications
|
|
181
|
+
|
|
182
|
+
If you want your AI to speak:
|
|
183
|
+
|
|
184
|
+
1. Set up a TTS server (ElevenLabs, Coqui, or any HTTP-based TTS)
|
|
185
|
+
2. Set environment variables:
|
|
186
|
+
|
|
187
|
+
```bash
|
|
188
|
+
export PAI_VOICE_ENABLED=true
|
|
189
|
+
export PAI_VOICE_ENDPOINT=http://localhost:8888/notify
|
|
190
|
+
export PAI_VOICE_ID=your-voice-id
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
3. Restart Pi. Voice will announce Algorithm phase transitions.
|
|
194
|
+
|
|
195
|
+
## Troubleshooting
|
|
196
|
+
|
|
197
|
+
### Pi can't find the extension
|
|
198
|
+
|
|
199
|
+
Make sure the extension is at `~/.config/PAI-pi/extensions/pai-core/index.ts`. Pi looks for extensions in the `extensions/` subdirectory of its config path.
|
|
200
|
+
|
|
201
|
+
### Ollama connection refused
|
|
202
|
+
|
|
203
|
+
```bash
|
|
204
|
+
# Check if Ollama is running
|
|
205
|
+
curl http://localhost:11434/api/tags
|
|
206
|
+
|
|
207
|
+
# Start it if not
|
|
208
|
+
ollama serve
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
### Model too slow
|
|
212
|
+
|
|
213
|
+
Use a smaller model for everyday tasks and a larger one for complex work. Configure multiple models in `models.json` and switch between them.
|
|
214
|
+
|
|
215
|
+
### Skills not loading
|
|
216
|
+
|
|
217
|
+
Skills are loaded from `~/.config/PAI-pi/skills/`. Each skill needs a `SKILL.md` file with proper frontmatter (the `---` delimited header).
|
|
218
|
+
|
|
219
|
+
## Next Steps
|
|
220
|
+
|
|
221
|
+
1. **Add your own skills** — Create new directories in `skills/` for your domains
|
|
222
|
+
2. **Build your memory** — The `memory/` directory grows with usage
|
|
223
|
+
3. **Customize the Algorithm** — Adjust effort levels and ISC rules in SYSTEM.md
|
|
224
|
+
4. **Explore full PAI** — For the complete experience with 63+ skills, try [PAI v4.0.3 on Claude Code](../v4.0.3/)
|
package/TELOS.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Ecosystem Telos — Artale's Pi System
|
|
2
|
+
|
|
3
|
+
## Mission
|
|
4
|
+
Build the most powerful, extensible coding agent ecosystem for personal AI infrastructure.
|
|
5
|
+
|
|
6
|
+
## Active Goals
|
|
7
|
+
|
|
8
|
+
| Goal | Status | Projects |
|
|
9
|
+
|------|--------|----------|
|
|
10
|
+
| Build @artale/pi-* ecosystem | ⚡ ACTIVE | 10 packages published |
|
|
11
|
+
| Maintain ecosystem | ⏳ BLOCKED | Need maintenance habit |
|
|
12
|
+
| Integrate bradAGI tools | ✅ DONE | fi, infer-lite working |
|
|
13
|
+
| Sync with PAI framework | ✅ DONE | @artale/pi-pai v4.3.0 |
|
|
14
|
+
|
|
15
|
+
## Today's Wisdom
|
|
16
|
+
|
|
17
|
+
### On MVI (from infer-lite review)
|
|
18
|
+
- Zero dependencies is achievable
|
|
19
|
+
- Single Python file can do ~700 LOC
|
|
20
|
+
- Kelsey would approve
|
|
21
|
+
|
|
22
|
+
### On Ecosystem Building
|
|
23
|
+
- 100 repos is sprawl without process
|
|
24
|
+
- Maintenance scripts > manual audits
|
|
25
|
+
- npm index delays are real (PUT 200 but 404 reads)
|
|
26
|
+
|
|
27
|
+
### On Tool Selection
|
|
28
|
+
- bradAGI delivers MVI consistently
|
|
29
|
+
- Pi ecosystem needs quality over quantity
|
|
30
|
+
- ADW pipeline works for maintenance
|
|
31
|
+
|
|
32
|
+
## Dependencies
|
|
33
|
+
- Need: regular maintenance schedule
|
|
34
|
+
- Need: automated testing
|
|
35
|
+
- Blocked: none
|
|
36
|
+
|
|
37
|
+
## Beliefs
|
|
38
|
+
1. Minimal infrastructure wins
|
|
39
|
+
2. Platform as product
|
|
40
|
+
3. Open source compounds
|
|
41
|
+
|
|
42
|
+
## Reading List
|
|
43
|
+
- Kelsey Hightower principles
|
|
44
|
+
- PAI v4.0.3 by Daniel Miessler
|
|
45
|
+
- agent-skills (19K stars) patterns
|
package/package.json
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"thinkingLevel": "high",
|
|
3
|
+
"theme": "dark",
|
|
4
|
+
"steeringMode": "one-at-a-time",
|
|
5
|
+
"followUpMode": "one-at-a-time",
|
|
6
|
+
"transport": "auto",
|
|
7
|
+
"enableSkillCommands": true,
|
|
8
|
+
"quietStartup": true,
|
|
9
|
+
"compaction": {
|
|
10
|
+
"enabled": true,
|
|
11
|
+
"proactive": true,
|
|
12
|
+
"contextThreshold": 0.85
|
|
13
|
+
}
|
|
14
|
+
}
|