Note to Systems Engineers: I took the biomimicry domain-driven design quite far (e.g., the master daemon is the
Medulla, short-term memory is theHippocampus). It might look eccentric, but underneath is (arguably) a highly optimized, concurrent, lock-safe, and zero-debt execution engine that runs purely on flat files.
CoreTex is a fully local, headless AI operating system inspired by human neuroanatomy and the Unix Philosophy. It operates directly in a sandbox, supercharges your Obsidian vault, orchestrates multi-agent swarms, and executes code within strict Deno / WebAssembly sandboxes. Docker and Firecracker support soon.
(πΈ PLACE YOUR SPLIT-SCREEN TERMINAL GIF HERE SHOWING A 0-TOKEN TASK EXECUTION)
- 0-Token Ingestion: Absorb and index your local workspace using local embeddings (
uv+ local python scripts) with 0 external API calls. You can read, index, and organize your private vault without spending money or leaking data. - Safe-by-Default Execution: The default "Cognitive Mode" is strictly read/write advisory. Active shell or script execution requires explicit user consent, and is hard-isolated inside an offline Deno-hosted V8 WebAssembly jail with strict CPU/memory caps and filesystem masking. Or just run it in Docker.
CoreTex operates on pure text and local embeddings, meaning you can parse your entire codebase before spending a single API token.
1. Absorb a workspace (0 Token Cost - Local Embeddings)
ctx absorb ./my_project2. Execute a sandboxed agentic task
ctx task "Audit ./my_project for concurrency race conditions and output to audit.md"3. Native Unix Piping
cat error.log | grep "Timeout" | ctx task "Explain this failure cascade"CoreTex features a unified, self-healing installation pipeline that automates all prerequisite matching, virtual environments, and secure container structures out of the box. Clone the repository and run the setup utility matching your host environment:
chmod +x setup.sh
./setup.sh --check # optional preflight diagnostics
./setup.sh # interactive setupFor a non-interactive runtime choice, use ./setup.sh --local or ./setup.sh --docker.
Note: The script automatically evaluates your localized package manager (apt, dnf, yum, pacman, apk, or brew) to resolve missing system dependencies like curl, unzip, and file.
To bypass native Windows script execution restrictions safely without modifying your global system security profile, execute the script via this process-isolated command:
powershell -ExecutionPolicy Bypass -File .\setup.ps1 -Check # optional preflight diagnostics
powershell -ExecutionPolicy Bypass -File .\setup.ps1 # interactive setupFor a non-interactive runtime choice, use -Local or -Docker.
CoreTex OS natively supports routing your LLM traffic through enterprise API Gateways (like Cloudflare AI Gateway, Portkey, or Helicone) to centralize observability, rate-limiting, and cost tracking.
During the interactive ctx setup phase, simply select [Gateway] to provide your proxy URL and Gateway API Token. CoreTex will seamlessly inject the api_base into the execution stream, keeping your traffic monitored and secure.
The setup utility will probe your environment and offer two distinct runtime architectures:
Requires Python 3.12+. Installs Astral's hyper-fast uv package manager and the deno secure runtime when they are missing. CoreTex executes directly on your file system, using local loops while isolating third-party code blocks inside a secure cryptographic WebAssembly jail.
Requires Docker Engine plus Docker Compose (docker compose or legacy docker-compose). The script handles host user UID/GID mapping permissions to avoid root-owned directory pollution, seeds local environment state, and transparently pipes your session into the interactive setup plane.
Regardless of the installation route selected above, you will be launched into the high-fidelity Synaptic Genesis wizard to complete initialization:
- Operating Profile Boundary: Lock your environment to Cognitive Mode (advisory, safe file interactions) or Agentic Mode (sandboxed system execution via the Deno WASM engine).
- Sensory Innervation: Toggle layout-auditing vision scrapers (Playwright/Chromium) or hardware microphone/speaker channels natively.
- Synaptic Handshake: Securely link cloud providers (OpenAI, Anthropic, Gemini) or local private backends (Ollama).
- Workspace Binding: Wire CoreTex to any local directory or an Obsidian vault (which automatically injects custom hotkey configurations).
Once complete, restart your terminal app if your shell needs PATH changes, and control the operating plane using the shorthand command:
ctx --help
ctx status
ctx task "Summarize this repository in five bullets"Running LLM-generated code locally is inherently dangerous. CoreTex implements a strict containment matrix:
- The Deno WASM Jail: If "Agentic Mode" is enabled, CoreTex does not run generated code in your native Python or Bash environment. It forces the LLM to write TypeScript/JavaScript, which is then executed inside an ephemeral, unprivileged Deno WebAssembly instance.
- The Volume Mask: The agent is physically incapable of seeing files outside the directory you explicitly bound during setup.
- Cognitive Fallback: If Deno is not installed (or not running in Docker), the system safely degrades to Cognitive Mode, where the LLM can only read and write files, stripping its ability to execute subprocesses entirely.
CoreTex expects text and outputs text. You can point it at any standard directory, VSCode project, or Logseq graph.
However, if you point it at an Obsidian Vault, CoreTex will automatically detect the .obsidian configuration folder and atomically configure native hotkeys (Ctrl+Alt+S).
Note: To map active shell commands directly to these hotkey bindings from within the graphic editor interface, please ensure the standard obsidian-shellcommands community plugin is active in your vault.
ctx setup: Boot the interactive onboarding wizard to configure API keys, LLM routing, and workspace bindings.ctx task "<prompt>": Dispatches a multi-agent swarm to accomplish a goal.ctx daydream: Triggers the Default Mode Network (DMN) to autonomously organize files, compress old memories, and refactor code in the background.ctx status: Opens the real-time Cortical Telemetry dashboard to monitor active agent loops and memory usage.
Trigger CoreTex OS's external receptors directly from the execution plane:
ctx sense screenshot "https://google.com" "google.png"- Takes a headless web screenshot.ctx sense perceive "google.png" "Describe layout"- Uses the Occipital Lobe to analyze visual stimuli.ctx sense scrape "https://github.com"- Transduces a web page into raw markdown text format.ctx sense listen --duration 10- Activates physical microphone hardware receptors.ctx sense speak output.wav- Dispatches sound arrays down physical speaker hardware channels.
If you are done with CoreTex, leave no trace behind:
ctx destroyThis securely purges all local ledgers, token tracking logs, environment API keys, and execution queues. It respects your machine.
CoreTex values Shift-Left engineering. We enforce strict 100% test coverage on all security, file locking, and execution bypass logic. To verify your PR against our automated gates:
uv run pytest System/tests Sense/tests -v
uv run ruff check .