reddit

reddit is a skill for Claude Code, Codex from AgentComputerAI/torch. It costs 68 tokens per session (1,951 once invoked), scanned A, original, MIT.

A scraping guide for public Reddit pages, including communities, user pages, search results, and discussion threads. It uses Reddit's JSON version of a page instead of browser automation.

In plain words
What is it for?
Use it to collect posts, comments, or search results from public Reddit pages and continue through listing pages with the after token.
Why use it?
It avoids unnecessary browser control and explains the required browser-like user agent and cursor-based pagination for public listings.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to collect posts, comments, or search results from public Reddit pages and continue through listing pages with the after token.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/agentcomputerai/torch/reddit
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 AgentComputerAI/torch --skill reddit
Clone the repo
git clone --depth 1 https://github.com/AgentComputerAI/torch

Made for: Claude Code, Codex.

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 reddit

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/agentcomputerai/torch/reddit"><img src="https://agentmods.dev/badge/skills/agentcomputerai/torch/reddit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,951 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00068 $0.01951
Opus 5.5 $0.00027 $0.00780
Sonnet 5.5 $0.00014 $0.00390
Haiku 4.5 $0.00007 $0.00195

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

Security

Grade A, and why

reddit scanned grade A 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 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

Reddit's old `.json` endpoints are still live and unauthenticated. Any listing page — `/r/<sub>`, `/r/<sub>/top`, `/user/<name>`, `/r/<sub>/comments/<id>`, `/search` — becomes a JSON feed by appending `.json`. Pagination
skills/sites/reddit/SKILL.md · 135 lines

How it starts

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

Reddit (reddit.com)

Reddit's old .json endpoints are still live and unauthenticated. Any listing page — /r/<sub>, /r/<sub>/top, /user/<name>, /r/<sub>/comments/<id>, /search — becomes a JSON feed by appending .json. Pagination is cursor-based via the after token. The only thing that will get you blocked is using the default python-requests / node-fetch / curl/ User-Agent — set any browser UA and you're fine.

Do not use Puppeteer for Reddit. It's strictly slower and no more capable than a plain fetch.

Detection

Signal Value
CDN Fastly (x-served-by: cache-...)
Framework React SPA for HTML, but .json endpoints are the canonical data source
Anti-bot User-Agent filter only — blocks default library UAs with HTTP 429 "Too Many Requests"
Auth required No (for public subs)
Rate limit ~60 req/min unauthenticated per IP; be polite with 1–2s between requests
robots.txt Disallows most crawlers except Googlebot, but .json endpoints work fine

Architecture

  • https://www.reddit.com/r/<sub>.json?limit=100&after=<token> returns a Listing wrapper.
  • data.children is an array of { kind: 't3', data: { ... } } for posts (t3), t1 for comments.
  • data.after is the next-page cursor (null when exhausted). data.before for previous.
  • Max limit is 100 per request. Listings cap at ~1000 items total (~10 pages) regardless of how far you paginate — this is a hard Reddit limit, not a scraper bug.
  • Sort variants: /r/<sub>/hot.json, /top.json?t=week, /new.json, /rising.json, /controversial.json.

Strategy used

Phase 0 only. curl https://www.reddit.com/r/programming.json -A "Mozilla/..." returns the full JSON listing. Skipped Phases 1–2 entirely. No browser, no stealth, no proxy.

Stealth config that works

const UA = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0 Safari/537.36';
await fetch(url, { headers: { 'User-Agent': UA, 'Accept': 'application/json' } });

Read the full file on GitHub · 135 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 · 135 lines · 68 tokens per session scan A 067e18c4f1e6

Subscribe to this mod's changes

reddit is a skill published in the GitHub repository AgentComputerAI/torch (5 stars, last pushed 6mo ago), licensed MIT. It adds 68 tokens to every session and 1,951 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.