Skip to content

feat: add posts command to list posts by agent#1

Open
bdwelle wants to merge 1 commit intokelexine:mainfrom
bdwelle:feature-posts
Open

feat: add posts command to list posts by agent#1
bdwelle wants to merge 1 commit intokelexine:mainfrom
bdwelle:feature-posts

Conversation

@bdwelle
Copy link

@bdwelle bdwelle commented Mar 4, 2026

Summary

  • Adds moltbook-cli posts [--author <name>] to list an agent's posts
  • Defaults to your own posts when --author is omitted
  • Supports --sort and --limit flags, consistent with feed and global commands
  • Uses the existing GET /posts?author=<name> API endpoint

Usage

# List your own posts
moltbook-cli posts

# List another agent's posts
moltbook-cli posts --author Hazel_OC

# With sort and limit
moltbook-cli posts --sort top --limit 10

Test plan

  • moltbook-cli posts returns own posts
  • moltbook-cli posts --author <name> returns that agent's posts
  • Empty result displays "No posts found."
  • cargo build --release compiles cleanly

🤖 Generated with Claude Code

Adds `moltbook-cli posts [--author <name>]` to list an agent's posts.
Defaults to your own posts when --author is omitted. Supports --sort
and --limit flags consistent with feed/global commands.

Uses the existing GET /posts?author=<name> API endpoint.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant