OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Security & Safety

Safe Space

Safe Space is a JavaScript GitHub Action that uses the TensorFlow.js toxicity classification model to flag potentially toxic comments on issues and pull requests, and submitted pull-request reviews. It runs within a repository's GitHub Actions workflow and supports a configurable toxicity threshold and automatic comment message.

Independent OpenViST project profile, based on linked sources.

Safe Space — Repository-level checks triggered by GitHub discussion events
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when you want a GitHub Actions workflow to screen issue comments, pull-request comments, and pull-request reviews and give authors a chance to revise text the classifier flags.

Who it is for

  • Repository maintainers who want a machine-learning toxicity check in GitHub issue and pull-request discussions.
  • Teams that already use, or are setting up, GitHub Actions workflows.

Documented uses

  • Run a toxicity classification check when an issue or pull-request comment is posted.
  • Check submitted pull-request reviews for potentially toxic text.
  • Adjust the classifier threshold or customize the action's automatic comment.
Before you choose

Requirements & limits

The project is a public GitHub repository licensed under GPL-3.0. Using the action requires a GitHub workflow and GITHUB_TOKEN.

  • The documented triggers are issue_comment and pull_request_review.
  • The required GITHUB_TOKEN is passed through the workflow; GitHub automatically creates the token for workflow use.
  • The optional toxicity_threshold accepts a value from 0 to 1 and defaults to 0.9.
  • The optional message input customizes the automatic comment.
  • The README says a run can take up to 40 seconds.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Add toxicity screening to a GitHub Actions workflow

Configure the action to check issue and pull-request comments and pull-request reviews.

Before you start

  • A GitHub repository with GitHub Actions enabled.
  • A workflow YAML file in the repository's .github/workflows folder.
  • The workflow's GITHUB_TOKEN secret; GitHub automatically creates this token for workflow use.

Steps

  1. If the repository has no workflow yet, create a .github/workflows folder.

  2. Create a workflow YAML file and set its events to issue_comment and pull_request_review.

  3. Add a job running on ubuntu-latest, check out the repository, and add charliegerard/safe-space@master as an action step.

  4. Pass GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} to the action.

  5. Optionally set message for the automatic comment and toxicity_threshold to a value from 0 to 1; its documented default is 0.9.

Expected outcome

The workflow runs Safe Space on the documented issue and pull-request comment and review events, using the TensorFlow.js toxicity classifier.

Guide limitations

  • The README says an action run can take up to 40 seconds, so the bot response may not appear immediately.
  • The documentation describes potential-toxicity detection, not a guarantee that all harmful or benign text will be classified correctly.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
13 November 2026
Original website title
charliegerard/safe-space · Official homepage title · retained in its source language