research-cli AGENTS.md

research-cli AGENTS.md is an instructions file for Codex, OpenCode from rmedranollamas/research-cli. It costs 549 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for a Go command-line tool that uses Google Gemini for deep research, fast searches, image generation, and multimodal interactions.

In plain words
What is it for?
Use them when modifying the research CLI, its Gemini extension, streaming and polling behavior, SQLite task history, or security checks.
Why use it?
They give coding agents the project’s architecture, security rules, API details, and local history behavior so changes fit the existing tool safely.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/rmedranollamas/research-cli/agents-md
Clone the repo
git clone --depth 1 https://github.com/rmedranollamas/research-cli

Made for: Codex, 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 research-cli AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/rmedranollamas/research-cli/agents-md.svg)](https://agentmods.dev/instructions/rmedranollamas/research-cli/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/rmedranollamas/research-cli/agents-md"><img src="https://agentmods.dev/badge/instructions/rmedranollamas/research-cli/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 549 This file is loaded in full into every session.
When invoked 549 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.00549 $0.00549
Opus 5 $0.00275 $0.00275
Sonnet 5 $0.00110 $0.00110
Haiku 4.5 $0.00055 $0.00055

Measured 4d ago against content hash 6d708c33202c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

research-cli AGENTS.md 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 4d 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.

AGENTS.md · 62 lines

How it starts

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

Agent Notes

research-cli is a Go CLI for Gemini Deep Research and multimodal interactions.

Architecture

  • Deep Research uses deep-research-preview-04-2026 through the Gemini v1alpha Interactions API.
  • Max Deep Research can be selected with deep-research-max-preview-04-2026.
  • Fast search uses gemini-3-flash-preview.
  • Image generation uses gemini-3-pro-image-preview.
  • Long-running interactions stream over SSE, then fall back to polling if the stream ends before a report is available.
  • Local task history is stored in SQLite at ~/.research-cli/history.db by default.

Gemini CLI Extension

  • Manifest: gemini-extension.json
  • Slash command: commands/research.toml
  • Skill: skills/gemini-research/SKILL.md
  • Release archives place the platform binary at skills/gemini-research/scripts/research.

Security Notes

  • RESEARCH_GEMINI_API_KEY is passed only to Gemini API requests.
  • Custom remote API base URLs must use HTTPS. HTTP is accepted only for real loopback hosts.
  • Workspace path validation rejects parent traversal and symlink output overwrites.
  • Untrusted streamed model text is stripped of terminal control sequences before printing.
  • The SQLite history database is created with 0600 permissions.

Development

go test ./...
go vet ./...
go build ./...

The workspace has used Go 1.26.3. Keep the go directive in go.mod aligned with the intended release toolchain; the release workflow uses actions/setup-go with go-version-file: go.mod.

Coverage:

go test ./... -coverprofile=coverage.out
go tool cover -func=coverage.out

Release

Pushing a v* tag runs .github/workflows/release.yml, which builds Go binaries for Linux and macOS on amd64 and arm64, packages Gemini extension archives, and publishes checksums.

After a release, verify at least one archive by downloading it with gh release download, comparing its SHA-256 against checksums.txt, extracting skills/gemini-research/scripts/research, and checking research --version.

Read the full file on GitHub · 62 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. 4d ago First seen · 62 lines · 549 tokens per session scan A 6d708c33202c

Subscribe to this mod's changes

research-cli AGENTS.md is an instructions file published in the GitHub repository rmedranollamas/research-cli (20 stars, last pushed 4d ago), licensed Apache-2.0. It adds 549 tokens to every session, about $0.0027 per session on Opus 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-08-30.