frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Neural window manager, neural network moving windows from mouse actions

https://lusob.github.io/neural-os/
3•lusob•1h ago
I'd been mulling over this crazy idea for a while. Can programs be generated? Inspired by recent advances in world models, I wondered if we could do away with source code and generate pixels directly and interactively.

As an experiment to answer this, I set out to create a neural window manager, training a neural network to predict what the screen would look like next.

Basically, the idea was to generate the next frame based on the last two frames and the mouse position. That's it: moving windows without programming an event system, just a simple convolutional neural network guessing pixels.

To implement the experiment, I used Pygame to simulate a turquoise desktop background, a gray window with a navy blue title bar, a white cursor, and four colors in total. Then, a bot randomly dragged the window, and I recorded everything, processing the frames as color index matrices (not RGB, to avoid complications) and the mouse delta (dx, dy, click) that caused each transition. 8000 frames, a few minutes in Colab.

The model is a unitary neural network (UNET). The encoder compresses the stacked frames, the decoder reconstructs the next one, and the mouse vector coordinates are projected with a linear layer to fit the spatial size of the bottleneck. There, they are concatenated before decoding, so that motion information feeds each jump connection.

And it works! Which still surprises me a little. You can drag, and the window follows you; when you release, it stops. There's no internal state, no (x, y) coordinates anywhere. The model infers the position from what it sees, which works until it doesn't. But after a couple of seconds of strange movement, the window starts to distort.

This will probably improve with more computing power for training and more examples, but to narrow the scope of the experiment and test it within a web browser, I decided to abandon the rendering aspect and have the model predict primitives instead of pixels, simply converting the motion engine into a neural network.

Basically, I trained a small MLP to receive (distance to the title bar, distance to the resize point, click) and generate (dx, dy, dw, dh), with two separate heads: one for moving and one for resizing. The trick is that they share nothing except the click signal, so the model can't confuse dragging with resizing. I then exported it to ONNX as well, and now everything runs in the browser, without a server, just a canvas element and two small neural networks communicating with each other.

With this new approach, the renderer remains deterministic, with rectangles drawn in JavaScript, but the window's behavior (where it moves, how it resizes) is learned from examples. It feels like a peculiar middle ground between traditional and neural, so you can feel the space the network has learned by interacting with it: dragging near the title bar moves it, but approaching the corner resizes the window. There are no conditionals or hitbox code; the network simply learned where those areas are from examples.

Sometimes it gets confused near the edges, which, frankly, is more interesting than if it worked perfectly; you can perceive how the probability changes. This makes sense when you think about it, because no (x, y) coordinates are stored in these models; the position is implied in the activations. It works well for short sequences, but fails when asked to maintain state over time.

