Skip to content

Hot-reload Agent Plugin configuration in live sessions #70

Description

@danielkov

Summary

Agent Plugin sources configured in ~/.kit/config.toml are resolved at process startup, but changes are not applied to an existing Kit session. This differs from explicit MCP JSON layers, which tool_search and auth already reload dynamically.

Environment

  • Kit: 0.1.119
  • OS: macOS (Darwin, arm64)
  • Host: Kit ACP session

Reproduction

  1. Start a Kit ACP session without an Agent Plugin configured.

  2. Add a valid local plugin to ~/.kit/config.toml:

    [plugins.example]
    source = "path"
    path = "/absolute/path/to/example-plugin"
  3. Call tool_search({ query: "mcp" }) in the existing session.

  4. Start a fresh Kit process and call the same tool.

Actual behavior

The existing session retains the startup plugin set. The fresh process loads the plugin and exposes its MCP servers.

Expected behavior

Kit should detect plugin configuration and package changes and atomically reload validated Agent Plugins in live sessions. Added, changed, and removed plugin MCP servers should settle before tool_search returns, matching the existing dynamic behavior for MCP JSON layers. Invalid updates should report an error while retaining the last valid runtime state.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions