Skip to content
alexandrefedPublic

About

A goal grid on Relate: one goal in the centre, broken down until each day shows what to do next.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Intendora

One goal in the centre of a 9x9 grid, broken down until each day shows what to do next. Your own AI guides the setup with you, question by question, and you confirm every answer. Everything stays on your computer.

It follows the Harada method, the chart a sixteen-year-old Shohei Ohtani filled in to plan his way to the major leagues.

Start here

1. Install and start it. One line, and you need nothing installed first.

On macOS or Linux, in Terminal: curl -LsSf https://raw.githubusercontent.com/alexandrefed/intendora/main/install.sh | sh

On Windows, in PowerShell: powershell -ExecutionPolicy ByPass -c "irm https://raw.githubusercontent.com/alexandrefed/intendora/main/install.ps1 | iex"

Intendora opens in your browser. Next time, start it with intendora start; stop it with Control-C.

Like to read it first? Open the same address in a browser. The script is short: it installs uv (Astral's tool that runs Python apps, pinned to one version), then Intendora, and it never asks for administrator rights. To do it by hand instead, install uv (on macOS or Linux curl -LsSf https://astral.sh/uv/install.sh | sh, on Windows powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"), open a new terminal, then run uv tool install "intendora @ https://github.com/alexandrefed/intendora/archive/refs/tags/v0.1.2.tar.gz" and intendora start. From a copy of this repository, uv run intendora works too.

2. Connect your AI. Open a second terminal and leave Intendora running in the first.

  • An AI app on your computer (Claude Code, Claude Desktop, Cursor, VS Code, Gemini CLI): run intendora connect followed by the app, for example intendora connect claude-code, and do the one thing it prints.
  • An AI app in the cloud (Claude, ChatGPT, Gemini, Grok, Perplexity, Le Chat, on the web or your phone): run intendora share. It prints an address: add it as a connector named Intendora in the app's settings, then type the sign-in code that appears in your terminal. The first time, it asks for a free ngrok account (see the cloud apps below).

3. Send your AI one message: Set up my Intendora. It asks the questions; you keep each answer on your grid.

Just looking? intendora start --demo opens an example grid, Ohtani's own chart, kept apart from yours.

Use it with your AI

Connect your AI app once, then send it one message: Set up my Intendora.

Apps on your computer

Each command prints what that app needs, with a private key shown only once: keep it to yourself.

  • Claude Code: intendora connect claude-code (one line to paste into a terminal)
  • Claude Desktop: intendora connect claude-desktop (a few lines for its settings file)
  • Cursor: intendora connect cursor
  • VS Code: intendora connect vscode
  • Gemini CLI: intendora connect gemini-cli

intendora connect --list names them all.

Cloud apps

Claude on the web, ChatGPT, Gemini, Grok, Perplexity and Le Chat run on their companies' servers, so they cannot reach a program on your computer by themselves. intendora share gives your Intendora a public address that only your signed-in AI can use. You need the free ngrok program and account: install ngrok (ngrok.com/download, brew install ngrok or winget install ngrok), sign up, and note your authtoken and your static domain (Domains, in the ngrok dashboard; it looks like quiet-otter-17.ngrok-free.app). Then:

  1. Run intendora share. The first time, it asks for the authtoken (hidden as you type) and the static domain, and keeps them in a private file in Intendora's folder. intendora share --reset forgets them.
  2. It prints the address to use, ending in /mcp. In your AI app, add a connector named Intendora with that address (in Claude and ChatGPT: Settings, then Connectors; ChatGPT needs a paid plan for this). Added once on the web, the connector also works in the desktop and mobile apps of the same account.
  3. The app opens a sign-in page (ngrok may first show a warning page: choose Visit Site), and your terminal prints a one-time code. Type it there.
  4. Send your AI one message: Set up my Intendora.

Keep the terminal open and your computer awake while you use it; Control-C (the Control key, also on a Mac) stops everything. Already use Tailscale? intendora share --tailscale uses Tailscale Funnel instead, with no ngrok account. Cloud apps only reach a public address on the standard https port, so Funnel takes port 443 of your computer's Tailscale name: if you already serve something there, use ngrok instead.

Apps that cannot connect yet

ChatGPT Free and Microsoft Copilot do not accept connectors today. Use one of the apps above.

What Intendora does

Your main goal sits in the centre until you reach it. Around it are eight areas that serve it, each broken into milestones and steps of a few minutes, and the daily actions you keep every day. Each morning shows the grid of the day; marking a milestone done brings the next one in, and every daily action is counted with its date. Your AI proposes and helps; you confirm every link, with a reason. The grid lives in a database on your computer (Relate), and your AI reads only what you allow.

Commands

Everything from here on is the reference, for people who run Intendora from its source or want the details. Installed, the commands are intendora …; from a copy of the source, they run through uv run as below.

uv run intendora check <file.json>                 # is the file valid? exit 0, or 2 with each problem's path and rule
uv run intendora load <file.json> --store <dir> [--retire-missing]   # check the whole file, then write it
uv run intendora serve --store <dir> [--allow-host <name>]   # the page at http://127.0.0.1:8771/ (or ./run)
uv run intendora backup [--store <dir>] [--label <name>] [--keep 30]   # copy the store, prove the copy opens; through the service when it holds the store
uv run intendora restore <backup folder> --store <dir>   # service stopped; the old store is kept as <dir>.before-restore-<stamp>
uv run intendora export [--store <dir>] [--out-dir <dir>] [--keep 8]   # everything in one dated JSON file (the person only)
uv run intendora today | done <id> | undo <event_id> | reflect   # day to day; --store <dir> runs in-process, --json prints the result
uv run pytest -q                                   # the tests

Who may call. serve listens on loopback only. Behind a proxy that sets X-Forwarded-For (Tailscale Serve does), the door answers this machine and the devices named with --person-device <ip> (repeat it for each); any other device gets 403 this_device_cannot_open_this_grid. A write must name its door: an Origin the service serves (the page), Intendora-Client: cli (the command line) or Intendora-Agent; otherwise it is refused with a_write_names_its_door. On the command line, a Claude session (CLAUDECODE set) must name its agent with --agent or INTENDORA_AGENT, or pass --as-person to say on purpose that the words are the person's own; --as-person together with an agent name is refused.

The public sign-in. Beside its private tokens the connector can accept Sign in with GitHub, for one GitHub account only. It is on when all seven settings are in the environment, and off when none is; some of them without the others stops serve with exit 2 and names the missing ones, never a value. The settings are INTENDORA_PUBLIC_BASE_URL (the public address, no trailing slash needed), INTENDORA_OWNER_GITHUB_ID (the digits of the one account), INTENDORA_OAUTH_STATE_DIR (where the registered clients are kept, encrypted), INTENDORA_GITHUB_CLIENT_ID, INTENDORA_GITHUB_CLIENT_SECRET, INTENDORA_JWT_SIGNING_KEY and INTENDORA_STORAGE_ENCRYPTION_KEY. --connector-device <ip> names a device (the VPS, through Serve) that reaches only the eight connector paths, and --public-host <name> names a host that answers only those eight paths and 404 everywhere else; both repeat. A private token is refused on the public route with a_private_token_works_only_on_your_network. The first call of a signed-in AI makes it a connection that is read-only until the person approves it in the app. GET /api/connector (the person only) gives the private path and the public address.

Exit codes: 0 done, 2 the file is refused (nothing is written), 5 the store is held by another process (stop the service first, then load again).

The grid file intendora-grid/1

One JSON object with format (exactly intendora-grid/1), settings, nodes and links, and an optional note that is read and never stored. A null on an optional field means "not set"; a null on a required field is refused. Any key the format does not define is refused, naming its path, except title_original on a node.

  • settings: time_zone, day_start (default 04:00), daily_time, worst_day (Habit ids), review_weekday, grid_time_and_place, morning_sentence, worst_day_note, agent_company.
  • nodes[]: an explicit id (lowercase letters, digits and -, 2 to 64 characters, never derived from the title), type, title, important, urgent, owner (person or agent:<name>), and the fields of its type. Exactly one Goal has "centre": true, and it always has a test_of_done.
  • links[]: SUPPORTS (from, to, reason, position 1 to 8 or null, rank), REQUIRES and BLOCKS (from, to, reason), and STEP_OF (step, quest, pos).

intendora check names every broken rule, for example links[3].reason a_reason_cannot_be_empty. The whole file is checked before the store is touched.

What is stored

Every grid node is :Node plus its type. Nested file objects are flattened into properties (schedule_kind, purpose_*) or kept as JSON text (look_back_json, obstacles_json). A SUPPORTS link stores its own id, parent_id, reason, rank and, when it has one, position. Settings is one record and Meta is one record (version, app_version, and seq, the event counter).

Each node, each link and the Settings record that is created or changed appends exactly one Event (kind: changed, actor: person, via: loader) holding its state before and after, with a seq and an idempotency key. All of a load is one transaction: it lands whole or not at all. Loading a file that changes nothing writes nothing. The loader never deletes. If the store holds a live node or link that the service created and the file no longer lists, the load is refused before anything is written (exit 2, rule the_store_holds_things_this_file_lacks, one line per thing). --retire-missing ends them instead, in the same transaction: a link gets ended_at (and position_was, or pos_was for a place in a Quest, and loses the position), a node gets archived_at, each with one changed event, and the position or place they held is free for a new child in the same load. A file that lists a retired node or link again brings it back: the node loses archived_at, the link keeps its id and loses ended_at and position_was (a Step's place gets its pos back), each with one changed event; if the returning position is now held by another live child the load is refused (one_node_per_position_under_a_parent). Records made by hand in the database, without the service's creation stamp, are left alone.

The operations layer enforces the layer rules itself (an empty reason, a position outside 1 to 8, a disallowed pair, a Habit as blocker, a ninth positioned child, a successor loop) and raises intendora.ops.Refused; a load turns that into a refusal of the file and writes nothing.

The database refuses by itself what the file check should already have caught, naming a plain-English rule (a_link_needs_a_reason, one_node_per_position_under_a_parent, and the others in src/intendora/schema.py).

Layout

src/intendora/
  model.py     the fixed vocabulary: labels, link types, allowed pairs
  gridfile.py  validate(data) and GridFileInvalid
  schema.py    constraints, the index, the schema version (the only module that runs DDL)
  store.py     the one-owner-thread wrapper, with transactions
  queries/     every Cypher string, as named constants
  ops/         the functions that write (events, nodes, links, settings)
  loader.py    load_grid and load_file
  web/         the service (Starlette) and the page: web/app.py, web/static/
  ops/page_grid.py  the page's read
  cli.py       the `intendora` command

The page

./run serves the 3x3 around the centre, with positions running clockwise from the top-left, and "open its grid" on any square that has children. The same data is at /api/grid and /api/grid/<id> as JSON: nine blocks of nine cells in reading order. A Done button on a square records it and an Undo button takes it back for ten seconds; only the squares that changed are repainted.

Connecting an AI on your network

intendora connect-ai --name <name> prints a private token once. An AI on your own network connects to http://<this machine>:8771/mcp as an MCP server over streamable HTTP, sending the token as Authorization: Bearer <token>. The connector lives in the same service as the page, so it answers only the devices and hosts the page answers. Every tool result passes through one filter that removes obstacle plans always, and your private answers while "AIs may read my why" is off. Disconnecting an AI in the app refuses its token on the next call.

About

A goal grid on Relate: one goal in the centre, broken down until each day shows what to do next.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages