goal-research

goal-research is a skill for Codex from jongwony/epistemic-protocols. It costs 50 tokens per session (2,047 once invoked), scanned B, original, MIT.

A command for delegating a factual research question to a separate Codex CLI session, which checks information using Tavily web searches.

In plain words
What is it for?
Use it to investigate a question, gather outside information, and verify findings with web sources.
Why use it?
It keeps research separate from the main coding conversation and provides external verification for factual claims.

Skill for Codex

Written for Codex: runs codex exec. Also seen: mentions Claude Code; mentions Codex.

Part of the epistemic-cooperative plugin — 13 skills shipped together

Good fit Use it to investigate a question, gather outside information, and verify findings with web sources.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jongwony/epistemic-protocols/goal-research
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.

Any agent
npx skills add jongwony/epistemic-protocols --skill goal-research
Clone the repo
git clone --depth 1 https://github.com/jongwony/epistemic-protocols

Made for: Codex.

Or install epistemic-cooperative, the plugin that ships this one along with the rest of its 13 skills.

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 goal-research

README.md
[![agentmods](https://agentmods.dev/badge/skills/jongwony/epistemic-protocols/goal-research/github.svg)](https://agentmods.dev/skills/jongwony/epistemic-protocols/goal-research)
Your own site
<a href="https://agentmods.dev/skills/jongwony/epistemic-protocols/goal-research"><img src="https://agentmods.dev/badge/skills/jongwony/epistemic-protocols/goal-research/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 goal-research

Your own site · 80×15
<a href="https://agentmods.dev/skills/jongwony/epistemic-protocols/goal-research"><img src="https://agentmods.dev/badge/skills/jongwony/epistemic-protocols/goal-research.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,047 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 4 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Excessive Agency · line 62
    Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.
    Fix: Remove the model/provider override or disclose it prominently and require explicit operator approval before invoking an external coding CLI or billed model.
  • high Agent Snooping · line 79
    Skill reads from agent configuration directories (.claude/, .codex/, .gemini/). These directories may contain API keys, personal settings, and other credentials that the skill has no legitimate need to access.
    Fix: Remove all code or instructions that access agent configuration directories (.claude/, .codex/, .gemini/). If configuration values are needed, pass them explicitly as parameters or environment variabl
  • high Tool Misuse · line 126
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • medium Rogue Agent · line 35
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
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.00050 $0.02047
Opus 5 $0.00025 $0.01024
Sonnet 5 $0.00010 $0.00409
Haiku 4.5 $0.00005 $0.00205

Measured 3d ago against content hash f8a3fbe4d147, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade B, and why

goal-research scanned grade B with 1 finding 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

belong in `~/.codex/config.toml` itself, not on this command line. An inline
epistemic-cooperative/skills/goal-research/SKILL.md · 151 lines

How it starts

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

Goal Research

Invoke directly with /goal-research <research question> when the user wants to delegate fact-finding or external verification to a Codex CLI session that pairs Codex's builtin goal scoping with Aitesis-driven Tavily search.

Architecture:

goal-research
├── Research question (argument or one-time prompt)
├── Codex CLI (background)
│   ├── builtin `goal` — scope the research endpoint
│   └── `$inquire` — Aitesis skill drives Tavily-based external verification
└── Trace presentation (codex output + temp-file cleanup)

Why this composition: Codex's builtin goal command provides a clean scoping primitive for endpoint-defined research; invoking Aitesis ($inquire) inside that scope routes verification through Tavily for grounded external sourcing. Running it in Codex isolates the research session from the main Claude Code conversation while still surfacing the full trace back.

Phase 1: Argument Capture

  1. If /goal-research is invoked with an argument, treat it as the research question verbatim.
  2. If invoked without an argument, ask the user once for the research question, then proceed.

The research question is passed unchanged into the Codex prompt — paraphrasing is prohibited.

Phase 2: Codex Launch (Background)

Check which codex 2>/dev/null. If Codex CLI is not found, expose the missing-binary error and stop. Failure modes are surfaced as raw errors, not handled internally.

Generate a unique suffix: SUFFIX=$(openssl rand -hex 4)

Write the research prompt to /tmp/goal_research_${SUFFIX}.txt. The prompt must begin with /goal so Codex's builtin goal-scoping engages explicitly (the Goal: label form also works, but the slash form makes the convention unambiguous and aligns with how $inquire is invoked):

/goal Research and externally verify the target below.

Research target:
{research_question}

Workflow:
1. The `/goal` prefix above scopes this Codex session as a research endpoint.
2. Inside that scope, invoke `$inquire` (the Aitesis skill) to drive Tavily-based external verification searches.
3. Cite each external source used.

Report:
- Findings with cited sources
- Verification status for each factual claim
- Residual uncertainty when sources contradict or coverage is incomplete

Read the full file on GitHub · 151 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 f8a3fbe4d147
  2. 10d ago First seen · 151 lines · 50 tokens per session scan B 94caa74225e7

Subscribe to this mod's changes

goal-research is a skill published in the GitHub repository jongwony/epistemic-protocols (161 stars, last pushed today), licensed MIT. It adds 50 tokens to every session and 2,047 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories