@piut/cli 1.1.0 → 3.0.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/README.md +192 -82
- package/dist/cli.js +834 -1072
- package/package.json +5 -6
package/README.md
CHANGED
|
@@ -1,29 +1,147 @@
|
|
|
1
1
|
# pıut
|
|
2
2
|
|
|
3
|
-
**Your AI
|
|
3
|
+
**Your AI brain, everywhere.**
|
|
4
4
|
|
|
5
|
-
pıut
|
|
6
|
-
|
|
7
|
-
1. **Host your brain** — Centralized personal context as an MCP server. Connect once, and every AI tool you use knows who you are, how you work, and what matters to you.
|
|
8
|
-
2. **Keep it updated** — 6 MCP tools let your AI read, write, search, and organize your context automatically. Add a skill reference and it happens without you lifting a finger.
|
|
9
|
-
3. **Back up your files** — Cloud backup of all your agent config files (CLAUDE.md, .cursorrules, AGENTS.md, etc.) with version history, restore, and cross-machine sync.
|
|
5
|
+
pıut builds your personal AI context, deploys it as an MCP server, and connects it to every tool you use. One brain, one API key — Claude, Cursor, Copilot, ChatGPT, and more.
|
|
10
6
|
|
|
11
7
|
## Quick Start
|
|
12
8
|
|
|
13
9
|
```bash
|
|
14
|
-
|
|
10
|
+
npm install -g @piut/cli
|
|
11
|
+
piut
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
The interactive menu walks you through building your brain, deploying your MCP server, and connecting your AI tools. Or use `npx @piut/cli` to run without installing.
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## 1. Install
|
|
19
|
+
|
|
20
|
+
Sign up at [piut.com](https://piut.com) (14-day free trial, no credit card required), then install the CLI:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
npm install -g @piut/cli # Install globally
|
|
24
|
+
piut # Interactive menu
|
|
15
25
|
```
|
|
16
26
|
|
|
17
|
-
|
|
18
|
-
- Configures your AI tools with your MCP server
|
|
19
|
-
- Adds skill.md references to your rules files
|
|
20
|
-
- Scans and backs up your agent config files to the cloud
|
|
27
|
+
### CLI Reference
|
|
21
28
|
|
|
22
|
-
|
|
29
|
+
| Command | Description |
|
|
30
|
+
|---------|-------------|
|
|
31
|
+
| `piut` | Interactive menu — build, deploy, and connect in one flow |
|
|
32
|
+
| `piut build` | Build or rebuild your brain from your files |
|
|
33
|
+
| `piut deploy` | Publish your MCP server (requires paid account) |
|
|
34
|
+
| `piut connect` | Add brain references to project config files |
|
|
35
|
+
| `piut disconnect` | Remove brain references from project config files |
|
|
36
|
+
| `piut setup` | Auto-detect and configure AI tools (MCP config + skill.md) |
|
|
37
|
+
| `piut status` | Show brain, deployment, and connected projects |
|
|
38
|
+
| `piut remove` | Remove all pıut configurations |
|
|
39
|
+
| `piut sync` | Sync agent config files to the cloud |
|
|
40
|
+
| `piut sync config` | Configure sync settings |
|
|
41
|
+
|
|
42
|
+
#### piut build options
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
piut build # Scan current directory
|
|
46
|
+
piut build --folders src,docs # Scan specific folders
|
|
47
|
+
piut build --key pb_YOUR_KEY # Non-interactive
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
#### piut deploy options
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
piut deploy # Deploy with confirmation
|
|
54
|
+
piut deploy --yes # Skip confirmation
|
|
55
|
+
piut deploy --key pb_YOUR_KEY # Non-interactive
|
|
56
|
+
```
|
|
23
57
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
58
|
+
#### piut connect / disconnect options
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
piut connect # Add brain refs to project configs
|
|
62
|
+
piut connect --folders src,docs # Scan specific folders
|
|
63
|
+
piut disconnect # Remove brain refs
|
|
64
|
+
piut disconnect --yes # Skip confirmation
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
#### piut setup options
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
piut setup # Auto-detect and configure all tools
|
|
71
|
+
piut setup --tool cursor # Configure a single tool
|
|
72
|
+
piut setup --key pb_KEY --yes # Non-interactive (all tools)
|
|
73
|
+
piut setup --project # Prefer project-local config files
|
|
74
|
+
piut setup --skip-skill # Skip skill.md file placement
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
#### piut sync options
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
piut sync # Show backup status
|
|
81
|
+
piut sync --install # Guided sync setup
|
|
82
|
+
piut sync --push # Push local changes to cloud
|
|
83
|
+
piut sync --pull # Pull cloud changes to local
|
|
84
|
+
piut sync --watch # Watch for changes and auto-push
|
|
85
|
+
piut sync --history <file> # Show version history
|
|
86
|
+
piut sync --diff <file> # Diff local vs cloud
|
|
87
|
+
piut sync --restore <file> # Restore from cloud backup
|
|
88
|
+
piut sync --prefer-local # Resolve conflicts keeping local
|
|
89
|
+
piut sync --prefer-cloud # Resolve conflicts keeping cloud
|
|
90
|
+
piut sync --install-daemon # Set up auto-sync via cron/launchd
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
#### piut sync config options
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
piut sync config --show # View current settings
|
|
97
|
+
piut sync config --files # Change which files are synced
|
|
98
|
+
piut sync config --auto-discover on # Auto-sync new files
|
|
99
|
+
piut sync config --keep-brain-updated on # Keep brain updated from synced files
|
|
100
|
+
piut sync config --use-brain on # Reference centralized brain
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
All commands accept `-k, --key <key>` for non-interactive API key input and `-y, --yes` to skip prompts (where applicable).
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
## 2. Build Your Brain
|
|
108
|
+
|
|
109
|
+
Your brain has 5 sections that give AI tools a complete picture of who you are:
|
|
110
|
+
|
|
111
|
+
| Section | What it stores |
|
|
112
|
+
|---------|---------------|
|
|
113
|
+
| **about** | Bio, preferences, goals — the AI's mental model of you |
|
|
114
|
+
| **soul** | Behavioral instructions for AI — tone, guardrails, priorities |
|
|
115
|
+
| **areas** | Long-term life/work domains (Health, Finances, Marketing) |
|
|
116
|
+
| **projects** | Active, time-bound work with goals and deadlines |
|
|
117
|
+
| **memory** | Bookmarks, links, ideas, notes, reference material |
|
|
118
|
+
|
|
119
|
+
Three ways to build your brain:
|
|
120
|
+
|
|
121
|
+
- **CLI:** `piut build` scans your files (CLAUDE.md, .cursorrules, etc.) and builds automatically
|
|
122
|
+
- **Dashboard:** Use the [brain editor](https://piut.com/dashboard/build) to import files, answer questions, or write each section directly
|
|
123
|
+
- **API:** Use `update_brain` or `append_brain` to build programmatically
|
|
124
|
+
|
|
125
|
+
Edits are saved as drafts. When you publish, every connected AI tool sees your updates instantly.
|
|
126
|
+
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
## 3. Deploy Your Brain
|
|
130
|
+
|
|
131
|
+
Publishing turns your brain into a live MCP server. Requires an active subscription ($10/month after 14-day trial).
|
|
132
|
+
|
|
133
|
+
```bash
|
|
134
|
+
piut deploy # Deploy with confirmation
|
|
135
|
+
piut deploy --yes # Skip confirmation
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
### Connection Details
|
|
139
|
+
|
|
140
|
+
- **URL:** `https://piut.com/api/mcp/YOUR_SLUG`
|
|
141
|
+
- **Auth (header):** `Authorization: Bearer YOUR_KEY`
|
|
142
|
+
- **Protocol:** JSON-RPC 2.0 (MCP)
|
|
143
|
+
|
|
144
|
+
Standard config for most tools:
|
|
27
145
|
|
|
28
146
|
```json
|
|
29
147
|
{
|
|
@@ -39,105 +157,97 @@ Or set up manually:
|
|
|
39
157
|
}
|
|
40
158
|
```
|
|
41
159
|
|
|
42
|
-
|
|
160
|
+
---
|
|
43
161
|
|
|
44
|
-
##
|
|
162
|
+
## 4. Connect Your Brain
|
|
45
163
|
|
|
46
|
-
|
|
164
|
+
Three ways to connect your brain to your AI tools:
|
|
47
165
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
npx @piut/cli status # Show which tools are connected
|
|
52
|
-
npx @piut/cli remove # Remove pıut from selected tools
|
|
53
|
-
|
|
54
|
-
# Cloud Backup
|
|
55
|
-
npx @piut/cli sync # Show backup status for current workspace
|
|
56
|
-
npx @piut/cli sync --install # Scan workspace, detect files, upload to cloud
|
|
57
|
-
npx @piut/cli sync --push # Push local changes to cloud
|
|
58
|
-
npx @piut/cli sync --pull # Pull cloud changes to local files
|
|
59
|
-
npx @piut/cli sync --history # Show version history for a file
|
|
60
|
-
npx @piut/cli sync --diff # Show diff between local and cloud
|
|
61
|
-
npx @piut/cli sync --restore # Restore files from cloud backup
|
|
62
|
-
```
|
|
166
|
+
1. **Via CLI** (easiest): `piut setup` auto-detects tools and configures everything. `piut connect` adds brain references to project configs.
|
|
167
|
+
2. **Via skill.md**: Add a skill reference to your rules file so your AI knows *when* and *how* to use your brain. The CLI adds this automatically.
|
|
168
|
+
3. **Manually**: Edit config files directly for each tool.
|
|
63
169
|
|
|
64
|
-
|
|
170
|
+
For scripting: `piut setup --key pb_YOUR_KEY --yes`
|
|
65
171
|
|
|
66
|
-
|
|
67
|
-
npx @piut/cli --key pb_... # Pass API key non-interactively
|
|
68
|
-
npx @piut/cli --tool cursor # Configure a single tool
|
|
69
|
-
npx @piut/cli --skip-skill # Skip skill.md file placement
|
|
70
|
-
npx @piut/cli sync --install --yes # Non-interactive backup setup
|
|
71
|
-
```
|
|
172
|
+
**Supported tools:** Claude Code, Claude Desktop, Cursor, Windsurf, GitHub Copilot, Amazon Q, Zed, ChatGPT, OpenClaw, Msty, OpenAI Agents SDK, Claude Agent SDK, and any MCP client.
|
|
72
173
|
|
|
73
|
-
|
|
174
|
+
### skill.md Reference
|
|
74
175
|
|
|
75
|
-
|
|
176
|
+
Add a reference to [skill.md](skill.md) in your tool's rules file so your AI knows *when* and *how* to use your brain:
|
|
76
177
|
|
|
77
|
-
|
|
178
|
+
| Tool | Add skill.md reference to |
|
|
179
|
+
|------|--------------------------|
|
|
180
|
+
| Claude Code | CLAUDE.md or ~/.claude/CLAUDE.md |
|
|
181
|
+
| Cursor | .cursor/rules/piut.mdc |
|
|
182
|
+
| Windsurf | .windsurf/rules/piut.md |
|
|
183
|
+
| GitHub Copilot | .github/copilot-instructions.md |
|
|
184
|
+
| Claude Desktop | Project Knowledge (upload file) |
|
|
185
|
+
| ChatGPT | Settings > Custom Instructions |
|
|
186
|
+
| Zed | .zed/rules.md |
|
|
187
|
+
| Amazon Q | CONVENTIONS.md |
|
|
188
|
+
| Any other tool | System prompt or rules file |
|
|
78
189
|
|
|
79
|
-
|
|
190
|
+
---
|
|
80
191
|
|
|
81
|
-
|
|
82
|
-
|---------|---------------|
|
|
83
|
-
| **About** | Bio, preferences, goals — the AI's mental model of you |
|
|
84
|
-
| **Soul** | Behavioral instructions for AI — tone, guardrails, priorities |
|
|
85
|
-
| **Areas** | Long-term life/work domains (Health, Finances, Marketing) |
|
|
86
|
-
| **Projects** | Active, time-bound work with goals and deadlines |
|
|
87
|
-
| **Memory** | Bookmarks, links, ideas, notes, reference material |
|
|
192
|
+
## 5. Use Your Brain
|
|
88
193
|
|
|
89
|
-
###
|
|
194
|
+
### MCP Tools
|
|
90
195
|
|
|
91
|
-
6 tools let your AI read and write your brain:
|
|
196
|
+
6 MCP tools let your AI read and write your brain automatically:
|
|
92
197
|
|
|
93
|
-
| Tool | Purpose |
|
|
94
|
-
|
|
95
|
-
| `get_context` | Read all 5 context sections |
|
|
96
|
-
| `get_section` | Read a specific section |
|
|
97
|
-
| `search_brain` | Search across all sections |
|
|
98
|
-
| `append_brain` | Append content to a section |
|
|
99
|
-
| `update_brain` | AI-powered smart update across sections |
|
|
100
|
-
| `prompt_brain` | Natural language command (edit, delete, reorganize) |
|
|
198
|
+
| Tool | Purpose | Rate Limit |
|
|
199
|
+
|------|---------|-----------|
|
|
200
|
+
| `get_context` | Read all 5 context sections | 100/min |
|
|
201
|
+
| `get_section` | Read a specific section | 100/min |
|
|
202
|
+
| `search_brain` | Search across all sections | 100/min |
|
|
203
|
+
| `append_brain` | Append content to a section | 10/min |
|
|
204
|
+
| `update_brain` | AI-powered smart update across sections | 10/min |
|
|
205
|
+
| `prompt_brain` | Natural language command (edit, delete, reorganize) | 10/min |
|
|
101
206
|
|
|
102
|
-
|
|
207
|
+
`get_context`, `get_section`, and `search_brain` are read-only (100 req/min). `update_brain`, `append_brain`, and `prompt_brain` use AI processing (10 req/min).
|
|
103
208
|
|
|
104
|
-
###
|
|
209
|
+
### Config Sync
|
|
105
210
|
|
|
106
|
-
|
|
211
|
+
Sync your agent config files to the cloud with version history and cross-machine sync:
|
|
107
212
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
| `.windsurfrules` | Windsurf |
|
|
114
|
-
| `copilot-instructions.md` | GitHub Copilot |
|
|
115
|
-
| `MEMORY.md` | Claude Code |
|
|
116
|
-
| `SOUL.md` | OpenClaw |
|
|
117
|
-
| `rules/*.md` | Various |
|
|
213
|
+
```bash
|
|
214
|
+
piut sync --install # Guided setup
|
|
215
|
+
piut sync --push # Push local changes
|
|
216
|
+
piut sync --pull # Pull cloud changes
|
|
217
|
+
```
|
|
118
218
|
|
|
119
|
-
|
|
219
|
+
#### Supported files for sync
|
|
220
|
+
|
|
221
|
+
| File | Tool | Typical location |
|
|
222
|
+
|------|------|-----------------|
|
|
223
|
+
| `CLAUDE.md` | Claude Code | Repo root, .claude/ |
|
|
224
|
+
| `AGENTS.md` | Multi-agent | Repo root |
|
|
225
|
+
| `.cursorrules` | Cursor | Repo root |
|
|
226
|
+
| `.windsurfrules` | Windsurf | Repo root |
|
|
227
|
+
| `copilot-instructions.md` | GitHub Copilot | .github/ |
|
|
228
|
+
| `MEMORY.md` | Claude Code | ~/.claude/ |
|
|
229
|
+
| `SOUL.md` | OpenClaw | ~/.openclaw/workspace/ |
|
|
230
|
+
| `rules/*.md` | Various | .cursor/rules/, .claude/rules/ |
|
|
231
|
+
|
|
232
|
+
---
|
|
120
233
|
|
|
121
234
|
## Documentation
|
|
122
235
|
|
|
123
236
|
| Document | Description |
|
|
124
237
|
|----------|-------------|
|
|
125
238
|
| [**skill.md**](skill.md) | AI skill file — MCP tools, rate limits, error codes |
|
|
126
|
-
| [**
|
|
127
|
-
| [**API
|
|
128
|
-
| [**Cloud Backup**](https://piut.com/docs#cloud-backup) | Cloud backup setup, commands, and sync workflow |
|
|
239
|
+
| [**piut.com/docs**](https://piut.com/docs) | Interactive docs with setup guides and credential auto-fill |
|
|
240
|
+
| [**API Examples**](https://piut.com/docs#api-examples) | Code examples in cURL, Python, Node.js, Go, and Ruby |
|
|
129
241
|
| [**Rate Limits**](https://piut.com/docs#limits) | Limits by plan, error codes, and response headers |
|
|
130
242
|
|
|
131
|
-
All documentation is maintained at [piut.com/docs](https://piut.com/docs) — the interactive version with credential auto-fill and setup guides.
|
|
132
|
-
|
|
133
243
|
## Links
|
|
134
244
|
|
|
135
245
|
- [piut.com](https://piut.com) — Sign up and manage your context
|
|
136
|
-
- [piut.com/docs](https://piut.com/docs) — Interactive documentation
|
|
246
|
+
- [piut.com/docs](https://piut.com/docs) — Interactive documentation
|
|
137
247
|
- [skill.md (raw)](https://raw.githubusercontent.com/M-Flat-Inc/piut/main/skill.md) — Direct link for AI tool configs
|
|
138
248
|
|
|
139
249
|
## License
|
|
140
250
|
|
|
141
251
|
Copyright (c) 2025 M-Flat Inc. All rights reserved.
|
|
142
252
|
|
|
143
|
-
The documentation in this repository is provided for reference and integration purposes. The
|
|
253
|
+
The documentation in this repository is provided for reference and integration purposes. The pıut service is proprietary software.
|