Skip to content

[Gap] RedditTool + standardized Claw/demo path (ALLOW_WRITE, claw scripts parity) #39

Description

@Dhivya-Bharathy

Executive summary

A RedditTool exists in praisonai_tools, enabling basic Reddit automation flows. Hermes demos and OpenClaw bridges often emphasize deterministic claw scripts (run_claw.ps1, MCP manifests, health checks) pulling a frozen tool bouquet.

Today the story for Reddit + Claw is inconsistent: unclear which entrypoint, venv, HERMES_ONLY_TOOLS subset, or OAuth vs read-only endpoints wins in production-ish demos.

This issue closes the glue layer gap between RedditTool implementation and standardized claw/demo packaging.

Repos: praisonai-tools (implementation surface) + demo/monorepo scripts (run_claw.ps1 family) per ISSUE_INDEX.md item #10.


Architecture map

┌─────────────────┐       ┌──────────────────┐
│  RedditTool     │       │ Claw MCP bridge  │
│  (praison_tools)│◄─────►│ / HTTP surface   │
└────────┬────────┘       └────────┬─────────┘
         │ oauth / httpx           │ process mgmt + env injection
         ▼                         ▼
 ┌────────────────┐       ┌──────────────────┐
 │ Reddit OAuth   │       │ Developer Win/UX │
 │ reddit_* env   │       │ scripts + docs   │
 └────────────────┘       └──────────────────┘

Gap: middle column manifest + script parity incomplete.


Workstreams

W1 — Tool surface audit

Catalog:

  • Implemented operations (subscribe? post? read subreddit?)
  • Missing Hermes-aligned ops (vote? save? moderator actions?) → defer unless security-reviewed

Expose explicit JSON schemas reflecting scopes Reddit grants.

W2 — Claw standard path

Produce canonical snippet:

# illustrative
tools_allowlist:
  - reddit_get_hot
  - reddit_post_comment # if permitted
environment:
  REDDIT_CLIENT_ID: ${REDDIT_CLIENT_ID}

Unified with CODE-sdk-hermes-only-tools semantics.

W3 — Auth modes

Document developer app setup:

  • Reddit app type (installed vs script) impact on User-Agent string compliance
  • Refresh token storage pitfalls on Windows credential managers

W4 — Demo reproducibility

  • One run_claw_demo_reddit.ps1 (name flexible) chaining: venv → env check → start bridge → ping health

Risks / policy

Reddit aggressively rate-limits misconfigured clients; demos must ship recommended User-Agent template referencing app id.

Posting tools increase spam/abuse surface — gate behind REDDIT_ALLOW_WRITE=1 feature flag documenting liability.


Acceptance criteria

  1. Reddit appears in DEMO/README matrix alongside Twilio/YouTube with same prerequisites structure.
  2. Claw/OpenClaw quickstart mentions reddit tool names aligned with HERMES_ONLY_TOOLS CSV example.
  3. CI smoke import RedditTool + schema generation (unit level).

Related

  • DOCS-claw-windows-venv-pattern.md
  • CODE-sdk-hermes-only-tools.md

References

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    claudeAuto-trigger Claude analysis

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions