Skip to content

mk-knight23/AI-Agent-Nanobot

Repository files navigation

πŸš€ AI-Agent-Nanobot (Collective Production Edition)

πŸ’Ž Overview

Fully production-grade implementation of AI-Agent-Nanobot, refactored by the 69-Agent Opencode Collective.

πŸ›‘οΈ Trust & Compliance

  • CI/CD: Automated GitHub Actions with Gitleaks security scans.
  • Security: Standardized SECURITY.md protocol.
  • Design: Opencode Premium Design Tokens integrated.

🏁 48-Hour Roadmap

  1. Initialize infrastructure via .github/workflows.
  2. Set your secrets in GitHub Environment settings.
  3. Deploy to production via Vercel/Docker.

AI-Agent-Nanobot

Stars PyPI License Website

~4,000 lines. Infinite possibilities. The ultra-light personal AI lab.

🌐 Live Website Β· πŸ“– Docs Β· πŸš€ Quick Start


🌟 Overview

Nanobot is a minimalist but powerful AI agent built in Python. It delivers 99% of the functionality of larger frameworks like OpenClaw with a fraction of the code complexity. Designed to run on everything from a Raspberry Pi Zero to a high-end cloud VM.

πŸš€ Key Features

  • Ultra-Lightweight: Core agent logic is under 4,000 lines of readable Python.
  • Multi-Channel: Native support for Telegram, Discord, Slack, WhatsApp, and Email.
  • MCP Integration: Full support for Model Context Protocol (MCP) toolkits.

πŸ—οΈ Architecture

graph LR
    subgraph Input["9 Channels"]
        TG[Telegram]
        DC[Discord]
        SL[Slack]
        WA[WhatsApp]
        FE[Feishu]
        WC[WeChat]
        EM[Email]
        WB[WebChat]
        SS[Signal]
    end

    subgraph Core["nanobot Core (~4,000 lines)"]
        RT[Message Router]
        AG[Agent Loop]
        MM[Memory Manager]
        HB[Heartbeat]
        PC[Prompt Cache]
    end

    subgraph Providers["22+ LLM Providers"]
        CL[Claude / Anthropic]
        OR[OpenRouter]
        DS[DeepSeek Coder]
        VL[Local vLLM]
        OA[OpenAI]
    end

    subgraph Tools["MCP Tools"]
        GH[GitHub API]
        SB[Supabase]
        BS[Brave Search]
        FS[Filesystem]
    end

    Input --> RT
    RT --> AG
    AG --> MM
    AG --> HB
    AG --> Providers
    AG --> Tools
Loading

πŸ› οΈ My Skills (what I built)

Nanobot's power comes from its modular skills. Each skill is designed for high-fidelity task execution.

Skill Description Status
web-searcher Brave Search + AI synthesis. Performs live research with citations. πŸ›‘οΈ New
notion-sync Two-way sync for tasks, notes, and research into Notion. πŸ›‘οΈ New
code-reviewer Reads git diff, analyzes quality, checks security, auto-comments PRs. Uses DeepSeek Coder via OpenRouter βœ… Active
git-automator Automated branching: feature branches, PR management, auto-merge on CI pass, changelog generation βœ… Active
data-pipeline CSV/JSON ingestion, clean/transform, analysis reports, visualizations on scheduled cron βœ… Active
api-tester Reads OpenAPI spec β†’ generates test cases β†’ runs automated tests β†’ reports with latency metrics βœ… Active
doc-generator Scans Python/TypeScript codebases, extracts docstrings + types, generates Markdown API docs βœ… Active

πŸ€– Workflows & Automation

Automate complex pipelines with simple Markdown definitions.

Workflow Trigger Output
hr-campaign Autonomous HR outreach pipeline. Scrapes leads, personalize drafts, and rotates sending. βœ… Active
mcp-tool-chain GitHub API + Supabase + Brave Search orchestrated in one session βœ… Active
multi-channel-bot Single nanobot instance across 9 channels with scoped permissions βœ… Active
clawwork-coworker Professional task completion, token cost tracking, income reports βœ… Active
memory-optimization Tune memory for low-RAM devices (RPi Zero, SBC) βœ… Active

πŸ“± Use Cases

How I use Nanobot daily:

