wispy-cli 0.1.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/LICENSE ADDED
@@ -0,0 +1,17 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ Copyright 2026 Minseo & Poropo
6
+
7
+ Licensed under the Apache License, Version 2.0 (the "License");
8
+ you may not use this file except in compliance with the License.
9
+ You may obtain a copy of the License at
10
+
11
+ http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ Unless required by applicable law or agreed to in writing, software
14
+ distributed under the License is distributed on an "AS IS" BASIS,
15
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ See the License for the specific language governing permissions and
17
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,162 @@
1
+ # 🌿 Wispy CLI
2
+
3
+ AI workspace assistant with multi-agent orchestration. Like Claude Code or Codex, but with workstream isolation, budget management, and a team of specialized sub-agents.
4
+
5
+ ## Quick Start
6
+
7
+ ```bash
8
+ npm install -g wispy-cli
9
+ export GOOGLE_AI_KEY=your-key # or ANTHROPIC_API_KEY or OPENAI_API_KEY
10
+ wispy
11
+ ```
12
+
13
+ That's it. No server setup needed — it starts automatically.
14
+
15
+ ## Features
16
+
17
+ ### Chat & Tools
18
+ ```bash
19
+ wispy # Interactive REPL
20
+ wispy "read my package.json" # One-shot with tool use
21
+ wispy --continue "and fix it"# Continue previous session
22
+ wispy --new "fresh start" # New session
23
+ ```
24
+
25
+ Wispy can **read/write files, run commands, search the web** — not just chat.
26
+
27
+ ### Workstream Isolation
28
+ ```bash
29
+ wispy -w backend "fix the API" # Backend workstream
30
+ wispy -w frontend "add dark mode" # Frontend workstream
31
+ wispy overview # See all workstreams at a glance
32
+ wispy search "auth" # Search across all workstreams
33
+ ```
34
+
35
+ Each workstream has its own conversation history, context, and budget.
36
+
37
+ ### Multi-Agent Orchestration
38
+ ```bash
39
+ # AI automatically delegates to specialized sub-agents:
40
+ # 🔍 explorer — codebase search
41
+ # 📋 planner — strategy design
42
+ # 🔨 worker — implementation
43
+ # 🔎 reviewer — code review & QA
44
+ ```
45
+
46
+ #### Execution Modes
47
+ - **Pipeline** — Sequential chaining: `explore → plan → implement → review`
48
+ - **Ralph mode** — Persistence: retry until reviewer confirms done (max 5 rounds)
49
+ - **Async agents** — Fire-and-forget background tasks
50
+
51
+ ### 7 Providers (Auto-detected)
52
+
53
+ | Provider | Env Variable | Free Tier |
54
+ |----------|-------------|-----------|
55
+ | Google AI (Gemini) | `GOOGLE_AI_KEY` | ✅ |
56
+ | Anthropic (Claude) | `ANTHROPIC_API_KEY` | ❌ |
57
+ | OpenAI (GPT-4o) | `OPENAI_API_KEY` | ❌ |
58
+ | OpenRouter | `OPENROUTER_API_KEY` | Some |
59
+ | Groq | `GROQ_API_KEY` | ✅ |
60
+ | DeepSeek | `DEEPSEEK_API_KEY` | ✅ |
61
+ | Ollama (local) | `OLLAMA_HOST` | ✅ |
62
+
63
+ Also auto-detects macOS Keychain credentials.
64
+
65
+ ### Cost Optimization
66
+ - **Smart model routing** — simple tasks → cheap model, complex → mid, critical → expensive
67
+ - **Per-workstream budgets** — `/budget set 5.00` to cap spending
68
+ - **Context window optimization** — auto-trims old messages to save tokens
69
+ - **Token tracking** — see cost after every response
70
+
71
+ ### Security
72
+ - Sandboxed command execution (macOS Seatbelt)
73
+ - Process hardening (core dump disable, ptrace block)
74
+ - Audit logging (JSON Lines)
75
+ - Rate limiting + CORS restriction
76
+ - API key isolation per workstream
77
+
78
+ ## In-Session Commands
79
+
80
+ | Command | Description |
81
+ |---------|-------------|
82
+ | `/help` | Show all commands |
83
+ | `/compact` | Compress conversation history |
84
+ | `/memory <type> <text>` | Save to persistent memory |
85
+ | `/budget` | Show spending per workstream |
86
+ | `/budget set <usd>` | Set budget limit |
87
+ | `/overview` | Director view — all workstreams |
88
+ | `/search <keyword>` | Search across workstreams |
89
+ | `/cost` | Show session token usage |
90
+ | `/workstreams` | List all workstreams |
91
+ | `/provider` | Show current provider |
92
+ | `/model [name]` | Show/change model |
93
+ | `/clear` | Reset conversation |
94
+ | `/quit` | Exit |
95
+
96
+ ## Project Context (WISPY.md)
97
+
98
+ Create a `WISPY.md` in your project root or `~/.wispy/WISPY.md`. It gets loaded into every conversation turn (up to 40K chars), just like Claude Code's `CLAUDE.md`.
99
+
100
+ ```markdown
101
+ # WISPY.md
102
+ ## About this project
103
+ - Next.js 15 app with TypeScript
104
+ - Use Tailwind CSS
105
+ - Korean comments preferred
106
+ ```
107
+
108
+ ## Workstream Context (work.md)
109
+
110
+ Each workstream can have its own `work.md` — loaded every turn, like WISPY.md but scoped to that workstream.
111
+
112
+ ```bash
113
+ /work init # Create work.md for current workstream
114
+ /work set "deadline: Friday" # Append context
115
+ /work # View current work.md
116
+ ```
117
+
118
+ File locations (searched in order):
119
+ 1. `~/.wispy/conversations/<workstream>.work.md`
120
+ 2. `.wispy/<workstream>.work.md`
121
+ 3. `work.md` (project root fallback)
122
+
123
+ ```markdown
124
+ # backend
125
+ ## Goals
126
+ - Migrate to PostgreSQL
127
+ - Add rate limiting
128
+
129
+ ## Context
130
+ - Using Express.js + TypeORM
131
+ - Staging server: staging.example.com
132
+ ```
133
+
134
+ ## Persistent Memory
135
+
136
+ Wispy remembers across sessions via `~/.wispy/memory/`:
137
+
138
+ ```bash
139
+ /memory user "prefers dark mode"
140
+ /memory project "deadline is Friday"
141
+ /memory feedback "don't use var, use const"
142
+ /memory references "API docs: https://..."
143
+ ```
144
+
145
+ ## Architecture
146
+
147
+ ```
148
+ wispy (CLI REPL)
149
+ ↕ Gemini/Claude/OpenAI API (tool calling)
150
+ ↕ AWOS Server (auto-started, sandboxed tools)
151
+ ↕ Local Node (macOS file/browser/app actions)
152
+ ```
153
+
154
+ ## Requirements
155
+
156
+ - Node.js 20+
157
+ - One API key (Google AI recommended for free tier)
158
+ - macOS or Linux
159
+
160
+ ## License
161
+
162
+ Apache-2.0 — Minseo & Poropo 🌿
package/bin/wispy.mjs ADDED
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env node
2
+
3
+ // Wispy CLI entry point — delegates to the main REPL
4
+ import { fileURLToPath } from "node:url";
5
+ import path from "node:path";
6
+
7
+ const __dirname = path.dirname(fileURLToPath(import.meta.url));
8
+ const mainScript = path.join(__dirname, "..", "lib", "wispy-repl.mjs");
9
+
10
+ // Dynamic import of the main module
11
+ await import(mainScript);