SCANUE v22 is a brain-inspired, multi-agent CLI that orchestrates specialized “PFC region” agents using LangGraph. It focuses on decomposing a task (DLPFC) and then conditionally invoking only the necessary specialist agents (VMPFC/OFC/ACC) before final integration (MPFC).
This repository was previously referred to as SCANJS, a deprecated project by another developer. To reflect the enhancements introduced—such as human-in-the-loop (HITL) mechanisms and customized fine-tuned models—the project has been rebranded as SCANUE-V22.
For clarity:
- Instances of "SCANJS" in older documentation or code refer to pre-rebranding materials
- The current version reflects multiple iterations leading to this enhanced release
- DLPFC Agent: Task delegation and executive control
- VMPFC Agent: Emotional regulation and risk assessment
- OFC Agent: Reward processing and outcome evaluation
- ACC Agent: Conflict detection and error monitoring
- MPFC Agent: Value-based decision-making
- Python: 3.8+
- An LLM provider: OpenAI, Ollama (local), or HuggingFace (endpoint/TGI)
- Environment variables (only if needed by your provider):
- OpenAI:
OPENAI_API_KEY - HuggingFace:
HUGGINGFACEHUB_API_TOKEN - Legacy fallback model names (optional):
DLPFC_MODEL,VMPFC_MODEL,OFC_MODEL,ACC_MODEL,MPFC_MODEL
- OpenAI:
-
Clone the repository:
git clone https://github.com/iLevyTate/scanue-v22.git cd scanue-v22 -
Install dependencies:
pip install -r requirements.txt
-
(Optional) Set up environment variables in a
.envfile (recommended) -
Run the application:
python main.py
The primary configuration is config/agents.yaml. Each agent can use a different provider/model:
- Ollama (local): set
provider: "ollama"and (optionally)base_url(default ishttp://localhost:11434) - OpenAI: set
provider: "openai"and either setOPENAI_API_KEYor putapi_key:in the YAML - HuggingFace: set
provider: "huggingface"and either setHUGGINGFACEHUB_API_TOKENor putapi_key:in the YAML
See docs/local_models.md for examples and recommendations.
- User inputs a task or problem
- DLPFC Agent: Breaks down the task and delegates which specialist agents are needed
- Specialized agents run (only if delegated):
- VMPFC: Emotional regulation
- OFC: Reward processing
- ACC: Conflict detection
- MPFC: Integrates all prior insights into the final response
- (Optional) User provides feedback (persisted to
feedback_history.json)
Run the test suite:
pytest tests/Key modules:
main.py: CLI entrypoint, feedback persistence, session loggingworkflow.py: LangGraph workflow graph (stages + dynamic delegation)agents/: agent implementations and provider/model factoryconfig/agents.yaml: per-agent model/provider configurationfeedback_history.json: persistent Human-in-the-Loop (HITL) feedbacklogs/: per-run session logs
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
- Thanks to all contributors who have helped shape SCANUE-V22
- Special thanks to the cognitive science community for their research and insights

