Skip to content
aion-lumenPublic

Latest commit

 

History

111 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aion Lumen Beacon

Folio

A markdown vault as memory. A local AI agent as your strategy partner.

Part of Aion Lumen.


A vault as memory.
A campaign as structure.
A hearth at the center.

Memory and Sonar · preview.6

Optional local vector search complements full-text retrieval. Mail and file evidence can supply independently reviewed facts in several domains. Historical file passages retain their date and context. Sonar combines bounded X likes, bookmarks and searches with a mobile review queue. Memory setup · Multi-domain review · Sonar setup

Monthly reconciliation · preview.5

Folio checks payment evidence against complete monthly account statements, closes supported cases and brings the remaining questions to Memory. Existing mail and Memory workflows continue alongside it. Setup and upgrade.

Memory review

Memory separates your decisions from waiting and completed work. Related evidence stays together; each result links to its sources. The knowledge graph remains available from the Memory workspace. Setup and update notes.

Why Folio exists

Folio began with a simple need: a second brain that would not disappear at the end of an AI session. A local Markdown vault became the durable memory; a campaign gave that memory direction through chapters and concrete objectives. From the beginning, the vault separated material into open, internal, and restricted layers. That boundary became Folio's first governance rule.

But a memory that is maintained by hand goes stale. Much of the work that changes a life or a project arrives through email, so Folio grew a read-only mail connection and a local multi-model pipeline that can sort incoming messages, surface uncertainty, and bring relevant work back into the campaign. The vault is the memory, the campaign is the structure, and mail is one of the flows that keeps both current.

That connection is deliberately local-first. As mail, local models, and session handoffs were added, the original boundary had to remain valid across every new interface. Models may assess and propose; source trust, capabilities, review gates, and audit determine what is allowed to become part of the record. Plain Markdown remains the portable source of truth. The full story is at aion-lumen.ch/folio.

Status

Status: v0.6.0-preview.6 (prerelease)
License: AGPL-3.0
Platforms: Linux / macOS / WSL2

See the public releases and changelog. The new calendar, recurring-cost and Ledger features are described below; the mail workflow remains central.

Stack

  • SvelteKit 2 + Svelte 5 (Runes), Tailwind CSS 4
  • SQLite (local, file-based) via better-sqlite3 — no DB server
  • Local LLMs via Hermes Agent (Nous Research) and LM Studio
  • Cytoscape.js for graph visualisations

Leuchtfeuer

The Heute hub carries a Leuchtfeuer card: site page-request & repo reach metrics derived from server logs only — no client-side tracking, no cookies, no external analytics, so the sites' zero-external-calls promise stays literally true. IP addresses are anonymised at parse time and raw logs are dropped after 7 days. folio reads the aggregates read-only from ~/.folio/metrics/ and degrades gracefully to the last known state when they are missing. Collector deployment is configured separately; Folio consumes the resulting aggregates read-only.

Quick Start

Prerequisites: Node.js 20+. The demo vault runs fully self-contained — no Hermes needed. A running Hermes Agent is only required for the AI chat / full operation (see below).

git clone https://github.com/aion-lumen/folio.git
cd folio
npm ci
npm run build
ORIGIN=http://127.0.0.1:4173 HOST=127.0.0.1 PORT=4173 node build/index.js

Open http://127.0.0.1:4173 and follow the Setup Wizard. On first launch you can connect an existing vault, start from a demo vault, or create one from scratch.

Environment — create .env in the project root:

VAULT_PATH=/path/to/your/vault
HERMES_API_URL=http://localhost:8642
HERMES_API_KEY=your-key-here

Optional source adapters and local model runtimes require their own configuration; see source configuration. Before upgrading an existing installation, follow upgrade and rollback. Secure document extraction uses the documented macOS tools.

For vault layout and mail integration, see docs/VAULT.md and docs/MAIL.md. Optional domains are constrained by the module registry and capability boundary. Dependency audit policy and reviewed upstream constraints are documented in docs/dependency-security.md.

