proxy-base-agent

A stateful agent with 100% reliable tool use. Build custom agents on any LLM with guaranteed state consistency.

https://github.com/theproxycompany/proxy-base-agent

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.8%) to scientific vocabulary

Keywords

agent agentic-ai local-agent mcp model-context-protocol tool-use
Last synced: 6 months ago · JSON representation ·

Repository

A stateful agent with 100% reliable tool use. Build custom agents on any LLM with guaranteed state consistency.

Basic Info
Statistics
  • Stars: 9
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 1
Topics
agent agentic-ai local-agent mcp model-context-protocol tool-use
Created about 1 year ago · Last pushed 10 months ago
Metadata Files
Readme Funding Citation

README.md

Proxy Base Agent

A stateful agent with 100% reliable tool use.

Build custom agents on any LLM with guaranteed state consistency and 100% reliable tool use.
Powered by the Proxy Structuring Engine (PSE).

PyPI Version Documentation License

The Problem: Agents That Don't Work

Most LLM agents rely on fragile prompt engineering. This leads to unpredictable state management, hallucinated tool arguments, and frequent execution failures – making reliable automation nearly impossible.

The Proxy Base Agent (PBA) is the engineered solution. PBA uses the Proxy Structuring Engine (PSE) – our high-performance Hierarchical State Machine (HSM) engine – to enforce reliable, stateful execution for any LLM.

With the Proxy Base Agent, you define your agent's behavior through a defined state graph, and PSE guarantees the LLM adheres to it, step-by-step.

Key Capabilities

  • Guaranteed Stateful Execution: Define agent workflows as explicit HSMs (e.g., Plan ➔ Act). PSE ensures the LLM follows the defined states and transitions precisely.
  • 100% Reliable Tool Use: Eliminate runtime errors from malformed API calls or hallucinated function arguments. PSE guarantees tool calls match their required schema during generation.
  • Dynamic Runtime Adaptation (MCP): Connect to external Model Context Protocol (MCP) servers on-the-fly. PBA instantly integrates new tools and capabilities with the same structural guarantees, no restarts needed.
  • Model & Framework Agnostic: Run reliable agents locally using your preferred LLMs and backends (MLX, PyTorch supported).
  • Modular & Extensible: Build specialized agents by adding custom tools, defining new states, or modifying the core HSM architecture.

How It Works: Reliability Through Structure

PBA's core is an HSM enforced by PSE at runtime:

  1. HSM Definition: Agent logic (states like Thinking, Tool Call) is defined as a StateMachine. Each state uses a nested PSE StateMachine to enforce its specific output structure (e.g., fenced text, JSON schema).
  2. PSE Runtime Enforcement: The StructuringEngine ensures the LLM generates only valid state transitions and structurally correct output within each state. Tool call arguments are guaranteed to match the required schema.
  3. Dynamic Updates (MCP): Connecting to an MCP server rebuilds the relevant parts of the HSM and reconfigures PSE instantly, making new tools reliably available.

PBA doesn't just ask the LLM to be stateful and reliable; it engineers it through PSE's runtime HSM governance.

Installation

bash pip install proxy-base-agent (See Installation Docs for full details, development setup, and framework extras)

Quickstart

Launch the interactive setup wizard to configure your LLM and run the agent:

bash python -m agent

Documentation

We've created detailed technical documentation for the Proxy Base Agent:

The Proxy Company Services

Leverage our foundational expertise to build complex, mission-critical agentic systems with PBA. We offer:

  • Custom Agent Development: Tailored agents for your specific workflows.
  • Advanced Integration: Connect PBA reliably to proprietary systems and APIs.
  • Production Support: Architecture, performance tuning, and support contracts.

➡️ Explore Business Services & Schedule Consultation

License

Apache 2.0 (LICENSE). Depends on pse (Apache 2.0).

Citation

bibtex @software{Wind_Proxy_Base_Agent_2025, author = {Wind, Jack}, title = {{Proxy Base Agent: Reliable AI Execution via Hierarchical State Machines}}, version = {1.0.0}, date = {2025-04-15}, url = {https://github.com/TheProxyCompany/proxy-base-agent}, publisher = {The Proxy Company}, note = {Leverages the Proxy Structuring Engine (PSE) for runtime guarantees} }

Owner

  • Name: The Proxy Company
  • Login: TheProxyCompany
  • Kind: user

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Wind"
  given-names: "Jack"
title: "Proxy Base Agent"
version: 1.0.0
date-released: 2025-04-03
url: "https://github.com/TheProxyCompany/proxy-base-agent"
repository-code: "https://github.com/TheProxyCompany/proxy-base-agent"
publisher: "The Proxy Company"

GitHub Events

Total
  • Release event: 1
  • Watch event: 5
  • Push event: 28
  • Create event: 2
Last Year
  • Release event: 1
  • Watch event: 5
  • Push event: 28
  • Create event: 2

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 24 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 2
  • Total maintainers: 1
pypi.org: proxy-base-agent

A stateful, tool-enabled agent powered by the Proxy Structuring Engine.

  • Versions: 2
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 24 Last month
Rankings
Dependent packages count: 9.3%
Average: 30.8%
Dependent repos count: 52.4%
Maintainers (1)
Last synced: 6 months ago