Skip to content
github-actions[bot] edited this page Dec 2, 2025 · 10 revisions

Sylphx Flow - AI-Powered Development Platform

MEP (Minimal Effective Prompt) Architecture - 90% less prompt, 100% better results.

Welcome to Sylphx Flow, the first production platform built on StarCoder2 tokenization for 70+ language hybrid search, combining curated knowledge, TF-IDF semantic search, and AI agent orchestration through the Model Context Protocol (MCP).

🎯 The MEP Difference

Traditional Way ❌

User: "I'm using TypeScript + React + Next.js,
      project structure is src/app,
      using shadcn/ui,
      current time is 2025-10-30,
      implement authentication with JWT..."

MEP Way βœ… (Sylphx Flow)

User: "implement authentication"

// AI automatically gets:
βœ… Project environment
βœ… Current time
βœ… Existing patterns (via codebase search)
βœ… Best practices (via knowledge base)

Result: 90% less prompt, 100% more accurate

πŸš€ Core Innovations

1. 🌟 StarCoder2 Tokenization - 70+ Languages

First production use of StarCoder2 tokenization for search:

  • 70+ Programming Languages - TypeScript to Assembly
  • Hybrid Search - Search in any language, find code in any language
  • Semantic Understanding - Find code by what it does
  • Cross-Language - Understand concepts across languages
# Search in ANY language - finds same code!
flow codebase search "user login handling"     # English
flow codebase search "θ™•η†η”¨ζˆΆη™»ε…₯ε˜…ι‚θΌ―"       # Chinese
flow codebase search "ユーアーログむン処理"     # Japanese

# All find the same code:
βœ… authenticateUser()
βœ… loginHandler
βœ… verifyCredentials

2. 🎯 Two-Command Architecture

Setup once, use forever:

# 1. Initialize once
npx @sylphx/flow init

# 2. Use anywhere, anytime
npx @sylphx/flow run "your task"

# Or enter interactive mode
npx @sylphx/flow run
# Then type your prompt interactively

Why two commands?

  • βœ… Zero configuration - Set up once, never again
  • βœ… Zero maintenance - Everything auto-updates
  • βœ… Zero complexity - Just describe what you want

3. πŸ“‹ Curated Knowledge (By Design)

No custom knowledge support - intentionally:

  • βœ… Quality Guaranteed - Professionally curated
  • βœ… Zero Maintenance - Auto-updated with flow init
  • βœ… Optimized Performance - Local tokenization + TF-IDF = <100ms search

Project-specific patterns? Use codebase search:

flow codebase search "our authentication pattern"
# AI finds YOUR actual patterns

4. πŸ—οΈ Pure Functional Architecture

Built with FP principles:

  • βœ… Composition over Inheritance - Tools compose naturally
  • βœ… Pure Functions - Predictable, testable, parallel
  • βœ… Immutable Data - No side effects
  • βœ… Pipeline Architecture - Natural data flow

✨ Core Capabilities

Capability What It Provides Who Benefits
πŸ“š Knowledge Base Curated guidelines for React, Next.js, Node.js AI assistants, developers
πŸ” Semantic Search Find code by meaning, not keywords Development teams
πŸ€– Agent Framework Orchestrated AI for complex tasks Project managers, architects
⚑ Real-time Indexing Always up-to-date search index Large codebases
πŸ”§ CLI Tools Command-line control DevOps, power users

🎯 Quick Navigation

Getting Started

Core Features

Technical Deep Dive

πŸš€ Quick Start

Two commands, infinite possibilities:

1. Setup Once

npx @sylphx/flow init

2. Use Forever

Direct prompt:

# Just describe what you want
npx @sylphx/flow run "implement authentication"
npx @sylphx/flow run "review for security" --agent reviewer

Interactive mode:

# Enter interactive Claude mode
npx @sylphx/flow run

# Then type your prompt naturally:
User: implement authentication
User: add password reset
User: write tests
# Keep chatting until done!

That's it! AI automatically gets:

  • βœ… Your environment and time
  • βœ… Your existing code patterns
  • βœ… Best practices from knowledge base
  • βœ… Everything needed for accurate results

Zero extra prompting required.

πŸ“– Essential Reading

For First-Time Users

  1. Installation & Setup - Install and configure
  2. CLI Commands - Learn basic commands
  3. Knowledge Base - Explore available guidelines

For AI Tool Users

  1. MCP Integration - Connect your AI assistant
  2. Knowledge Base - How AI uses knowledge
  3. Codebase Search - Semantic search capabilities

For Developers

  1. Architecture - System design and structure
  2. Configuration - Advanced customization
  3. Contributing - Contribute to the project

🎯 Real-World Use Cases

