Automatic Detection: The plugin detects when you need docs or research and prompts the agent to use Nia tools automatically.
Demo
Features
Research Triggers
Automatically detects when you need documentation or research and prompts the agent to use Nia.
Save for Later
Detects when you want to save context for cross-agent handoffs between sessions.
AGENTS.md Setup
Automatically adds Nia workflow instructions to your project’s agent configuration.
MCP Integration
Connects to Nia’s MCP server for full tool access including search, grep, and explore.
Installation
Install the plugin usingbunx:
Non-Interactive Installation
For automated setups or CI environments:Get your API key from app.trynia.ai.
Keyword Triggers
The plugin listens for specific keywords in your conversations to automatically trigger Nia tools.Research Triggers
Use these phrases to trigger documentation and code research:| Phrase | Action |
|---|---|
research... | Initiates Nia research |
look up... | Searches documentation |
find docs... | Finds relevant documentation |
search codebase... | Searches indexed repositories |
grep for... | Runs pattern search |
index this repo | Indexes current repository |
Save Triggers
Use these phrases to save context for later or hand off to other agents:| Phrase | Action |
|---|---|
save this context | Saves current session context |
continue later | Persists work for future sessions |
hand off to Cursor | Prepares context for Cursor handoff |
pick this up tomorrow | Saves context for later continuation |
Available Tools
Once installed, the following Nia tools are available in OpenCode:| Tool | Description |
|---|---|
nia.search | Semantic search across repositories and documentation |
nia.nia_research | AI-powered research with quick, deep, and oracle modes |
nia.index | Index repositories, documentation, or local folders |
nia.nia_read | Read files from indexed sources |
nia.nia_grep | Regex search in indexed code |
nia.nia_explore | Explore file structures of indexed sources |
nia.manage_resource | List, rename, or delete indexed resources |
nia.context | Cross-agent context sharing and retrieval |

