Skip to main content

Freeact code action agent

Project description

freeact

Website PyPI - Version GitHub Release GitHub Actions Workflow Status GitHub License

Freeact is a lightweight agent that acts by executing Python code and shell commands. Code actions are key for an agent to improve itself and its tool library.

Freeact has a tiny core, a small system prompt, and is extensible with agent skills. It relies on a minimal set of generic tools: read, write, execute, subagent, and tool search.

Code and shell command execution runs locally in a stateful, sandboxed environment. Freeact supports utilization of MCP servers by generating Python APIs for their tools.

Supported models: Freeact supports any model compatible with Pydantic AI, with gemini-3-flash-preview as the default. See Models for provider configuration and examples.

Documentation

Usage

Component Description
Agent SDK Agent harness and Python API for building freeact applications.
CLI tool Terminal interface for interactive conversations with a freeact agent.

Capabilities

Capability Description
Code actions Freeact agents act via Python code and shell commands. This enables tool composition and intermediate result processing in a single LLM inference pass.
Local execution Freeact executes code and shell commands locally in an IPython kernel provided by ipybox. Data, configuration and generated tools live in local workspaces.
Sandbox mode IPython kernels optionally run in a sandbox environment based on Anthropic's sandbox-runtime. It enforces filesystem and network restrictions on OS-level.
MCP code mode Freeact calls MCP server tools programmatically via generated Python APIs. This enables composition of tool calls in code actions with much lower latency.
Tool discovery Tools are discovered via category browsing or hybrid BM25/vector search. On-demand loading frees the context window and scales to larger tool libraries.
Tool authoring Agents can create new tools, enhance existing tools, or save code actions as reusable tools. This captures successful experience as executable knowledge.
Agent skills Skills give agents new capabilities and expertise based on agentskills.io. They compose naturally with code actions and agent-authored tools.
Subagent delegation Tasks can be delegated to subagents, each using their own sandbox. It enables specialization and parallelization without cluttering the main agent's context.
Action approval Fine-grained approval of code actions and (programmatic) tool calls from both main agents and subagents. Enables human control over potentially risky actions.
Session persistence Freeact persists agent state incrementally. Persisted sessions can be resumed and serve as a record for debugging, evaluation, and improvement.

1) Freeact also supports JSON-based tool calls on MCP servers, but mainly for internal operations.
2) A workspace is an agent's working directory where it manages tools, skills, configuration and other resources.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

freeact-0.7.8.tar.gz (46.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

freeact-0.7.8-py3-none-any.whl (63.6 kB view details)

Uploaded Python 3

File details

Details for the file freeact-0.7.8.tar.gz.

File metadata

  • Download URL: freeact-0.7.8.tar.gz
  • Upload date:
  • Size: 46.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for freeact-0.7.8.tar.gz
Algorithm Hash digest
SHA256 657e5dbb072334f4359e107d8bfb0c40adf5f15bca6783ba55c705f6f2c5d0a1
MD5 94e78dce5e9fbedfa2e3601a0183b3bf
BLAKE2b-256 b48f6f3c54b0d92fa8624850894215e1cf3d1a31313884a395fb44bc6278a7a3

See more details on using hashes here.

Provenance

The following attestation bundles were made for freeact-0.7.8.tar.gz:

Publisher: release.yml on gradion-ai/freeact

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file freeact-0.7.8-py3-none-any.whl.

File metadata

  • Download URL: freeact-0.7.8-py3-none-any.whl
  • Upload date:
  • Size: 63.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for freeact-0.7.8-py3-none-any.whl
Algorithm Hash digest
SHA256 737b5401558405edb2240bd7395239bdc5b4bf4bb2bbe62c5f8a648e0e84271b
MD5 c2fe1c6742a1d1d67b2998f98d304650
BLAKE2b-256 083185d6a1029c8c9a6c0d6d42ce104d45058e02a616b9ffb499dee9b5b65873

See more details on using hashes here.

Provenance

The following attestation bundles were made for freeact-0.7.8-py3-none-any.whl:

Publisher: release.yml on gradion-ai/freeact

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page