ricard1406

Little Agent Chatbot EVO — AI skill for Claude Code

AI community

A small AI agent chatbot in one Python file, for learning: local Ollama or Claude, with weather, calculator, document search (RAG) and a SQLite warehouse.

How to install Little Agent Chatbot EVO

This entry records only its repository, not the path inside it, so there is no exact command to give. Open ricard1406/little_agent_chatbot_EVO and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Little Agent Chatbot EVO does

A small AI agent chatbot in one Python file, for learning: local Ollama or Claude, with weather, calculator, document search (RAG) and a SQLite warehouse. The reviewed evolution of Little_Agent_Chatbot.

Alternatives in AI

  • Bot On Anything — A large model-based chatbot builder that can quickly integrate AI models (including ChatGPT, Claude, Gemini) i 4.2k ★
  • Chatwise Releases — The fastest AI Chatbot for any LLM 1.4k ★
  • Whiteboard AI Tutor — Open-source whiteboard AI tutor with animated lessons and interactive playback 587 ★

README

🤖 Little Agent Chatbot EVO

A small AI agent in **one Python file**, written to be read and learned from.

Chat with a local model (Ollama) or with Claude. The agent can use six tools: the date and time, the weather, a calculator, a search through your own documents (RAG), and a small warehouse database it can read and update.

This is the next version of [Little_Agent_Chatbot](https://github.com/ricard1406/Little_Agent_Chatbot). It keeps the original's simple style and fixes what a code review found. **[CODE_REVIEW.md](CODE_REVIEW.md) explains each change and why it was made.** Most of what there is to learn here is in that file.

A real run with qwen3:4b, on a computer without a graphics card:

You: Please increase the apples in our warehouse by 2
  🛠️  query_warehouse({'sql': "SELECT ITEM FROM FRUITS WHERE ITEM LIKE '%APPLE%'"})
  ↳  ITEM / APPLES
  🛠️  change_stock({'table': 'FRUITS', 'item': 'APPLES', 'amount': 2})
  ↳  Done: APPLES went from 2 to 4.

Agent: We now have 4 apples in the warehouse.

**DISCLAIMER:** the names in the sample PDF are fictional and AI generated, for testing only. AI answers can be wrong. When you use Claude, your questions and the document passages the agent finds are sent to Anthropic. This is a learning project, provided "as is" without warranty (see [LICENSE](LICENSE)).

How it works

 You ──► the agent loop (LangChain create_agent)
           │
           ▼
         LLM: Ollama qwen3:4b (local)  or  Claude (remote)
           │  "I need a tool"         ▲  the tool's result
           ▼                          │
         tools ───────────────────────┘
           get_current_datetime   get_weather (OpenWeather)
           calculate              search_documents (Chroma + nomic-embed-text)
           query_warehouse        change_stock (SQLite: mystore.db)

The LLM never runs code itself. It reads the tool descriptions, asks for a tool call, gets the result as text, and repeats until it can answer. Th