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

@dbalster/gdb-plugin

v0.1.3

Published

Kilo/OpenCode TypeScript plugin providing a GDB/MI debugging interface

Downloads

468

Readme

@dbalster/gdb-plugin

100% AI-generated proof-of-concept. This project was requested as: build a TypeScript plugin that uses the GDB/MI protocol and exposes all debugging tools needed for an AI agent to debug programs with GDB. Every line of code was written by an AI language model.

A Kilo / OpenCode TypeScript plugin that provides a full GDB/MI debugging interface via GDB's Machine Interface protocol.

Features

  • 30+ debugging tools: init, load, run, continue, interrupt, step, next, finish, breakpoints, watchpoints, catchpoints, backtrace, locals, evaluate, memory, registers, disassemble, threads, and more
  • GDB/MI protocol: Full MI tokenizer/parser with async record handling
  • State persistence: Session state saved to /tmp/kilo-gdb/state.json across restarts
  • Process management: Start, stop, attach, detach, and core dump support
  • Reverse execution: record/reverse-step/next/continue/finish
  • Variable objects: Create and watch expressions across debugging steps

Installation

npm install -g @dbalster/gdb-plugin

Usage in Kilo/OpenCode

Copy or symlink gdb.ts into your .kilo/plugins/ directory:

mkdir -p ~/project/.kilo/plugins
cp node_modules/@dbalster/gdb-plugin/dist/gdb.js ~/project/.kilo/plugins/gdb.js

Then reference it in .kilo/kilo.json:

{
  "plugins": ["./plugins/gdb.js"]
}

Tools Provided

| Tool | Description | |------|-------------| | gdbInit | Start GDB with a binary executable | | gdbLoad | Load a new binary/symbol file | | gdbRun | Run/restart the debugged program | | gdbContinue | Continue execution | | gdbInterrupt | Interrupt the running program | | gdbStep | Step into next source line | | gdbNext | Step over next source line | | gdbFinish | Step out of current function | | gdbBreak | Set a breakpoint | | gdbBreakpointList | List all breakpoints | | gdbBreakpointDelete | Delete breakpoint(s) | | gdbBreakpointEnable / gdbBreakpointDisable | Toggle breakpoints | | gdbBreakpointCondition | Set/clear breakpoint condition | | gdbWatch | Set a watchpoint | | gdbCatch | Set a catchpoint | | gdbBacktrace | Print call stack | | gdbLocals | Show local variables | | gdbEvaluate | Evaluate an expression | | gdbSet | Set a variable/memory value | | gdbDisplay / gdbDisplayList / gdbDisplayDelete / gdbDisplayUpdate | Variable objects | | gdbThreads / gdbSelectThread | Thread management | | gdbSelectFrame | Select stack frame | | gdbDisassemble | Disassemble code | | gdbRegisters | Show CPU registers | | gdbStatus | Session status overview | | gdbArgs / gdbCwd / gdbEnv | Program setup | | gdbSignal | Send a signal | | gdbAttach / gdbDetach | Process attach/detach | | gdbCore | Generate core dump | | gdbSource | Source a GDB script | | gdbPstack | Stack traces for all threads | | gdbRecord / gdbReverse | Reverse execution | | gdbFind / gdbMem | Memory search and dump | | gdbJump / gdbReturn | Execution control flow | | gdbExit | Terminate GDB session | | gdbRaw / gdbInfo / gdbExec | Raw/CLI command access |

Requirements

  • GDB installed on the system
  • A compiled binary with debug symbols (-g flag)

License

MIT