Import inbox & LLM triage

External agents deliver Markdown to ~/.folio/inbox/ per FOLIO-IMPORT.md (public spec: aion-lumen.ch/folio/import-spec.md). Folio validates, optionally runs local LLM triage (LM Studio), and can auto-create campaign objectives when confidence is high — but only from trusted sources (config/trusted_sources.yaml); anything derived_from_external always goes to manual review.

The mail pipeline can also deliver job-leads (type: lead): freelance/project opportunities that surface on the Heute hub ("Fristnahe Leads", deadline ≤ 48h) and, on review-commit, become objectives in the current chapter.

LM_STUDIO_BASE_URL=http://127.0.0.1:1234
FOLIO_AGENT_MODEL=qwen3-30b-a3b-thinking-2507   # tune via npm run eval:triage
FOLIO_AGENT_CONFIDENCE=0.8
FOLIO_AGENT_AUTO=0   # opt-in; button trigger is default
npm run eval:triage   # compare models × prompts on fixtures (requires LM Studio)

Preview and commit in the UI: Heute → Import-Inbox or /inbox.

Demo (mock data)

Bundled demo of the full pipeline against isolated *-demo.db files on port 5174 — your real ~/.folio is untouched. Prerequisites: seed the demo state from multi-agent-lab first (see Demo (full stack) below).

bash scripts/demo-server.sh

Then open http://localhost:5174/pipeline (Pipeline page).

Demo (full stack)

Full pipeline demo (folio UI + multi-agent worker simulation) — no IMAP, no LLM, no real data. Reproducible end-to-end against a fictional Alex + Maya household in the Algarve.

For an assisted cold start on a second Apple Silicon Mac, follow docs/second-device-demo.md.

  1. Clone both repos side-by-side:
    git clone https://github.com/aion-lumen/folio.git
    git clone https://github.com/aion-lumen/multi-agent-lab.git
  2. Seed the demo DBs in multi-agent-lab. This populates the isolated *-demo.db files (folio + feedback) with the demo content:
    cd multi-agent-lab
    python3 -m venv .venv && source .venv/bin/activate
    pip install -r requirements.txt
    cp config/user_context.example.yaml config/user_context.yaml
    cp config/regelwerk.example.yaml config/regelwerk.yaml
    make demo
  3. Start the folio demo server (isolated *-demo.db, port 5174):
    cd ../folio
    npm install
    bash scripts/demo-server.sh
  4. Open http://localhost:5174/pipeline — Pipeline page should render with seeded worker runs and validator opinions.

See docs/quickstart.md for the demo's environment variables and what each *-demo.db file holds.

Screenshots

Captured against the bundled demo state (fictional Alex + Maya household in Algarve, no real data). Reproducible end-to-end — see multi-agent quickstart for the make demo workflow.

Mail in everyday use

Mail is Folio's main flow into an up-to-date memory and campaign. The queue puts category, actionability and model judgements next to each message. The pipeline makes progress and disagreement visible; the run history explains why a case was held for review.

These established demo captures show the mail workflow. They come from the June 2026 preview; model labels and some surrounding controls reflect that version, not a new benchmark.

Mail queue with categories, actionability and model assessments beside each fictional message
Mail queue — the message, its classification and the model assessments together.

Mail pipeline showing import, worker, validator and subsequent processing in the earlier demo
Pipeline — each processing stage and its current state.

Model checks and detailed run history

Model validator in the June demo

Run history and reasons a case needs review

Mail screenshots and provenance · Detailed pipeline walkthrough

Campaign and workspace

Folio dashboard — campaign timeline, kanban board and Hermes chat panel side by side (demo vault)
Campaign dashboard — five-act timeline, chapter kanban, and the Hermes chat panel reading the vault live.

Heute dashboard — entry view with vault/mail/pipeline/hermes cards
Heute dashboard — four cards as entry points (vault, mail-queue, pipeline, hermes chat).

