newOS4 is a modular agent operating system with a VFS, pluggable modules, and an AI-driven terminal. v4.5.96 is the latest shipping release after 2 bug-fix sessions.
Layer-2 module exposing built-in shell commands to the terminal.
cd, pwd, ls, cat, echo, mkdir, rmenv, export, unsetgrep, wc, head, tailcmd1 | cmd2 โ pipe outputcmd > file โ overwritecmd >> file โ appendDestructive commands (rm, redirects) MUST passcanExecute()gate. Patches assert enforcement at boot, not just API definition.
Manages agent lifecycle, task delegation, and worker spawn.
spawnAgent() leak โ process handle now tracked + cleaneddelegate() retry loop infinitekillAgent() bypassed on system agentsExtracted from v4.5.96 bug fixes. All module authors MUST follow.
All timers, intervals, and event listeners MUST be registered in init() and stored for cleanup. No orphan timers.
this.print writes to AI context. this.terminal.print writes to user only. Use AI-visible for errors that affect reasoning.
All monkey-patches, depth counters, and global state mutations MUST use try/finally to guarantee rollback.
A security patch that defines an API but doesn't assert it's enforced is a vulnerability. Boot-time self-test required.
The 3 system agents (coder, researcher, reviewer) cannot be killed, purged, or modified. killAgent() checks isSystemAgent flag.
Don't cache module state at boot. Compute on demand. Stale-cache bugs were 30% of v4.5.96 fixes.
Helpers like extractRedirect() must be called exactly once per command parse. Double-extraction is a P0-class bug.
| Module | Class | Layer |
|---|---|---|
| AIModule | AIModule | 1 |
| ContextModule | ContextModule | 1 |
| AgentLoop | AgentLoop | 1 |
| MemoryGraph | MemoryGraph | 1 |
| WorldModel | WorldModel | 1 |
| SmartContext | SmartContext | 1 |
| TokenTracker | TokenTracker | 1 |
| PromptEngine | PromptEngine | 1 |
| ModelRouter | ModelRouter | 1 |
| SkillLoader | SkillLoader | 1 |
| VaultMind | VaultMindModule | 1 |
| PredictTask | PredictTaskModule | 1 |
| Module | Status |
|---|---|
| TerminalModule | OK |
| ShellModule | NEW v4.5.96 |
| OrchestratorModule | 8 fixes |
| FSModule | OK |
| NVFSModule | OK |
| ModuleManager | OK |
| LeaseModule | P0 NEEDS RE-PATCH |
| CronModule | P1 jobs missing |
| AgentManager | OK |
| Hyperliquid | P0 init |
| SecretVault | OK |
| WebModule | OK |
| TarModule | OK |
| SandboxModule | OK |
| CommandRouter | OK |
Browser, Mindmap, WPM, Floating, WebDAV, GraphVisualizer, ChatUI, Settings, Theme, Notification, Backup, Health, Telemetry, Plugin, Marketplace, Migration, Diagnostic, Help.
| ID | Severity | Module | Status |
|---|---|---|---|
| BUG-001 | P0 | Orchestrator | FIXED |
| BUG-002 | P0 | Orchestrator | FIXED |
| BUG-003 | P0 | Shell | FIXED |
| BUG-004 | P0 | Shell | FIXED |
| BUG-005 | P0 | Shell | FIXED |
| BUG-006 | P0 | Shell | FIXED |
| BUG-007 | P1 | Shell | FIXED |
| BUG-008 | P1 | Shell | FIXED |
| BUG-009 | P1 | Shell | FIXED |
| BUG-010 | P1 | Shell | FIXED |
| BUG-011 | P0 | Orchestrator | FIXED |
| BUG-012 | P0 | Orchestrator | FIXED |
| BUG-013 | P0 | Orchestrator | FIXED |
| BUG-014 | P1 | Orchestrator | FIXED |
| BUG-015 | P1 | Orchestrator | FIXED |
| BUG-016 | P2 | Orchestrator | FIXED |
| BUG-017 | P2 | Orchestrator | FIXED |
| BUG-018 | P2 | Orchestrator | FIXED |
| ID | Severity | Module | Issue |
|---|---|---|---|
| OPEN-001 | P0 | LeaseModule | canExecute() gate defined but not enforced (Sprint 2) |
| OPEN-002 | P0 | VaultMind | Init race with Hyperliquid key load |
| OPEN-003 | P1 | Shell | __pipebuf__ files leak in VFS root |
| OPEN-004 | P1 | Shell | $VAR substitution injection vector |
| OPEN-005 | P2 | VFS | .trash dir accumulation |
| OPEN-006 | P2 | Cron | 5 jobs missing after re-register |