npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

opencode-readseek

v0.13.16

Published

OpenCode plugin for anchored file operations and structural code navigation

Readme

opencode-readseek

OpenCode plugin for anchored edits, structural search, symbol navigation, and document inspection.

Install

OpenCode V2

Install globally with opencode plugin add opencode-readseek, or add the package to plugins in your project's opencode.json:

{
  "$schema": "https://opencode.ai/config.json",
  "plugins": ["opencode-readseek"]
}

For a locally installed copy, use the package directory, such as ./node_modules/opencode-readseek, not a file inside dist.

To disable image attachments in V2, use the object form:

{
  "$schema": "https://opencode.ai/config.json",
  "plugins": [
    { "package": "opencode-readseek", "options": { "imageMode": "off" } }
  ]
}

OpenCode V1

OpenCode V1 requires version 1.18.29 or later. Use the singular plugin key:

{
  "plugin": ["opencode-readseek"]
}

To disable image attachments in V1, use [["opencode-readseek", { "imageMode": "off" }]] as the plugin value. The other modes are auto (default) and on.

Usage

In V2, discover the native tools with search("readseek") in Code Mode. Start with tools.readseek.show({ path: "file.ts" }) for anchored source or document content, or tools.readseek.search for structural matches. When Code Mode is disabled, look for the direct tool names readseek_show, readseek_search, and so on. V1 always uses the direct names. Relative paths resolve in the active project.

In V2, edit and rename preview by default. To apply, pass apply: true and set planHash to the preview's plan_hash. OpenCode checks edit permission before writing. In V1, readseek_edit and readseek_rename apply by default with edit permission; set apply: false to preview. Read fresh LINE:HASH anchors before editing in either version.

The native tools use the binary supplied by @jarkkojs/readseek. To override it, set READSEEK_BINARY on the OpenCode server to an absolute executable path. If the binary is unavailable, the V2 tools are not registered. For the V2 skill's optional fallback, install the ReadSeek CLI on the server's PATH and allow shell access. Do not use the CLI to bypass a permission denial.

The V2 plugin retains native results in metadata.readseek. In V1, readseek_show and readseek_grep retain that metadata. Ordinary reads never run inference; caption, objects, and ocr are explicit operations and require installed models. See readseek(1) for command semantics and selectors.

Development

npm test
npm run build
npm run typecheck

Set READSEEK_BINARY to a built native executable for real-binary checks. From the repository root, make ci also installs the packed plugin in clean OpenCode V1 and V2 hosts. It checks V1 tool registration and V2 skill registration, Code Mode calls, and denied reads and edits. The smoke tests use a local model fixture and do not need API credentials.

License

Licensed under Apache-2.0.