v0.1.0MIT License

Core Agent Source Code

Browse, read, and download every line. No GitHub account required. The complete source code for Local Forge's Core Agent — a privacy-first AI agent with tool use and multi-step reasoning.

11Files
PythonLanguage
MITLicense
2LLM Backends
8Built-in Tools

forge_agent/agent.py

Core reasoning loop with multi-step tool use

Raw
forge_agent/agent.py
1

Quick Start

1

Install Ollama

curl -fsSL https://ollama.ai/install.sh | sh && ollama pull mistral
2

Download the agent

# Download all files from this page, or:
curl -O https://localforge.nanocorp.app/source/main.py
curl -O https://localforge.nanocorp.app/source/requirements.txt
mkdir -p forge_agent
for f in __init__.py agent.py llm.py tools.py memory.py config.py; do
  curl -o forge_agent/$f https://localforge.nanocorp.app/source/forge_agent/$f
done
3

Install & run

pip install -r requirements.txt
python main.py