Neonmem

Neonmem Workspace

An IDE with built-in models and project memory

Generation runs on models shipped inside the editor. A memory slot loads a Neonmem cartridge, which gives the agent the project's accumulated experience on every turn.

Neonmem Workspace: the Brain memory visualiser on the left, the project's memory Home in the centre showing the Labyrinth project's decisions and active plans, and the agent panel on the right.
Project Home: a recap regenerated from the project's own memory, beside the Brain memory graph.

What the agent does

All four run against the models shipped inside the editor, on the machine in front of you. Memory takes two forms: a cartridge consulted per turn, and a binary slot that holds the same material compiled into model state and restored at load.

Code generation

A turn writes files into the project. Whole-file writes carry the current contents; adding a method to an existing class generates the method alone and inserts it.

Retrieval-augmented grounding

Each turn recalls from the project's cartridge before the model runs. What is retrieved is reduced to a contract of declarations and query-scored lines under a token budget, so the request stays the larger part of the context.

Analysis

A question about existing code is answered from the code; a question about the project's history is answered from its memory. Recorded dead ends come back as warnings when a question touches one.

Planning

Forward-looking commitments are recorded as plans. Standing rules are held in the reflex layer and applied on every turn.

What the agent checks before it finishes

A file can import cleanly and still fail: a function called with arguments its own declaration cannot accept raises at the first call, and a traversal that enqueues an item it never marks as seen does not terminate. Both were observed and are checked for.

runs it
The work is executed where it declares an entry point. A failure, including a program that does not terminate, goes back to the model, and a repair is kept only if the program then runs.
arity
A call whose arguments its own declaration cannot accept, in the same file.
dependencies
An import the project's declared Maven or Gradle dependencies cannot provide.
delivery
A task naming several files that produced only some of them.

A session: designing a small game, then asking the project what it decided

One continuous session on a fresh install. The prompts are typed as written and the replies are the replies that came back.

Framing, a decision and a rule

  • You type

    We're building a small terminal game in Python called The Labyrinth — single file, no dependencies. The player walks through connected rooms looking for the exit.

  • You type

    Open question: should rooms be plain dictionaries or proper classes?

  • You type

    Decision: go with a hand-crafted maze for v1 — it's testable and we can tune the feel. Procedural can come later.

  • Recorded

    The decision is linked to the question it answers, so the reasoning travels with it rather than being stored as a bare verdict.

  • You type

    Heads up: I earlier tried keeping the player position and room state in module-level globals and it caused nasty state bugs across functions. That approach is a dead end.

  • You type

    So let's make it a rule: always keep the whole game state in one dict passed around explicitly — never module globals.

  • What changed

    The code written after this point threads the state through explicitly. The rule applied on every later turn from memory alone.

Later, asking the project about itself

  • You ask

    Why did we go with a hand-crafted maze again?

  • It answers

    The decision to go with a hand-crafted maze was based on the observation that the hand-crafted fixed maze was testable and we could tune the feel.

  • You ask

    Remind me — is it okay to keep game state in globals?

  • It answers

    No, it is not okay to keep game state in globals — and it quotes the reason that was recorded, that module-level globals for the player position and room state caused state bugs across functions.

The agent panel answering "What's our rule about dependencies?" with the rule the session recorded earlier.
The last question of the session, answered from the project's memory by a model running locally.

Download Neonmem Workspace 1.4.0

Windows x64. The installer sets it up on your PC; the portable build unzips and runs from its own folder. Both carry the editor, the memory engine and the embedding model. The language models, about 5.5 GB, are offered on first launch.

The installer is unsigned, so SmartScreen asks for confirmation on first run. Linux is in preparation.