SuperAPIAI Directory

kodeagent

github.com · AI agents

KodeAgent is a minimalist, framework-free AI agent engine, positioned as a robust reasoning core within large systems. It supports ReAct, CodeAct, and native function calling, with a built-in planner and observer error correction. Based on LiteLLM, it can switch models and providers, making it suitable for serverless or standalone application integration.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

KodeAgent is a minimalist, framework-free AI agent engine. Its design goal is not to be a complete platform, but a robust reasoning core embedded in larger systems, following the Unix philosophy: do one thing well and integrate seamlessly.

Main capabilities: out-of-the-box support for three paradigms: ReAct, CodeAct, and native function calling; a built-in Planner responsible for planning steps, an internal Observer that monitors progress, detects loops or stalled plans, and provides corrective feedback; FunctionCallingAgent is optimized for small language models (SLMs) and efficient function-calling models, including retries and error detection; support for task-specific agents such as CSVAnalysisAgent; based on LiteLLM, it can switch between models such as Gemini, GPT, Claude, and providers such as Ollama.

Usage: install via pip, or clone the GitHub repository to run locally. In application code, create a ReAct agent and run a task; the task result can be obtained via agent.task.result. A CodeActAgent can also be created to dynamically generate and execute Python code. By default, agents have no memory across tasks. Recurrent mode can be used to append prior task context within the same session, or OpenAI-compatible chat history can be manually injected to achieve persistence. CodeActAgent supports two code execution environments: host local execution and e2b sandbox execution; using e2b requires setting E2B_API_KEY, and work_dir can be specified as the local workspace. Allowed modules and dependencies must be explicitly declared via allowed_imports and pip_packages.

Tools and observability: tools are ordinary synchronous Python functions. Built-in tools include calculator, download_file, extract_as_markdown, generate_image, read_webpage, search_arxiv, search_web, search_wikipedia, transcribe_audio, transcribe_youtube, etc.; custom tools can be passed in via the tools parameter. Asynchronous tools are not supported. Observability can be achieved via Langfuse or LangSmith. Tracing is disabled by default; corresponding environment variables must be set and tracing specified_type; langsmith requires separate installation. Note that in v0.12.1, arxiv installation is disabled by default; to use search_arxiv, you must separately pip install arxiv.

Applicable scenarios and limitations: suitable for developers who need a lightweight reasoning kernel, SLM optimization, or serverless or standalone application integration. KodeAgent is still actively evolving and has limited capabilities. It does not provide a built-in long-term persistent memory layer, nor is it suitable for scenarios requiring a complete platform or ready-made frameworks/task-specific agents. The official guidance notes that AI agents may produce unexpected side effects; use with caution, and thoroughly test in a controlled non-production environment before deployment.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools