๐Ÿ“– Help โ†’ Launch OS โ†’

Module OS v4.2

WebX11 Terminal ยท Self-improving Modular OS ยท Reviewed 2026-05-28 ยท โœ… Live QA Passed

41
Modules
130+
Commands
56KB
Help Docs
36KB
App Size
โœ…
QA Status
โœ… Live Test Results (2026-05-28)
Boot/Init: โœ… 41 modules loaded, splash hidden, 0 JS errors
Core Terminal: โœ… help, ls, put, cat, clear, mem all working
File Persistence: โœ… VFS survives page reload, _dirty flag skips idle saves
UI Modals: โœ… Skills Manager, File Browser, Config, WebDAV Browser, File Manager
Autocomplete: โœ… Tab cycle, Enter/click accept, Escape hide
All 16 ext modules: calc, voice, cron, theme, wpm, mindmap, webdav, skill-pack-core, editor, diff, alias, finder, filemgr, cryptogzip, busybox, shell โ€” load without errors
AI Streaming: โœ… NDJSON stream parsing, real-time token display
WebDAV Browser: โœ… Modal file explorer, clickable dirs, preview, upload/download, breadcrumbs
Session Nesting: โœ… Fixed โ€” deep clone + strip _sessions, no recursive growth
Terminal History: โœ… Persists across page reload
SecretVault: โœ… AES-GCM encrypted credential storage via Web Crypto API
Context Compression: โœ… Auto-compresses AI history when >2000 tokens
Trash System: โœ… rm moves to trash, 4 dedicated trash commands
VFS Checkpoints: โœ… snapshot/rollback via checkpoint command
Requirements Check: โœ… all modules report prerequisites via check command

Architecture

newOS4 v4.2 uses a modular class-based architecture with async dependency loading:

Module System

25 core modules (foundation + built-in) + 16 ext modules = 41 total. All ES6 classes registered via webx11.moduleManager.registerModule(). Ext modules are togglable via the startup gear on splash. Modules report requirements via requirements() method โ€” checked by the check command.

Dynamic help system: Every module implements getHelpInfo() returning a command โ†’ description map. ModuleManager.getAllHelp() collects all entries at runtime. No more hardcoded 195-line help map. New modules appear in help immediately.

Key Features

๐Ÿง  AI Assistant (WebX11AIAssistantModule)

๐Ÿ” SecretVault (Core Module)

๐Ÿ”„ LLMRouter (OllamaManager)

๐Ÿ“š Skills System (SkillsModule)

๐Ÿ—‘๏ธ Trash System

๐Ÿ“ธ VFS Checkpoints

๐Ÿ“ File Manager (Ext Module)

๐Ÿงฐ Tool Registry โ€” requirements()

๐ŸŽค Voice (VoiceModule)

๐Ÿ’พ Session Persistence

Other Key Modules

All Modules (41 total)

Foundation (5): virtual-fs.js, module-manager.js, secret-vault.js, ollama-manager.js, terminal.js

Core (20): module-system.js, module-fs.js, module-modmgr.js, module-ollama.js, module-my.js, module-searxng.js, module-servermon.js, module-ollamamodels.js, module-config.js, module-simplegui.js, module-io.js, module-dynamicprompts.js, module-aiassist.js, module-aiasm.js, module-smartctx.js, module-duckduckgo.js, module-fetcher.js, module-skills.js, module-chatstudio.js, module-fs.js

Ext (16): calc.js, voice.js, cron.js, theme.js, wpm.js, mindmap.js, webdav.js, skill-pack-core.js, editor.js, diff.js, alias.js, finder.js, filemgr.js, cryptogzip.js, busybox.js, shell.js

Recent Improvements

๐Ÿ” SecretVault (2026-05-25)

AES-256-GCM encrypted credential manager using Web Crypto API. PBKDF2 key derivation (100K iterations) with salt. PIN mode or open mode. 7 CLI commands. Auto-redacts stored secrets from output. Integrated with LLMRouter for API key storage.

๐Ÿ”„ LLMRouter (2026-05-25)

Refactored from single-endpoint OllamaManager into a multi-provider router with priority-based fallback. Supports Ollama and any OpenAI-compatible API (OpenRouter, etc.). SSE streaming parsing. Provider auto-fallback on failure with per-provider stats tracking.

๐Ÿ“ฆ Context Compression (2026-05-25)

When AI conversation exceeds 2000 tokens, _compressContext() keeps last 3 exchanges, summarizes the rest into one system message via AI summarization or fallback truncation. Also available as ai-compress command. Max tool turns increased from 5 to 8.

