Closure

Closure 0.4.0

An open-source, local-first AI novel-writing IDE

  • By AoharuCat
  • Open Source
  • Updated Sep 22, 2026
Download for Windows

About Closure

📌 This is Closure — a fork of OrisonSpace (Apache-2.0). On top of OrisonSpace's local-first AI writing IDE, Closure adds its narrative operating system layer: structured state machines (CognitionGraph / desire vectors / world entries / information-gap state machines / narrative dependency graphs), a structured knowledge base with hybrid retrieval (a deterministic pure-code core), and original modules such as information-gap control, emotion loops, the desire engine, theme gravity fields, and ripple propagation.
Closure as a whole is released under AGPL-3.0-or-later; code derived from OrisonSpace retains Apache-2.0. For attribution and provenance, see NOTICE.

Closure is an open-source, local-first AI novel-writing IDE for web-novel and long-form fiction authors, bringing outlines, chapters, characters, and worldbuilding asset cards into one workspace. Its principle is "you lead the creativity; the AI writes and self-checks": AI generation, continuation, polishing, review, and controlled edits, connected to any OpenAI-compatible model — with all creative data kept on your own computer. Windows is the priority platform; macOS / Linux are inherited from the upstream architecture. Closure is open source under AGPL-3.0-or-later (code derived from OrisonSpace retains Apache-2.0).

Feature Highlights

The Closure Layer: Narrative Engineering

On top of OrisonSpace's writing-IDE base, Closure rebuilt the generation pipeline around "letting the AI manipulate information gaps, emotion, and desire like a human author":

  • Multi-thread narrative structure — one scene graph manages the story skeleton; multiple storylines advance in parallel and interlock
  • Structure workbench — a single structure page overviewing the whole book: causal skeleton and arrangement workbench, two linked zones; the chapter axis is banded by volume and a minimap supports long-form navigation; emotion and pacing curves can be toggled on as overlays over the structure graph (foreshadowing overlay planned); isomorphic lockstep — select an element in either zone and the associated cards highlight in sync, so tracing one thread across zones takes no flipping back and forth
  • Information-gap control — records what each character knows and what the reader knows. Review catches holes like "a character said something they couldn't know" or "a planted foreshadow was never revealed," while the author's deliberate concealments and delays are not false-flagged
  • World-event system — after each chapter is written, five kinds of changes (physical, cognitive, emotional, relational, factional) are extracted from the prose and merged into world-state snapshots that advance with the plot. The key is that the ledgers come in two layers: factual truth and what the reader knows right now are recorded separately — the gap between them is your foreshadow inventory; what should have been planted but wasn't, what should have been revealed but wasn't, the system can see. When a later chapter starts, who knows what right now and where each relationship stands enters the writer's context automatically
  • Engineered emotion loop — set the target emotion for a scene before writing it; once written, automatically check whether the emotion actually landed, and bounce it back for revision if it didn't
  • Write-chapter chain — the full flow of writing one chapter: intent is dialogued, the director checks settings, context is assembled, the writer drafts, a checkpoint pauses for your review, review and revision run, and after the chapter lands it comes back to report. Every step pauses for a human; the steering wheel stays in your hands
  • Two-layer orchestration architecture — the strategic layer is the commander in the dialog (you in the loop, redirecting anytime); the tactical layer is a node chain with explicit contracts (dependencies never dropped, artifact flow never relies on prompts implicitly carrying it); chain segments bring only summaries back to the dialog — internal process never eats your context; checkpoints can pause, resume, and rerun after edits
  • Two-phase writer drafting — the writer doesn't generate in one breath: it first self-checks for context gaps, lists an investigation checklist, and only starts writing after the researcher verifies every item. When the context budget runs out, pruning follows a degradation ladder — the story skeleton, the full-book table of contents, and queryable pointers are never pruned
  • Web research — check sources before writing: multiple search providers configurable (Tavily / Bocha / AnySearch; keys stored locally only). The researcher searches, the director verifies — anything contradicting existing settings gets bounced back for you to clarify, and research results settle into the workbench as cards. Useful for checking canon when writing fanfic, or industry details when writing urban fiction
  • Meaning-preserving revision — every AI edit is presented as a word-level diff: what changed, and whether the original meaning drifted — verifiable at a glance
  • Never lost at a million words — chapter summaries, integrity checks, and mention ledgers; even at a million words, it still remembers who said what in which chapter
  • Ripple propagation — changed a setting in chapter 3? The system traces forward along the narrative dependency graph and automatically marks which downstream chapters and threads are affected and what kind of impact it is — the bill for changing settings never goes unrecorded
  • De-AI-flavor — embeds the llmlint static engine: hundreds of rules scanning purely locally at zero cost to catch "AI tone"; paired with the Lint panel and the revision loop to clear findings one by one
  • Style cards — paste a passage from a novel you admire, and a sub-agent analyzes it into a style card stored in the project (with the original excerpt); the writer, refiner, and planner all reference it afterwards. Without a style card, everything works as usual …

