Add two_brains - AI agent with dual safety critic#877
Open
kholovmasrur2007-netizen wants to merge 1 commit intoe2b-dev:mainfrom
Open
Add two_brains - AI agent with dual safety critic#877kholovmasrur2007-netizen wants to merge 1 commit intoe2b-dev:mainfrom
kholovmasrur2007-netizen wants to merge 1 commit intoe2b-dev:mainfrom
Conversation
3-brain AI agent (planner -> critic -> executor) with a deterministic regex-driven SafetyCritic. The combined score is min(both), so even a confident correctness pass cannot let rm -rf, sudo, chmod 777, curl|wget, subprocess, or sandbox traversal through. Below the 85-point bar the executor refuses to run. Per-user sandbox with parametrised traversal tests, 300 s wall-clock timeout, disk-space pre-flight, WebSocket per-IP rate limit, JWT auth, daily quotas, audit log, Prometheus metrics. Web UI streams every pipeline phase live; Telegram bot included. 238 tests, CI green on Python 3.11 + 3.12, MIT. Repo: https://github.com/kholovmasrur2007-netizen/two_brains Release: https://github.com/kholovmasrur2007-netizen/two_brains/releases/tag/v3.0.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this adds
Adds
two_brainsto the Open-source projects section, alphabetically between Teenage AGI and UFO.What it is
two_brainsis an open-source 3-brain AI agent (planner → critic → executor). The interesting bit is the dual critic: a deterministic regex-drivenSafetyCriticruns alongside the LLM critic, and the combined score ismin(both). Even if the model is 100% confident the plan is fine, the safety critic can drag it under the 85-point execution bar — sorm -rf,sudo,chmod 777,curl | wget, sandbox-traversal, fuzzy success criteria, and writes-without-declared-risks all get blocked before the executor ever touches the disk.Other safety primitives:
/etc/passwd,C:/Windows,..\escape, multi-level escapes)write_fileStats
curl -fsSL https://raw.githubusercontent.com/kholovmasrur2007-netizen/two_brains/main/install.sh | bashHappy to amend the entry if you'd like a different category, shorter description, or a different placement in the list.