Skip to main content

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

Project description

๐Ÿš€ 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]

๐Ÿ”ท 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]

๐Ÿ“ 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


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sourcebot-0.1.1.tar.gz (53.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sourcebot-0.1.1-py3-none-any.whl (78.8 kB view details)

Uploaded Python 3

File details

Details for the file sourcebot-0.1.1.tar.gz.

File metadata

  • Download URL: sourcebot-0.1.1.tar.gz
  • Upload date:
  • Size: 53.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for sourcebot-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a18d752a221fad889cac47d9ee3387ca9f0393baa91bea8f93dc166f016960d1
MD5 6228b06fb6e0a63ce8a3191381052082
BLAKE2b-256 7a6af2ff404e0fbb48e281c8c1a75cff4e578d4005d76bde21554305e00d492b

See more details on using hashes here.

File details

Details for the file sourcebot-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: sourcebot-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 78.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for sourcebot-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 83570dfcc986183c451dd6707d4d8b17740bb76b3e10906eba0370b4458684bd
MD5 4296f64c6b12e9a6c208a1a16a3015af
BLAKE2b-256 ba5a7394f33e2f73da53657dafa19d4f865fe67a608a5e3015fe32132e588a14

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page