What's new in 0.4.0

This release rounds multi-agent support into a mainline of Closure: the AI in your conversation can now hand tasks to background sub-agents running in parallel — the main dialog never blocks, and you can watch or stop them anytime. Alongside it, the materials library gains online import (wiki entries, critique articles), the usage ledger now meters every call type and adds a monthly budget, and the model gateway gains circuit-breaker protection and assignment presets.
New Features
- Agent panel: Background sub-agents — dispatch research or long-running tasks to background sub-agents from the conversation (up to 3 per project) without interrupting the dialog; the "Background Tasks" bar shows live status and elapsed time, with cancel and a read-only drill-in view of the sub-agent's full session
- Agent panel: Three delivery channels for sub-agent results — toast notification, auto-wake the dialog to report, or silent ledger, chosen at dispatch time; unfinished tasks are honestly marked "interrupted" after an app restart
- Materials library: Online import — paste a URL or search by keyword (wiki entries such as Moegirl, critique articles); body text is extracted automatically, provenance pre-filled by source tier (community / original / criticism), and re-importing the same link is idempotent
- Craft cards: Teaching source badges — distilled teachings are badged on the human-review page as coming from a community wiki, the original work, or criticism
- Usage panel: Full-call-surface metering — embedding / rerank / image-generation calls are now metered and broken down by task label (KB retrieval, indexing, image gen, etc.), with image rows showing counts; Antigravity CLI retries and degradations are metered per attempt, neither missed nor double-counted
- Usage panel: Monthly budget — set soft/hard caps (CNY); the panel shows monthly progress with status colors and one-time over-line reminders; new calls are blocked and honestly metered once the hard cap is hit
- Model config: Task-model presets — save / switch / delete whole model assignment sets in one click; the current state shows the preset name or "Custom"
- Model gateway: Circuit breaker — a model failing repeatedly within a short window enters an automatic cooldown and gets skipped, so fallback chains stop hammering a dead endpoint; a probe restores it after cooldown …

Full release notes »

Technical details

PublisherAoharuCat
Version0.4.0
Release date2026-09-22
LicenseAGPL-3.0-or-later
Installer typenullsoft
Architecturex64
Package IDAoharuCat.Closure
Install scopeCurrent user

Install Closure from the command line

Install with Windows Package Manager
winget install --id=AoharuCat.Closure -e
Update to the latest version
winget upgrade --id=AoharuCat.Closure -e
Uninstall
winget uninstall --id=AoharuCat.Closure -e
Silent install with the offline installer
"Closure-Setup-0.4.0.exe" /S /CURRENTUSER

Silent install switches for more Windows programs »

Install Closure together with other apps in one command »

aifictionnovelwriting

Frequently asked questions

Is Closure free?

Yes. Closure is free and open-source software released under the AGPL-3.0-or-later license.

What is the latest version of Closure?

The latest version is 0.4.0, released on Sep 22, 2026.

Is it safe to download Closure?

The download button links to the official installer published on github.com, the same file Windows Package Manager installs. You can verify the downloaded file by comparing its SHA-256 checksum with c924964b6128ec7a0a4329db2357dcde914c1cabdfb7bea562c136158735e72b.

Which Windows versions does Closure support?

Closure runs on Windows and is available for 64-bit (x64) systems.

How do I install Closure silently?

Run the offline installer with "Closure-Setup-0.4.0.exe" /S /CURRENTUSER, or install it with Windows Package Manager: winget install --id=AoharuCat.Closure -e --silent.

How do I uninstall Closure?

Open Settings › Apps › Installed apps, find Closure and select Uninstall. From the command line, run winget uninstall --id=AoharuCat.Closure -e.