Skip to content

Conversation

@sestinj
Copy link
Contributor

@sestinj sestinj commented Dec 29, 2025

Adds the ability for agents to report activity events to the control plane:

  • Add src/util/events.ts with postAgentEvent() function
  • Add src/tools/event.ts with Event tool for agents
  • Register Event tool in allBuiltIns.ts and index.tsx
  • Event tool is only available when running in agent mode (--id flag)

Supported event types: pr_created, comment_posted, commit_pushed, issue_closed, review_submitted (and custom event names)

🤖 Generated with Claude Code

Description

[ What changed? Feel free to be brief. ]

AI Code Review

  • Team members only: AI review runs automatically when PR is opened or marked ready for review
  • Team members can also trigger a review by commenting @continue-review

Checklist

  • [] I've read the contributing guide
  • [] The relevant docs, if any, have been updated or created
  • [] The relevant tests, if any, have been updated or created

Screen recording or screenshot

[ When applicable, please include a short screen recording or screenshot - this makes it much easier for us as contributors to review and understand your changes. See this PR as a good example. ]

Tests

[ What tests were added or updated to ensure the changes work as expected? ]


Summary by cubic

Adds an Event tool that lets agents report activity events to the task timeline. Improves visibility of actions like PRs, comments, commits, issue closures, and reviews.

  • New Features
    • Event tool to post events with eventName and title (optional description, externalUrl); supports pr_created, comment_posted, commit_pushed, issue_closed, review_submitted, and custom names.
    • Utilities: postAgentEvent() to send events to the control plane, and getAgentIdFromArgs() to read the --id flag.
    • Tool is registered and only available in agent mode (requires --id).

Written for commit 006fab7. Summary will update automatically on new commits.

Adds the ability for agents to report activity events to the control plane:

- Add src/util/events.ts with postAgentEvent() function
- Add src/tools/event.ts with Event tool for agents
- Register Event tool in allBuiltIns.ts and index.tsx
- Event tool is only available when running in agent mode (--id flag)

Supported event types: pr_created, comment_posted, commit_pushed,
issue_closed, review_submitted (and custom event names)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@sestinj sestinj requested a review from a team as a code owner December 29, 2025 04:27
@sestinj sestinj requested review from RomneyDa and removed request for a team December 29, 2025 04:27
@continue
Copy link
Contributor

continue bot commented Dec 29, 2025

All Green - Keep your PRs mergeable

Learn more

All Green is an AI agent that automatically:

✅ Addresses code review comments

✅ Fixes failing CI checks

✅ Resolves merge conflicts


Unsubscribe from All Green comments

1 similar comment
@continue-development-app
Copy link

All Green - Keep your PRs mergeable

Learn more

All Green is an AI agent that automatically:

✅ Addresses code review comments

✅ Fixes failing CI checks

✅ Resolves merge conflicts


Unsubscribe from All Green comments

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Dec 29, 2025
@github-actions
Copy link

github-actions bot commented Dec 29, 2025

✅ Review Complete

Code Review Summary

⚠️ AI review failed. Please check the Continue API key and configuration.

Troubleshooting

  • Verify the CONTINUE_API_KEY secret is set correctly
  • Check that the organization and config path are valid
  • Ensure the Continue service is accessible

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 4 files

@continue
Copy link
Contributor

continue bot commented Dec 29, 2025

📚 Documentation Update

I've created PR #9341 with documentation for the new Event tool. The documentation covers:

  • Tool parameters and usage examples
  • Integration with the activity timeline
  • Best practices for when and how to use events
  • Comparison with other CLI tools (UploadArtifact, ReportFailure)

The docs follow the same pattern as the existing artifact-uploads.md documentation.

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

Labels

size:L This PR changes 100-499 lines, ignoring generated files.

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants