ToolLoop: Open-Source Agent Framework for Claude-Style Tools with Any Model

What ToolLoop Does
ToolLoop is an open-source Python framework built to provide Claude Code-style functionality without being locked into a single provider. The framework includes 11 tools covering file operations, code search, shell access, and sub-agents, and works with any LLM through LiteLLM integration.
Key Features
- Open-source framework written in Python
- Approximately 2,700 lines of code
- 11 built-in tools: file operations, code search, shell, sub-agents
- Works with any LLM through LiteLLM
- Supports any model on Bedrock (DeepSeek, Llama, Mistral) or any API (OpenAI, Moonshot, local endpoints)
- Switch models mid-conversation with shared context
- Same tools and prompts work across different models
Code Example
Here's the SDK usage example from the source:
from sdk import query, ToolLoopOptions
async for event in query(
prompt="Find all TODO comments, fix them, run the tests",
options=ToolLoopOptions(
model="bedrock/converse/deepseek.v3.2",
allowed_tools=["Read", "Edit", "Grep", "Glob", "Bash"],
),
):
print(event)
You can swap deepseek.v3.2 for any model while maintaining the same tools and prompt structure.
Who This Is For
Developers who want Claude Code-style agent functionality but need flexibility to use different models across various providers and local setups.
📖 Read the full source: r/LocalLLaMA
👀 See Also

MCP Memory Gateway: An MCP Server for Persistent Memory in Claude Code
A developer built an MCP server called MCP Memory Gateway using Claude Code as the primary development tool. It provides Claude Code with persistent memory across sessions through feedback capture, prevention rules, and context injection.

SwiftUI Agent Skill: Enhancing View Development with AI
SwiftUI Agent Skill is an open-source tool that uses AI to improve SwiftUI view development by embedding best practices and optimizations.

Gemini 3.1 Pro in Multi-Agent Systems: High Design Quality, 20% Tool-Call Failure Rate
Developers building Bobr, an AI presentation generator with a multi-agent architecture, report Gemini 3.1 Pro produces impressive design output but suffers from a ~20% tool-call failure rate and garbled text corruption in production pipelines.

Relay CLI tool saves Claude session context when rate limited
Relay is a Rust CLI tool that reads Claude's .jsonl session transcripts from disk and creates full snapshots of your session, including conversation, tool calls, todos, git state, and errors. It generates context prompts to resume sessions after rate limits reset.