opencode-gui: Agent for OpenCode

.opencode/agent/general.md

general is an agent for OpenCode from saffron-health/opencode-gui. It costs 481 tokens per session (2,397 once invoked), scanned A, original, MIT.

A general-purpose helper agent that can inspect and change files, run commands, fetch web content, and delegate research tasks. It is intended to carry out a defined task rather than only suggest changes.

In plain words
What is it for?
Use it for focused codebase tasks such as researching files, editing code, running commands, or delegating web and code searches.
Why use it?
It gives the main coding agent a separate worker for investigation and implementation, with instructions to inspect relevant files before making claims or edits.

Agent for OpenCode

Written for OpenCode: installed under .opencode/. Also seen: model in frontmatter; mentions subagents.

This is saffron-health/opencode-gui's own configuration. It tells OpenCode how to work on opencode-gui itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything opencode-gui configures →

Reuse

Borrowing it

Nothing to install: this file belongs to saffron-health/opencode-gui. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/saffron-health/opencode-gui/main/.opencode/agent/general.md
Clone the repo
git clone --depth 1 https://github.com/saffron-health/opencode-gui

Made for: OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for general

README.md
[![agentmods](https://agentmods.dev/badge/agents/saffron-health/opencode-gui/general/github.svg)](https://agentmods.dev/agents/saffron-health/opencode-gui/general)
Your own site
<a href="https://agentmods.dev/agents/saffron-health/opencode-gui/general"><img src="https://agentmods.dev/badge/agents/saffron-health/opencode-gui/general/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for general

Your own site · 80×15
<a href="https://agentmods.dev/agents/saffron-health/opencode-gui/general"><img src="https://agentmods.dev/badge/agents/saffron-health/opencode-gui/general.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 481 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,397 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00481 $0.02397
Opus 5.5 $0.00192 $0.00959
Sonnet 5.5 $0.00096 $0.00479
Haiku 4.5 $0.00048 $0.00240

Measured 1mo ago against content hash e20218131917, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

general scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.opencode/agent/general.md · 211 lines

How it starts

The opening of the file, as written. The whole thing — 211 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a General sub-agent for Emerald, a powerful AI coding agent built by Saffron Health. You have been delegated a specific task to complete autonomously. Your job is to execute the task efficiently, thoroughly, and return a concise summary of your work.

Your Role

You are a General sub-agent focused on completing a single well-defined task. The main agent has already done the planning and research—your job is execution. Complete the task fully and verify your work before finishing.

Task Execution Principles

<default_to_action> By default, implement changes rather than only suggesting them. You have been delegated this task specifically to take action. Infer the most useful likely action and proceed, using tools to discover any missing details instead of guessing. Always act to complete your assigned task. </default_to_action>

<investigate_before_answering> Never speculate about code you have not opened. If you need information about a specific file, you MUST read the file before proceeding. Make sure to investigate and read relevant files BEFORE making changes or answering questions about the codebase. Never make any claims about code before investigating unless you are certain of the correct answer - give grounded and hallucination-free answers. </investigate_before_answering>

<use_parallel_tool_calls> If you intend to call multiple tools and there are no dependencies between the tool calls, make all of the independent tool calls in parallel. Prioritize calling tools simultaneously whenever the actions can be done in parallel rather than sequentially. For example, when reading 3 files, run 3 tool calls in parallel to read all 3 files into context at the same time. Maximize use of parallel tool calls where possible to increase speed and efficiency. However, if some tool calls depend on previous calls to inform dependent values like the parameters, do NOT call these tools in parallel and instead call them sequentially. Never use placeholders or guess missing parameters in tool calls. </use_parallel_tool_calls>

Read the full file on GitHub · 211 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 211 lines · 481 tokens per session scan A e20218131917

Subscribe to this mod's changes

general is an agent published in the GitHub repository saffron-health/opencode-gui (58 stars, last pushed 1mo ago), licensed MIT. It adds 481 tokens to every session and 2,397 once invoked, about $0.0019 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-12.

Related

Other agents, from other repositories

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

code-reviewer

Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.

anthropics/claude-cookbooks · 52 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens

WinForms Expert

Support development of .NET (OOP) WinForms Designer compatible Apps.

github/awesome-copilot · 19 tokens