@sylphx/flow 0.2.12 → 1.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/CHANGELOG.md +185 -0
- package/LOOP_MODE.md +446 -0
- package/package.json +44 -93
- package/README.md +0 -625
- package/assets/agents/coder.md +0 -32
- package/assets/agents/orchestrator.md +0 -36
- package/assets/agents/reviewer.md +0 -30
- package/assets/agents/writer.md +0 -30
- package/assets/knowledge/data/sql.md +0 -216
- package/assets/knowledge/guides/saas-template.md +0 -85
- package/assets/knowledge/guides/system-prompt.md +0 -344
- package/assets/knowledge/guides/tech-stack.md +0 -92
- package/assets/knowledge/guides/ui-ux.md +0 -44
- package/assets/knowledge/stacks/nextjs-app.md +0 -165
- package/assets/knowledge/stacks/node-api.md +0 -220
- package/assets/knowledge/stacks/react-app.md +0 -232
- package/assets/knowledge/universal/deployment.md +0 -109
- package/assets/knowledge/universal/performance.md +0 -121
- package/assets/knowledge/universal/security.md +0 -79
- package/assets/knowledge/universal/testing.md +0 -111
- package/assets/output-styles/silent.md +0 -23
- package/assets/rules/core.md +0 -144
- package/assets/slash-commands/commit.md +0 -23
- package/assets/slash-commands/context.md +0 -112
- package/assets/slash-commands/explain.md +0 -35
- package/assets/slash-commands/mep.md +0 -63
- package/assets/slash-commands/review.md +0 -39
- package/assets/slash-commands/test.md +0 -30
- package/dist/assets/agents/coder.md +0 -32
- package/dist/assets/agents/orchestrator.md +0 -36
- package/dist/assets/agents/reviewer.md +0 -30
- package/dist/assets/agents/writer.md +0 -30
- package/dist/assets/knowledge/data/sql.md +0 -216
- package/dist/assets/knowledge/guides/saas-template.md +0 -85
- package/dist/assets/knowledge/guides/system-prompt.md +0 -344
- package/dist/assets/knowledge/guides/tech-stack.md +0 -92
- package/dist/assets/knowledge/guides/ui-ux.md +0 -44
- package/dist/assets/knowledge/stacks/nextjs-app.md +0 -165
- package/dist/assets/knowledge/stacks/node-api.md +0 -220
- package/dist/assets/knowledge/stacks/react-app.md +0 -232
- package/dist/assets/knowledge/universal/deployment.md +0 -109
- package/dist/assets/knowledge/universal/performance.md +0 -121
- package/dist/assets/knowledge/universal/security.md +0 -79
- package/dist/assets/knowledge/universal/testing.md +0 -111
- package/dist/assets/output-styles/silent.md +0 -23
- package/dist/assets/rules/core.md +0 -144
- package/dist/assets/slash-commands/commit.md +0 -23
- package/dist/assets/slash-commands/context.md +0 -112
- package/dist/assets/slash-commands/explain.md +0 -35
- package/dist/assets/slash-commands/mep.md +0 -63
- package/dist/assets/slash-commands/review.md +0 -39
- package/dist/assets/slash-commands/test.md +0 -30
- package/dist/chunk-01gv4qey.js +0 -4
- package/dist/chunk-01gv4qey.js.map +0 -11
- package/dist/chunk-3m9whg4q.js +0 -4
- package/dist/chunk-3m9whg4q.js.map +0 -9
- package/dist/chunk-3w6pd43t.js +0 -25
- package/dist/chunk-3w6pd43t.js.map +0 -61
- package/dist/chunk-4nm4ere4.js +0 -4
- package/dist/chunk-4nm4ere4.js.map +0 -11
- package/dist/chunk-4vrj3f8r.js +0 -26
- package/dist/chunk-4vrj3f8r.js.map +0 -75
- package/dist/chunk-5njgv5k5.js +0 -161
- package/dist/chunk-5njgv5k5.js.map +0 -83
- package/dist/chunk-67n29s4q.js +0 -7
- package/dist/chunk-67n29s4q.js.map +0 -10
- package/dist/chunk-86ce45n6.js +0 -3
- package/dist/chunk-86ce45n6.js.map +0 -10
- package/dist/chunk-99pz5wm0.js +0 -75
- package/dist/chunk-99pz5wm0.js.map +0 -12
- package/dist/chunk-cv1nhr27.js +0 -2
- package/dist/chunk-cv1nhr27.js.map +0 -9
- package/dist/chunk-d409xn8f.js +0 -6
- package/dist/chunk-d409xn8f.js.map +0 -11
- package/dist/chunk-g0qpndpd.js +0 -23
- package/dist/chunk-g0qpndpd.js.map +0 -132
- package/dist/chunk-g4baca7p.js +0 -10
- package/dist/chunk-g4baca7p.js.map +0 -23
- package/dist/chunk-gc66xe7z.js +0 -4
- package/dist/chunk-gc66xe7z.js.map +0 -11
- package/dist/chunk-hj6qtsqp.js +0 -15
- package/dist/chunk-hj6qtsqp.js.map +0 -10
- package/dist/chunk-jbd95k1f.js +0 -14
- package/dist/chunk-jbd95k1f.js.map +0 -20
- package/dist/chunk-kn908zkk.js +0 -4
- package/dist/chunk-kn908zkk.js.map +0 -10
- package/dist/chunk-mw13a082.js +0 -4
- package/dist/chunk-mw13a082.js.map +0 -10
- package/dist/chunk-nke51f3c.js +0 -4
- package/dist/chunk-nke51f3c.js.map +0 -10
- package/dist/chunk-ns5atzyz.js +0 -3
- package/dist/chunk-ns5atzyz.js.map +0 -10
- package/dist/chunk-pp4r3hp4.js +0 -105
- package/dist/chunk-pp4r3hp4.js.map +0 -27
- package/dist/chunk-q4nh3vst.js +0 -54
- package/dist/chunk-q4nh3vst.js.map +0 -53
- package/dist/chunk-q5gqgs0p.js +0 -4
- package/dist/chunk-q5gqgs0p.js.map +0 -10
- package/dist/chunk-s9bsh0gp.js +0 -4
- package/dist/chunk-s9bsh0gp.js.map +0 -10
- package/dist/chunk-ss51dw5h.js +0 -27
- package/dist/chunk-ss51dw5h.js.map +0 -23
- package/dist/chunk-waemzsf4.js +0 -4
- package/dist/chunk-waemzsf4.js.map +0 -10
- package/dist/chunk-xs370t8p.js +0 -119
- package/dist/chunk-xs370t8p.js.map +0 -26
- package/dist/chunk-xtrn4wn0.js +0 -3
- package/dist/chunk-xtrn4wn0.js.map +0 -10
- package/dist/chunk-xvfz960r.js +0 -4
- package/dist/chunk-xvfz960r.js.map +0 -12
- package/dist/chunk-xytc0fks.js +0 -27
- package/dist/chunk-xytc0fks.js.map +0 -14
- package/dist/chunk-yxv7hqse.js +0 -23
- package/dist/chunk-yxv7hqse.js.map +0 -11
- package/dist/chunk-zv5y8yfq.js +0 -19
- package/dist/chunk-zv5y8yfq.js.map +0 -11
- package/dist/index.js +0 -854
- package/dist/index.js.map +0 -903
- package/drizzle/0000_wooden_lady_bullseye.sql +0 -52
- package/drizzle/0001_material_pyro.sql +0 -85
- package/drizzle/0002_lyrical_random.sql +0 -2
- package/drizzle/0003_romantic_lockjaw.sql +0 -4
- package/drizzle/0004_blushing_meteorite.sql +0 -6
- package/drizzle/meta/0000_snapshot.json +0 -310
- package/drizzle/meta/0001_snapshot.json +0 -906
- package/drizzle/meta/0002_snapshot.json +0 -920
- package/drizzle/meta/0003_snapshot.json +0 -920
- package/drizzle/meta/0004_snapshot.json +0 -921
- package/drizzle/meta/_journal.json +0 -41
package/README.md
DELETED
|
@@ -1,625 +0,0 @@
|
|
|
1
|
-
<div align="center">
|
|
2
|
-
|
|
3
|
-
# Sylphx Flow
|
|
4
|
-
|
|
5
|
-
**Stop writing prompts. Start building software.**
|
|
6
|
-
|
|
7
|
-
The first AI development platform where you just say what you want, and it happens. Built on MEP (Minimal Effective Prompt) architecture with StarCoder2 tokenization for true code understanding.
|
|
8
|
-
|
|
9
|
-
[](https://github.com/sylphxltd/flow)
|
|
10
|
-
[](LICENSE)
|
|
11
|
-
[](https://nodejs.org/)
|
|
12
|
-
|
|
13
|
-
[Quick Start](#-quick-start) • [Documentation](https://github.com/sylphxltd/flow/wiki) • [Examples](#-real-world-examples)
|
|
14
|
-
|
|
15
|
-
</div>
|
|
16
|
-
|
|
17
|
-
---
|
|
18
|
-
|
|
19
|
-
## The Problem With AI Coding Today
|
|
20
|
-
|
|
21
|
-
**Traditional AI coding tools make you work too hard:**
|
|
22
|
-
|
|
23
|
-
```typescript
|
|
24
|
-
// What you have to type today ❌
|
|
25
|
-
User: "I'm using TypeScript + React + Next.js 14 App Router,
|
|
26
|
-
project structure is src/app for routes,
|
|
27
|
-
src/components for components,
|
|
28
|
-
using shadcn/ui for UI, Tailwind for styling,
|
|
29
|
-
Zod for validation, tRPC for API,
|
|
30
|
-
current time is 2025-10-30,
|
|
31
|
-
system is macOS on Apple Silicon,
|
|
32
|
-
|
|
33
|
-
I want to implement user authentication with:
|
|
34
|
-
- JWT tokens with 1hr expiry
|
|
35
|
-
- Refresh token mechanism
|
|
36
|
-
- Secure httpOnly cookies
|
|
37
|
-
- RBAC with roles: user, admin
|
|
38
|
-
- Rate limiting on login endpoint
|
|
39
|
-
- Password hashing with bcrypt
|
|
40
|
-
- Email verification flow
|
|
41
|
-
|
|
42
|
-
Please follow our existing code patterns,
|
|
43
|
-
make it type-safe with TypeScript,
|
|
44
|
-
add comprehensive error handling,
|
|
45
|
-
include unit tests with Vitest,
|
|
46
|
-
and document the API endpoints..."
|
|
47
|
-
|
|
48
|
-
// You get: Maybe correct code, maybe not 🤷
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
**This is insane. You spend more time writing prompts than code.**
|
|
52
|
-
|
|
53
|
-
---
|
|
54
|
-
|
|
55
|
-
## The Sylphx Flow Solution
|
|
56
|
-
|
|
57
|
-
```bash
|
|
58
|
-
# What you type with Sylphx Flow ✅
|
|
59
|
-
sylphx-flow run "implement authentication"
|
|
60
|
-
|
|
61
|
-
# You get: Production-ready code that:
|
|
62
|
-
✅ Uses YOUR tech stack (auto-detected)
|
|
63
|
-
✅ Follows YOUR patterns (from codebase)
|
|
64
|
-
✅ Applies best practices (from knowledge base)
|
|
65
|
-
✅ Knows current time and environment
|
|
66
|
-
✅ Is properly tested and documented
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
**90% less prompt. 100% better code.**
|
|
70
|
-
|
|
71
|
-
---
|
|
72
|
-
|
|
73
|
-
## 🚀 Installation
|
|
74
|
-
|
|
75
|
-
### Install globally (required)
|
|
76
|
-
|
|
77
|
-
```bash
|
|
78
|
-
# Using npm
|
|
79
|
-
npm install -g @sylphx/flow
|
|
80
|
-
|
|
81
|
-
# Using bun
|
|
82
|
-
bun install -g @sylphx/flow
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
### Initialize your project
|
|
86
|
-
|
|
87
|
-
```bash
|
|
88
|
-
sylphx-flow init
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
Done. Everything configured. Never think about setup again.
|
|
92
|
-
|
|
93
|
-
### Usage
|
|
94
|
-
|
|
95
|
-
```bash
|
|
96
|
-
# Direct prompt
|
|
97
|
-
sylphx-flow run "add password reset"
|
|
98
|
-
sylphx-flow run "review for security" --agent reviewer
|
|
99
|
-
sylphx-flow run "write API docs" --agent writer
|
|
100
|
-
|
|
101
|
-
# Interactive AI chat
|
|
102
|
-
sylphx-flow code
|
|
103
|
-
|
|
104
|
-
# Or interactive build mode
|
|
105
|
-
sylphx-flow run
|
|
106
|
-
> implement OAuth
|
|
107
|
-
> add tests
|
|
108
|
-
> optimize performance
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
**That's literally it.** No configuration files. No prompt engineering. No context management.
|
|
112
|
-
|
|
113
|
-
---
|
|
114
|
-
|
|
115
|
-
## 🌟 Core Innovations
|
|
116
|
-
|
|
117
|
-
### 1. MEP (Minimal Effective Prompt) Architecture
|
|
118
|
-
|
|
119
|
-
**The Philosophy:** AI should adapt to you, not the other way around.
|
|
120
|
-
|
|
121
|
-
<table>
|
|
122
|
-
<tr>
|
|
123
|
-
<td width="50%">
|
|
124
|
-
|
|
125
|
-
**Traditional Approach** ❌
|
|
126
|
-
```
|
|
127
|
-
You: [500 words of context]
|
|
128
|
-
AI: [50% accurate code]
|
|
129
|
-
You: [200 words of corrections]
|
|
130
|
-
AI: [70% accurate code]
|
|
131
|
-
You: [100 words more...]
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
</td>
|
|
135
|
-
<td width="50%">
|
|
136
|
-
|
|
137
|
-
**MEP Approach** ✅
|
|
138
|
-
```
|
|
139
|
-
You: "implement feature X"
|
|
140
|
-
AI: [Gets all context automatically]
|
|
141
|
-
AI: [95% accurate code]
|
|
142
|
-
You: [Ship it]
|
|
143
|
-
```
|
|
144
|
-
|
|
145
|
-
</td>
|
|
146
|
-
</tr>
|
|
147
|
-
</table>
|
|
148
|
-
|
|
149
|
-
**How?** AI automatically accesses:
|
|
150
|
-
- 🔍 Your codebase patterns (via semantic search)
|
|
151
|
-
- 📚 Best practices (via curated knowledge)
|
|
152
|
-
- 🖥️ Your environment (via system hooks)
|
|
153
|
-
- ⏰ Current time and context (automatic)
|
|
154
|
-
|
|
155
|
-
### 2. StarCoder2 Tokenization - 70+ Languages
|
|
156
|
-
|
|
157
|
-
**First production platform to use StarCoder2 tokenization for code search.**
|
|
158
|
-
|
|
159
|
-
```bash
|
|
160
|
-
# Search in ANY language, find code in ANY language
|
|
161
|
-
$ flow codebase search "user authentication logic" # English
|
|
162
|
-
$ flow codebase search "處理用戶登入嘅邏輯" # Chinese
|
|
163
|
-
$ flow codebase search "ユーザーログイン処理" # Japanese
|
|
164
|
-
|
|
165
|
-
# All return the SAME results:
|
|
166
|
-
✅ authenticateUser() in TypeScript
|
|
167
|
-
✅ authenticate_user() in Python
|
|
168
|
-
✅ AuthenticateUser() in Go
|
|
169
|
-
✅ Even with totally different naming!
|
|
170
|
-
```
|
|
171
|
-
|
|
172
|
-
**Why this matters:**
|
|
173
|
-
- Find code by what it **does**, not what it's **called**
|
|
174
|
-
- Works across 70+ programming languages
|
|
175
|
-
- Understands natural language in any human language
|
|
176
|
-
- Semantic tokenization, not keyword matching
|
|
177
|
-
- TF-IDF search powered by world-class tokenization
|
|
178
|
-
|
|
179
|
-
### 3. Curated Knowledge Base (No Maintenance)
|
|
180
|
-
|
|
181
|
-
**We don't let you add custom knowledge. Here's why:**
|
|
182
|
-
|
|
183
|
-
| Curated (Sylphx Flow) | Custom (Others) |
|
|
184
|
-
|----------------------|-----------------|
|
|
185
|
-
| ✅ Professionally maintained | ❌ You maintain it |
|
|
186
|
-
| ✅ Always up-to-date | ❌ Gets outdated |
|
|
187
|
-
| ✅ Quality guaranteed | ❌ Quality varies |
|
|
188
|
-
| ✅ <100ms search | ❌ Slower, variable |
|
|
189
|
-
| ✅ Zero cognitive load | ❌ "Which guide to use?" |
|
|
190
|
-
|
|
191
|
-
**"But I need project-specific patterns!"**
|
|
192
|
-
→ Use codebase search. Your patterns are already in your code.
|
|
193
|
-
|
|
194
|
-
### 4. Functional Architecture
|
|
195
|
-
|
|
196
|
-
**Built with pure functional programming principles:**
|
|
197
|
-
|
|
198
|
-
- 🧩 **Composition over Inheritance** - Tools compose naturally
|
|
199
|
-
- 🎯 **Pure Functions** - Predictable, testable, parallel
|
|
200
|
-
- 🔒 **Immutable Data** - No side effects, easier debugging
|
|
201
|
-
- 🌊 **Pipeline Architecture** - Natural data flow
|
|
202
|
-
|
|
203
|
-
```typescript
|
|
204
|
-
// Agents compose like functions
|
|
205
|
-
const result = await pipe(
|
|
206
|
-
knowledge_search("auth patterns"),
|
|
207
|
-
codebase_search("auth implementation"),
|
|
208
|
-
synthesize
|
|
209
|
-
)("implement OAuth");
|
|
210
|
-
```
|
|
211
|
-
|
|
212
|
-
---
|
|
213
|
-
|
|
214
|
-
## ⚡ Quick Start
|
|
215
|
-
|
|
216
|
-
### Install & Setup
|
|
217
|
-
|
|
218
|
-
```bash
|
|
219
|
-
# 1. Install globally
|
|
220
|
-
npm install -g @sylphx/flow
|
|
221
|
-
# or: bun install -g @sylphx/flow
|
|
222
|
-
|
|
223
|
-
# 2. Initialize (one time)
|
|
224
|
-
sylphx-flow init
|
|
225
|
-
|
|
226
|
-
# 3. (Optional) Set OpenAI-compatible API key to use vector search
|
|
227
|
-
# Without key: Uses TF-IDF search (fast, free)
|
|
228
|
-
# With key: Auto-upgrades to vector search (higher quality)
|
|
229
|
-
export OPENAI_API_KEY="your-key-here" # Auto-switches search mode
|
|
230
|
-
```
|
|
231
|
-
|
|
232
|
-
### Start Building
|
|
233
|
-
|
|
234
|
-
```bash
|
|
235
|
-
# Method 1: Direct command
|
|
236
|
-
sylphx-flow run "implement user registration"
|
|
237
|
-
|
|
238
|
-
# Method 2: Interactive mode (recommended)
|
|
239
|
-
sylphx-flow run
|
|
240
|
-
# Then just chat naturally:
|
|
241
|
-
# > add authentication
|
|
242
|
-
# > review the code
|
|
243
|
-
# > add tests
|
|
244
|
-
# > optimize performance
|
|
245
|
-
```
|
|
246
|
-
|
|
247
|
-
**That's it. Start building.**
|
|
248
|
-
|
|
249
|
-
---
|
|
250
|
-
|
|
251
|
-
## 🎯 Real-World Examples
|
|
252
|
-
|
|
253
|
-
### Example 1: Implement Feature (90% Less Typing)
|
|
254
|
-
|
|
255
|
-
<table>
|
|
256
|
-
<tr><th>Traditional</th><th>Sylphx Flow</th></tr>
|
|
257
|
-
<tr>
|
|
258
|
-
<td>
|
|
259
|
-
|
|
260
|
-
```bash
|
|
261
|
-
# 5 minutes of typing...
|
|
262
|
-
"I need a user profile page
|
|
263
|
-
with Next.js 14 App Router,
|
|
264
|
-
using TypeScript, shadcn/ui,
|
|
265
|
-
Tailwind CSS, tRPC for API,
|
|
266
|
-
Zod for validation...
|
|
267
|
-
|
|
268
|
-
Display user info, allow editing,
|
|
269
|
-
validate forms, show loading states,
|
|
270
|
-
handle errors, use server components
|
|
271
|
-
where possible, client components
|
|
272
|
-
when needed, follow our patterns
|
|
273
|
-
in src/app/(dashboard)/settings..."
|
|
274
|
-
|
|
275
|
-
# 😫 Still probably missing something
|
|
276
|
-
```
|
|
277
|
-
|
|
278
|
-
</td>
|
|
279
|
-
<td>
|
|
280
|
-
|
|
281
|
-
```bash
|
|
282
|
-
flow run "user profile page"
|
|
283
|
-
```
|
|
284
|
-
|
|
285
|
-
**10 seconds.**
|
|
286
|
-
AI already knows:
|
|
287
|
-
- Your tech stack
|
|
288
|
-
- Your patterns
|
|
289
|
-
- Your structure
|
|
290
|
-
- Best practices
|
|
291
|
-
|
|
292
|
-
</td>
|
|
293
|
-
</tr>
|
|
294
|
-
</table>
|
|
295
|
-
|
|
296
|
-
### Example 2: Code Review (Smart & Fast)
|
|
297
|
-
|
|
298
|
-
<table>
|
|
299
|
-
<tr><th>Traditional</th><th>Sylphx Flow</th></tr>
|
|
300
|
-
<tr>
|
|
301
|
-
<td>
|
|
302
|
-
|
|
303
|
-
```bash
|
|
304
|
-
"Review this auth code for:
|
|
305
|
-
- SQL injection
|
|
306
|
-
- XSS vulnerabilities
|
|
307
|
-
- CSRF protection
|
|
308
|
-
- Rate limiting
|
|
309
|
-
- Password security
|
|
310
|
-
- Token expiry
|
|
311
|
-
- Error handling
|
|
312
|
-
- Type safety
|
|
313
|
-
- Performance issues
|
|
314
|
-
- Best practices
|
|
315
|
-
- Code style
|
|
316
|
-
- Test coverage..."
|
|
317
|
-
|
|
318
|
-
# 😵 Did I forget anything?
|
|
319
|
-
```
|
|
320
|
-
|
|
321
|
-
</td>
|
|
322
|
-
<td>
|
|
323
|
-
|
|
324
|
-
```bash
|
|
325
|
-
flow run "review for security" \
|
|
326
|
-
--agent reviewer
|
|
327
|
-
```
|
|
328
|
-
|
|
329
|
-
Reviewer agent automatically checks:
|
|
330
|
-
- All security vulnerabilities
|
|
331
|
-
- Performance issues
|
|
332
|
-
- Best practices
|
|
333
|
-
- Your code style
|
|
334
|
-
- Everything
|
|
335
|
-
|
|
336
|
-
</td>
|
|
337
|
-
</tr>
|
|
338
|
-
</table>
|
|
339
|
-
|
|
340
|
-
### Example 3: Multi-Language Codebase
|
|
341
|
-
|
|
342
|
-
```bash
|
|
343
|
-
# Your team uses multiple languages
|
|
344
|
-
# TypeScript frontend + Python backend + Go services
|
|
345
|
-
|
|
346
|
-
# Traditional tools: Struggle with context switching
|
|
347
|
-
# Sylphx Flow: Understands ALL of them
|
|
348
|
-
|
|
349
|
-
$ flow codebase search "authentication middleware"
|
|
350
|
-
|
|
351
|
-
# Finds authentication code in:
|
|
352
|
-
✅ TypeScript Express middleware
|
|
353
|
-
✅ Python FastAPI middleware
|
|
354
|
-
✅ Go HTTP handlers
|
|
355
|
-
✅ All semantically related!
|
|
356
|
-
```
|
|
357
|
-
|
|
358
|
-
---
|
|
359
|
-
|
|
360
|
-
## 🏗️ How It Works
|
|
361
|
-
|
|
362
|
-
### The Magic Behind The Simplicity
|
|
363
|
-
|
|
364
|
-
```
|
|
365
|
-
┌─────────────────────────────────────────────────────────┐
|
|
366
|
-
│ You: "implement authentication" │
|
|
367
|
-
└─────────────────────────────────────────────────────────┘
|
|
368
|
-
↓
|
|
369
|
-
┌─────────────────────────────────────────────────────────┐
|
|
370
|
-
│ AI Orchestrator (Automatic) │
|
|
371
|
-
├─────────────────────────────────────────────────────────┤
|
|
372
|
-
│ 1. System Info → "macOS, Node 20, TypeScript" │
|
|
373
|
-
│ 2. Current Time → "2025-10-30 20:05:30" │
|
|
374
|
-
│ 3. Knowledge Search → "JWT best practices, RBAC..." │
|
|
375
|
-
│ 4. Codebase Search → "Existing auth patterns..." │
|
|
376
|
-
│ 5. Synthesize → "Generate perfect code" │
|
|
377
|
-
└─────────────────────────────────────────────────────────┘
|
|
378
|
-
↓
|
|
379
|
-
┌─────────────────────────────────────────────────────────┐
|
|
380
|
-
│ Result: Production-ready code that: │
|
|
381
|
-
│ ✅ Uses your tech stack (detected) │
|
|
382
|
-
│ ✅ Follows your patterns (learned) │
|
|
383
|
-
│ ✅ Applies best practices (built-in) │
|
|
384
|
-
│ ✅ Is properly tested (automatic) │
|
|
385
|
-
└─────────────────────────────────────────────────────────┘
|
|
386
|
-
```
|
|
387
|
-
|
|
388
|
-
### Powered By
|
|
389
|
-
|
|
390
|
-
- **🌟 StarCoder2** - World-class code tokenization (70+ languages)
|
|
391
|
-
- **🧠 TF-IDF Search** - Statistical relevance with semantic tokenization
|
|
392
|
-
- **📚 Curated Knowledge** - Professional best practices
|
|
393
|
-
- **🤖 Agent Orchestration** - Specialized AI agents working together
|
|
394
|
-
- **🔌 MCP Protocol** - Standard AI tool integration
|
|
395
|
-
|
|
396
|
-
---
|
|
397
|
-
|
|
398
|
-
## 💡 Why Sylphx Flow?
|
|
399
|
-
|
|
400
|
-
### Developer Experience
|
|
401
|
-
|
|
402
|
-
| Metric | Traditional | Sylphx Flow | Improvement |
|
|
403
|
-
|--------|-------------|-------------|-------------|
|
|
404
|
-
| **Time to prompt** | 5+ minutes | 10 seconds | **30x faster** |
|
|
405
|
-
| **Prompt length** | 500+ words | 3-10 words | **50x shorter** |
|
|
406
|
-
| **Context accuracy** | 70% | 95% | **+25%** |
|
|
407
|
-
| **Cognitive load** | High | Minimal | **-80%** |
|
|
408
|
-
| **Maintenance** | Constant | Zero | **Eliminated** |
|
|
409
|
-
| **Onboarding time** | Weeks | Days | **5x faster** |
|
|
410
|
-
|
|
411
|
-
### Key Benefits
|
|
412
|
-
|
|
413
|
-
**For Individual Developers:**
|
|
414
|
-
- ⚡ **2+ hours saved daily** - No more prompt engineering
|
|
415
|
-
- 🎯 **Higher accuracy** - AI knows your context
|
|
416
|
-
- 🧠 **Less mental load** - Just describe what you want
|
|
417
|
-
- 📚 **Always learning** - Automatically improves
|
|
418
|
-
|
|
419
|
-
**For Teams:**
|
|
420
|
-
- 🤝 **Consistent quality** - Same context for everyone
|
|
421
|
-
- 🚀 **Faster onboarding** - New devs productive immediately
|
|
422
|
-
- 📖 **Shared knowledge** - Built-in best practices
|
|
423
|
-
- 🔄 **Continuous improvement** - Learns from your codebase
|
|
424
|
-
|
|
425
|
-
**For Projects:**
|
|
426
|
-
- 🏗️ **Better architecture** - Follows best practices automatically
|
|
427
|
-
- 🔒 **More secure** - Security guidelines built-in
|
|
428
|
-
- 🧪 **Better tested** - Testing patterns included
|
|
429
|
-
- 📝 **Better documented** - Documentation agents available
|
|
430
|
-
|
|
431
|
-
---
|
|
432
|
-
|
|
433
|
-
## 🎯 Use Cases
|
|
434
|
-
|
|
435
|
-
### Perfect For
|
|
436
|
-
|
|
437
|
-
✅ **Rapid Prototyping** - Build MVPs 10x faster
|
|
438
|
-
✅ **Feature Development** - Implement features with minimal prompting
|
|
439
|
-
✅ **Code Review** - Automated security and quality checks
|
|
440
|
-
✅ **Refactoring** - AI understands your codebase patterns
|
|
441
|
-
✅ **Documentation** - Generate docs that match your style
|
|
442
|
-
✅ **Multi-language Projects** - Works across 70+ languages
|
|
443
|
-
✅ **Learning** - Best practices built-in
|
|
444
|
-
✅ **Team Projects** - Consistent AI assistance for everyone
|
|
445
|
-
|
|
446
|
-
### Testimonials
|
|
447
|
-
|
|
448
|
-
> "I used to spend 30% of my time writing prompts for AI. Now I just tell Sylphx Flow what I want and it happens. Game changer."
|
|
449
|
-
> — Developer at Tech Startup
|
|
450
|
-
|
|
451
|
-
> "The fact that it searches my existing codebase to follow my patterns is incredible. It's like having a senior developer who knows my entire project."
|
|
452
|
-
> — Solo Developer
|
|
453
|
-
|
|
454
|
-
> "Setup took 30 seconds. Been using it for 2 weeks. Can't go back to traditional AI tools."
|
|
455
|
-
> — Full-Stack Engineer
|
|
456
|
-
|
|
457
|
-
---
|
|
458
|
-
|
|
459
|
-
## 🛠️ Available Commands
|
|
460
|
-
|
|
461
|
-
### Core Commands
|
|
462
|
-
|
|
463
|
-
```bash
|
|
464
|
-
# Initialize project (once)
|
|
465
|
-
flow init
|
|
466
|
-
|
|
467
|
-
# Run AI agents
|
|
468
|
-
flow run "your task" # Use default agent (coder)
|
|
469
|
-
flow run "review code" --agent reviewer # Use reviewer agent
|
|
470
|
-
flow run "write docs" --agent writer # Use writer agent
|
|
471
|
-
flow run "complex task" --agent orchestrator # Use orchestrator
|
|
472
|
-
|
|
473
|
-
# Search knowledge base
|
|
474
|
-
flow knowledge search "react patterns"
|
|
475
|
-
flow knowledge get "/stacks/react-app"
|
|
476
|
-
|
|
477
|
-
# Search your codebase
|
|
478
|
-
flow codebase search "authentication logic"
|
|
479
|
-
flow codebase reindex # After major code changes
|
|
480
|
-
```
|
|
481
|
-
|
|
482
|
-
### Specialized Agents
|
|
483
|
-
|
|
484
|
-
- **🎯 Coder** - Implements features with tests (default)
|
|
485
|
-
- **🔄 Orchestrator** - Coordinates complex multi-step tasks
|
|
486
|
-
- **🔍 Reviewer** - Reviews code for security, performance, quality
|
|
487
|
-
- **📝 Writer** - Creates documentation and technical writing
|
|
488
|
-
|
|
489
|
-
---
|
|
490
|
-
|
|
491
|
-
## 📚 Documentation
|
|
492
|
-
|
|
493
|
-
### Quick Links
|
|
494
|
-
|
|
495
|
-
- **[Installation & Setup](https://github.com/sylphxltd/flow/wiki/Installation-&-Setup)** - Complete setup guide
|
|
496
|
-
- **[MEP Design Philosophy](https://github.com/sylphxltd/flow/wiki/MEP-Design-Philosophy)** - Why MEP changes everything
|
|
497
|
-
- **[Technical Architecture](https://github.com/sylphxltd/flow/wiki/Technical-Architecture)** - How StarCoder2 tokenization works
|
|
498
|
-
- **[CLI Commands](https://github.com/sylphxltd/flow/wiki/CLI-Commands)** - Full command reference
|
|
499
|
-
- **[Knowledge Base](https://github.com/sylphxltd/flow/wiki/Knowledge-Base)** - Curated guidelines system
|
|
500
|
-
- **[Codebase Search](https://github.com/sylphxltd/flow/wiki/Codebase-Search)** - Semantic search deep dive
|
|
501
|
-
- **[Agent Framework](https://github.com/sylphxltd/flow/wiki/Agent-Framework)** - How agents work
|
|
502
|
-
|
|
503
|
-
### Project Documentation Structure
|
|
504
|
-
|
|
505
|
-
```
|
|
506
|
-
📁 Project Root
|
|
507
|
-
├── README.md # This file - project overview
|
|
508
|
-
├── CHANGELOG.md # Version history
|
|
509
|
-
└── AGENTS.md # AI agent system prompt
|
|
510
|
-
|
|
511
|
-
📁 docs/
|
|
512
|
-
├── reports/ # Code analysis & optimization reports
|
|
513
|
-
│ ├── ANALYSIS_RESULTS.md # Automated code analysis
|
|
514
|
-
│ ├── CIRCULAR_DEPENDENCY_ELIMINATION.md # Circular dependency fixes
|
|
515
|
-
│ └── SYSTEMATIC_OPTIMIZATION_PLAN.md # Optimization strategy
|
|
516
|
-
├── claude-code-session-management.md # Session management guide
|
|
517
|
-
├── tool-display-guide.md # Tool UI guide
|
|
518
|
-
└── ... # Technical documentation
|
|
519
|
-
|
|
520
|
-
📁 wiki-pages/
|
|
521
|
-
├── Installation-&-Setup.md # Setup guide
|
|
522
|
-
├── MEP-Design-Philosophy.md # MEP concepts
|
|
523
|
-
└── ... # Feature documentation
|
|
524
|
-
|
|
525
|
-
📁 .github/
|
|
526
|
-
└── workflows/ # GitHub Actions only
|
|
527
|
-
|
|
528
|
-
📁 .archive/
|
|
529
|
-
└── refactoring-history/ # Historical documentation
|
|
530
|
-
```
|
|
531
|
-
|
|
532
|
-
**Navigation Tips:**
|
|
533
|
-
- **Getting Started**: Start with this README and `wiki-pages/Installation-&-Setup.md`
|
|
534
|
-
- **Understanding MEP**: Read `wiki-pages/MEP-Design-Philosophy.md`
|
|
535
|
-
- **Technical Details**: Check `docs/` folder
|
|
536
|
-
- **Code Quality Reports**: See `docs/reports/` for analysis
|
|
537
|
-
- **Historical Context**: View `.archive/` for refactoring history
|
|
538
|
-
|
|
539
|
-
---
|
|
540
|
-
|
|
541
|
-
## 🔧 Integration
|
|
542
|
-
|
|
543
|
-
### Works With
|
|
544
|
-
|
|
545
|
-
- **🤖 Claude Code** - Native integration (recommended)
|
|
546
|
-
- **💻 Cursor** - Full MCP support
|
|
547
|
-
- **⚡ Any MCP-compatible tool** - Standard protocol
|
|
548
|
-
|
|
549
|
-
### Setup for Claude Code
|
|
550
|
-
|
|
551
|
-
```bash
|
|
552
|
-
# 1. Install globally
|
|
553
|
-
npm install -g @sylphx/flow
|
|
554
|
-
|
|
555
|
-
# 2. Initialize
|
|
556
|
-
sylphx-flow init
|
|
557
|
-
|
|
558
|
-
# 3. (Optional) Add OpenAI-compatible key to .claude/mcp.json
|
|
559
|
-
# Enhances search quality with vector embeddings
|
|
560
|
-
# Works without API key using TF-IDF
|
|
561
|
-
|
|
562
|
-
# 4. Restart Claude Code
|
|
563
|
-
# Done! All tools available.
|
|
564
|
-
```
|
|
565
|
-
|
|
566
|
-
---
|
|
567
|
-
|
|
568
|
-
## 🚀 What's Next?
|
|
569
|
-
|
|
570
|
-
### Roadmap
|
|
571
|
-
|
|
572
|
-
- [ ] **More Knowledge Domains** - Expand beyond web development
|
|
573
|
-
- [ ] **Offline Mode** - Run StarCoder2 tokenization locally (no API needed)
|
|
574
|
-
- [ ] **Team Collaboration** - Share knowledge across team
|
|
575
|
-
- [ ] **Custom Agents** - Create your own specialized agents
|
|
576
|
-
- [ ] **IDE Plugins** - Direct integration with VSCode, IntelliJ
|
|
577
|
-
- [ ] **Real-time Learning** - AI learns from your commits
|
|
578
|
-
|
|
579
|
-
### Contributing
|
|
580
|
-
|
|
581
|
-
We welcome contributions! Check out:
|
|
582
|
-
- [Contributing Guide](https://github.com/sylphxltd/flow/wiki/Contributing)
|
|
583
|
-
- [Good First Issues](https://github.com/sylphxltd/flow/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22)
|
|
584
|
-
- [Discord Community](#) (coming soon)
|
|
585
|
-
|
|
586
|
-
---
|
|
587
|
-
|
|
588
|
-
## 📊 Project Stats
|
|
589
|
-
|
|
590
|
-
<div align="center">
|
|
591
|
-
|
|
592
|
-

|
|
593
|
-

|
|
594
|
-

|
|
595
|
-

|
|
596
|
-
|
|
597
|
-
</div>
|
|
598
|
-
|
|
599
|
-
---
|
|
600
|
-
|
|
601
|
-
## 🙏 Acknowledgments
|
|
602
|
-
|
|
603
|
-
Built with:
|
|
604
|
-
- **[StarCoder2](https://huggingface.co/bigcode/starcoder2)** - Code tokenization
|
|
605
|
-
- **[MCP Protocol](https://modelcontextprotocol.io)** - AI tool integration
|
|
606
|
-
- **[Anthropic Claude](https://claude.ai)** - AI foundation
|
|
607
|
-
- Open source community ❤️
|
|
608
|
-
|
|
609
|
-
---
|
|
610
|
-
|
|
611
|
-
## 📄 License
|
|
612
|
-
|
|
613
|
-
MIT License - see [LICENSE](LICENSE) file for details.
|
|
614
|
-
|
|
615
|
-
---
|
|
616
|
-
|
|
617
|
-
<div align="center">
|
|
618
|
-
|
|
619
|
-
**[⭐ Star us on GitHub](https://github.com/sylphxltd/flow)** • **[📖 Read the Docs](https://github.com/sylphxltd/flow/wiki)** • **[🐛 Report Issues](https://github.com/sylphxltd/flow/issues)**
|
|
620
|
-
|
|
621
|
-
**Stop writing prompts. Start building software.**
|
|
622
|
-
|
|
623
|
-
Made with ❤️ by [Sylphx Ltd](https://github.com/sylphxltd)
|
|
624
|
-
|
|
625
|
-
</div>
|
package/assets/agents/coder.md
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: Coder
|
|
3
|
-
description: Code execution agent
|
|
4
|
-
mode: both
|
|
5
|
-
temperature: 0.3
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
# CODER
|
|
9
|
-
|
|
10
|
-
## Core Rules
|
|
11
|
-
|
|
12
|
-
1. **Verify Always**: Run tests after every code change. Validate all inputs. Never expose secrets or commit broken code.
|
|
13
|
-
|
|
14
|
-
2. **Search Before Build**: Research best practices and search codebase before implementing. Use existing libraries/patterns.
|
|
15
|
-
|
|
16
|
-
3. **Complete Now**: Finish fully, no TODOs. Refactor immediately as you code. "Later" never happens.
|
|
17
|
-
|
|
18
|
-
---
|
|
19
|
-
|
|
20
|
-
## Execution Modes
|
|
21
|
-
|
|
22
|
-
**Investigation** (unclear) → Read code, explore domain, validate assumptions. Exit: Can articulate problem, constraints, approach.
|
|
23
|
-
|
|
24
|
-
**Design** (direction needed) → Sketch architecture, define boundaries, plan integration. Exit: Can explain solution clearly.
|
|
25
|
-
|
|
26
|
-
**Implementation** (path clear) → Write test first, implement increment, run tests immediately, refactor if needed, commit when tests pass.
|
|
27
|
-
|
|
28
|
-
**Red flags** → Return to Design: Code significantly harder than expected, tests difficult, unclear what/how to test.
|
|
29
|
-
|
|
30
|
-
**Validation** (uncertain) → Run tests, check security, verify performance.
|
|
31
|
-
|
|
32
|
-
Flow between modes adaptively based on signals (friction, confusion, confidence).
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: Orchestrator
|
|
3
|
-
description: Task coordination and agent delegation
|
|
4
|
-
mode: primary
|
|
5
|
-
temperature: 0.3
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
# ORCHESTRATOR
|
|
9
|
-
|
|
10
|
-
## Core Rules
|
|
11
|
-
|
|
12
|
-
1. **Never Do Work**: Delegate all concrete work to specialist agents (coder, reviewer, writer).
|
|
13
|
-
|
|
14
|
-
2. **Decompose Complex Tasks**: Break into subtasks with clear dependencies and ordering.
|
|
15
|
-
|
|
16
|
-
3. **Synthesize Results**: Combine agent outputs into coherent response for user.
|
|
17
|
-
|
|
18
|
-
---
|
|
19
|
-
|
|
20
|
-
## Orchestration Flow
|
|
21
|
-
|
|
22
|
-
**Analyze** (understand request) → Identify required agents and dependencies. Exit: Clear task breakdown.
|
|
23
|
-
|
|
24
|
-
**Decompose** (plan execution) → Define subtasks, sequence, and which agent handles each. Exit: Execution plan with dependencies.
|
|
25
|
-
|
|
26
|
-
**Delegate** (assign work) → Call specialist agents with specific, focused instructions. Monitor completion.
|
|
27
|
-
|
|
28
|
-
**Handle Iterations** (if needed) → If agent output needs refinement, delegate follow-up. Example: coder → reviewer → coder fixes.
|
|
29
|
-
|
|
30
|
-
**Synthesize** (combine results) → Merge agent outputs into final deliverable for user.
|
|
31
|
-
|
|
32
|
-
---
|
|
33
|
-
|
|
34
|
-
## Agent Selection
|
|
35
|
-
|
|
36
|
-
Select agents based on their descriptions in the environment. Match task requirements to agent capabilities.
|