CoolFace
Apppublic

umair801/sidekick-agent

sourceHugging Faceupdated 6mo agoView on Hugging Face
0likes
App README

๐Ÿค– Sidekick: Autonomous AI Agent

An intelligent AI co-worker that autonomously completes tasks using web browsing, code execution, and self-evaluation loops.

๐Ÿš€ Live Demo: huggingface.co/spaces/umair801/sidekick-agent


๐ŸŽฏ Key Features

  • โ€”Autonomous Task Completion with built-in self-evaluation loop
  • โ€”Web Automation via Playwright browser control
  • โ€”Code Execution in sandboxed Python environment
  • โ€”Smart Retry Logic based on user-defined success criteria
  • โ€”Multi-Tool Integration: Web search, Wikipedia, File I/O, Push notifications

๐Ÿ—๏ธ Architecture

Built with LangGraph + LangChain + GPT-4o-mini using a Worker-Evaluator pattern:

User Input
    โ†“
[Worker Agent] โ†’ uses tools โ†’ produces response
    โ†“
[Evaluator Agent] โ†’ checks against success criteria
    โ†“
Pass โ†’ Return to user
Fail โ†’ Feedback loop back to Worker
  • โ€”Stateful conversation with memory persistence (MemorySaver)
  • โ€”Conditional edge routing in LangGraph
  • โ€”Async Playwright browser for live web interaction

๐Ÿ’ก Use Cases

  • โ€”Automated research and data collection from the web
  • โ€”Multi-step workflow automation
  • โ€”Report generation from live web sources
  • โ€”Code execution and analysis tasks

๐Ÿ› ๏ธ Tech Stack

LayerTechnology
OrchestrationLangGraph
LLMGPT-4o-mini (OpenAI)
Web AutomationPlaywright (Chromium)
SearchGoogle Serper API
UIGradio
LanguagePython 3.11

โš™๏ธ Environment Variables

To run locally, create a .env file with:

OPENAI_API_KEY=your_key
SERPER_API_KEY=your_key
PUSHOVER_USER_KEY=your_key
PUSHOVER_API_TOKEN=your_key

๐Ÿš€ Run Locally

bash
git clone https://github.com/umair801/sidekick_agent.git
cd sidekick_agent
pip install -r requirements.txt
playwright install chromium
python app.py

Built by [Muhammad Umair](https://datawebify.com) โ€” Agentic AI Consultant