Agent Harness¶
An agent is more than a model call. A useful autonomous agent also needs instructions, tools, state, and a safe workspace.
PyFlue packages these pieces into a Python harness:
- Load project instructions from
AGENTS.mdandCLAUDE.md. - Load reusable skills from
.agents/skills. - Create or resume a session.
- Route the prompt through the selected harness backend.
- Give the backend controlled access to the sandbox.
- Persist the result back into the session.
Default Backend¶
The default backend is DeepAgents:
The DeepAgents backend provides:
- model selection
- system prompt forwarding
- skill source forwarding
- memory source forwarding
- virtual sandbox adapter
- filesystem permissions
- upload and download file transfer methods
- session thread ids
Pluggable Backends¶
PyFlue includes a registry so future backends can implement the same public session API:
The current built-in backend names are:
| Backend | Status |
|---|---|
deepagents |
Implemented |
openai_agents |
Extension point |
google_adk |
Extension point |
pydanticai |
Extension point |
DeepAgents is the default harness for normal PyFlue projects. The other names are reserved extension points for teams that want to build a custom backend while keeping the same PyFlue project layout and session API.