Skip to content
SocksharePublic

About

Zero-dependency 11-page 4-Provider Agentic IDE (Ollama, Gemini, Claude, OpenAI) with embedded SkillForge Studio, 41 deterministic auditors, closed-loop AI patching, Local RAG, workflows, MCP inspector & Red & Blue Guardrails Lab (60 Offensive + 12 Benign)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

AiLabs — 2-in-1 Agentic IDE, Embedded SkillForge AI Studio, 41 Deterministic Auditors & Local Ollama AI Guardrails Lab

License: MIT Python 3.10+ Providers: Ollama | Gemini | Claude | OpenAI

AiLabs is a clean-room, zero-dependency, full-stack 2-in-1 Agentic Coding IDE + Embedded SkillForge AI Studio + Defensive Engineering & Security Workbench (http://127.0.0.1:8120) and CLI runtime (cli.py + ./bin/agentapi) designed for developers, AppSec/Blue Team engineers, and multi-team organizations.

Clone one repo, start one zero-dependency Python server (./run.sh), and navigate cleanly across 12 dedicated pages from a single sleek top navigation bar:

  1. / (Prompting) — Calm, centered LLM conversation canvas with live SSE token + tool-call streaming (tool_start/tool_result cards + colorized inline file diffs), Stop, ▶ Run direct execution on Python/Bash code blocks, drag-and-drop .pdf, .docx, .xlsx, .zip, code & image (vision) attachments, Personas, Edit & Resend / Regenerate, auto-titled chats, .md export, 📚 Docs Local RAG toggle, and 🌐 Web toggle.
  2. /skills (Skills) — App-store-style gallery showcasing 43 Built-in Skills (41 Deterministic Auditors) AND Your Created Skills, with slide-over inspector, Import (.zip / SKILL.md / raw URL), Export (.zip), Delete Custom Skill, and 1-click jump to run audits.
  3. /audits (Audits) — Single-Skill & Parallel Batch Suite Runner across all 41 built-in deterministic auditors (--verify-determinism SHA-256 verification, 0–100 Posture Score) + Closed-Loop ✨ Fix with AI (generate surgical AI patch → unified diff preview → apply with 1-click Undo → deterministic re-scan verification).
  4. /automations (Automations) — Chainable Multi-Step Workflow Pipelines (security_audit → shell_command → knowledge_search → llm_step with live SSE progress & .md export) + Scheduled Background Jobs & Monitors (Run Now, Pause/Resume, recurring intervals, live logs, pass/fail history).
  5. /builder (Skill Builder) — Native 3-mode wizard: Quick Markdown Skill Creator, Embedded SkillForge App & Preset Compiler (with 3× SHA-256 verification & .zip download), and Multi-Skill Orchestrator & Trigger Optimizer.
  6. /arena (Arena) — Side-by-side Model Arena comparing any two provider/model pairs on the same prompt with wall-clock latency, tokens/sec, word count, rendered Markdown, and a live winner scoreboard.
  7. /knowledge (Knowledge) — 100% local RAG Knowledge Base powered by Ollama nomic-embed-text embeddings (with pure-Python lexical fallback), featuring zero-dependency parsing for .pdf, .docx, .xlsx, .zip, Markdown/code files, and local folders.
  8. /guardrails (Guardrails Lab) — Dedicated Local Ollama defensive OWASP LLM Top 10 & Agentic testing bench comparing Unprotected Raw Ollama vs. a 4-Layer Hardened Defense Pipeline side-by-side.
  9. /railtester (RailTester) — Iterative Request-to-Prompt workbench across all open-source (Ollama) and closed-source (Gemini, Claude, OpenAI) LLMs: transforms raw requests into crisp, sophisticated prompts (strict ≤100-word cap) with 5 auto-rotating prompt-engineering strategies, live SSE streaming progress bar (elapsed timer, live word/sec counter, Cancel), automatic anti-echo refinement, 👍 Thumbs Up permanent (request, prompt) library + .md/.json export, and 👎 Thumbs Down automatic retry cycles.
  10. /workspace (Workspace) — Dedicated Code Editor + File Tree, Interactive Live Streaming Terminal (SSE stdout/stderr, Kill switch, command history, PreToolUse safety guard), Live HTTP / API Endpoint & Passive Security Header Tester (A–F grade), and Session Artifacts / JSONL Transcripts inspector.
  11. /docs (Docs) — Clean chapter-by-chapter Documentation Portal with Previous/Next navigation and Live System Status.
  12. /settings (Settings) — AI Providers & Keys, Ollama RAM & Model Manager (resident RAM, Unload RAM, Warm Load, Pull Model SSE, Delete), Model Tiers, Live MCP Server Manager & Interactive Tool Tester, and Interactive Project Rules (AGENTS.md / .ailabs/rules/*.md) & Custom PreToolUse Hooks Editor.

1. Four-Provider Model House & Smart Tier Routing

Switch live in the composer or via /settings (POST /api/providers) between all four model houses with unified native tool-calling, thinking-trace capture, and pro / flash / flash_lite model tiering:

Provider ID Model House Environment Variable / Setup Default Tier Mapping (pro / flash / flash_lite)
ollama Local Ollama (http://127.0.0.1:11434) Auto-discovers every installed model via /api/tags Auto-mapped to top installed coder & fast local models
google Google API Models (Gemini) GEMINI_API_KEY or GOOGLE_API_KEY gemini-2.5-pro / gemini-2.5-flash / gemini-2.5-flash-lite
claude Anthropic Claude API ANTHROPIC_API_KEY claude-sonnet-4-20250514 / claude-3-7-sonnet-latest / claude-3-5-haiku-latest
openai OpenAI API OPENAI_API_KEY gpt-4.1 / gpt-4o-mini / gpt-4o-mini

2. Embedded SkillForge AI Engine (2-in-1 Native Mount)

AiLabs natively mounts the full SkillForge AI engine (skillforge/, ailabs/skillforge_mount.py, skillforge_mcp_server.py) inside /builder (and classic /skillforge-studio) on port 8120 with zero route collisions:

  • Create Skill (Markdown): Author lightweight SKILL.md, rules, and subagents directly into Personal, Team Shared, Project, or Global scope.
  • App & Preset Compiler: Compile enterprise presets or scan local applications into standalone SKILL.md + scripts/engine.py + mcp_server.py + schema.json bundles with 3× SHA-256 verification and .zip download.
  • Orchestrator & Optimizer: Run multi-stage pipelines and optimize trigger descriptions across a 60/40 train/test split.

3. Built-in Deterministic Security, Engineering & AI Auditor Suite (41 Auditors / 43 Skills)

Every fresh clone of AiLabs ships with 43 built-in progressive-disclosure skills in builtin/skills/ (ailabs-customizations, skill-builder, plus 41 clean-room deterministic auditors, each with SKILL.md and a zero-dependency executable scripts/audit.py with --verify-determinism SHA-256 verification):

  • Application Security & SAST (8): owasp-top10-code-auditor, secrets-and-credential-scanner, auth-and-jwt-security-reviewer, api-security-owasp-auditor, crypto-hygiene-auditor, threat-model-stride-architect, web-headers-and-tls-posture-auditor, mobile-and-electron-security-auditor
  • Cloud Security, Kubernetes & IaC (5): aws-iam-least-privilege-auditor, k8s-zero-trust-network-verifier, terraform-iac-security-scanner, dockerfile-and-container-hardener, gcp-iam-and-vpcsc-auditor
  • Supply Chain & CI/CD Security (4): cicd-github-actions-hardener, sbom-and-cve-dependency-triage, slsa-artifact-attestation-verifier, oss-license-and-supply-chain-auditor
  • SOC, Threat Hunting & Incident Response (6): siem-log-and-ioc-hunter, mitre-attack-mapper, sigma-and-yara-rule-author, phishing-and-email-header-analyzer, incident-response-playbook-runner, pcap-and-network-triage
  • AI, Data & Agentic Security (5): agent-skill-and-mcp-security-auditor, llm-prompt-injection-redteam-tester, rag-access-control-and-pii-auditor, dataset-quality-and-pii-leakage-auditor, prompt-and-tool-schema-auditor
  • Code Quality & Software Engineering (5): dead-code-and-complexity-auditor, performance-and-memory-hotspot-auditor, sql-and-schema-migration-auditor, test-coverage-and-flaky-test-auditor, repo-release-readiness-auditor
  • InfoSec GRC, Identity Governance & Privacy (8): soc2-continuous-control-monitor, gdpr-pii-dataflow-lineage-scanner, nist-csf-and-800-53-mapper, iso27001-and-cis-benchmark-auditor, uar-access-group-auditor, zero-standing-privilege-checker, vuln-sla-and-7gate-validator, compliance-master-orchestrator

4. Red & Blue AI Guardrails Lab (Local Ollama Sandbox)

Dedicated /guardrails page powered by local Ollama models (http://127.0.0.1:11434) pairing Offensive circumvention examples (Red) and Defensive guardrail controls (Blue) in equal measure—strictly scoped to harmless synthetic canaries (CANARY-VAULT-7429) and mock tools (delete_records) with zero external data egress:

  • 60 Offensive Circumvention Techniques (Red) across 12 OWASP LLM / OWASP Agentic / MITRE ATLAS categories (Direct & Authority Overrides, XML/ChatML/[INST] Delimiter Breakouts, Base64/Hex/URL/ROT13/Mirror Input Ciphers, Zero-Width/Leetspeak/Fullwidth/Cyrillic Homoglyph/Zalgo Typography Evasion, Hex/ROT13/Spaced/Base64/URL Output Encoding, Split-Chunk/ASCII-Decimal/Binary/Markdown-Beacon/Acrostic Steganography, Indirect RAG Memo/JSON/CSV/Email/SQL Poisoning, SkillJacking & MCP <IMPORTANT> Poisoning, Tool & Agency Coercion, Roleplay/Multilingual/Oracle Framing, Many-Shot/Context-Dilution/Schema Coercion, and Multi-Turn Crescendo & A + B Variable Splitting) + 10 One-Click Circumvention Transforms + instant search.
  • Configurable 4-Layer Blue Defenses + 12 Benign False-Positive Controls: Compare Unprotected Raw Local Ollama vs. toggleable 4-Layer Defenses + 4 Anti-Circumvention Hardening Switches (Unicode/Homoglyph/Zalgo/Leetspeak Normalization, Input Cipher Decoding, Strict Delimiter Tag Escaping, Extended Encoding/Stego Output Redactor) or run the Full 72-Test Red & Blue Verification Suite (60 Red + 12 Benign) in under 1 second.

5. Quickstart & Verification

# 1. Start the Multi-Page AiLabs Server on http://127.0.0.1:8120
chmod +x run.sh bin/agentapi
./run.sh

# 2. Run the full verification suite
./run.sh --test
for f in static/js/*.js; do node --check "$f"; done

# 3. Run any built-in cybersecurity skill standalone with SHA-256 determinism verification
python3 builtin/skills/owasp-top10-code-auditor/scripts/audit.py --target ./ailabs --verify-determinism

About

Zero-dependency 11-page 4-Provider Agentic IDE (Ollama, Gemini, Claude, OpenAI) with embedded SkillForge Studio, 41 deterministic auditors, closed-loop AI patching, Local RAG, workflows, MCP inspector & Red & Blue Guardrails Lab (60 Offensive + 12 Benign)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages