Skip to content

Add Star-us prompts across TUI, CLI, and README - #51

Merged
reacher-z merged 2 commits into
mainfrom
star-prompt
Apr 15, 2026
Merged

Add Star-us prompts across TUI, CLI, and README#51
reacher-z merged 2 commits into
mainfrom
star-prompt

Conversation

@reacher-z

Copy link
Copy Markdown
Collaborator

Summary

Community-growth hooks at the three touchpoints users actually end their sessions on:

  • CLIrun.py / batch.py print a one-line star prompt after completion. Opt-out via CLAWBENCH_NO_STAR=1 or non-TTY stdout (CI, pipes)
  • TUI — new "Star us on GitHub" main-menu entry opens the repo in the default browser; on exit we print the same prompt so the URL is visible as the user leaves
  • README — "Support ClawBench" section (EN + zh-CN) with a prominent star button, contrib.rocks contributors wall, and CONTRIBUTING.md link, placed right above the Star History chart

Why

Benchmark repos live or die by community reach. A gentle ask at the moment a user has just seen their run complete is the highest-converting star moment we'll ever get — peer repos (AnythingLLM, crawl4ai, MetaGPT) all use variants of this pattern.

Test plan

  • clawbench run <case> <model> — star line appears after "INTERCEPTED — results in ..."
  • clawbench batch ... — star line appears after summary
  • CLAWBENCH_NO_STAR=1 clawbench run ... — star line suppressed
  • Piping stdout (non-TTY) — star line suppressed
  • clawbench tui shows "Star us on GitHub" between "Change theme" and "Exit"; selecting it opens the repo page
  • Exiting the TUI prints the star prompt before "Bye."
  • README renders the star button and contributors wall (GitHub preview)

reacher-z and others added 2 commits April 14, 2026 12:13
Three new hooks for community growth:

1. `support.py` helper prints a subtle "If ClawBench helped, please star
   us" line. Used from `run.py` on successful completion and from
   `batch.py` after the summary. Honors `CLAWBENCH_NO_STAR=1` and skips
   when stdout isn't a TTY (CI, pipes).

2. TUI gets a "Star us on GitHub" entry in the main menu that opens the
   repo page in the default browser; on exit we print the same rich
   prompt so users leave with the link visible.

3. README (both EN and zh-CN) gets a "Support ClawBench" section with a
   big shields.io star button, contrib.rocks contributors wall, and a
   link to CONTRIBUTING.md. Sits right above the Star History chart so
   the growth narrative is self-reinforcing.
@reacher-z
reacher-z merged commit 159f966 into main Apr 15, 2026
3 of 6 checks passed
@Perry2004
Perry2004 deleted the star-prompt branch April 23, 2026 02:07
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