0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-07 13:19:19 +08:00
discourse/plugins/discourse-ai/lib/agents/tools
Gabriel Grubba cc14e6e402
FEATURE: Add AI agent suspend/silence tools with inline approval review (#41497)
Previously, AI agents had no way to suspend or silence users, and
approving any moderation tool action meant leaving the conversation for
the `/review` queue.

This change adds `suspend_user`/`silence_user` tools that always require
moderator approval, and lets moderators approve or reject those actions
from an inline review card right in the bot conversation — credited to
the approving moderator (not the bot) in the staff action log — instead
of switching to the `/review` queue.


Demo of this feature:



https://github.com/user-attachments/assets/b9605511-e53d-483d-b435-b212694cdf53



https://github.com/user-attachments/assets/383bda5d-93ee-4758-a51e-6162ea0d57ee

---------

Co-authored-by: Penar Musaraj <pmusaraj@gmail.com>
2026-07-10 10:59:51 -03:00
..
add_reviewable_note.rb FEATURE: Allow AI agents to add notes to reviewables (#40807) 2026-06-11 17:57:01 -03:00
assign.rb
close_topic.rb
create_artifact.rb DEV: Enable Style/RedundantSelf rubocop rule (#40098) 2026-05-19 19:27:45 +02:00
create_image.rb DEV: Enable Style/RedundantBegin rubocop rule (#40096) 2026-05-19 18:44:54 +02:00
custom.rb
db_schema.rb FIX: Data explorer agent reliability for schema and plurality (#40152) 2026-05-19 16:23:17 +08:00
delete_topic.rb
discourse_meta_search.rb DEV: Enable Style/RedundantParentheses rubocop rule (#40095) 2026-05-19 15:48:09 +02:00
edit_category.rb
edit_image.rb
edit_post.rb
edit_tags.rb
flag_post.rb FIX: Avoid duplicate AI triage reviewables for spam flags (#41043) 2026-06-22 13:01:42 +08:00
github_diff.rb FEATURE: Route all GitHub API requests through one rate-limited client (#40637) 2026-06-15 10:59:10 +02:00
github_file_content.rb FEATURE: Route all GitHub API requests through one rate-limited client (#40637) 2026-06-15 10:59:10 +02:00
github_search_code.rb FEATURE: Route all GitHub API requests through one rate-limited client (#40637) 2026-06-15 10:59:10 +02:00
github_search_files.rb FEATURE: Route all GitHub API requests through one rate-limited client (#40637) 2026-06-15 10:59:10 +02:00
google.rb
grant_badge.rb
image.rb DEV: Enable Style/RedundantBegin rubocop rule (#40096) 2026-05-19 18:44:54 +02:00
javascript_evaluator.rb
list_categories.rb
list_reviewables.rb FEATURE: Allow AI agents to add notes to reviewables (#40807) 2026-06-11 17:57:01 -03:00
list_tags.rb
lock_post.rb
mark_as_solved.rb
mcp.rb FEATURE: Add MCP server integration to AI agents (#38706) 2026-03-25 17:32:27 +11:00
move_posts.rb
option.rb
perform_reviewable_action.rb FEATURE: Add review queue tools for AI agents (#38928) 2026-03-30 14:42:54 -03:00
random_picker.rb
read.rb
read_artifact.rb
researcher.rb DEV: Extract reusable PostsFilter into core (#40436) 2026-06-02 14:52:47 +02:00
search.rb
search_settings.rb
search_uploaded_documents.rb DEV: Expose agent RAG as a standard tool (#38691) 2026-03-24 10:26:13 -03:00
set_slow_mode.rb
set_topic_timer.rb
setting_context.rb DEV: Enable Rails/FilePath rubocop rule (#40097) 2026-05-19 19:07:54 +02:00
silence_user.rb FEATURE: Add AI agent suspend/silence tools with inline approval review (#41497) 2026-07-10 10:59:51 -03:00
summarize.rb
suspend_user.rb FEATURE: Add AI agent suspend/silence tools with inline approval review (#41497) 2026-07-10 10:59:51 -03:00
time.rb
tool.rb FEATURE: Add AI agent suspend/silence tools with inline approval review (#41497) 2026-07-10 10:59:51 -03:00
unlist_topic.rb
update_artifact.rb DEV: Enable Style/RedundantParentheses rubocop rule (#40095) 2026-05-19 15:48:09 +02:00
web_browser.rb