1. Onboarding New Developers

Your AI assistant has instant access to project patterns and architecture:

# AI searches knowledge base
knowledge_search("project architecture patterns")

# AI finds relevant code examples
codebase_search("authentication implementation")

2. Code Quality Maintenance

AI follows your team's standards automatically:

# Run code review with AI
flow run "review for security and performance" --agent reviewer

3. Complex Feature Development

Orchestrator breaks down and coordinates feature implementation:

# Orchestrator delegates to coder, reviewer, and writer
flow run "implement OAuth with tests and docs" --agent orchestrator

4. Semantic Code Discovery

Find code by what it does, not what it's called:

# Traditional search: Need exact keywords
grep -r "handlePayment"

# Semantic search: Describe what you're looking for
flow codebase search "payment processing logic"

🧠 How It Works

Knowledge Base System

Developer β†’ AI Assistant β†’ knowledge_search("react best practices")
                          ↓
                   Knowledge Base (curated guidelines)
                          ↓
                   Returns: React patterns, hooks, state management

Codebase Search

Developer β†’ AI Assistant β†’ codebase_search("authentication")
                          ↓
                   StarCoder2 Tokenization + TF-IDF (semantic understanding)
                          ↓
                   Returns: All auth-related code by meaning

Agent Orchestration

Complex Task β†’ Orchestrator β†’ Break down into subtasks
                             ↓
                  Delegate to: Coder β†’ Reviewer β†’ Writer
                             ↓
                  Synthesize results β†’ Deliver to user

πŸ”Œ MCP Tools Available

When you run flow mcp start, AI assistants get these tools:

Knowledge Tools

  • knowledge_search - Search guidelines and patterns
  • knowledge_get - Get specific documents
  • knowledge_list - List all resources

Codebase Tools

  • codebase_search - Semantic code search
  • codebase_reindex - Update search index
  • codebase_status - Check index status

Time Tools

  • time_get_current - Current timestamp
  • time_format - Format times
  • time_calculate - Time calculations

πŸ“Š Knowledge Base Content

Stacks (Framework-Specific)

  • React App - Components, hooks, state management
  • Next.js App - App router, server components, data fetching
  • Node.js API - Express, middleware, error handling

Guides (Architecture & Design)

  • SaaS Template - Multi-tenant patterns
  • Tech Stack - Technology selection
  • UI/UX - Design systems and accessibility

Universal (Cross-Cutting)

  • Security - Auth, input validation, encryption
  • Performance - Optimization, caching, monitoring
  • Testing - Test strategies, coverage, integration
  • Deployment - CI/CD, infrastructure, rollback

Data (Database Patterns)

  • SQL - Query patterns, indexing, migrations

πŸ€– Agent Framework

Orchestrator

Role: Task coordination and delegation

Use When: Complex tasks requiring multiple specialists

Example:

flow run "implement feature with tests and docs" --agent orchestrator

Coder

Role: Code implementation and execution

Use When: Need to write or modify code

Example:

flow run "add user authentication" --agent coder

Reviewer

Role: Code review and quality assurance

Use When: Need code review for security, performance, or best practices

Example:

flow run "review this PR" --agent reviewer

Writer

Role: Documentation and technical writing

Use When: Need to create or update documentation

Example:

flow run "document the API endpoints" --agent writer

πŸ’‘ Key Benefits

πŸ”„ Consistency

"My AI assistants follow the same coding standards across all projects."

🧠 Intelligence

"AI understands my codebase by meaning, not just by keywords."

🀝 Collaboration

"Multiple AI agents work together on complex tasks."

πŸ› οΈ Control

"I have full control over what guidelines AI follows."

🎯 What's Next?

New Users

  1. Install Sylphx Flow - Get set up
  2. Learn CLI Commands - Master the basics
  3. Explore Knowledge Base - See what's available

AI Tool Integration

  1. MCP Integration - Connect AI tools
  2. Configure Tools - Customize behavior
  3. Use Case Examples - Real-world scenarios

Developers

  1. Architecture Overview - Understand the system
  2. Extend Knowledge Base - Add your own guidelines
  3. Contribute - Help improve the project

πŸ”— Important Links

πŸ“Š System Status

  • Current Version: 0.0.2
  • Node.js Required: >= 18.0.0
  • License: MIT
  • Status: Active Development

πŸ’‘ The Big Picture

Sylphx Flow isn't just another CLI tool or knowledge base. It's the missing infrastructure that transforms AI assistants from helpful tools into intelligent collaborators that understand your codebase, follow your standards, and coordinate complex tasks.

Transform your development workflow - Start with Installation & Setup.


Last Updated: 2025-10-30 | Edit this page | Report Issues

Clone this wiki locally