Skip to main content

AgentHub - The App Store for AI Agents

Project description

๐Ÿค– AgentHub

The "App Store for AI Agents" - Discover, install, and use AI agents with one-line simplicity

Python License Status PyPI version PyPI downloads

๐Ÿ“– Documentation โ€ข ๐Ÿš€ Quick Start โ€ข ๐Ÿค Contributing โ€ข ๐Ÿ“ง Contact

๐Ÿš€ What is AgentHub?

Transform weeks of AI agent integration into one line of code. AgentHub makes powerful AI agents as easy to use as installing a Python package.

Before AgentHub

# Traditional approach: 2-4 weeks setup
# 1. Find agent on GitHub
# 2. Clone repository
# 3. Read documentation
# 4. Install dependencies (version conflicts!)
# 5. Configure environment
# 6. Debug integration issues
# 7. Write wrapper code
# 8. Test and validate

With AgentHub

# One line, 30 seconds
import agentplug as ah
coding_agent = ah.load_agent("agentplug/coding-agent")
code = coding_agent.generate_code("neural network class")

โœจ Key Features

  • ๐Ÿช Agent Marketplace: Discover and install agents from GitHub
  • ๐Ÿ”Œ One-Line Integration: ah.load_agent("user/agent")
  • ๐Ÿ› ๏ธ Custom Tools: Create and inject tools with @tool decorator
  • ๐Ÿ”’ Isolated Environments: No dependency conflicts
  • โšก Auto-Installation: Agents install automatically when needed
  • ๐ŸŽฏ CLI Interface: Full command-line management

๐Ÿš€ Quick Start

โšก Install AgentHub

# Install AgentHub
pip install agentplug

# Verify installation
agentplug --version

๐ŸŽฏ Your First Agent (30 seconds)

import agentplug as ah

# ๐Ÿช„ One line to load any agent
paper_analyzer = ah.load_agent("agentplug/scientific-paper-analyzer")

# ๐Ÿ“„ Use the agent immediately
result = paper_analyzer.analyze_paper("research_paper.pdf")
print(f"๐Ÿ“Š Summary: {result['summary'][:200]}...")

# โœ… Magic happens automatically:
# โ€ข GitHub repository cloned
# โ€ข Virtual environment created
# โ€ข Dependencies installed
# โ€ข Agent validated and ready

๐Ÿ› ๏ธ Using Custom Tools

Create powerful agents with your own tools:

from agentplug.core.tools import tool, run_resources

@tool(name="web_search", description="Search the web for information")
def web_search(query: str, max_results: int = 10) -> list:
    """Search the web and return results."""
    # Your search implementation here
    return [f"Result {i+1} for '{query}'" for i in range(min(max_results, 3))]

@tool(name="data_analyzer", description="Analyze data patterns")
def data_analyzer(data: list, analysis_type: str = "basic") -> dict:
    """Analyze data and return insights."""
    return {
        "type": analysis_type,
        "count": len(data),
        "insights": f"Analyzed {len(data)} items"
    }

# ๐Ÿš€ Start the tool server
if __name__ == "__main__":
    print("๐Ÿ”ง Starting tool server...")
    run_resources()  # Starts MCP server for tool execution
# ๐Ÿค– Use tools with agents (run in separate process/terminal)
import agentplug as ah

# Load agent with custom tools
agent = ah.load_agent("agentplug/analysis-agent", tools=["web_search", "data_analyzer"])

# Agent's AI decides when and how to use tools
result = agent.analyze("What are the latest AI trends?")
# Agent automatically uses web_search and data_analyzer as needed!

๐Ÿ’ป CLI Commands

# List all agents
agentplug list

# Get agent information
agentplug info agentplug/scientific-paper-analyzer

# Install new agent
agentplug agent install agentplug/scientific-paper-analyzer

# Execute agent method
agentplug exec agentplug/scientific-paper-analyzer analyze_paper "research.pdf"

# Check agent status
agentplug agent status agentplug/scientific-paper-analyzer

# Remove an agent
agentplug agent remove agentplug/scientific-paper-analyzer

๐Ÿ› ๏ธ Creating Your Own Agent

1. Create Agent Files

mkdir my-coding-agent
cd my-coding-agent/

Create agent.py:

class CodingAgent:
    def __init__(self):
        self.name = "Coding Agent"

    def generate_code(self, description: str) -> str:
        """Generate code based on description."""
        return f"# Generated code for: {description}\nprint('Hello, World!')"

    def review_code(self, code: str) -> str:
        """Review and improve code."""
        return f"Code review: {code} looks good!"

Create agent.yaml:

name: coding-agent
version: 1.0.0
description: AI agent for code generation and review
author: your-username
entry_point: agent.py:CodingAgent

2. Test Locally

agentplug exec ./my-coding-agent generate_code "hello world"

3. Publish to GitHub

git init
git add .
git commit -m "Initial agent release"
git remote add origin https://github.com/your-username/my-coding-agent.git
git push -u origin main

4. Share with the World!

# Anyone can now use your agent:
import agentplug as ah
agent = ah.load_agent("your-username/my-coding-agent")
code = agent.generate_code("React component")

