swe-agent  by langtalks

AI agent for automated code implementation

created 2 months ago
513 stars

Top 61.8% on sourcepulse

GitHubView on GitHub
Project Summary

SWE-Agent is an AI-powered system designed to automate software engineering tasks, including code implementation, planning, and refactoring. It targets developers and researchers seeking to leverage multi-agent workflows for efficient and reliable code automation. The system's primary benefit is its ability to autonomously translate requirements into executable code changes through intelligent planning and execution.

How It Works

SWE-Agent employs a two-stage LangGraph workflow. First, an Architect Agent researches the codebase, analyzes requirements, and generates a detailed, atomic implementation plan. This phase utilizes tools for code search and semantic understanding. Second, a Developer Agent executes this plan step-by-step, performing precise file modifications and creating new files as needed. This separation of planning and execution enhances reliability and allows for incremental development.

Quick Start & Requirements

  • Install: Clone the repository and use uv sync to install dependencies.
  • Prerequisites: Python 3.12+, uv package manager, and an Anthropic API key (Claude Sonnet 4).
  • Setup: Create a .env file with your API key.
  • Run: Activate the environment (source .venv/bin/activate) and start the LangGraph server (langgraph dev).
  • Docs: README

Highlighted Details

  • Leverages LangGraph for robust multi-agent workflow orchestration.
  • Utilizes Tree-sitter for advanced code parsing and analysis.
  • Employs Pydantic models for type-safe state management between agents.
  • Supports atomic task breakdown for precise and manageable code modifications.

Maintenance & Community

The project is community-driven by LangTalks. Key areas for contribution include agent improvements, tool development, testing, documentation, and performance optimization. A roadmap is available for upcoming features.

Licensing & Compatibility

MIT License. This license permits commercial use and linking with closed-source projects.

Limitations & Caveats

The project is currently in Alpha status, meaning features are experimental and subject to change. It currently relies on Anthropic's Claude Sonnet 4, which may incur costs. Multi-language support is a future roadmap item.

Health Check
Last commit

1 month ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
518 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.