@repoql

RepoQL

OpenClaw plugin for RepoQL - queryable repository intelligence powered by rql

当前版本
v1.0.2
code-plugin社区source-linked

@repoql/repoql

An OpenClaw plugin that gives agents queryable repository intelligence through a local RepoQL rql host. It exposes the same surface as the RepoQL MCP server — the same tools, the same descriptions — so an agent works the index the same way over OpenClaw as it does over MCP.

How it works

The plugin is a thin gRPC client. It connects to (and, by default, starts) a local rql serve host over a Unix socket and forwards each tool call to the host's ToolService / ImportService / ManagementCommandService. The host owns indexing, embeddings, and query execution; the plugin owns lifecycle and shaping results for the agent.

agent ── OpenClaw ── @repoql/repoql ──gRPC/unix socket──► rql serve (host)

A background service manages one host per workspace and shuts them down when the gateway stops.

Requirements

  • The rql binary on PATH (or set rqlPath). See https://repoql.ai for install.
  • Node.js 22+ (OpenClaw runtime).

Install

openclaw plugins install clawhub:@repoql/repoql
openclaw gateway restart

Then enable and configure it under plugins.entries.repoql:

{
  plugins: {
    entries: {
      repoql: {
        enabled: true,
        config: { autoStart: true }
      }
    }
  }
}

Tools

ToolWhat it does
repoql_exploreSearch the indexed graph for relevant files and symbols (start here).
repoql_keywordsReshape rough terms into the repository's real vocabulary.
repoql_queryExecute DuckDB SQL over the graph.
repoql_readRead indexed content by URI, with fragments and modifiers.
repoql_explainSynthesized answer with citations for a scoped question.
repoql_executeRun sandboxed JavaScript over the graph — diagrams, conversions, artifacts.
repoql_importImport or remove an external source (github://owner/repo, SARIF…).
repoql_capture_conceptWrite a durable invariant into the repository's concept memory.
repoql_commandManagement commands — config, diagnostics, account, host lifecycle, imports.
repoql_watchRun a process under the host OTEL collector and query its telemetry.
repoql_statusCheck plugin, repository root, socket, and host reachability.

Each tool's description carries the full guidance from the RepoQL MCP server. Three focused skills (repoql, repoql-sql, repoql-search) ship alongside.

Configuration

KeyDefaultDescription
rqlPathrqlPath to the rql executable.
repoRootworkspaceRepository root to index/query. Defaults to the agent workspace or its nearest git root.
autoStarttrueStart rql serve --implicit-start when the host socket is unavailable.
prewarmfalseConnect to the host when the plugin service starts.
startupTimeoutMs120000Max wait for rql serve to become reachable.
requestTimeoutMs120000Default timeout for gRPC tool requests.
defaultTokenBudget1500Default token budget for budgeted rendering.
queryMaxRows0Max rows returned by repoql_query (0 = no cap).

Development

npm install
npm run build      # tsc + copy proto/descriptions into dist/
npm run typecheck

The gRPC contract (src/proto/hosting.proto) and the tool descriptions (src/descriptions/*.md) are vendored verbatim from the upstream RepoQL host; keep them in sync with the host.

License

MIT

源码与版本

源码仓库

RepoQL/RepoQL

打开仓库

源码提交

1c298bc91fa48972c4c5d177ddce7cdf971e3edb

查看提交

安装命令

openclaw plugins install clawhub:@repoql/repoql

元数据

  • 包名: @repoql/repoql
  • 创建时间: 2026/06/21
  • 更新时间: 2026/06/21
  • 执行代码:
  • 源码标签: main

兼容性

  • 构建于 OpenClaw: 2026.6.9
  • 插件 API 范围: >=2026.6.9
  • 标签: latest
  • 文件数: 62