Skip to main content

Reddit listings + Citedy Agent API autopilot (no scout credits). Optional interactive setup.

Project description

citedy-reddit-writer

Public Reddit listings (.json API) → filter/dedupe → Citedy POST /api/agent/autopilot with source_urls and optional auto_publish. Does not call scout/reddit (no scout credits per tick).

Repository: github.com/citedy/citedy-reddit-writer

Quick start

git clone https://github.com/citedy/citedy-reddit-writer.git
cd citedy-reddit-writer
python3 -m venv .venv
source .venv/bin/activate
pip install -e .

# Interactive: creates config.yaml + .env (API key only in .env)
citedy-reddit-setup

set -a && source .env && set +a
citedy-reddit-run --config config.yaml

Dry-run (no Citedy calls, no state writes):

citedy-reddit-run --config config.yaml --dry-run

Agent skills (Claude Code, Cursor, Codex)

Environment Skill / command location
Claude Code .claude/skills/citedy-reddit-writer/SKILL.md + /citedy-reddit-writer (.claude/commands/citedy-reddit-writer.md)
Cursor In saas-blog monorepo: .cursor/skills/citedy-reddit-writer/SKILL.md (triggers on “citedy reddit writer”, citedy-reddit-run, etc.)
Codex In saas-blog monorepo: .codex/skills/citedy-reddit-writer/SKILL.md

Standalone clone ships .claude/ and .cursor/skills/citedy-reddit-writer/. For Codex only, copy .codex/skills/citedy-reddit-writer/SKILL.md from the saas-blog monorepo if needed.

Verify in Cursor: open this workspace, start a chat, ask e.g. “Run citedy-reddit-writer dry-run from citedy-reddit-writer” — the agent should load the skill and cd citedy-reddit-writer then run ./.venv/bin/citedy-reddit-run --config config.example.yaml --dry-run (after pip install -e . if needed).

Requirements

  • Python 3.10+
  • CITEDY_AGENT_API_KEY (Bearer citedy_agent_…)
  • Reddit API / data terms — sensible User-Agent, no abusive polling

Configuration

  • citedy-reddit-setup — prompts for base URL, key, subreddits, filters, caps, auto_publish, writes config.yaml + .env.
  • config.example.yaml — full YAML reference if you edit by hand.
  • Env: CITEDY_AGENT_API_KEY, CITEDY_REDDIT_CONFIG, optional CITEDY_BASE_URL, CITEDY_ALERT_WEBHOOK_URL, DRY_RUN.

State file path (dedupe.state_path) is resolved relative to the config file directory.

Scheduling

  • systemd: systemd/citedy-reddit-writer.service + citedy-reddit-writer.timer
  • cron: crontab.example

Security

Do not commit .env or a config.yaml that contains agent_api_key. Prefer an empty key in YAML and load from the environment.

License

MIT — see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

citedy_reddit_writer-0.1.0.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

citedy_reddit_writer-0.1.0-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

Details for the file citedy_reddit_writer-0.1.0.tar.gz.

File metadata

  • Download URL: citedy_reddit_writer-0.1.0.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for citedy_reddit_writer-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3714bbf5d20cecf2b647aeaca49cfb3c770a7cb09e0d5431ee1df947fdef017b
MD5 c2413a77763aac9b77bc8a0788ea4d66
BLAKE2b-256 b4f504a43996204d63ee9e3d451cd0ecc3a29fe34baf76f1ad40dae557918de0

See more details on using hashes here.

Provenance

The following attestation bundles were made for citedy_reddit_writer-0.1.0.tar.gz:

Publisher: publish-pypi.yml on citedy/citedy-reddit-writer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file citedy_reddit_writer-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for citedy_reddit_writer-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 891aee539baf1eb0c1bf8292771fe3fdda9549be196c28ca2343aeba95ed50ea
MD5 ee94f9761472073000197bbbdd6f4f99
BLAKE2b-256 e08b5587ad49861d4f122f440d62419b5455b854a6051427e743327410eef1ef

See more details on using hashes here.

Provenance

The following attestation bundles were made for citedy_reddit_writer-0.1.0-py3-none-any.whl:

Publisher: publish-pypi.yml on citedy/citedy-reddit-writer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page