No description
  • Python 66.7%
  • TypeScript 29.7%
  • CSS 3.2%
  • Makefile 0.2%
  • HTML 0.1%
Find a file
Jan-135 3f92a7d666 Cache Codex runtime facts and load the conversation list independently
The Donna page waited on the runtime for everything: /donna/status ran
`codex --version`, asked the app-server for the account and fetched rate
limits from OpenAI on every request, and the conversation list was bundled
into that response. Runtime facts are now cached (version 10 min, auth 30 s,
rate limits 2 min, invalidated on sign-in/out and install), rate limits are
only fetched for the settings screen, and the conversation list has its own
request so it renders immediately.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011yAi5PJ9eo5bmr7bUzGLZ8
2026-09-12 02:26:06 +02:00
agentbox something 2026-09-12 00:16:11 +02:00
backend Cache Codex runtime facts and load the conversation list independently 2026-09-12 02:26:06 +02:00
deploy Add responsive web client, operator docs, Makefile and deployment files 2026-09-12 00:13:06 +02:00
docs Persist Donna conversations; allow clearing history per item or entirely 2026-09-12 02:20:21 +02:00
frontend Cache Codex runtime facts and load the conversation list independently 2026-09-12 02:26:06 +02:00
scripts Add responsive web client, operator docs, Makefile and deployment files 2026-09-12 00:13:06 +02:00
.gitignore Add Python backend with changelog-enforced storage, API, documents, Donna and CLI 2026-09-12 00:00:59 +02:00
Makefile Add responsive web client, operator docs, Makefile and deployment files 2026-09-12 00:13:06 +02:00
README.md Pin current Codex release; discover models from it; offer runtime updates in Settings 2026-09-12 01:08:17 +02:00

J4rvis

J4rvis is a personal life-management system built around one person's needs. It makes it effortless to capture loose thoughts, organize commitments and documents, and delegate suitable work to a personal assistant named Donna, while every change stays attributable and inspectable.

This repository contains the first usable release: a Python backend with a versioned API, a responsive web client for desktop and iPhone browsers, and the Donna tool surface.

Layout

Path What it is
backend/ Python backend: domain rules, SQLite storage with a transactional changelog, the /api/v1 HTTP API, Donna runtime adapters, CLI.
frontend/ Responsive web client (Vite, React, TypeScript). Talks only to the API.
docs/ Product and architecture specification (01–09) and the implementation notes (10).
deploy/ Sample systemd user unit for Arch Linux.
scripts/ Backup helper.

Quick start (Arch Linux, local network)

Requirements: Python 3.12 or newer, uv, Node 20 or newer.

make setup                       # backend venv + npm install
make build                       # build the web client into frontend/dist
cd backend
.venv/bin/j4rvis init            # creates ~/.j4rvis (private) and ~/j4rvis (library) and tokens
.venv/bin/j4rvis token show      # the owner token you paste into the web app
.venv/bin/j4rvis serve           # http://127.0.0.1:8710 serves the API and the web app

Open http://127.0.0.1:8710, paste the owner token, and start capturing. To reach it from the iPhone on the same network, set server.host in ~/.j4rvis/config/config.toml to your PC's LAN address (or 0.0.0.0) and restart. Authentication is always required; the backend never binds a public interface unless you configure it.

Useful commands:

make test                        # backend pytest + frontend typecheck and tests
make dev                         # backend + Vite dev server with hot reload on :5173
.venv/bin/j4rvis status          # resolved configuration, library id, integrity
.venv/bin/j4rvis backup ~/backups/j4rvis
.venv/bin/j4rvis restore <archive.tar> --into /path/to/empty/dir
.venv/bin/j4rvis relocate /mnt/nas/j4rvis   # copy library + database, then point config at it

Configuration precedence is command-line flags, then J4RVIS_* environment variables, then ~/.j4rvis/config/config.toml, then defaults.

What you can do today

  • Capture from anywhere (c on desktop, the + button on mobile); text is the only required input and the original text is preserved.
  • Review the inbox one item at a time: turn a capture into a task, note, idea, project or goal; defer, archive or delete; keyboard shortcuts and touch buttons do the same things.
  • Today shows overdue tasks, tasks due today, reminders and items you selected with ☆. Nothing is ranked by AI.
  • Projects, goals, areas, tags, due dates, reminders and explicit relations between any two items.
  • Documents: import files (copied into the library unchanged), register existing files or whole folders after a preview, download originals, repair moved files, move, unregister or delete with confirmation. Missing files are detected when accessed and never silently dropped.
  • Search across titles, text and filenames with filters for kind, state, project, area and tag.
  • History: every change with actor, client, action, before/after versions and a plain-language explanation. The changelog cannot be edited, and the database refuses any change that is not logged.
  • Donna: a dedicated chat. She reads through typed tools, may capture and save memories (pre-approved, configurable), and proposes every other change for your approval. Approved proposals run as ordinary logged operations. Conversations are temporary; memories are visible, editable database objects.
  • Read-only Forgejo repository facts on a project (summary, recent commits, open issues, open pull requests, CI status).

Donna runtimes

Donna is configured entirely from the web app under Settings → Donna. Two runtimes sit behind one contract:

  • Scripted (default): deterministic commands (today, inbox, search …, capture …, remember …, task … due YYYY-MM-DD, plan …: …; …, complete <id>). No model, no network. Useful for testing the whole approval path.
  • ChatGPT via Codex: the official OpenAI Codex runtime signed in with your ChatGPT Plus account. No API key, no separate billing.

To connect ChatGPT: open Settings → Donna, press Install runtime, then Sign in with a code (works from any device: open the shown link, enter the one-time code), pick a model from the discovered list, and Save. Changes apply immediately without restarting the backend. The model list comes from the installed Codex runtime itself. Keep the runtime current: OpenAI retires model names between releases, and an outdated runtime is rejected for every model. Settings → Donna shows an Update runtime button when yours is older than the version J4rvis pins.

The same steps exist on the command line (j4rvis donna install-codex | login | models | use codex | logout) for headless setups.

Planning documents

  1. Product vision
  2. Product specification
  3. System architecture
  4. Experience specification
  5. Roadmap
  6. Decisions and open questions
  7. Storage and filesystem model
  8. Technology direction
  9. Agent runtime evaluation
  10. Implementation notes — what was built, how it maps to the specification, backup and restore, and the questions that came up while building.

The original project brief is preserved in agentbox/AGENT.md.