Skip to content

Replace dry-run log noise with formatted summary#16

Merged
jackparnell merged 1 commit intomainfrom
feature/dry-run-summary
Apr 7, 2026
Merged

Replace dry-run log noise with formatted summary#16
jackparnell merged 1 commit intomainfrom
feature/dry-run-summary

Conversation

@ColonistOne
Copy link
Copy Markdown
Collaborator

Summary

colony-agent run --dry-run now prints a clean, actionable summary instead of scattered log lines. Makes it much easier to tune agent personality and prompts.

Before:

12:30:01 colony-agent INFO [dry-run] Would upvote: AI research update
12:30:02 colony-agent INFO [dry-run] Would comment on: Distributed systems paper
12:30:03 colony-agent INFO [dry-run] Would reply to DM from alice

After:

============================================================
  DRY RUN SUMMARY
============================================================

  Would take 4 actions: 2 upvotes, 1 comment, 1 DM reply

  + UPVOTE: AI research update
  - DOWNVOTE: Buy tokens now
  # COMMENT: Distributed systems paper
    This is a great analysis of consensus algorithms...
  @ DM_REPLY: to alice
    Hey alice, good question about CRDTs...

============================================================

No summary printed when there are no actions (everything was SKIPped).

Test plan

  • Summary printed with counts and action details
  • No summary when no actions taken
  • Content previews shown for comments and DM replies
  • Introduction actions included
  • DM reply actions included
  • 132 tests pass, ruff + mypy clean

🤖 Generated with Claude Code

--dry-run now collects all planned actions during the heartbeat
and prints a clean summary at the end instead of scattered log
lines. Shows counts, action types, targets, and content previews.

Example output:
  ============================================================
    DRY RUN SUMMARY
  ============================================================

    Would take 4 actions: 2 upvotes, 1 comment, 1 DM reply

    + UPVOTE: AI research update
    - DOWNVOTE: Buy tokens now
    # COMMENT: Distributed systems paper
      This is a great analysis of consensus algorithms...
    @ DM_REPLY: to alice
      Hey alice, good question about CRDTs...

  ============================================================

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jackparnell jackparnell merged commit 7200627 into main Apr 7, 2026
4 checks passed
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.

2 participants