New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

opencode-ask-agent

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

opencode-ask-agent

Read-only Ask agent for OpenCode with web research capabilities

latest
Source
npmnpm
Version
0.1.1-beta
Version published
Weekly downloads
3
-80%
Maintainers
1
Weekly downloads
 
Created
Source

opencode-ask-agent (v0.1.1-beta)

A read-only Ask agent for OpenCode with integrated web research capabilities. Perfect for codebase exploration, Q&A, and brainstorming.

Installation

NPX (Quick Start)

npx opencode-ask-agent

Bun

bunx opencode-ask-agent

PNPM

pnpx opencode-ask-agent

Yarn

yarn dlx opencode-ask-agent

Global Install (npm)

npm install -g opencode-ask-agent
opencode-ask-agent

Global Install (bun)

bun install -g opencode-ask-agent
opencode-ask-agent

This will:

  • Add opencode-ask-agent to your OpenCode plugins
  • Configure the included MCP servers (context7, grep-app, websearch)
  • Optionally set up your Exa API key for enhanced web search

Features

  • Read-only access - Safely explore code without modifications
  • Context7 - Official documentation lookup
  • Grep.app - Search real-world GitHub code
  • Exa WebSearch - Real-time web search (optional API key)
  • Brainstorming - Ideation and solution exploration

Uninstall

NPX

npx opencode-ask-agent --uninstall

Bun

bunx opencode-ask-agent --uninstall

PNPM

pnpx opencode-ask-agent --uninstall

Global Install

opencode-ask-agent --uninstall
# or
npx opencode-ask-agent --uninstall

This will:

  • Remove the Ask agent configuration from ~/.config/opencode/agent/ask.md
  • Remove MCP server configurations from ~/.config/opencode/opencode.json
  • Create a backup of your configuration at ~/.config/opencode/opencode.json.backup

Manual Install

Add to your ~/.config/opencode/opencode.json:

{
  "plugin": ["opencode-ask-agent"]
}

Exa WebSearch Setup (Optional)

For enhanced web search capabilities, get a free API key:

Usage

After installation, restart OpenCode and press Tab to switch to the Ask agent.

Example Prompts

Code Analysis:

  • "Explain how authentication works in this project"
  • "What does the processPayment function do?"
  • "Trace the data flow from API request to database"

Documentation Lookup:

  • "Show me the React Query documentation for mutations"
  • "What are the options for Next.js middleware?"

GitHub Code Search:

  • "Search GitHub for examples of rate limiting in Express"
  • "Find production examples of WebSocket reconnection logic"

Web Research:

  • "What's the best practice for handling errors in React Query?"
  • "Latest recommendations for Next.js 14 caching"

Brainstorming:

  • "Let's brainstorm approaches for implementing caching"
  • "What are some ways to improve the performance of this API?"
  • "Help me think through the architecture for a notification system"

What's Included

Ask Agent

A read-only agent focused on:

  • Codebase exploration and analysis
  • Documentation and research
  • Brainstorming and ideation

Configuration:

  • Mode: primary (appears in Tab selector)
  • Temperature: 0.6 (balanced for creativity)
  • Allowed tools: read, glob, grep, webfetch
  • Denied tools: write, edit, bash, task

MCP Servers

ServerDescription
context7Official documentation lookup for libraries and frameworks
grep-appGitHub code search for real-world implementation examples
websearchExa-powered web search for current articles and tutorials

Development

# Clone the repository
git clone https://github.com/israeltoledo/opencode-ask-agent.git
cd opencode-ask-agent

# Install dependencies
npm install

# Build
npm run build

# Type check
npm run typecheck

License

MIT

Keywords

opencode

FAQs

Package last updated on 15 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts