LogoVibeCodingHunt

Agent Plugin

Type Inject

Adds relevant TypeScript and Svelte type signatures to OpenCode context and exposes focused type-inspection tools.

Developer Tools

What is Type Inject?

Type Inject helps OpenCode reason about typed code without flooding the context window with entire dependency trees. It identifies symbols involved in a read, resolves nearby imports, and injects prioritized signatures within a token budget. Dedicated tools can look up types, list declarations, and run type checks when the agent needs deeper evidence.

Key capabilities

Relevant signatures

Injects types connected to the active code rather than dumping every declaration.

Bounded import resolution

Follows imports to a controlled depth so context remains tractable.

Token prioritization

Ranks declarations when the available context budget is limited.

Use cases

Understand unfamiliar APIs

Reveal parameter and return types while editing code that uses an unknown library.

Trace project types

Follow imported interfaces and aliases across a TypeScript codebase.

Check a proposed change

Run a focused type check before considering the edit complete.

Included components

Hooks

Type Context Injection

Adds relevant signatures when supported TypeScript or Svelte files are read.

MCP Servers

Type Inspection Tools

Provides lookup_type, list_types, and type_check tools.

Installation scope

project or global
OpenCode
  • OpenCode
  • A TypeScript or Svelte project
  • The @nick-vi/opencode-type-inject package configured as an OpenCode plugin

FAQs