Back to Home

Agentic AI

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.

What is Agentic AI?

Agentic AI refers to AI systems that can:

Core Capabilities

Weather Lookup

Get real-time weather information for any location

Web Search

Search the web for information and data

File Operations

Read and write files with ease

Calculations

Perform mathematical calculations

Conversation

Natural conversation with context retention

Time & Date

Get current time and date information

Version 2.0 - New Features

New Features Implemented

We've extended the basic agent with two powerful new features to make it more practical and production-ready:

Feature 1: Persistent Memory System

Why we built this: Agents need to remember past interactions and learn from previous tasks. Without memory, each session starts from scratch, making the agent less intelligent and context-aware.

What it does:

How it works:

Each session creates a single JSON file with timestamp prefix
Memory persists across agent restarts - no data loss
Files named with timestamps: 20260123_143022_task_description.json
Each memory includes task, result, metadata, and timestamp

Feature 2: GitHub Integration

Why we built this: Modern development teams live in GitHub. An agent that can interact with GitHub can automate workflows, manage issues, monitor CI/CD, and become a true DevOps assistant.

Issue Management

Create, list, and search GitHub issues with labels and assignees

Pull Requests

List PRs, view details, reviews, and merge status

Actions Monitoring

Monitor workflow runs and CI/CD status in real-time

Repository Info

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)

Setup & Installation

Prerequisites

Installation Steps

Create virtual environment
python -m venv venv
venv\Scripts\Activate.ps1  # Windows
source venv/bin/activate   # Linux/Mac
Install dependencies
pip install -r requirements.txt
Create .env file
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
Run the agent
python agent.py
Deactivate when finished
deactivate

ReAct Pattern Demonstration

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

Project Structure

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

Next Steps & Extensions

After understanding this POC, you can extend it with:

Learning Resources

Version History

Version 2.0 (Current)

  • Persistent Memory System - All tasks saved to History folder with auto-load
  • GitHub Integration - Full issue, PR, and Actions management
  • Enhanced Tool Ecosystem - Expanded from 5 to 10+ tools
  • Improved Context Awareness - Memory recall across sessions

Version 1.0

  • Initial ReAct pattern implementation
  • Basic tools (weather, file operations, calculator, web search)
  • Conversation context management
Developed by Swarup Puvvada with the help of GitHub Copilot
Special thanks to my Gurus: Karimi Waress & Dracoules David