Skip to content

ykykj/Arxiv-Paper-Coding-Agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 Advanced Multi-Agent Code Generation System

A Production-Ready Multi-Agent Framework for Autonomous Code Generation and Research Automation

Python 3.10+ License: MIT Code Style: Black

Developed by Yufeng HE for advanced AI agent research


🌟 Overview

The Advanced Agent System is a state-of-the-art multi-agent framework that implements cutting-edge AI agent patterns including ReACT (Reasoning + Acting), Chain-of-Thought, and Self-Reflection. It autonomously generates complete, production-ready software projects from natural language descriptions.

🎯 Key Highlights

  • 🧠 Intelligent Multi-Agent Architecture: Specialized agents (Planner, Coder, Reviewer) collaborating seamlessly
  • 🔄 ReACT Pattern: Think-Act-Reflect cycle for robust decision-making
  • 🛠️ Rich Tool Ecosystem: 20+ tools including file ops, web search, code execution, arXiv integration
  • 💎 Stunning Frontend: 3D particle effects (Three.js), glassmorphism design, dark/light themes
  • 🔐 Production-Ready: Exponential backoff, retry logic, comprehensive error handling
  • ⚡ High Performance: Parallel execution, async API calls, intelligent caching
  • 📊 Memory System: Context management, artifact tracking, conversation history
  • 🎓 arXiv Specialization: Academic paper aggregation with beautiful visualization

🏆 Academic Foundation

This system incorporates research from:

  • ReACT: Reasoning and Acting in Language Models (Yao et al., 2022)
  • Chain-of-Thought: Prompting for Complex Reasoning (Wei et al., 2022)
  • Self-Reflection: Teaching Language Models to Self-Improve (Huang et al., 2022)

🏗️ System Architecture

┌──────────────────────────────────────────────────────────────────┐
│                    Orchestrator (Core Engine)                     │
│  ┌────────────────────────────────────────────────────────────┐  │
│  │  Task Scheduler │ Memory Manager │ Dependency Resolver    │  │
│  └────────────────────────────────────────────────────────────┘  │
└──────────────────────────────────────────────────────────────────┘
                                │
        ┌───────────────────────┼───────────────────────┐
        │                       │                       │
┌───────▼────────┐     ┌───────▼────────┐     ┌───────▼────────┐
│ Planning Agent │     │  Coding Agent  │     │  Review Agent  │
│                │     │                │     │                │
│ • Task Decomp  │     │ • Code Gen     │     │ • Quality QA   │
│ • Chain-of-    │     │ • Multi-Lang   │     │ • Security     │
│   Thought      │────▶│ • Tool Calling │────▶│ • Testing      │
│ • Dependency   │     │ • Artifact Mgmt│     │ • Feedback     │
│   Graph (DAG)  │     │                │     │                │
└────────────────┘     └────────────────┘     └────────────────┘
        │                       │                       │
        └───────────────────────┼───────────────────────┘
                                │
        ┌───────────────────────▼───────────────────────┐
        │            Tool System (20+ Tools)             │
        │  • File I/O        • Code Execution            │
        │  • Web Search      • arXiv API                 │
        │  • Templates       • Git Operations            │
        └────────────────────────────────────────────────┘

🚀 Quick Start

📦 Installation

# Navigate to project directory
cd advanced_agent_system

# Create virtual environment
python3 -m venv venv
source venv/bin/activate  # Windows: venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt

# Configure environment
cp .env.example .env
nano .env  # Add your OpenAI API key

⚡ Quick Demo

# Generate stunning arXiv daily webpage
python examples/arxiv_daily.py

# Output: ./outputs/arxiv_daily_YYYYMMDD/index.html
# Open in browser to see 3D effects and modern UI!

💻 Programmatic Usage

from src.core.orchestrator import Orchestrator

# Initialize orchestrator
orchestrator = Orchestrator(project_name="my_project")

# Define objective
objective = """
Create a web application that:
1. Fetches data from an API
2. Processes and analyzes the data
3. Displays results in an interactive dashboard
"""

# Execute project
results = orchestrator.execute_project(objective=objective)

# Check results
if results['success']:
    print(f"✓ Generated {len(results['artifacts'])} files")
    print(f"Quality score: {results['review']['quality_score']:.2f}")

📚 Documentation

Core Documentation

Component Guides

  • Agents: Planning, Coding, and Review agent specifications
  • Tools: File I/O, web search, code execution, arXiv integration
  • Templates: Jinja2 templates for beautiful webpage generation
  • Memory: Context management and artifact tracking

🎨 Features Showcase

🌐 arXiv Daily Generator

Generate beautiful, interactive webpages from arXiv papers with:

  • 3D particle background (Three.js)
  • Glassmorphism design
  • Dark/Light theme toggle
  • Real-time search and filtering
  • Responsive mobile layout
  • Keyboard shortcuts

🤖 Multi-Agent Collaboration

  1. Planner Agent: Decomposes tasks using Chain-of-Thought
  2. Coder Agent: Implements solutions with tool calling
  3. Review Agent: Quality assurance and testing
  4. Orchestrator: Coordinates execution

🔬 Technical Highlights

ReACT Pattern

def execute(task):
    thought = think(task)      # Reasoning
    result = act(task, thought)  # Action
    reflection = reflect(result) # Learning
    return result

Tool System (20+ Tools)

  • File Operations: create_file, read_file, write_file, delete_file
  • Web Operations: web_search, fetch_url
  • Code Execution: execute_python, execute_shell, validate_syntax
  • arXiv Integration: fetch_papers, search_arxiv, categorize_papers
  • Templates: Jinja2-based HTML generation

📧 Contact

Yufeng HE

  • Research Focus: Trustworthy AI, Multi-Agent Systems
  • Project: Advanced Agent System for Code Generation

Built with passion for AI agent research

About

Research Agent is a multi-LLM engineering crew that plans tasks, writes code, and self-reviews to build polished outputs like the ArXiv CS Daily site—featuring automated paper ingestion, intelligent tagging, UI generation, and full audit logs in one reproducible workflow.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors