Skip to content

A visual playground for agentic workflows: Iterate over your agents 10x faster

License

Notifications You must be signed in to change notification settings

changsongyang/pyspur

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

PySpur

Iterate over your agents 10x faster. AI engineers use PySpur to iterate over AI agents visually without reinventing the wheel.

README in English ็ฎ€ไฝ“ไธญๆ–‡็‰ˆ่‡ช่ฟฐๆ–‡ไปถ ๆ—ฅๆœฌ่ชžใฎREADME README in Korean Deutsche Version der README Version franรงaise du README Versiรณn en espaรฑol del README

Docs Meet us Cloud Join Our Discord

hero_dark.mp4

๐Ÿ•ธ๏ธ Why PySpur?

Problem: It takes a 1,000 tiny paper cuts to make AI reliable

AI engineers today face three problems of building agents:

  • Prompt Hell: Hours of prompt tweaking and trial-and-error frustration.
  • Workflow Blindspots: Lack of visibility into step interactions causing hidden failures and confusion.
  • Terminal Testing Nightmare Squinting at raw outputs and manually parsing JSON.

We've been there ourselves, too. We launched a graphic design agent early 2024 and quickly reached thousands of users, yet, struggled with the lack of its reliability and existing debugging tools.

Solution: A playground for agents that saves time

Step 1: Define Test Cases

step1.mp4

Step 2: Build the agent in Python code or via UI

step2.mp4

Step 3: Iterate obsessively

step3.mp4

Step 4: Deploy

step4.mp4

โœจ Core features:

  • ๐Ÿ‘ค Human in the Loop: Persistent workflows that wait for human approval.
  • ๐Ÿ”„ Loops: Iterative tool calling with memory.
  • ๐Ÿ“ค File Upload: Upload files or paste URLs to process documents.
  • ๐Ÿ“‹ Structured Outputs: UI editor for JSON Schemas.
  • ๐Ÿ—ƒ๏ธ RAG: Parse, Chunk, Embed, and Upsert Data into a Vector DB.
  • ๐Ÿ–ผ๏ธ Multimodal: Support for Video, Images, Audio, Texts, Code.
  • ๐Ÿงฐ Tools: Slack, Firecrawl.dev, Google Sheets, GitHub, and more.
  • ๐Ÿ“Š Traces: Automatically capture execution traces of deployed agents.
  • ๐Ÿงช Evals: Evaluate agents on real-world datasets.
  • ๐Ÿš€ One-Click Deploy: Publish as an API and integrate wherever you want.
  • ๐Ÿ Python-Based: Add new nodes by creating a single Python file.
  • ๐ŸŽ›๏ธ Any-Vendor-Support: >100 LLM providers, embedders, and vector DBs.

โšก Quick start

This is the quickest way to get started. Python 3.11 or higher is required.

  1. Install PySpur:

    pip install pyspur
  2. Initialize a new project:

    pyspur init my-project
    cd my-project

    This will create a new directory with a .env file.

  3. Start the server:

    pyspur serve --sqlite

    By default, this will start PySpur app at http://localhost:6080 using a sqlite database. We recommend you configure a postgres instance URL in the .env file to get a more stable experience.

  4. [Optional] Configure Your Environment and Add API Keys:

    • App UI: Navigate to API Keys tab to add provider keys (OpenAI, Anthropic, etc.)
    • Manual: Edit .env file (recommended: configure postgres) and restart with pyspur serve

๐Ÿ˜Ž Feature Reel

Human-in-the-loop breakpoints:

These breakpoints pause the workflow when reached and resume whenever a human approves it. They enable human oversight for workflows that require quality assurance: verify critical outputs before the workflow proceeds.

HIL.mp4

Debug at Node Level:

visualization.mp4

Multimodal (Upload files or paste URLs)

PDFs, Videos, Audio, Images, ...

multimodal.mp4

Loops

Loops

RAG

Step 1) Create Document Collection (Chunking + Parsing)

RAG_1.mp4

Step 2) Create Vector Index (Embedding + Vector DB Upsert)

RAG_2.mp4

Modular Building Blocks

blocks.mp4

Evaluate Final Performance

evals.mp4

Coming soon: Self-improvement

optimization.mp4

๐Ÿ› ๏ธ PySpur Development Setup

[ Instructions for development on Unix-like systems. Development on Windows/PC not supported ]

We recommend using Cursor/VS Code with our dev container (.devcontainer/devcontainer.json) for:

  • Consistent development environment with pre-configured tools and extensions
  • Optimized settings for Python and TypeScript development
  • Automatic hot-reloading and port forwarding

Option 1: Cursor/VS Code Dev Container (Recommended)

  1. Install Cursor/VS Code and the Dev Containers extension
  2. Clone and open the repository
  3. Click "Reopen in Container" when prompted

Option 2: Manual Setup

  1. Clone the repository:

    git clone https://github.com/PySpur-com/pyspur.git
    cd pyspur
  2. Launch using docker-compose.dev.yml:

    docker compose -f docker-compose.dev.yml up --build -d
  3. Customize your setup: Edit .env to configure your environment (e.g., PostgreSQL settings).

Note: Manual setup requires additional configuration and may not include all dev container features.

โญ Support us

You can support us in our work by leaving a star! Thank you!

star

Your feedback will be massively appreciated. Please tell us which features on that list you like to see next or request entirely new ones.

About

A visual playground for agentic workflows: Iterate over your agents 10x faster

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 54.3%
  • Python 43.0%
  • JavaScript 1.4%
  • CSS 0.6%
  • Shell 0.5%
  • HTML 0.1%
  • Other 0.1%