AI Decision System
Replayable, offline-verifiable records for AI-assisted go/no-go decisions: experiment promotions, typed model answers and human-approved actions.
翻譯準備中
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證S‑AI v5.1 — 多代理群體智慧,具備 MCP Builder、Skill Creator、Neural Mapping,以及超過 20 家 AI 供應商。
AI 翻譯
S-AI v5.1 — Multi-Agent Swarm Intelligence with MCP Builder, Skill Creator, Neural Mapping, and 20+ AI providers
取自儲存庫 README
正在載入完整 README。 以下為已儲存的摘錄。
S-AI — Artificial Mind · Integrated OpenWorker
S-AI is an Artificial Mind — a self-hosted, intelligence-first coworker that reasons across a multi-agent swarm, thinks and acts through a policy-gated execution layer, and ships as an Integrated OpenWorker harness with desktop installers, scheduled jobs, reach channels, a credentials vault, and simulated-organoid intelligence (SOI).檢視完整 README ↗Published:
@saikarun/s-ai| License: MIT | Platform: Node.js >= 18 | Module: ESM (TypeScript)
S-AI is an Artificial Mind — a self-hosted, intelligence-first coworker that reasons across a multi-agent swarm, thinks and acts through a policy-gated execution layer, and ships as an Integrated OpenWorker harness with desktop installers, scheduled jobs, reach channels, a credentials vault, and simulated-organoid intelligence (SOI).
The system fuses execution layer (risk-rated tool execution with approval gates), neural mapping (Digital Twin persona adaptation), SOI (Simulated Organoid Intelligence) for memory consolidation, MCP Builder (resource-efficient template-based MCP server creation), Skill Creator (customizable modular skill composition), Research Mapper (Paperscape-style arXiv visualization), Study Buddy (AI tutoring with gamified learning), Bhashini multilingual AI, crawl4ai web scraping, MCP integration, knowledge graph, and bias-reduced consensus.
v6.1 Security: Hardened for production — SSRF protection, filesystem & shell sandboxing, bearer-token auth, rate limiting, and a secure registry-bound execution engine, all covered by CI (gitleaks, OSV-Scanner, govulncheck, Semgrep, npm audit) and automated dependency updates via Dependabot.
v6.0 New: The swarm now thinks and acts — it produces execution plans with risk-rated actions that go through approval gates before execution. S-AI evolves from a reasoning engine into a full-fledged autonomous assistant.
No advanced hardware required — runs on any device with a browser or Node.js. Zero inference cost with OpenRouter free models. Your data stays on your device.
Agentic frameworks give models tools but rarely give users control or
explainability over tool execution. Users of autonomous assistants need a
system that reasons from multiple perspectives (not a single model opinion),
exposes every planned action with a risk rating and an explicit approval
gate, and runs locally so keys and private data never leave the device. S-AI
addresses each in one package: bias-reduced consensus from a 6-7 agent swarm,
a policy-gated execution layer (allow / deny / require-approval), and a
natively installable, local-first OpenWorker harness.
Code and documentation were drafted with generative-AI assistance and reviewed by the human maintainer, who made the design decisions. This disclosure is kept in line with the JOSS AI usage policy.
S-AI is built as an Artificial Mind — a cohesive intelligence that combines many cognitive faculties rather than a single chat wrapper. It ships as an Integrated OpenWorker: a self-hosted "AI coworker" that installs natively and works for you on your own hardware.
| Capability | OpenWorker delivers |
|---|---|
| Swarm Reasoning | 6–7 agent swarm with bias-reduced consensus reaches balanced, multi-perspective conclusions |
| Synthetic Executive | Plans then acts — risk-rated actions pass through approval gates before executing real tools |
| Simulated Organoid Intelligence (SOI) | Bio-inspired, simulated neural memory & consensus modulation (software-only, no hardware) |
| Desktop Coworker | Native installers for Windows (EXE/MSI), macOS (DMG), Linux, Android, and PWA |
| Scheduled Jobs & Automations | openworker daemon runs recurring worker jobs and cron-style automations |
| Reach Channels | Web, YouTube, GitHub, RSS, arXiv — with doctor health checks per channel |
| Credentials Vault | Secrets stored encrypted and injected only where needed |
| Memory Graph | Persistent knowledge graph + neural persona (Digital Twin) adaptation |
| Local-First | Keys and data never leave your device except to the AI providers you choose |
openworker chat # Start a worker session with the swarm
openworker run "job" # Run a one-off worker job
openworker jobs # Manage scheduled automated jobs
openworker policy show # Inspect tool-use policy (allow / deny / require-approval)
openworker vault # Manage encrypted credentials
openworker reach # Configure and health-check reach channels
openworker soi # Inspect the simulated organoid intelligence state
openworker daemon # Run the resident worker service
The full OpenWorker harness lives in suite/ and integrates directly with the S-AI engine core.
| Platform | Architecture | Min RAM | Install Method | Status |
|---|---|---|---|---|
| Windows | x64 | 2 GB | Standalone .exe / MSI Installer / npm | ✅ |
| Windows | ARM64 | 2 GB | npm / standalone .exe | ✅ |
| macOS | Intel (x64) | 2 GB | Standalone binary / npm | ✅ |
| macOS | Apple Silicon (ARM64) | 2 GB | Standalone binary / npm | ✅ |
| Linux | x64 | 2 GB | Standalone binary / npm / Docker | ✅ |
| Linux | ARM64 | 2 GB | Standalone binary / npm | ✅ |
| Linux | ARMv7 (RPi 3/4/5) | 2 GB | npm | ✅ |
| Android | ARM64 | 2 GB | APK / Termux / PWA | ✅ |
| Docker | x64 / ARM64 |
The recommended installation method. Works on Windows, macOS, Linux, and Android (Termux).
# Global install (recommended)
npm install -g @saikarun/s-ai@latest
# Or run directly without installing
npx @saikarun/s-ai ask "What are the pros and cons of microservices?"
# First-time setup
s-ai setup # Interactive setup wizard — configure providers, API keys, preferences
s-ai serve # Start web dashboard at http://localhost:3000
No Node.js required. Download the single-file executable:
# Download from GitHub Releases
# https://github.com/karun99/s-ai/releases/latest
# Or build from source
npm run build:exe
# Output: build/dist/s-ai.exe
Full Windows Installer with Start Menu shortcuts, PATH setup, and uninstall support:
# Build the MSI (requires WiX Toolset)
npm run build:msi
# Output: build/dist/s-ai-setup.msi
Standalone binary for Intel and Apple Silicon:
# Build from source
npm run build:exe
# Output: build/dist/s-ai-macos (Intel) or s-ai-macos-arm64 (Apple Silicon)
# Or use npm
npm install -g @saikarun/s-ai@latest
Standalone binary or package manager:
# Standalone binary
npm run build:exe
# Output: build/dist/s-ai-linux (x64) or s-ai-linux-arm64 (ARM64)
# Or use npm
npm install -g @saikarun/s-ai@latest
# Make executable
chmod +x build/dist/s-ai-linux
./build/dist/s-ai-linux ask "Hello"
npm install -g @saikarun/s-ai@latest
# Or build standalone binary
npm run build:exe
# Output: build/dist/s-ai-linux-arm64
# Quick start
cp .env.example .env # add your API keys
docker compose up -d --build
# Dashboard: http://localhost:3000
# Or build manually
docker build -t s-ai .
docker run -p 3000:3000 --env-file .env s-ai
Native Android app package:
# Build APK (requires Android SDK)
npm run build:apk
# Output: build/dist/s-ai.apk
# Install on device
adb install build/dist/s-ai.apk
Full CLI experience on Android via Termux terminal:
# Install Termux from F-Droid (not Play Store)
pkg install nodejs
npm install -g @saikarun/s-ai@latest
s-ai setup
s-ai serve
Install the dashboard as a home-screen app from any Android browser:
http://<your-device-ip>:3000 in ChromeThe dashboard is a Progressive Web App. Install it from any modern browser:
git clone https://github.com/karun99/s-ai.git
cd s-ai
npm install # postinstall builds dist/ automatically
Optimized for Raspberry Pi 3, 4, and 5:
# On Raspberry Pi OS
sudo apt install nodejs npm
npm install -g @saikarun/s-ai@latest
s-ai setup
s-ai serve
# docker-compose.yml (included in repo)
services:
s-ai:
build: .
ports:
- "3000:3000"
env_file: .env
volumes:
- ~/.openworker:/root/.openworker
restart: unless-stopped
| Feature | Status |
|---|---|
| Integrated OpenWorker harness (daemon, jobs, reach, vault, policy) | New in 6.1 |
| Security hardening (SSRF, sandboxing, auth, rate limit, secure executor) | New in 6.1 |
| Security CI (gitleaks, OSV-Scanner, govulncheck, Semgrep, npm audit) | New in 6.1 |
| Dependabot across all sub-projects & ecosystems | New in 6.1 |
| 6-agent swarm with bias-reduced consensus | Done |
| Execution Layer (policy-gated tool execution) | New in 6.0 |
| 7-agent swarm (added Action Planner) | New in 6.0 |
| Tool Registry (15+ tools with risk levels) | New in 6.0 |
| Execution Engine (plan → approve → execute → audit) | New in 6.0 |
| Daemon mode (headless service with scheduled jobs) | New in 6.0 |
| Audit log (JSONL audit trail for all actions) | New in 6.0 |
| Neural mapping (Digital Twin persona) | Done |
| 20+ AI provider support | Done |
| crawl4ai web scraping | Done |
| MCP server + client integration | Done |
| Knowledge graph persistence | Done |
| AI Engine (prompt-to-app builder) | Done |
| Web dashboard with 4 themes | Done |
| MCP Builder (resource-efficient templates) | New in 5.1 |
| Skill Creator (customizable modular skills) | New in 5.1 |
| Research Mapper (Paperscape-style arXiv citation graph) | New in 5.1 |
| Study Buddy (AI tutoring, quizzes, multi-mode mentoring) |
Resource-efficient MCP server creation with pre-built templates. Each template is optimized for minimal memory footprint — ideal for edge devices, mobile, and low-resource environments.
# List available templates
s-ai engine mcp "list templates"
# Build from a template
s-ai engine mcp "Build a web search MCP server"
# Build from natural language
s-ai engine mcp "MCP server for bird call identification with 3 tools"
| Template | Tools | Memory | Use Case |
|---|---|---|---|
data-api | 5 | 8KB | CRUD operations on structured data |
web-search | 3 | 4KB | Web search and content extraction |
file-system | 4 | 2KB | Safe file operations with sandboxing |
ai-proxy | 3 | 16KB | Multi-provider AI proxy |
knowledge-base | 4 | 32KB | RAG-style document management |
import { getMcpBuilder } from '@saikarun/s-ai';
const builder = getMcpBuilder({ lightweight: true });
// Build from template with customizations
const code = builder.buildFromTemplate('web-search', {
name: 'my-search-server',
removeTools: ['summarize'],
addTools: [{ name: 'news', description: 'Search news', parameters: {} }],
});
// Memory-efficient — 4KB footprint
console.log(builder.getMemoryEstimate('web-search')); // 4096
// Build minimal server
const minimal = builder.buildMinimal('ping', [
{ name: 'ping', description: 'Health check', parameters: {} },
]);
GET /api/mcp-builder/templates — List all templates with memory estimates
POST /api/mcp-builder/build — Build MCP server from template or prompt
Customizable skill creation with modular composition. Skills can be created from templates, customized with additional tools, and hot-plugged into running swarms.
# List skill templates
s-ai engine skill "list templates"
# Create from template
s-ai engine skill "Build a data pipeline skill with extract, transform, load"
# Create from natural language
s-ai engine skill "Code review assistant with generate, review, refactor, explain"
| Template | Tools | Memory | Use Case |
|---|---|---|---|
api-wrapper | 2 | 4KB | REST API wrapper with auth |
data-pipeline | 4 | 8KB | ETL pipeline operations |
chat-agent | 4 | 12KB | Customizable chat with persona & memory |
code-assistant | 4 | 8KB | Code generation, review, refactoring |
notification-hub | 2 | 4KB | Multi-channel notifications |
import { getSkillCreator } from '@saikarun/s-ai';
const creator = getSkillCreator({ lightweight: true });
// Build from template
const skill = creator.buildFromTemplate('chat-agent', {
name: 'ornith-assistant',
description: 'Ornithology research assistant',
addTools: [{
name: 'identify_species',
description: 'Identify bird species from description',
inputSchema: { description: { type: 'string' } },
handler: 'async ({ description }) => { ... }',
}],
});
// Save to disk
creator.saveSkill('ornith-assistant', skill.skillJson, skill.indexCode);
// Memory estimate: 12KB
console.log(creator.getMemoryEstimate('chat-agent')); // 12288
GET /api/skill-creator/templates — List all templates with memory estimates
POST /api/skill-creator/build — Build skill from template or prompt
AI-powered tutoring system with gamified learning, quiz generation, and multi-mode mentoring. The Study Buddy evolves as you learn — from "Dunce Twin" (Lv. 1) to "Royal Scholar" (Lv. 50).
| Mode | Description |
|---|---|
| Teach the Bot | Teach AI by answering quiz questions. Earn XP, level up, and evolve your avatar. |
| Study Mentor | Get help with homework, explanations, career guidance, resume review, references, or project pitches. |
| Summary | Export your session as PDF, PPTX, or audio. |
| Sub-Mode | Use Case |
|---|---|
| Homework | Step-by-step homework help |
| Explain | Topic breakdown with analogies |
| Career | Career path guidance |
| Resume | Resume review and improvement |
| References | APA/MLA/Chicago citation formatting |
| Pitch | Project pitch deck generation |
generate_quiz — Generate a quiz question from a knowledge base
check_answer — Check if a user answer is correct
get_evolution — Get the current study buddy evolution stage
format_references — Format academic references in APA/MLA/Chicago
generate_pitch — Generate a structured project pitch
Access the Study Buddy at http://localhost:3000/study-buddy.html after starting the dashboard.
Paperscape-style arXiv research paper search, citation graph visualization, and swarm analysis. Search papers, build citation networks, and analyze research trends interactively.
search_papers — Search arXiv for papers by query, category, or author
build_graph — Build a citation graph from arXiv paper IDs
get_paper — Fetch detailed paper information by arXiv ID
list_categories — List popular arXiv research categories
Access the Research Mapper at http://localhost:3000/research-mapper.html after starting the dashboard.
import { searchArxiv, buildCitationGraph } from '@saikarun/s-ai/arxiv';
const result = await searchArxiv('cat:cs.AI AND transformer', 0, 25);
const graph = buildCitationGraph(result.papers);
console.log(`${graph.nodes.length} papers, ${graph.edges.length} citation links`);
S-AI can be built as a standalone executable for every major platform. See build/ for full documentation.
| Platform | Artifact | Command |
|---|---|---|
| Windows x64 | s-ai.exe | npm run build:exe |
| Windows x64 | s-ai-setup.msi | npm run build:msi |
| Linux x64 | s-ai-linux | npm run build:exe |
| Linux ARM64 | s-ai-linux-arm64 | npm run build:exe |
| macOS x64 | s-ai-macos | npm run build:exe |
| macOS ARM64 | s-ai-macos-arm64 | npm run build:exe |
| Android | s-ai.apk | npm run build:apk |
| Docker | s-ai:latest | npm run build:docker |
npm run build:all # Build everything (requires toolchains)
bash build/scripts/build-exe.sh # Just executables
bash build/scripts/build-apk.sh # Just Android APK
bash build/scripts/build-docker.sh # Just Docker
GitHub Actions (.github/workflows/build.yml) automatically builds all platforms on push to main or version tags. Releases are created with all artifacts attached.
Ornith 1.5 demonstrates S-AI deployed across 12 field stations in the Western Ghats for real-time avian ecology monitoring. Key results:
Read the full case study: docs/case-study-ornith-1.5.md
Core: s-ai ask | setup | serve | daemon | status | help
Execution: s-ai tools | plan | execute | approve | deny | audit
Neural: s-ai persona set | show | clear | node | profiles
Swarm: s-ai swarm status | reset | agents
Graph: s-ai graph query | stats | store
Research: s-ai research search | map | graph
Bhashini: s-ai bhashini translate | status | pipelines
Web: s-ai crawl | search
MCP: s-ai mcp serve | tools | servers
Providers: s-ai provider list | set | test | models | model
Skills: s-ai skill list | install | remove
AI Engine: s-ai engine build | skill | mcp | swarm | list | ui
Config: s-ai config | get | set | init | setup
OpenRouter (100+ models), OpenAI, Anthropic, Google AI, Ollama (local), Nvidia, Cohere, Grok (xAI), Kimi, Pi, Together AI, Fireworks AI, AWS Bedrock, Claude on AWS, Vertex AI, Azure Foundry, KoboldCPP, Oobabooga, MLC LLM, OpenAI-Compatible, Bhashini (multilingual).
import { Swarm, NeuralMap, getNeuralMap, ExecutionEngine, listToolMeta, searchArxiv, buildCitationGraph, getBhashiniProvider } from '@saikarun/s-ai';
// Neural mapping
const neuralMap = getNeuralMap();
neuralMap.setProfile({ name: 'Alice', bio: 'Senior architect' });
// Swarm with execution planning
const swarm = new Swarm();
swarm.setPersonaContext(neuralMap.buildPersonaContext());
const result = await swarm.run('Should we use microservices?');
console.log(result.executionPlan); // Actions proposed by the swarm
// Execution Engine
const execEngine = new ExecutionEngine({ autoApproveLowRisk: true });
const plan = execEngine.createPlan(
[{ tool: 'readFile', params: { path: '/tmp/data.json' }, reason: 'Load data' }],
'Read data file', 0.9, 2, 1500
);
const report = await execEngine.executePlan(plan, async (tool, params) => {
return await runTool(tool, params);
});
// Tool Registry
const tools = listToolMeta();
tools.forEach(t => console.log(`${t.name}: ${t.riskLevel} (${t.category})`));
// Research Mapper
const arxivResult = await searchArxiv('quantum machine learning', 0, 10);
const graph = buildCitationGraph(arxivResult.papers);
// Bhashini translation
const bhashini = getBhashiniProvider();
const translated = await bhashini.translate('Hello', 'en', 'hi');
// MCP Builder (resource-efficient)
import { getMcpBuilder } from '@saikarun/s-ai';
const mcpBuilder = getMcpBuilder({ lightweight: true });
const serverCode = mcpBuilder.buildFromTemplate('web-search', { name: 'my-search' });
// Skill Creator (customizable)
import { getSkillCreator } from '@saikarun/s-ai';
const skillCreator = getSkillCreator({ lightweight: true });
const skill = skillCreator.buildFromTemplate('chat-agent', { name: 'my-agent' });
// Core
import { Swarm } from '@saikarun/s-ai/swarm';
import { Agent } from '@saikarun/s-ai/agent';
import { NeuralMap, getNeuralMap } from '@saikarun/s-ai/neural';
import { getConfig } from '@saikarun/s-ai/config';
import { createProvider } from '@saikarun/s-ai/providers';
import { KnowledgeGraph } from '@saikarun/s-ai/graph';
import { CrawlEngine } from '@saikarun/s-ai/crawl';
import { createSwarmMcpServer } from '@saikarun/s-ai/mcp';
import { getMcpClientManager } from '@saikarun/s-ai/mcp/client';
// Execution Layer (v6.0)
import { ExecutionEngine } from '@saikarun/s-ai/execution';
import { getToolMeta, listToolMeta, getToolsByRisk } from '@saikarun/s-ai/execution/registry';
import type { ActionProposal, ExecutionPlan, RiskLevel } from '@saikarun/s-ai/execution/types';
// Research Mapper (v5.1)
import { searchArxiv, buildCitationGraph } from '@saikarun/s-ai/arxiv';
// Bhashini Multilingual AI (v5.1)
import { getBhashiniProvider, BhashiniProvider } from '@saikarun/s-ai/bhashini';
import { getBhashiniTools } from '@saikarun/s-ai/bhashini/tools';
OPENROUTER_API_KEY | OPENAI_API_KEY | ANTHROPIC_API_KEY | GOOGLE_API_KEY | OLLAMA_BASE_URL | NVIDIA_API_KEY | AWS_BEDROCK_REGION | AWS_ACCESS_KEY_ID | AWS_SECRET_ACCESS_KEY | AWS_SESSION_TOKEN | CLAUDE_AWS_API_KEY | VERTEX_AI_PROJECT_ID | VERTEX_AI_REGION | VERTEX_AI_ACCESS_TOKEN | FOUNDRY_RESOURCE | FOUNDRY_API_KEY | TOGETHER_API_KEY | FIREWORKS_API_KEY | COHERE_API_KEY | GROK_API_KEY | KIMI_API_KEY | PI_API_KEY | OPENAI_COMPATIBLE_BASE_URL | OPENAI_COMPATIBLE_API_KEY | SAI_PRIMARY_PROVIDER | BHASHINI_API_KEY | BHASHINI_USER_ID | BHASHINI_PIPELINE_ID
MIT — Copyright (c) 2026 Sai Karun Nandipati
See LICENSE for the full text.
| 2 GB |
| Docker Compose |
| ✅ |
| Raspberry Pi | ARM64 / ARMv7 | 2 GB | npm / standalone binary | ✅ |
| Chrome OS | x64 / ARM64 | 2 GB | Linux (Crostini) / PWA | ✅ |
| Any browser | any | — | PWA (home-screen install) | ✅ |
| New in 5.1 |
| Bhashini Multilingual AI (translation, TTS, ASR) | New in 5.1 |
| AI Studio (video generation) | New |
| Approval Modal (policy-gated tool approval in dashboard) | New in 5.1 |
| Multi-platform builds (Windows, macOS, Linux, Android, Docker) | New in 5.1 |