Fog
Plan 9 on a resilient cluster
https://github.com/kiljoy001/FogAI-Augmented Systems Architect
Renton, Washington
Experienced technology professional who leverages AI tools to achieve 10x productivity in system architecture and technical analysis. Specializes in directing AI to solve complex problems, validate outputs, and synthesize solutions across multiple domains.
Proven ability to use AI for rapid prototyping, comprehensive codebase analysis, and architectural decision-making.
Claude Code (primary), Gemini, DeepSeek, Ollama · Expert prompt engineering
GPU acceleration (CUDA) · Neural networks, reinforcement learning · CoqGym and model training
F#, C, Rust, Python, Go · x86-64 assembly · Microkernel architecture and formal verification
System design and technical analysis · Risk assessment and implementation planning
Python, C#, PowerShell, SQL · Linux, Windows Server, Azure, Docker
CISSP certified · Compliance, risk assessment, security architecture, smart contracts
Independent
Global Systems Integration LLC
Wipro / Microsoft
HCL America / Microsoft
Allyis / Microsoft, Arvixe, and technical support roles
Support Engineer at Allyis/Microsoft (2017-2018), System Administrator at Arvixe (2013-2015), and various technical support roles (2007-2013).
Master of Cybersecurity & Leadership
Bachelor of Applied Science in Application Development
Plan 9 on a resilient cluster
https://github.com/kiljoy001/FogSYCL (Intel GPU) support for PrismML Bonsai ternary models
https://github.com/PrismML-Eng/llama.cppA modular .NET 9P toolkit and server
https://github.com/kiljoy001/NinePSharp9front dp9ik authentication in managed .NET
https://github.com/kiljoy001/dp9ik.netGo bindings for 9front dp9ik
https://github.com/kiljoy001/go-dp9ikStandalone plan9port factotum with dp9ik
https://github.com/kiljoy001/factotum-dp9ikTabular storage in Plan 9 ndb syntax
https://github.com/kiljoy001/libtabA persistent terminal for agents, exposed as 9P files
https://github.com/kiljoy001/vtfsRemote CPU daemon for 9front clients
https://github.com/kiljoy001/rcpudA small 9front language that transpiles to Plan 9 C
https://github.com/kiljoy001/objective-9cTendermint on Plan 9
https://github.com/kiljoy001/9mintARMv7 Harvey on discarded tablets
https://github.com/kiljoy001/harvey-dangerLKL driver hosting on a Qualcomm SM6115 phone
https://github.com/kiljoy001/harvey-dangerARM64 Harvey with a native Mali GPU path and HDMI
https://github.com/kiljoy001/harvey-danger18 NuGet packages, 16,389 downloads
A modular 9P protocol toolkit and backend plugin ecosystem.
Managed 9front dp9ik authentication: AuthPAK (SPAKE2-EE over Ed448), tickets and authenticators, both sides of p9any/dp9ik, and TLS 1.2 PSK as tlssrv and tlsclient -a use it. Interoperable with 9front; no native code.
9front's UTF-8 rune functions and a System.Text.Encoding.
libtab reader/writer for Plan 9 ndb-shaped tables with HASHED, SIGNED, and ENCRYPTED cells.
Sia storage API wrapper.
All public repositories and local-model impact summaries
kiljoy001/objective-9c
# objective-9c objective-9c is a small 9front language that transpiles o9 source to Plan 9 C. **Try it live:** the [Objective-9c playground](https://halatha.rentonsoftworks.com) runs in your browser on [Halatha](https://github.com/kiljoy001/halatha), with nothing to install. o9 is built for Plan 9-style programs: objects are CSP actors, public methods can be served through a 9P facade, structured data moves as `.tab` text, programs can shape their own namespaces, and raw Plan 9 C interop is isolated inside spawnable `function` blocks. ## Status - Release: 0.4.0 ([CHANGELOG.md](CHANGELOG.md)). - Target: 9front. - Output: generated C; no binary blob. - Build: `mk` builds `o9c/o9c` and `libo9.a`. - Tests: native 9front e2e tests under `o9c/test/` and `stdlib/e2e_*.o9`. - Current focus: keeping the language small while growing useful stdlib objects and examples. ## Start Here If you want to write an application rather than work on the compiler, start with [docs/APP_DEVELOPER.md](docs/APP_DEVELOPER.md). It has copy-paste CLIs, 9P services, settings files, UI examples, and an index of the programs that already exist. The short version: application code does not need raw C or manual `spawn`/`await`. Start with `stdlib/cli.o9`, `stdlib/config.o9`, and `stdlib/service.o9`; text, logging, files, directories, processes, networking, synchronization, runes, and custom 9P helpers live beside them in [`stdlib/README.md`](stdlib/README.md). Small complete examples are [demo/hello_cli.o9](demo/hello_cli.o9) and [demo/hello_service.o9](demo/hello_service.o9). ## Native QuickJS [`libquickjs/`](libquickjs/README.md) is a native Plan 9 QuickJS embedding library for lib9p servers. It intentionally omits the APE `qjs` CLI and the `std`/`os` modules, exposes a small `p9js_new`/`p9js_eval` API, and supplies memory/stack/interrupt hooks. The native 6c build is verified on generated9 amd64 after the host-side `preprocess-native.py` bridge; `mk test` prints `1+1 = 2`. It is a library scaffold, not a browser runtime. ## Quick Build From the repository root on 9front: ```rc mk mk install o9c --version o9build source.o9 ``` `o9build` binds the installed stdlib into the source directory namespace, transpiles the `.o9` file, compiles the generated C, links `libo9.a`, and writes an executable next to the source. Use `o9c` directly only when debugging the compiler. The version printed by `o9c --version` (or `o9c -V`) is defined in `o9c/grammar.d/99-main.y` and updated when the compiler's public version changes. After installation, `o9c`, `o9build`, `o9plumb`, and `o9proj` are on the command path. Start a small project with: ```rc o9proj myapp cd myapp mk run ``` To make plumbing an `.o9` file start a build, run: ```rc o9plumb ``` That installs an `include` line in `$home/lib/plumbing` and reloads plumber when `/mnt/plumb/rules` is available. ## A Small Program ```o9 class Counter { int64 val; method Counter(int64 initial) { val = initial; } method void inc(int64 n) { val = val + n; } method int64 get() { return val; } } main { Counter c = new Counter(10); c.inc(5); print(c.get(), "\n"); } ``` ## Mounted Method Call An app that stays alive with `serve()` posts a 9P service under `/srv`. With no app name argument, the default is the last class name (`Counter` here). Use clone sessions for result-bearing calls: ```rc mount -c /srv/Counter /mnt/o9 sid=`{cat /mnt/o9/clone} echo 'method Counter.c get' > /mnt/o9/$sid/ctl cat /mnt/o9/$sid/data echo close > /mnt/o9/$sid/ctl ``` ## Docs - [Quickstart](docs/QUICKSTART.md) - build and run a first app on 9front. - [Language Guide](docs/LANGUAGE.md) - the canonical guide for writing o9. - [Examples](docs/EXAMPLES.md) - small complete programs. - [Standard Library](stdlib/README.md) - stdlib object reference. - [tabula](docs/TABULA.md) - `.tab` files as structured, inert data. - [Two-Machine Demo](demo/TWO_MACHINE_DEMO.md) -
objective-9c is a C-language repository (8 stars, last pushed 2026-11-30) that describes a small 9front language transpiling o9 source to Plan 9 C, currently at release 0.4.0 with output as generated C rather than a binary blob. The build system uses `mk` to produce `o9c/o9c` and `libo9.a`, and tests consist of native 9front e2e tests under `o9c/test/` and `stdlib/e2e_*.o9`. The most recent commit subject is "docs: link the live playground."
summary generated by a local model from public repository data model: Ternary-Bonsai-2-27B-PTQ1_0-mtp.gguf
kiljoy001/Fog
A Plan 9-style application platform on .NET and Orleans, built on NinePSharp
# Fog: Plan 9 on a Resilient Cluster > **A distributed, fault-tolerant operating system runtime bringing the Plan 9 philosophy to multi-machine clusters.** > Built in C# on .NET 10 using **Microsoft Orleans** virtual actors, **9front gefs** copy-on-write $B^\varepsilon$-tree storage, **Tendermint** BFT consensus, and strict **9P2000** protocols. --- ## 🌫️ Overview **Fog** reimagines Plan 9 for modern, resilient infrastructure. Instead of treating each machine as an isolated node with its own process table and kernel, a Fog cluster acts as a **Single System Image (SSI)**: * **Inside a cluster: one system image.** Each machine runs a Fog silo. Microsoft Orleans membership joins the silos into an elastic cluster. The cluster executes a distributed Plan 9 kernel: a unified PID space, process state and descriptors hosted in virtual actor grains, workload placement decided dynamically at `rfork`, and automatic recovery from grain state when a node dies. To any process or shell, the entire cluster feels like a single Plan 9 machine. * **Between clusters: a classic Plan 9 grid.** The cluster exposes standard 9P2000 services to the outside world. Outside machines—whether other Fog clusters, native 9front workstations, or browser clients—attach over 9P, authenticate with `dp9ik` against the cluster's auth server, and mount namespaces under `/n/{cluster}`. --- ## 🏛️ High-Level Architecture ```mermaid graph TD subgraph Outside ["The Plan 9 Grid (Outer Level)"] Client["Plan 9 / 9front Workstation (drawterm / rcpu)"] Browser["Browser Client (Wanix / Halatha)"] end Client -->|9P2000 + dp9ik Auth| Gateway["Fog TLS 1.3 / 9P Listener"] Browser -->|9P2000 / WebSockets| Gateway subgraph Cluster ["Fog Cluster: Single System Image (Inner Level)"] Gateway --> Kernel["Distributed Fog Kernel"] subgraph Actors ["Microsoft Orleans Grain Mesh"] ProcGrains["Process Grains (PID, State, Exit)"] FdGrains["Descriptor Group Grains"] EnvGrains["Environment Group Grains"] PipeGrains["Pipe & Channel Grains"] NsGrains["Namespace & Mount Table Grains"] end Kernel --> Actors subgraph Userland ["Plan 9 Userland"] Rc["rc Shell (Bytecode Compiler & Interpreter)"] Cmds["Core Commands (bind, cat, echo, mkdir)"] LibThread["libthread (CSP Channels, Alt, Rendezvous)"] Auth["Factotum & KeyFs Server"] end Kernel --> Userland subgraph Storage ["Distributed Gefs Storage Layer"] Gefs["gefs Copy-on-Write B-epsilon Trees"] Blocks["16 KiB Blocks + SHA-256 Hashes"] Tendermint["Tendermint BFT Consensus"] end Actors -->|9P QID-Versioned State| Gefs Gefs --> Blocks Blocks --> Tendermint end ``` --- ## 🧩 Solution Map & Projects Fog is structured into clean, modular projects under `Fog.sln`: | Project | Description | Key Components | | :--- | :--- | :--- | | [`NinePSharp.Fog`](NinePSharp.Fog/) | Core transactional engine & control plane | `FogTransactionStore`, `FogAtomicPlan`, `FogCommitPlan`, `FogControlFile`, LibTab records | | [`NinePSharp.Fog.Kernel`](NinePSharp.Fog.Kernel/) | Distributed Plan 9 kernel emulation | `Process`, `FogKernel`, `RforkFlags`, syscalls (`rfork`, `exec`, `mount`, `bind`), devices (`#c`, `#\|`, `#d`, `#p`, `RamFs`) | | [`NinePSharp.Fog.Gefs`](NinePSharp.Fog.Gefs/) | C# port of 9front's `gefs(4)` filesystem | Copy-on-write $B^\varepsilon$-tree (`Tree`), `Allocator`, `Arena`, `Superblock`, `Deadlist`, `GefsFs`, 9P server | | [`NinePSharp.Fog.Namespaces`](NinePSharp.Fog.Namespaces/) | Distributed namespaces via Orleans | `FogRootGrain`, `FogSharedRoot`, `FogAuthorizationAuthority`, `FogNamespaceAttachResolver` | | [`NinePSharp.Fog.Rc`](NinePSharp.Fog.Rc/) | C# port of Plan 9's `rc` shell | `RcCompiler`, `RcParser`, `RcLexer`, `RcShell`, `RcProgram`, `RcThread`, AST,
Fog is described in its README as a distributed, fault-tolerant operating system runtime that brings the Plan 9 philosophy to multi-machine clusters. It is built in C# on .NET 10 with Microsoft Orleans virtual actors, 9front gefs copy-on-write B-epsilon-tree storage, Tendermint BFT consensus, and 9P2000 protocols to present a single system image across a cluster. The README reports a quality gate with over 1,600 verified tests, including BDD, Coyote concurrency exploration, and Stryker mutation testing.
summary generated by a local model from public repository data model: Ternary-Bonsai-2-27B-PTQ1_0-mtp.gguf
kiljoy001/rcpud
# rcpud — Remote CPU Daemon Connect to Linux machines from 9front using standard `rcpu`. rcpud is a 9P-native remote shell and graphics daemon. It speaks drawterm's cpu protocol — dp9ik authentication via factotum, TLS-PSK encrypted transport, exportfs namespace export, and wsysmsg draw protocol for graphical sessions. No changes needed on the 9front side. Run `rcpu -h <host>` and it works. ## Quick start ### Prerequisites - plan9port (for factotum, rc, auth libraries) - OpenSSL development headers (for TLS-PSK) - Go 1.21+ ### Build ```sh # rcpud — the CPU daemon itself go build -tags rcpud -o bin/rcpud . # drawsrv — framebuffer forwarding for graphical sessions go build -tags drawsrv -o bin/drawsrv . ``` ### Run ```sh # Start factotum with a dp9ik key export NAMESPACE=/tmp/ns.myns factotum & echo 'key proto=dp9ik dom=example.com user=scott !password=secret' \ | 9p write factotum/ctl # Start rcpud rcpud -l :17019 # Start drawsrv for graphical desktop forwarding drawsrv -tcp :17029 ``` ### Connect from 9front ```sh # Shell session rcpu -h 192.168.2.2 -u scott # Graphical session (coming soon) rcpu -G -h 192.168.2.2 -u scott ``` ## Features | Feature | Status | |---------|--------| | dp9ik authentication via factotum | Done | | TLS-PSK encrypted channel | Done | | Interactive rc shell with pty job control | Done | | Delete key (note relay → SIGINT) | Done | | `/dev/cons` proxied from drawterm | Done | | ANSI escape stripping for clean output | Done | | `-mount` flag: serve local directories | Done | | Hostname display in shell prompt | Done | | systemd service file | TBD | ### drawsrv (graphical desktop forwarding) | Feature | Status | |---------|--------| | `/dev/fb0` capture via mmap | Done | | wsysmsg protocol (drawfcall.h) | Done | | uinput mouse injection | Done | | TCP socket (`-tcp :port`) | Done | | Keyboard injection | TBD | | Channel format conversion | TBD | | Framebuffer delta updates | TBD | ## Similar projects [perpen/lx](https://github.com/perpen/lx) pioneered the idea of using Linux as a Plan 9 cpu server. It exports the Plan 9 namespace under `/9`, forwards notes to Linux signals, and supports X11 via VNC. Written in C against plan9port, last updated 2019. rcpud takes the same idea in a different direction: Go, drawterm wire compatibility (no client-side tools needed), dp9ik auth, TLS-PSK, and native wsysmsg draw protocol instead of VNC. Different tradeoffs for different use cases. ## Architecture ``` 9front drawterm │ ├── rcpu ──→ rcpud:17019 ──→ dp9ik auth ──→ TLS-PSK ──→ shell + namespace │ └── rcpu -G ──→ rcpud:17019 ──→ auth ──→ drawsrv:17029 ──→ fb capture ──→ wsysmsg │ uinput mouse/kbd ←──┘ ``` ## Project structure ``` rcpud.go — CPU daemon: auth, TLS, pty shell, namespace serving authproxy.go — Fixed factotum proxy (io.ReadFull TCP bugfix) ssl_psk.go — OpenSSL TLS-PSK wrapper mount.go — Local directory serving through 9P namespace drawsrv.go — Framebuffer capture + wsysmsg protocol server drawproxy.go — drawsrv socket proxying into rcpud namespace (WIP) gortns.go — Agent manager (experimental) ``` ## License MIT
rcpud is a Go-language remote CPU daemon (11 stars, last pushed 2026-11-30) that connects Linux machines to 9front via the drawterm cpu protocol, using dp9ik authentication through factotum, TLS-PSK transport, and an exportfs namespace export. A companion binary, drawsrv, provides framebuffer capture and wsysmsg-based graphical session forwarding over TCP. The project is MIT-licensed and includes a companion `drawproxy.go` file marked WIP.
summary generated by a local model from public repository data model: Ternary-Bonsai-2-27B-PTQ1_0-mtp.gguf
kiljoy001/harvey-danger
A distributed operating system
<img src="https://harvey-os.org/images/harvey-os-logo.svg" alt="Harvey" width="200px"/> # Harvey: A distributed operating system Welcome to Harvey, we are delighted that you are interested in the project. ## What is harvey? Harvey is a distributed operating system. It’s most directly descended from [Plan 9 from Bell Labs](https://en.wikipedia.org/wiki/Plan_9_from_Bell_Labs). This heritage spans from its distributed application architecture all the way down to much of its code. However, Harvey aims to be a more practical, general-purpose operating system, so it also uses ideas and code from other systems. Starting July 2020, we will be replacing Harvey's user mode programs with programs written in Go. Many of these will come from [u-root](https://u-root.org). ## Prism Microkernel & Objective-9C Userland (Experimental) The `micro-kvm` branch provides a stripped AMD64 microkernel running directly under a minimal KVM hypervisor (`../9vm/9vm.c`) with an Objective-9C (`o9c`) actor supervisor as PID 1 (`boot/init.o9`). ### Architecture & Design - **Host-Passthrough Namespace**: The diskless host-passthrough namespace mounts the host tree through `#~/host`, with VirtIO 9P (`#9/0`) as a fallback, and overlays synthetic `/dev`, `/proc`, `/srv`, and `/env` bindings. See [9vm host transports](../9vm/README.md). - **Concurrency Model**: Objective-9C actors use lightweight processes sharing memory via `rfork(RFMEM)` and CSP channels. - **Toolchain**: Built with modern LLVM (`clang`, `ld.lld`, `llvm-ar`) without legacy Plan 9 compilers. - **External Verification**: Automated test runner lives in `../9vm/test_boot.py`. The [architecture map](../9vm/ARCHITECTURE.md) shows the Linux microVM, guest IPC, Objective-9C, Lola prototype, and bare-metal portability target. For the interactive Objective-9C Lola VM preview and its current limits, see the [display guide](../9vm/DISPLAY.md). ### Getting started Start by reading the [Wiki](https://github.com/Harvey-OS/harvey/wiki). There's a [Getting Started](https://github.com/Harvey-OS/harvey/wiki/Getting-Started) guide there to learn how to get Harvey up and running and many other things. ### Contributing You enjoyed playing with Harvey and you want to help out? Great! Take a look at our [Contribution Guide](https://github.com/Harvey-OS/harvey/blob/main/CONTRIBUTING.md) it covers a wide variety of topics including the [Harvey coding style](https://github.com/Harvey-OS/harvey/blob/main/CONTRIBUTING.md#coding-conventions), [Code of Conduct](https://github.com/Harvey-OS/harvey/wiki/Code-of-Conduct), where to get help and so on. ### Docs * [Harvey's wiki](https://github.com/Harvey-OS/harvey/wiki) * [Apex's wiki](https://github.com/Harvey-OS/apex/wiki). ### Status *  * [](https://scan.coverity.com/projects/5328) ### Elsewhere * [Mailing list](https://groups.google.com/forum/#!forum/harvey) * [Slack](https://harvey-slack.herokuapp.com/) * [Harvey's Blog](https://harvey-os.org/#news) * [Twitter](https://twitter.com/harvey_os) ## Donate to Harvey! Harvey is a proud member of [SFC](https://sfconservancy.org/projects/current/) and gladly accepts donations. [](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7Q45ZGJBQZZVN) ## Licenses * [](https://github.com/Harvey-OS/harvey/blob/main/LICENSE)
The repository kiljoy001/harvey-danger is described as "A distributed operating system," has no language specified, 0 stars, and its last push was on 2026-11-30. The most recent commit subject is "arm32: preempt on the clock interrupt." The README describes Harvey as a distributed operating system descended from Plan 9 from Bell Labs, with a `micro-kvm` branch offering an AMD64 microkernel running under a minimal KVM hypervisor alongside an Objective-9C actor supervisor.
summary generated by a local model from public repository data model: Ternary-Bonsai-2-27B-PTQ1_0-mtp.gguf
kiljoy001/NinePSharp
A modular .NET 9P toolkit and server.
# NinePSharp NinePSharp is a modular .NET 9P toolkit and server. It lets you expose local or service-backed resources through a unified 9P filesystem interface. ## Why NinePSharp - Core 9P protocol primitives and message types in reusable packages. - Batteries-included server runtime with dependency injection and backend routing. - Plugin-style backends so deployments only load what they need. - Runnable example host for embedded or local server scenarios. ## Repository Layout - `NinePSharp/` - core protocol constants, message types, serialization helpers. - `NinePSharp.Parser/` - F# parser implementation. - `NinePSharp.Server.Abstractions/` - shared interfaces/contracts for backends. - `NinePSharp.Server/` - runtime library and transport host components. - `NinePSharp.Namespaces/` - Plan 9 mount tables, virtual process groups, fid sessions, and resource contracts. - `NinePSharp.Namespaces.Orleans/` - distributed namespace and data-plane adapters for Orleans grains. - `NinePSharp.Namespaces.Orleans.Server/` - 9P2000 and maintained 9P2000.L-subset dispatcher for Orleans resources. - `NinePSharp.Examples/` - runnable sample host with an in-memory handler. - `NinePSharp.Tests/` and `NinePSharp.Parser.Tests/` - test suites. Fog, the Plan 9-style application platform built on these libraries, lives in its own repository, `kiljoy001/Fog`, and takes NinePSharp from NuGet. ## Quick Start Prerequisites: - .NET SDK 10.x Build the library and run the example host: ```bash dotnet build NinePSharp.Server/NinePSharp.Server.csproj -c Release dotnet run --project NinePSharp.Examples/NinePSharp.Examples.csproj ``` `NinePSharp.Server` is the embeddable runtime library. `NinePSharp.Examples` is the current runnable sample host. ## Tests ```bash dotnet test NinePSharp.Tests/NinePSharp.Tests.csproj -c Release dotnet test NinePSharp.Parser.Tests/NinePSharp.Parser.Tests.fsproj -c Release ``` Integration script (requires a local `9p` CLI): ```bash bash test_integration.sh ``` ## Quality ```bash bash scripts/run-quality.sh bash scripts/run-quality.sh --full FUZZ_SECONDS=30 bash scripts/fuzz.sh parser FUZZ_SECONDS=30 bash scripts/fuzz.sh namespace-syscalls ``` The standard gate runs a Release build, StyleCop/.NET analyzers, all main BDD, xUnit, and FsCheck suites, merged Coverlet coverage, stale-coverage checks, coverage thresholds, CRAP scoring, and the custom Semgrep rules in `quality/semgrep.yml` when Semgrep is installed. `--full` also runs the scoped Stryker mutation gate (`MIN_MUTATION=100` by default) and bounded SharpFuzz/AFL++ parser, filesystem, namespace, namespace-syscall, authorization and Orleans gateway campaigns. Mutation scopes include the Orleans adapters, gateway, shared transport, and sequential control client. Coverage defaults can be tuned with `MIN_LINE` and `MIN_BRANCH`; CRAP failure is controlled by `CRAP_LIMIT`. ## Orleans gateway Run a read-only, loopback example with `dotnet run --project NinePSharp.Examples -- --orleans 5640`. Attach as `guest` and read `/hello`. See [hosting, provider registration, security, and lifetime semantics](docs/orleans-integration.md) for embedding the gateway in your own host. ## Plan 9 namespaces Current development focuses on Plan 9 namespace behavior: virtual processes and process groups, bind/mount/unmount, union mounts, channel and fid lifetime, and control files. See the [namespace semantics](docs/plan9-namespace-semantics.md) and [BDD specifications](docs/specifications/plan9-namespace/README.md). Current [namespace validation evidence](docs/namespace-verification.md) records the tested scope and its limitations. The local namespace feature set includes independent descriptor groups and explicit resource cleanup: final-owner exit, close-on-exec, empty-table rfork, admitted I/O references, and provider-close failure handling. These have [executable cleanup scenarios](NinePSharp.Namespaces.Tests/Features/DescriptorCleanup.feature). Durable Orleans ownership and
NinePSharp is a C# repository (0 stars, last pushed 2026-11-30) that provides a modular .NET 9P toolkit and server with reusable protocol primitives, an F# parser, a server runtime with dependency injection, and Plan 9 namespace and Orleans gateway components. The project requires .NET SDK 10.x and includes test suites for xUnit, BDD, FsCheck, and SharpFuzz/AFL++ fuzzing. The most recent commit addresses a cancellation-source disposal issue so that a flush or session close canceling an in-flight request at its end does not fail.
summary generated by a local model from public repository data model: Ternary-Bonsai-2-27B-PTQ1_0-mtp.gguf
kiljoy001/vtfs
A persistent terminal for LLM agents on Plan 9/9front, exposed as 9P files
# vtfs A persistent terminal for agents, exposed as 9P files. `vtfs` is a user-level 9P file server for Plan 9 and 9front. It runs a long-lived `rc` shell and publishes the terminal as files: type into `input`, read the rendered screen from `screen`, interrupt with `ctl`, and poll `status` for a sequence number and idle time. There is no pty and no per-command `exec`: the session is the object, and it survives between requests. This is deliberately *not* a shell tool. It is a terminal that happens to be drivable by a program. ``` /mnt/vt/ clone read: allocate a session id 1/ input write: type a command line cons write: same as input; read: raw output ring screen read: 24x80 text, no escape sequences scroll read: scrollback ring, oldest first ctl write: start reset intr kill free echo resize R C clear quiet MS timeout MS status read: state pid rows cols cursor seq idle ``` ## Why Agents need state, not one-shot commands. A terminal gives them: - **Persistence.** `cd`, environment, functions and running processes stay alive between tool calls. - **Observation.** `screen` is an idempotent snapshot of what a human would see, not a byte stream full of cursor escapes. - **Interruption.** `echo intr > ctl` sends an interrupt to the session's process group. - **Retry safety.** Reading `screen` twice does not consume anything. - **Sharing.** Any number of 9P clients can mount the same session. A human can watch in `rio` while the model types. ## Quiescence lib9p serializes request handling per connection, so `screen` must not block waiting for the shell to settle. Instead `status` exposes: ``` state running pid 474 seq 4 idle 1981 ``` A client writes a command, then polls `status` until `seq` has stopped changing and `idle` exceeds a threshold (default 120 ms), then reads `screen`. That is the whole contract. `p9client.py` implements it. `terminal_exec` takes the cleaner path: it records the raw byte offset (`out` in `status`), appends a marker line carrying `$status`, and reads the raw stream from that offset. The result is command output, not a screen snapshot, and success is normalized to `"0"`. rc's empty success string is the reason for that normalization. ## Build On 9front amd64: ```rc 6c vtfs.c 6l -o vtfs vtfs.6 /amd64/lib/lib9p.a ``` or: ```rc mk ``` The result links only against `lib9p` and `libc`; the reader and session processes use `rfork`, not `libthread`. ## Run ```rc vtfs -s vt -m /mnt/vt & mount /srv/vt /mnt/vt cat /mnt/vt/clone echo 'echo hello' > /mnt/vt/1/input sleep 1 cat /mnt/vt/1/screen ``` Flags: ``` -D lib9p request tracing -M do not mount locally (post /srv only) -s name /srv name (default vt) -m mtpt mountpoint (default /mnt/vt) -a addr also listen for 9P, e.g. 'tcp!*!5640' -T tokenfile require this token as the 9P attach aname ``` ### Authenticated listener Generate a token once and keep it mode 600 on both sides: ```sh openssl rand -hex 24 > ~/.config/vtfs/token ``` On 9front: ```rc vtfs -M -s vt -a 'tcp!*!5640' -T $home/lib/vtfs.token & # a local client must pass the token as the 9P attach name: mount /srv/vt /mnt/vt `{cat $home/lib/vtfs.token} ``` The MCP client reads `~/.config/vtfs/token` (or `VTFS_TOKEN`, or `VTFS_TOKEN_FILE`) and sends it automatically. The token authenticates the attach; it does not encrypt the stream. ## MCP server `vtfs_mcp.py` exposes the terminal as MCP tools: | tool | purpose | |---|---| | `terminal_new` | allocate a session | | `terminal_list` | show sessions and state | | `terminal_exec` | run a command, return clean output and `$status` | | `terminal_run` | type a command, wait for quiet, return the screen | | `terminal_send` | send raw keystrokes without waiting | | `terminal_screen` | snapshot the visible screen | | `terminal_restart` |
vtfs is a user-level 9P file server for Plan 9 and 9front, implemented in C with Python MCP and client tooling, that runs a long-lived `rc` shell and exposes it as files (`input`, `screen`, `ctl`, `status`) under `/mnt/vt/` with no pty or per-command exec. The recent commit supervises `rc` for in-place restart and gates attaches with a token. The last push was on 2026-11-30T22:23:53Z, and the project currently has 0 stars.
summary generated by a local model from public repository data model: Ternary-Bonsai-2-27B-PTQ1_0-mtp.gguf