Task Automation Agent - Proof of Concept
A beginner-friendly demonstration of Agentic AI concepts using a personal assistant agent that can reason, plan, and use tools to accomplish tasks autonomously.
Agentic AI refers to AI systems that can:
Get real-time weather information for any location
Search the web for information and data
Read and write files with ease
Perform mathematical calculations
Natural conversation with context retention
Get current time and date information
We've extended the basic agent with two powerful new features to make it more practical and production-ready:
What it does:
How it works:
20260123_143022_task_description.json
Create, list, and search GitHub issues with labels and assignees
List PRs, view details, reviews, and merge status
Monitor workflow runs and CI/CD status in real-time
Get stats, branch info, and repository health metrics
You: Create a GitHub issue about adding unit tests
Agent: ✓ Created issue #42: Add unit tests for memory feature
You: Show me all open pull requests
Agent: Found 3 open pull requests:
#41 - Add GitHub integration (waiting for review)
#40 - Fix memory persistence bug (approved)
#39 - Update documentation (2 comments)
You: Check the status of our GitHub Actions workflows
Agent: Latest workflow runs:
✓ CI Pipeline - Success (3 minutes ago)
✗ Deploy to Production - Failed (15 minutes ago)
✓ Run Tests - Success (1 hour ago)
python -m venv venv venv\Scripts\Activate.ps1 # Windows source venv/bin/activate # Linux/Mac
pip install -r requirements.txt
OPENAI_API_KEY=your_api_key_here # Optional: For GitHub features GITHUB_TOKEN=your_github_token_here GITHUB_OWNER=your_username_or_org GITHUB_REPO=your_repository_name
python agent.py
deactivate
This POC demonstrates the ReAct (Reasoning + Acting) pattern, where the agent:
You: What's the weather in Seattle and save it to a file?
Agent: [Thinks] I need to get weather data first, then write to file
[Acts] Calling get_weather("Seattle")...
[Acts] Writing to weather.txt...
Done! Weather saved to weather.txt
You: What did I just ask you to save?
Agent: [Uses memory] You asked me to get the weather for Seattle and save it
agent/
├── agent.py # Main agent (ReAct pattern)
├── tools.py # Core tools (weather, files, etc)
├── github_tools.py # GitHub integration (NEW)
├── memory.py # Persistent memory system (NEW)
├── requirements.txt # Python dependencies
├── .env # API keys (create this)
├── README.md # Documentation
├── GITHUB_INTEGRATION.md # GitHub setup guide
└── History/ # Memory storage (auto-created)
├── 20260123_143022_task1.json
└── 20260123_151530_task2.json
After understanding this POC, you can extend it with: