Feature request: OpenAI Agents SDK integration
For human review. This issue was drafted from the Knolo Adoption Targets research. A human will review it and implement it manually. No code or pull request accompanies it.
Adoption case
OpenAI's official agent framework. Sheet traction (Knolo Adoption Targets, Oct 26 top pick):
- openai/openai-agents-js: 3,943 GitHub stars; openai/openai-agents-python: 30,289 stars (GitHub API, checked 2026-10-26)
- npm @openai/agents: 1,193,362 downloads, week 2026-10-16 to 10-22 (https://api.npmjs.org/downloads/point/last-week/@openai/agents)
Sources: https://github.com/openai/openai-agents-js ; https://github.com/openai/openai-agents-python ; https://api.npmjs.org/downloads/point/last-week/@openai/agents
The SDK supports MCP servers, so @knolo/mcp already works with it in principle. What is missing is a documented, tested path and a native tool package for TS users who do not want a subprocess.
What exists today
@knolo/tools0.2.0 (in tree): host-agnostic read-only service. Pins a V5 Knowledge Image by file SHA-256 and state root, checks the policy root, and writes a query receipt before results return. Caller identity is supplied by the host.@knolo/mcp0.2.0 on main (npm still 0.1.0): stdio server withknolo_search,knolo_get,knolo_verify,knolo_status, plusknolo_kar_evaluate,knolo_kar_verify,knolo_cortex_verifyfor mounts with a pinned graph (PR #80, PR #87). Started withnpx -y @knolo/mcp --config /absolute/knolo-mcp.json.@knolo/coreand@knolo/cli6.2.0, including KAR, composition and Cortex (@knolo/core/cortex).- Existing adapters:
@knolo/openclaw,@knolo/langchain,@knolo/llamaindex. The knolo-verify Action (PR #86) checks artifacts in CI.
Proposed design
- Zero-code path: an
examples/openai-agentsexample that connects the SDK's stdio MCP server support tonpx -y @knolo/mcp --config ..., with a smoke test in CI that lists the tools and runs oneknolo_search. @knolo/openai-agents(new package):tool()wrappers over@knolo/toolsexposing search, get, verify and status, and optionally the KAR and Cortex verify functions when a pinned graph is configured. Caller identity comes from the host config, never from tool arguments. Every result carries the receipt id, state root and object ids so answers can be cited.- Python path: document using openai-agents-python's MCP support with @knolo/mcp. No Python KAR features are promised, since PyPI knolo 5.5.1 lacks them.
Scope
In: the example, the CI smoke test, the TS package, README docs. Out: hosted services, network image downloads, write tools, a Python native package, any model calls inside Knolo.
Acceptance criteria
- Example runs offline against a fixture image and returns results with receipt ids.
@knolo/openai-agentstools fail closed on pin, policy or audit errors with the same error codes as @knolo/tools (ACCESS_DENIED,AUDIT_UNAVAILABLE, etc.).- KAR and Cortex tools only appear when a graph is pinned, matching @knolo/mcp behavior.
- Docs state that SATISFIED means evidence requirements were met, not that a claim is proven.
Open questions
- Ship the native package now, or start with the MCP example only?
- Should this wait for @knolo/mcp 0.2.0 and @knolo/tools 0.2.0 to be on npm?
Related
- #79 / PR #80: @knolo/mcp read-only server and MCP Registry listing
- #84 / PR #87: KAR and Cortex tools in @knolo/mcp
- #85 / PR #86: knolo-verify Action
- PR #70: @knolo/openclaw (reference for a thin adapter over @knolo/tools)
- PR #25: LangChain and LlamaIndex adapters
Knolo is open source under Apache-2.0, built by Hive Forensics AI Inc. R&D.