Agent-coordination layer for optio task types: the optio.log keyword protocol, its session driver, and the LLM-facing keyword documentation (SSOT).
Project description
optio-agents
The agent-coordination layer for optio task types.
optio-agents owns the log/deliverables keyword protocol that long-running on-host agents use to talk back to optio, the session driver that parses and dispatches it, the HookContext handle passed to agent task hooks, and the single source of truth for the LLM-facing keyword documentation.
What's in the box
optio_agents.protocol— a line-oriented session driver. A long-running agent on the host writes lines prefixedSTATUS:,DELIVERABLE:,DONE, orERRORto./optio.log.run_log_protocol_sessiontails the log, dispatches progress events, fetches deliverable files, and resolves the session onDONE/ERROR.optio_agents.protocol.parser— the keyword parser (parse_log_line, the typed*Eventdataclasses, deliverable-path validation).optio_agents.protocol.prompt—LOG_CHANNEL_PROMPT, the canonical LLM-facing documentation of the keywords, co-located with the parser regexes it documents so the two cannot drift. Consumers compose it into their own agent-facing prompt.HookContext/HookContextProtocol— the handle passed into task hooks andon_deliverablecallbacks, wrapping aProcessContextplus host primitives (run_on_host,copy_file,read_from_host,download_file).optio_agents.conversation— the abstractConversationProtocol (plusPermissionRequest/PermissionDecision/ConversationClosed): the semantic surface for talking to a live agent session —send,on_event,on_message,on_permission_request,is_pending,interrupt,close. The semantics are backend-agnostic, but the raw events delivered throughon_eventare intentionally backend-specific and passed through transparently. Implemented today byoptio-claudecode(ClaudeCodeConversationover claude's stream-json stdio protocol).
Dependency direction
optio-agents depends on optio-host (host transport: running commands, file transfer, tunnels) and optio-core. It is consumed by agent task packages such as optio-opencode.
Installation
pip install optio-agents
Python 3.11+.
License
Apache-2.0.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file optio_agents-0.2.3.tar.gz.
File metadata
- Download URL: optio_agents-0.2.3.tar.gz
- Upload date:
- Size: 40.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21c07509622761ed309e5ea897047b46459147dc19e2a416d3b03e7018bed376
|
|
| MD5 |
802c672240a4d643160c3f8e0da5a580
|
|
| BLAKE2b-256 |
99b6b6cc2a6e8ee068577a59d0494ed64b9612ca0a1f369359d7649ebf1b98c9
|
File details
Details for the file optio_agents-0.2.3-py3-none-any.whl.
File metadata
- Download URL: optio_agents-0.2.3-py3-none-any.whl
- Upload date:
- Size: 29.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d62038762f3eb9b4ded4134af1e624eabff70921c014b37d7df3d0e3bb9a520
|
|
| MD5 |
766d3fc30216f9ea3b8668c0465e156d
|
|
| BLAKE2b-256 |
820b7b84e347cc6278b2ef1f0ebe4c34c0f381483ddd03f266f16ac00fd4b299
|