ReAct AI Agent from Scratch using DeepSeek: Handling Memory & Tools without Frameworks
This repository contains a ReAct (Reasoning + Acting) AI agent built from scratch using Python and DeepSeek.
For an in-depth explanation of this agent implementation read my medium article:
ReAct AI Agent from Scratch using DeepSeek: Handling Memory & Tools without Frameworks
✅ Reasoning Loop built from scratch with prompt-based control
✅ Memory Management using 🤗Transformers library to count tokens in formatted messages
✅ Tool integration with a scalable tool environment. Not using function-calling API features
✅ Streamlit UI to interact with the agent and display its responses and reasoning process
✅ FastAPI backend for handling chat requests from Streamlit
1️⃣ Clone the repository
git clone https://github.com/Wencho8/ReAct-AI-Agent-from-Scratch-using-DeepSeek.git
cd ReAct-AI-Agent-from-Scratch-using-DeepSeek
2️⃣ Set up environment variables
Copy the example environment file and configure your API keys:
cp .env.example .env
3️⃣ Install dependencies
pip install -r requirements.txt
<br>
If you'd like to run the agent directly from the terminal without using the UI:
cd Agent
python agent.py
This will start the agent, allowing you to interact with it via the command line.
1️⃣ Start the FastAPI Backend
cd Agent
python -m uvicorn app:app --reload
2️⃣ Start the Streamlit UI
python -m streamlit run chat_ui.py
Open-source AI coding agent for the terminal. Claude Code-grade accuracy with smart model routing — uses the right AI model for each task, cutting costs 10x. Supports Claude, GPT, Gemini, DeepSeek & more.
A general-purpose Python framework for building LLM agents and multi-agent systems. "Four lines of code, an agent with memory."
Ultimate LLM API Integration Cookbook 2026 for Cursor & AI Agents
Ultimate Multi-Agent OS for Autonomous AI NPCs 2026
PrivateAgent is an open-source Android automation agent built with Flutter. It utilizes the DeepSeek API and native Android Accessibility Services to interpret screen layouts and execute multi-step tasks across any installed application via natural language commands.
把一队分工 Agent 织成一条写小说的流水线,做成桌面客户端;写作指纹让它越写越像你(BYO DeepSeek key,纯本地)。
Workflows from the Neura Market marketplace related to this DeepSeek resource