Mail pipeline (reference architecture)

Folio orchestrates the Python pipeline in multi-agent-lab:

flowchart LR
  folio[folio manager.ts]
  worker[production_worker.py]
  validator[validator_batch.py]
  feedback[(feedback.db)]
  foliodb[(folio.db)]
  folio -->|spawn silent| worker
  worker --> feedback
  folio -->|mail_ids handoff| validator
  validator --> foliodb
Loading

Set AION_LUMEN_PATH if the repo is not at ~/Projects/aion-lumen/multi-agent. See multi-agent docs/quickstart.md for an offline demo.

What works today

  • Portable memory — plain Markdown + YAML frontmatter as the source of truth
  • Campaign workspace — acts, chapters, objectives, Kanban, history and weekly focus
  • Read-only-first mail pipeline — local classification, visible disagreement and review queue
  • Import inbox — validated interchange documents, source-trust policy and local LLM triage
  • Hermes integration — manifest-selected vault context, traceable sessions and execution profiles
  • Module foundation — deny-by-default capabilities, route/database guards and kill switches
  • Folio-owned memory — confirmed facts with provenance, temporal history and domain-scoped context
  • Session Relay — provider-neutral handoffs with exact cloud approval and reviewed return paths
  • Mail Relay workflow — a Mail Queue case can return as an editable draft, context question, Objective proposal or explicit no-action conclusion; Folio never sends it automatically
  • Sonar preview — bounded X likes, bookmarks and searches, fresh placement suggestions and mobile review with append-only human decisions
  • Leuchtfeuer — privacy-preserving, visually attributed site and repository resonance from server aggregates, without client tracking
  • Isolated demo — fictional fixtures and separate *-demo.db state, without IMAP credentials

New in 0.6 Preview

The new modules extend the mail workflow:

  • Calendar: a calendar overview and mail-linked proposals, with approval before creating an event.
  • Ledger and recurring costs: imported income and expenses, contracts and subscriptions, with categories leading to individual transactions and statements. Confirmed own-account transfers are kept out of household income and spending; estimates remain marked.
  • Memory graph: explore confirmed knowledge and its source links in 2D or 3D, with search, domain filters and source details. Available to the owner under Gedächtnis; this is a read-only projection, not automatic confirmation of new facts. View the graph with synthetic data.
  • Mail operation: distinguish decisions from completed automation and pending technical work. An optional local comparison bench supports mail-model evaluation with a separately configured runtime and test cohort.

Complete Ledger preview: assets, monthly income and expenses, cash flow, categories and period slider; synthetic data
One complete Ledger view, including the period slider. Synthetic data; click for the 1920 × 1365 image.

Mail processing and model assessment remain local; optionally configured connections such as Google Calendar communicate with the respective provider.

Ledger is a preview for imported evidence; projections are estimates. It does not execute bank transactions. Setup, upgrade and preview scope · Release notes

What is being built next

  • Operational learning — use the mail Relay in daily work before expanding its adapters or turning the optional Redaction Gate into a default workflow
  • Memory evaluation — compare disposable graph/RAG projections against Folio's small canonical facts-and-FTS baseline, using questions produced by real Relay cases
  • Measured local delegation — move suitable routines from long-running online sessions to local agents only after their quality has been observed against the same contracts
  • Mobile review — continue daily-use validation of the approval and correction surface alongside the desktop workflow

These items remain development direction, not promises of the current release. See docs/ROADMAP.md for gates, sequencing and the full roadmap.

Contributing

Built by one person. Slow on purpose. Issues and pull requests welcome.

This is a solo project — contemplative pace, not startup velocity. If something is broken or missing, open an issue.

Acknowledgements

License

AGPL-3.0 — see LICENSE.

Design assets (Aion Lumen mark, color system) are CC BY 4.0.


Folio provides the engine. The course is yours.

— afm.

Releases

Packages

Contributors

Languages