Add toxicity analysis system for Mastodon statuses
Implements comprehensive toxicity analysis following the Bluesky collector architecture:
- Analyzer module with async batch processing using GPT-4o-mini
- Database schema for toxicity scores and analysis run tracking
- 12 toxicity categories (toxic, threat, hate_speech, racism, antisemitism, islamophobia, sexism, homophobia, insult, dehumanization, extremism, ableism)
- Web interface routes for analysis dashboard and flagged content review
- Manual review API endpoint for human validation
- Analysis helper functions for database queries
- Dutch language support with coded political term recognition
Usage:
docker exec mastodon-collector-collector-1 python -m app.analyzer
See TOXICITY_ANALYSIS.md for full documentation.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-30 14:43:35 +02:00
|
|
|
{
|
|
|
|
|
"permissions": {
|
|
|
|
|
"allow": [
|
|
|
|
|
"Bash(git push:*)",
|
|
|
|
|
"Read(//tmp/bluesky-collector/**)",
|
2026-03-30 15:39:36 +02:00
|
|
|
"Bash(mkdir -p \"/Users/pieter/Nextcloud-Hetzner/PXS Cloud/Projects/26004 HEIO 2/04 Applications/mastodon-collector/app/analyzer\")",
|
|
|
|
|
"Bash(docker-compose build)",
|
|
|
|
|
"Bash(docker compose build)",
|
|
|
|
|
"Bash(docker compose up -d)",
|
|
|
|
|
"Bash(docker exec mastodon-collector-collector-1 bash -c \"ANALYZER_LIMIT=100 python -m app.analyzer\")",
|
|
|
|
|
"Bash(docker compose build collector)",
|
2026-03-30 17:07:12 +02:00
|
|
|
"Bash(docker compose up -d collector)",
|
|
|
|
|
"Bash(docker compose build web)",
|
|
|
|
|
"Bash(docker compose up -d web)",
|
|
|
|
|
"Bash(curl -s -o /dev/null -w \"%{http_code}\" http://localhost:8585/analysis)",
|
|
|
|
|
"Bash(docker logs mastodon-collector-web-1 --tail 30)"
|
Add toxicity analysis system for Mastodon statuses
Implements comprehensive toxicity analysis following the Bluesky collector architecture:
- Analyzer module with async batch processing using GPT-4o-mini
- Database schema for toxicity scores and analysis run tracking
- 12 toxicity categories (toxic, threat, hate_speech, racism, antisemitism, islamophobia, sexism, homophobia, insult, dehumanization, extremism, ableism)
- Web interface routes for analysis dashboard and flagged content review
- Manual review API endpoint for human validation
- Analysis helper functions for database queries
- Dutch language support with coded political term recognition
Usage:
docker exec mastodon-collector-collector-1 python -m app.analyzer
See TOXICITY_ANALYSIS.md for full documentation.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-30 14:43:35 +02:00
|
|
|
],
|
|
|
|
|
"deny": [],
|
|
|
|
|
"ask": []
|
|
|
|
|
}
|
|
|
|
|
}
|