Skip to content

DavidVi2Bot/sourcebot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ SourceBot

⚑ A Devin-style autonomous coding agent framework
Plan β†’ Execute β†’ Iterate with DAG-based workflows


⚑ TL;DR

SourceBot is an autonomous agent runtime that:

  • Plans tasks as a DAG
  • Executes them with tools + LLMs
  • Maintains memory and state
  • Supports retry, resume, and parallel execution

πŸ”₯ Why SourceBot?

Most AI tools today are chat-based.

SourceBot is different.

It is built to plan, execute, and iterate β€” like a real developer.

  • 🧠 Plans tasks using a DAG (not linear prompts)
  • πŸ”§ Uses tools (shell, skills, APIs)
  • πŸ” Retries, resumes, and replays execution
  • πŸ’Ύ Maintains memory across steps
  • 🐳 Runs safely in sandboxed environments

This is not a chatbot. This is an agent runtime.


🎬 Demo

sourcebot init
sourcebot init_workspace
sourcebot cli

⚑ Example: Build a Python HTTP server autonomously

SourceBot Demo

⚑ Demo is shortened for clarity


🧠 What Makes It Different

πŸ”€ DAG-Based Execution (Core Innovation)

Unlike traditional agents:

Prompt β†’ LLM β†’ Response

SourceBot:

Task
 ↓
Decomposition
 ↓
DAG Graph
 ↓
Parallel Execution
 ↓
Tool + LLM Calls
 ↓
State + Memory Update

βœ… Parallelizable βœ… Retryable βœ… Resumable βœ… Observable


🧩 Core Features

🧠 Agent Runtime

  • Modular architecture
  • Identity + context system
  • Multi-provider LLM abstraction

πŸ”€ DAG Execution Engine

  • Task decomposition
  • Parallel scheduling
  • Retry policies
  • Run state persistence
  • Partial replay

πŸ›  Tool System

  • Tool registry
  • Shell execution
  • Skill-based extensions

πŸ’Ύ Memory System

  • Sliding window memory
  • LLM-based summarization
  • Persistent storage

πŸ’¬ CLI Interface

  • Interactive agent shell
  • Safe runner
  • Workspace bootstrap

🐳 Sandbox Execution

  • Docker isolation
  • Safe tool execution

πŸ— Architecture

πŸ”· High-Level Architecture

graph TD
    U[User] --> CLI[CLI Interface]
    CLI --> AR[Agent Runtime]
    AR --> DP[DAG Planner]
    DP --> TG[Task Graph]
    TG --> DS[DAG Scheduler]
    DS --> TE[Tool Executor]
    DS --> LLM[LLM Clients]
    TE --> SB[Docker Sandbox]
    LLM --> MEM[Memory System]
    SB --> MEM
    MEM --> OUT[Output]
Loading

πŸ”· Execution Flow

graph LR
    A[User Task] --> B[Task Decomposition]
    B --> C[DAG Generation]
    C --> D[Parallel Execution]
    D --> E[Tool Calls / LLM]
    E --> F[State Update]
    F --> G[Final Result]
Loading

πŸ“ Project Structure

sourcebot/
β”œβ”€β”€ bus/              # Event system
β”œβ”€β”€ cli/              # CLI interface
β”œβ”€β”€ config/           # Config system
β”œβ”€β”€ context/          # Context + skills
β”œβ”€β”€ conversation/     # Conversation layer
β”œβ”€β”€ docker_sandbox/   # Execution isolation
β”œβ”€β”€ llm/              # LLM abstraction
β”œβ”€β”€ memory/           # Memory system
β”œβ”€β”€ runtime/          # Agent + DAG engine
β”œβ”€β”€ tools/            # Tooling system
β”œβ”€β”€ session/          # Persistence
└── utils/            # Utilities

πŸš€ Installation

git clone https://github.com/DavidVi2Bot/sourcebot.git
cd sourcebot
pip install -e .

πŸ§ͺ Development

pip install -r requirements-dev.txt
pytest
black .
ruff check .

πŸ›£ Roadmap

🧱 Core

  • DAG execution engine
  • Tool system
  • CLI runtime
  • Memory system

🚧 Next

  • Web UI (IDE-like)
  • Multi-agent collaboration
  • Plugin / marketplace system
  • Long-term memory (vector DB)
  • Remote execution / cloud runtime

🧠 Vision

SourceBot aims to become a general-purpose autonomous agent framework:

  • πŸ§‘β€πŸ’» Coding agents (Devin-style)
  • βš™οΈ DevOps automation
  • πŸ”¬ Research agents
  • πŸ”„ Workflow orchestration

⚠️ Status

🚧 Alpha β€” rapidly evolving

Expect breaking changes and fast iteration.


🀝 Contributing

We welcome contributions!

  • Bug reports
  • Feature ideas
  • Tools / skills
  • Documentation improvements

⭐ Star History

If this project interests you, give it a ⭐ β€” it helps a lot!


πŸ“„ License

MIT License


About

An experimental autonomous coding agent framework with DAG execution, tool use, and CLI interface.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages