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.
Metadata
Release files for optio-agents 0.6.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| optio_agents-0.6.1.tar.gz | 102.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| optio_agents-0.6.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 174.0 kB
Release files / optio_agents-0.6.1.tar.gz
| Download URL | optio_agents-0.6.1.tar.gz |
|---|---|
| Size | 102.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d9c39a0f660eaf150ec4785471881c867abd313fee33efa20489988df77e311f
|
|
BLAKE2b-256 checksum How to use checksums |
6d9df286238e30b0d8b6ed3a5f098fd5e5d51571ebeebb8065b1cd21aa09b585
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Release files / optio_agents-0.6.1-py3-none-any.whl
| Download URL | optio_agents-0.6.1-py3-none-any.whl |
|---|---|
| Size | 71.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9eef87f70a29cbf4b2b4c8615db5ec6c6d85305ca7611292a03bc51847924dd8
|
|
BLAKE2b-256 checksum How to use checksums |
128671831c2328ff75c45830dcca5fc7510f6098d3e27469a4bb392ab1546285
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|