1. Personal Finance Monitor

Autonomous expense tracking via Telegram/WhatsApp. Categories spending from receipt photos and transaction logs.

2. Telegram Productivity Bot

A morning briefing (news + calendar) and real-time task manager running on 24/7 edge hardware.

3. Repo Upgrade Tracker

A specialized system using REPO_UPGRADE_TRACKER.md to manage the evolution of 80+ repositories.

4. Discord Code Assistant

Coding help bot deployed in my Discord server:

  • Answer questions about my tech stack (Next.js, FastAPI, Supabase)
  • Review code snippets in threads
  • Generate boilerplate from descriptions
  • Run quick API tests on demand

πŸ“‚ Repository Structure

AI-Agent-Nanobot/
β”œβ”€β”€ config/                     # nanobot config templates
β”‚   └── config.example.json
β”œβ”€β”€ docs/                       # Deployment & Provider guides
β”‚   β”œβ”€β”€ deployment.md           # SBC & Cloud setup
β”‚   β”œβ”€β”€ providers.md            # LLM config (Claude, OpenRouter)
β”‚   └── REPO_UPGRADE_TRACKER.md # Portfolio management system
β”œβ”€β”€ providers/                  # Provider setup guides
β”‚   β”œβ”€β”€ openrouter-setup.md
β”‚   β”œβ”€β”€ local-vllm.md
β”‚   └── deepseek-coder.md
β”œβ”€β”€ skills/                     # High-fidelity skill definitions
β”‚   β”œβ”€β”€ web-searcher/           # Live search engine
β”‚   β”œβ”€β”€ notion-sync/            # Notion workspace integration
β”‚   β”œβ”€β”€ code-reviewer/          # Logic analysis
β”‚   β”œβ”€β”€ git-automator/
β”‚   β”œβ”€β”€ data-pipeline/
β”‚   β”œβ”€β”€ api-tester/
β”‚   └── doc-generator/
β”œβ”€β”€ use-cases/                  # Real-world deployment examples
β”‚   β”œβ”€β”€ personal-finance-monitor/
β”‚   β”œβ”€β”€ telegram-productivity-bot/
β”‚   β”œβ”€β”€ discord-code-assistant/
β”‚   └── clawwork-coworker/
β”œβ”€β”€ workflows/                  # Automation pipelines
β”‚   β”œβ”€β”€ hr-campaign.md          # HR outreach system
β”‚   β”œβ”€β”€ mcp-tool-chain.md
β”‚   β”œβ”€β”€ multi-channel-bot.md
β”‚   β”œβ”€β”€ clawwork-coworker.md
β”‚   └── memory-optimization.md
β”œβ”€β”€ website/                    # Next.js β†’ Vercel
└── assets/                     # Premium branding & assets

⚑ Quick Start

# Install from PyPI
pip install nanobot-ai

# Or from source
git clone https://github.com/HKUDS/nanobot.git
cd nanobot
pip install -e .

# Configure
cp config.example.json config.json
# Edit: model, channels, API keys

# Run
python -m nanobot

# Verify line count
bash core_agent_lines.sh

πŸ—ΊοΈ Roadmap

  • Multi-channel deployment (9 channels)
  • OpenRouter provider routing
  • MCP tool chain integration
  • Heartbeat redesign (v0.1.4)
  • Local vLLM guide for RPi
  • Cost tracking dashboard
  • Nanobot β†’ ZeroClaw migration guide
  • Community skill registry

πŸ¦€ Part of the Claw Ecosystem

Repo Focus
AI-Agent-OpenClaw 🦞 Full-stack Hub
AI-Agent-Nanobot 🐈 Lightweight Lab Β· ← You are here
AI-Agent-ZeroClaw πŸ¦€ Rust Runtime
AI-Agent-PicoClaw 🦐 Edge/IoT
AI-Agent-NanoClaw 🐚 Swarm Agent

Part of the Claw Ecosystem by mk-knight23


βš–οΈ License

MIT Β© mk-knight23

Security

This project follows security best practices:

  • No hardcoded credentials
  • Dependency scanning enabled
  • Security headers configured
  • Regular security audits performed

About

The Modular Researcher Evolution. A lean Python agent optimized for deep research, lab automation, and personal sync.

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors