modelModels are pure inference files
Read the file for metadata; execute it for one-shot inference. Provider connections and API formats stay behind the unified model ABI.
/ctx/model/main → provider routeFUSE filesystem interface
CortexFS mounts models, agents, tools, and durable sessions at /ctx — a small Unix ABI you can ls, cat, execute, secure, and audit.
$ ls /ctxstatusbinmodelagenttoolchannelhomesharedmodelA model is a pure inference file: read metadata, execute one inference.
Quick start
Requires Linux, systemd, and FUSE. Check the mount, then configure a provider before opening a session.
Read the full installation guide →The installer checks dependencies and asks before changes. Native Linux packages are also available.
curl -fsSL https://raw.githubusercontent.com/LIghtJUNction/cortexfs/main/scripts/install.sh | sh
Start the mount and inspect runtime health. Provider credentials are configured separately.
sudo systemctl enable --now cortexfs.service
ctx doctor
After provider setup, run ctx in your project. Use ctx resume to continue this folder’s session later.
ctx
# Continue later
ctx resume
Project introduction
Running product, not a diagram
Three executable objects, one durable history
CortexFS exposes three executable object classes and keeps session history in ordinary files, letting shells and permissions do the jobs they already understand.
modelRead the file for metadata; execute it for one-shot inference. Provider connections and API formats stay behind the unified model ABI.
/ctx/model/main → provider routeagentAn agent is exposed as an executable object and socket. Its Linux identity, mounts, cwd, model, and policy bound what it can see and run.
/ctx/agent/executor + executor.socktoolAgents invoke tools through tsh. tsh resolves capabilities only through CTX_PATH and never falls back to the host PATH.
CTX_PATH=/ctx/tool:/ctx/home/<uid>/toolsessionmessages.jsonl and events.jsonl remain durable and append-only; prompt context is a disposable, rebuildable working set.
session/default/{messages,events}.jsonlInspectable authority
Visibility is not a promise in a prompt. Mounts, uid/gid/mode bits, CortexFS policy, CTX_PATH, and noexec combine into the authority an agent actually receives.
Provider-neutral by design
CortexFS owns paths, object lifecycle, permissions, and session semantics. Its protocol adapters own provider connections and API event adaptation. Provider details never expand into new root directories.
mount ∩ uid/gid/modeCTX_PATHpolicy ∩ noexecroot contains stable object classes onlyBring the runtime back to Unix
Read the specification for the stable boundary, inspect the implementation on GitHub, or mount /ctx and start using it.