Skip to content

feat(config): migrate jr-rpc to a first-class tool call #669

Open

Description

@dcramer

Problem

jr-rpc config set/get/unset/list is currently implemented as a custom bash command parsed inside maybeExecuteJrRpcCustomCommand. The agent reaches for it through the bash tool, which means:

  • No argument schema — the agent must recall the correct key name from memory or skill text, with no structured guidance
  • Silent success on typos (e.g. cloudflare.worker-id instead of cloudflare.worker.name), now partially mitigated by fix(config): warn when setting an unrecognized config key #668 but still fundamentally a string-matching problem
  • No autocompletion or key enumeration at call time — the agent discovers valid keys only if it separately runs jr-rpc plugins list first
  • Harder to steer via system prompt — tool calls can carry descriptions, argument schemas, and enums that models use at inference time

Proposed direction

Expose jr-rpc config operations as dedicated tool calls (e.g. config_set, config_get, config_list) with typed argument schemas. The key argument could be an enum or use oneOf drawn from installed plugin configKeys, giving the model structured steering at the point of use rather than relying on prose instructions.

The bash fallback can be kept for humans running the CLI directly, but the agent path should go through the tool.

Related

Activity

  1. added
    enhancement
    on Jun 29, 2026
  2. dcramer commented on Jun 29, 2026

    @dcramer
    MemberAuthor

    need to think this through a bit more yet

    i think tools are the right direction but we dont yet have a real search/execute pattern in junior and i might wanna solve that first since this is at minimum 4 tools

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions