Agent / foldkit-agent-native

foldkit-agent-native

Compiles a foldkit-agent contract into Agent Native actions.

Use it when the host application already uses Agent Native's action registry and you want those actions to be the same capabilities your Foldkit application already exposes. The generated action delegates validation, availability, authorization, dispatch, and completion back to a bound AgentRuntime; it does not reimplement application behavior.

Foldkit application
       |
       v
AssistantAgent              protocol-neutral contract
       |
       | AgentBuilder.bind(...)
       v
AgentRuntime                live Model + dispatch + policy
       ^
       |
resolveRuntime(ctx)
       |
foldkit-agent-native        adapter
       |
       v
Agent Native action registry

Application behavior still ends in the existing Foldkit Message and update. This package is an adapter, not a second agent architecture.

Install

bash
pnpm add foldkit-agent foldkit-agent-native @agent-native/core

foldkit, effect, foldkit-agent, and @agent-native/core are peer dependencies.