๐Ÿ“š Examples

Code Generation Agent

import agentplug as ah

# Load coding agent
coding_agent = ah.load_agent("agentplug/coding-agent")

# Generate code
code = coding_agent.generate_code("React component for data table")
print(code)

# Review existing code
review = coding_agent.review_code("def hello(): print('world')")
print(review)

Data Analysis Agent

import agentplug as ah

# Load analysis agent with tools
data_agent = ah.load_agent("agentplug/analysis-agent", tools=["data_analyzer", "web_search"])

# Analyze data
insights = data_agent.analyze("sales_data.csv")
print(insights)

Scientific Paper Analyzer

import agentplug as ah

# Load paper analyzer
paper_agent = ah.load_agent("agentplug/scientific-paper-analyzer")

# Analyze research paper
result = paper_agent.analyze_paper("research.pdf")
print(f"Summary: {result['summary']}")
print(f"Key findings: {result['key_findings']}")

๐ŸŽฏ Available Agents

Agent Description Usage
agentplug/coding-agent Generate and review code ah.load_agent("agentplug/coding-agent")
agentplug/analysis-agent Data analysis and insights ah.load_agent("agentplug/analysis-agent")
agentplug/scientific-paper-analyzer Analyze research papers ah.load_agent("agentplug/scientific-paper-analyzer")

๐Ÿค Contributing

We welcome contributions! Here's how to get started:

๐Ÿš€ Development Setup

# 1. Fork and clone
git clone https://github.com/YOUR_USERNAME/agenthub.git
cd agenthub

# 2. Setup environment
python3.12 -m venv venv
source venv/bin/activate  # Windows: venv\Scripts\activate
pip install -e ".[dev]"

# 3. Run tests
pytest tests/ -v

# 4. Make changes
git checkout -b feature/your-feature

๐ŸŽฏ Ways to Contribute

  • ๐Ÿ› Bug Reports: Open an Issue
  • ๐Ÿ“– Documentation: Improve guides and examples
  • ๐Ÿ”ง Code: Fix bugs, add features
  • ๐ŸŽจ Design: UI/UX improvements
  • ๐Ÿ“Š Testing: Help improve test coverage

๐Ÿ“Š Roadmap

โœ… Phase 1: Foundation (Live!)

  • โœ… Core SDK with one-line agent loading
  • โœ… GitHub integration and auto-installation
  • โœ… Environment isolation with UV
  • โœ… CLI tools and validation engine

โœ… Phase 2.5: Tool Injection (Live!)

  • โœ… Tool registry with FastMCP integration
  • โœ… @tool decorator for custom tools
  • โœ… Agent tool assignment functionality
  • โœ… Comprehensive testing suite

๐Ÿšง Phase 2: Developer Experience (In Progress)

  • ๐Ÿšง Agent Studio visual development environment
  • ๐Ÿšง Testing framework and validation suite
  • ๐Ÿšง Marketplace UI for agent discovery
  • ๐Ÿšง Analytics dashboard

๐Ÿ“‹ Phase 3: Ecosystem Growth (Planning)

  • ๐Ÿ“‹ Multi-agent workflows
  • ๐Ÿ“‹ AI-powered agent recommendations
  • ๐Ÿ“‹ Mobile app for agent management
  • ๐Ÿ“‹ Revenue sharing platform

๐Ÿ“ž Support & Community

๐Ÿ’ฌ Get Help

Platform Purpose Link
๐Ÿ’ฌ Discord Live chat and support Join Server
๐Ÿฆ Twitter Updates and announcements @AgentHub
๐Ÿ“ง Email Business inquiries agenthub@agentplug.net

๐Ÿ› Report Issues

๐Ÿ“„ License

License: MIT

This project is licensed under the MIT License - see the LICENSE file for details.


๐Ÿš€ AgentHub - Making AI agents as easy as pip install

One line. Infinite possibilities.

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

agentplug-0.1.2.tar.gz (456.2 kB view details)

Uploaded Source

Built Distribution

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

agentplug-0.1.2-py3-none-any.whl (109.6 kB view details)

Uploaded Python 3

File details

Details for the file agentplug-0.1.2.tar.gz.

File metadata

  • Download URL: agentplug-0.1.2.tar.gz
  • Upload date:
  • Size: 456.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for agentplug-0.1.2.tar.gz
Algorithm Hash digest
SHA256 2f3d8dcd38ba75ab15ec33d6e913150e8cc2d4a1049e7f64d12d3c5b536b35bf
MD5 f83b78d5454f320bc2a4cef3bfe117c7
BLAKE2b-256 678ac20311ade126e13b39dbf3ec650b5e5c9d7af6b6b92a7fdc388668b6ca1f

See more details on using hashes here.

File details

Details for the file agentplug-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: agentplug-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 109.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for agentplug-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2a236e9bb5a8ad4bd35414355d746f4157d0cac27d399fbcbc69d5dfaa2c0510
MD5 ff964bf41515bf40c13d41c9586525b6
BLAKE2b-256 1adb19c4811d7d3b8084bd06310e6d5d0bab218ef0acb9e15502b889b5a0facb

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