forge_agent/agent.py
Core reasoning loop with multi-step tool use
forge_agent/agent.py
1
Quick Start
1
Install Ollama
curl -fsSL https://ollama.ai/install.sh | sh && ollama pull mistral2
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
done3
Install & run
pip install -r requirements.txt
python main.py