๐Ÿ“ธ VFS Checkpoints + Trash (2026-05-25)

Snapshot/rollback system (checkpoint, rollback, checkpoint-list, checkpoint-del) plus trash system (rm โ†’ trash, trash-dir, ls-trash, empty-trash). Auto-prunes to max 10 checkpoints.

๐Ÿงฐ Tool Registry + File Manager (2026-05-25)

Tool Registry: every module implements requirements(). File Manager: 704-line fullscreen overlay with sidebar, preview pane, search, edit, download, delete commands.

๐Ÿงฐ Dynamic Help System & Module Loading Fixes (2026-05-25)

Replaced _buildHelpMap() (195 lines) with ModuleManager.getAllHelp(). Fixed double-loading of ext modules (skip list + relative URL guard in registerModule()). Fixed ASI comment-stripping bug in class parsing. Added loadModuleFromCode() for runtime module loading. Fixed check_updates returning empty.

๐Ÿง  AI Session Terminal Tool + Error Tracking (2026-05-25)

Added session_terminal tool: reads last 50 lines of terminal auto-save for context when user references past terminal work. Added _trackToolFailure(): after 3 failures on the same tool, warns user and suggests creating a workaround skill. Per-tool timing logs with duration.

๐Ÿ“ WebDAV Browser UI + File Manager (2026-05-25)

Full modal file explorer for the dedicated WebDAV space, with clickable directory navigation, breadcrumbs, file preview (HTML in iframe, text inline), upload button, download on double-click, and refresh. New File Manager ext module adds files and preview commands with fullscreen overlay.

๐Ÿ“ฆ 4 New Ext Modules (2026-05-25)

๐Ÿ’พ Terminal Performance

Pros & Cons

โœ… Self-improving โ€” AI can create, patch, and manage its own skills
โœ… Rich tool ecosystem โ€” 41 modules, 130+ commands, search, fetch, webdav, cron, theming, calc, voice, encrypt, shell
โœ… AI streaming + auto-compression โ€” NDJSON stream parsing + context auto-compress at 2000 tokens
โœ… SecretVault โ€” AES-GCM encrypted credential storage, auto-redaction
โœ… LLMRouter โ€” multi-provider with auto-fallback, supports Ollama + any OpenAI-compatible API
โœ… Dynamic help system โ€” no hardcoded help map, new modules appear automatically
โœ… VFS Checkpoints + Trash โ€” snapshot/rollback and safe deletion with trash commands
โœ… Tool Registry โ€” every module reports requirements via requirements()
โœ… Clean terminal UX โ€” autocomplete, command history, pipe support, clickable output, mobile responsive
โœ… Efficient auto-save โ€” dirty-flag check skips saves when idle, nesting bug fixed
โœ… WebDAV Browser UI โ€” modal file explorer with breadcrumb nav, preview, upload, download
โœ… Self-contained โ€” no backend needed except Ollama/OpenRouter for AI features
โœ… Standalone at /spaces/newos4/ โ€” removed duplicate chatstudio/newos4 instance, single source of truth
โŒ Ollama/OpenAI dependency โ€” AI features require a running provider
โŒ 8-turn limit โ€” agent loop max is 8 tool calls, complex tasks may still hit ceiling
โŒ No module isolation โ€” all modules share same JS scope
โŒ No TTS โ€” voice input only, no text-to-speech for AI responses
โŒ No nginx token validation โ€” WebDAV token is decorative; auth via API port 8896

Verdict

newOS4 v4.2 is the most feature-rich version of the WebX11 Terminal. The refactored modular architecture (41 modules with dynamic help, SecretVault, LLMRouter, context compression, VFS checkpoints, trash system, tool registry, and file manager) makes it uniquely capable โ€” while keeping the main.html at just 36KB.

The dedicated instance at /spaces/newos4/ with nginx autoindex, WebDAV token authentication, and a proper API backend gives it real cloud-backed persistence. Session nesting is fixed, auto-save only fires on actual changes, the mem command gives live heap visibility, and output trimming prevents browser crashes under memory pressure.

Best for: Power users, developers, and anyone who wants a browser-based terminal with AI that can learn, grow, and securely store credentials.

Not for: Users who just want quick AI chat, or users without Ollama/OpenRouter access.

Rating: ๐Ÿงฉ๐Ÿงฉ๐Ÿงฉ๐Ÿงฉ๐Ÿงฉ (5/5 โ€” most advanced WebX11 Terminal variant)

๐Ÿ“– Full documentation available here โ†’