research-cli: Instructions file for Codex

AGENTS.md

research-cli AGENTS.md is an instructions file for Codex, OpenCode from rmedranollamas/research-cli. It costs 877 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

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md; mentions Gemini CLI.

This is rmedranollamas/research-cli's own configuration. It tells Codex and OpenCode how to work on research-cli 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 research-cli configures →

Reuse

Borrowing it

Nothing to install: this file belongs to rmedranollamas/research-cli. 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/rmedranollamas/research-cli/main/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/github.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/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 research-cli AGENTS.md

Your own site · 80×15
<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="Reviewed on agentmods" width="80" height="20"></a>
Per session 877 This file is loaded in full into every session.
When invoked 877 The same file — it is already loaded in full.
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.00877 $0.00877
Opus 5.5 $0.00351 $0.00351
Sonnet 5.5 $0.00175 $0.00175
Haiku 4.5 $0.00088 $0.00088

Measured 3d ago against content hash cf1f8a6b0f29, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 3d 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 · 114 lines

How it starts

The opening of the file, as written. The whole thing — 114 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.

Release Checklist

  1. Pre-flight checks: Ensure the working tree is clean, synced with upstream, properly formatted, and passing tests:

    git status
    git pull
    gofmt -l .
    go vet ./...
    go test ./...
    

Read the full file on GitHub · 114 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. 3d ago Changed · +52 lines · +328 tokens per session cf1f8a6b0f29
  2. 1mo 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 3d ago), licensed Apache-2.0. It adds 877 tokens to every session, about $0.0035 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-08-30.

Related

Other instructions, from other repositories