Update: A few weeks later, Meta published the Neural Computers article (2604.06425, it's worth reading). The premise is the same, but they go much further: cli and uis, real programs. Their failure modes are practically identical to those I found with the pure pixel version: "challenges persist with routine reuse, controlled updates, and symbolic stability." which is a fancy way of saying that the window blurs after a few seconds (that was the reason for choosing deterministic rendering).

Show HN: Needle: We Distilled Gemini Tool Calling into a 26M Model

https://github.com/cactus-compute/needle
606•HenryNdubuaku•1d ago•175 comments

Show HN: Micromort Risk Visualizer

https://boxed.github.io/micromort/
3•boxed•1h ago•0 comments

Show HN: Gigacatalyst – Extend your SaaS with an embedded AI builder

54•namanyayg•1d ago•20 comments

Show HN: Neural window manager, neural network moving windows from mouse actions

https://lusob.github.io/neural-os/
3•lusob•1h ago•0 comments

Show HN: Agentic interface for mainframes and COBOL

https://www.hypercubic.ai/hopper
85•sai18•1d ago•44 comments

Show HN: Torrix, self hosted, LLM Observability,(no Postgres, no Redis)

https://github.com/torrix-ai/install
22•AdarshRao23•7h ago•0 comments

Show HN: Statewright – Visual state machines that make AI agents reliable

https://github.com/statewright/statewright
110•azurewraith•1d ago•50 comments

Show HN: Ratify Protocol – prove who authorized an AI agent, offline, in <1ms

https://github.com/identities-ai/ratify-protocol
4•chuks•3h ago•0 comments

Show HN: FixMyNPM, CLI to fix your insecure npm config

https://github.com/madhugb/FixMyNPM
9•madospace•6h ago•1 comments

Show HN: Splice – A programming language with custom VM for embedded systems

https://github.com/Open-Splice/Splice
2•amitabhi•4h ago•0 comments

Show HN: Mainline – a project tool with no backlog, story points or surveillance

https://mainline.dev/demo
3•natyoung•4h ago•0 comments

Show HN: TikTok but for scientific papers

https://andreaturchet.github.io/website/index.html
183•ciwrl•2d ago•71 comments

Show HN: DAGraph – local-first reactive graph from arithmetic to OLAP SQL

https://dagraph.com
6•notfirstpost•5h ago•1 comments

Show HN: Chimera, a leaderless runtime with selectable settlement profiles

https://chimera.sigil.black/demo
3•SIGILonHN•5h ago•0 comments

Show HN: Mistle – Open-source infrastructure for running sandboxed coding agents

https://github.com/mistlehq/mistle
5•jonathanlowhy•5h ago•0 comments

Show HN: TrueCitation – academic source credibility checker (URL/DOI/journal)

https://truecitation.com/
4•kitchendesign•5h ago•1 comments

Show HN: Vim file browser that runs in separate terminal

https://github.com/hoffa/vitree
4•crehn•5h ago•0 comments

Show HN: Promptcellar – capture every Claude Code prompt as JSONL in your repo

https://github.com/dominiek/promptcellar-for-claude-code
6•dominiek•5h ago•0 comments

Show HN: Hashiverse, an open-source decentralized social network in Rust

https://www.hashiverse.com/en/
2•jamesjardine•5h ago•0 comments

Show HN: AgentKanban for VS Code – A task board with agent harness integration

https://www.agentkanban.io/
4•gbro3n•8h ago•0 comments

Show HN: Rotunda - A browser built for agents with simulated typing

https://github.com/monkeysee-ai/rotunda
7•icyfox•5h ago•0 comments

Show HN: Twatch – Rewind, search, and diff TUI applications

https://github.com/blacknon/twatch
2•blacknon•6h ago•0 comments

Show HN: HookGuard – scanner for malicious Claude.md and agent config files

https://github.com/Fredbcx/hookguard
2•MerriBan•6h ago•0 comments

Show HN: Chrome extension that blocks API keys from being pasted into AI tools

https://github.com/carlgaopapi-png/vaultbix-extension
4•shiqingao•6h ago•2 comments

Show HN: Oicana – PDF templating with Typst, 6 server SDKs and browser WASM

https://oicana.com/news/2026-05-09-public-beta/
3•niklasei•6h ago•0 comments

Show HN: Gox – Strict static analyzer for Go designed for LLM-written code

https://github.com/mentasystems/gox
2•kidandcat•7h ago•0 comments

Show HN: Kunobi 1.0 – A local-first Kubernetes workspace for GitOps teams

https://kunobi.ninja/blog/kunobi-v1
5•kunobi•7h ago•1 comments

Show HN: Diom – Open-source back end primitives with no runtime dependencies

https://github.com/svix/diom
4•tasn•7h ago•0 comments

Show HN: Pqurp – Quarantine Window for Packages to Prevent Supply Chain Attacks

https://github.com/melbahja/draft-pqurp
4•exec7•8h ago•0 comments

Show HN: A modern Music Player Daemon based on Rockbox firmware

https://github.com/tsirysndr/rockbox-zig
119•tsiry•4d ago•26 comments