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
๐ 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
@tooldecorator - ๐ 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
- โ
@tooldecorator 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
- Bug Reports: GitHub Issues
- Feature Requests: GitHub Discussions
- Security Issues: agenthub@agentplug.net
๐ License
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f3d8dcd38ba75ab15ec33d6e913150e8cc2d4a1049e7f64d12d3c5b536b35bf
|
|
| MD5 |
f83b78d5454f320bc2a4cef3bfe117c7
|
|
| BLAKE2b-256 |
678ac20311ade126e13b39dbf3ec650b5e5c9d7af6b6b92a7fdc388668b6ca1f
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a236e9bb5a8ad4bd35414355d746f4157d0cac27d399fbcbc69d5dfaa2c0510
|
|
| MD5 |
ff964bf41515bf40c13d41c9586525b6
|
|
| BLAKE2b-256 |
1adb19c4811d7d3b8084bd06310e6d5d0bab218ef0acb9e15502b889b5a0facb
|