The presentation layer over Idea Machine's idea lattice (~/data/code/ideamachine, ROADMAP §3.5 and Phase 2).
Idea Machine owns the truth and publishes it as views in schema pub. Lattice reads them as role lattice_app.
Its only write is appending to pub.feedback_events.
What it does (Idea Machine's ROADMAP, Phase 2 slices 2 and 5):
-
Proposals: Idea Machine's weekly proposals (M2), heaviest first. Keep each as Canonical (it carries weight), Pin it (kept and visible, no weight), or Dismiss it:
idea_keep/idea_dismissevents. Only you make ideas. Capture review and "which is better?" comparisons are retired: nothing in Idea Machine reads them. -
+ Idea: add your own idea (title, statement, optional context). It's an
idea_addevent with an id made on the device, so it shows on the map at once ("Added by you") and can be starred or linked before Idea Machine embeds, places and files it on its next run. -
Draft with Claude (on a theme, and on each digest point): opens claude.ai with the request written (and copied), where
draft_materialgathers the ideas and Claude asks what to make before writing. -
Shape themes (slice 4): in a theme, Rename, Merge into…, or Split… (tick ideas into a new theme of yours); in an idea's panel, take it out of a theme (×) or put it into another (+ Theme). Idea Machine applies them as they arrive (its migration 024), and the app applies them to its copy at once.
-
Time → Themes: a theme stream, each theme a band over the days or weeks, as thick as how often its ideas came up (a capture shared among its idea's themes). Follows the View; tap a band or its key to open the theme.
-
Ideas like this: an idea's panel lists similar ideas (Idea Machine's nearest neighbours,
pub.idea_neighbours, kept on the device) with a one-tap Link; ≈ Meaning makes the search box search by meaning. The server embeds the words with the same model Idea Machine uses (fastembed, BAAI/bge-small-en-v1.5, baked into the image) and askspub.ideas_near; offline, or if Idea Machine's model changes, it matches words instead. -
Export as Markdown (in the run-status panel): the whole lattice as a zip that opens as an Obsidian vault: a file per idea (properties, statement, notes, [[links]] to its connections, quotes), per theme and per digest, and an index. It's your own copy, so speakers keep their names.
-
Map → Grid: theme × theme, how your themes connect. Each pair's dot grows with the ideas in both and the links across (a
relatedlink counts half), with the strongest pairs listed below; tap one for the ideas and links that join them. Follows the View and the search. -
Demo mode (in View), for showing Lattice to someone: ideas and themes Idea Machine tagged (
pub.sensitivity: sex, gender and sexual politics, political extremism, violence, racism, and swearing) are taken out of every view, by the categories you tick; digest points citing them and digest summaries go too. "Black out swearing" redacts swear words wherever text is shown. In an idea's or theme's panel, Hide it / Show it overrides the tag. -
Words for transcription (in the run-status panel): the vocabulary Hearsay boosts. Idea Machine suggests words it saw misheard (with how they were heard) or typed in your archive; your corrections and words you add go straight in (
vocab_add/vocab_remove;pub.vocab). Idea Machine writes the approved list to thevocab.jsonHearsay reads, and you commit it on Hearsay's Words page. -
View: a time range (all, 90, 30 or 7 days: by when an idea was said, or made if you added it) and starred only, for the map, Time and List; and idea titles on or off on the map. The map draws only what's in the View, laid out afresh to fill the screen.
-
Theme by theme on the map: picking a theme (the strip over the map, the Themes list, or a theme chip) redraws the map with only that theme's ideas, spread out and named, so a dense lattice can be picked apart. Optionally the ideas it links to outside the theme come along, faint. ‹ › step to the next theme (on a phone, in the sheet's title bar); All brings the whole map back.
-
Week (in the Time tab): Idea Machine's weekly digest (
pub.digests): a summary, then points (what keeps coming up, what converges, sleepers, projects forming, what a stranger would value), each with its ideas as chips that open the map, and ★ Worth it / Not useful (digest_star/digest_dismiss). A dot on the tab marks a new one. -
Map: ideas laid out by meaning (
pub.idea_positions, a 2D projection Idea Machine keeps stable), colored by theme, sized by weight (evidence, and a star counts for two), with connections. Tap an idea for its evidence: star it, correct it, link it to another idea, or keep / discard its captures in place. Tap a theme to see what it is and its ideas, best first, with Pin / Reject in view; the map zooms to them and dims the rest. A dashed ring marks ideas that are new since your last visit (the app was away for over half an hour). -
Bridges, a switch on the map: ideas that touch two or more themes (in several, or linked across) stay lit, with only the cross-theme links; the panel lists the strongest and what they connect.
-
Territories, a switch on the map: the same places read as a map, each area colored by the theme of its nearest idea, with theme names where each theme is densest.
-
Time: one row per idea, a dot for every time it came up; Recurring puts what keeps coming back first.
-
List and search, best first once Idea Machine scores ideas (
pub.idea_scores), with each idea's score and why in its panel. -
Local-first. The page carries no data. It renders a copy of
pubkept in IndexedDB (/api/snapshot), and a service worker keeps the page itself, so the app opens and navigates offline. Feedback goes into a queue, applied to the copy at once and sent when the server can be reached; the copy is rebuilt from the server's snapshot plus whatever is still queued. Every sync replaces the copy whole, so what Idea Machine forgets is gone from the phone too. Logging out (in the run-status panel) clears the copy and the queue. -
Talk to it (MCP).
/mcpis an MCP server (Streamable HTTP, JSON responses) overpub:search_ideas,best_ideas,get_idea,list_themes,open_theme,whats_new, and, when you ask,star_idea,link_ideas,note_idea,similar_ideas(like an idea, or like some words),add_idea(worded with you, after a check for repeats),rename_theme/merge_themes/split_theme/file_idea(Claude may suggest a reorganisation; it changes themes only once you agree),draft_material(a theme, digest point or set of ideas with notes, quotes, connections and a reading order, for Claude to draft from),weekly_digest.proposalslists the candidates Idea Machine proposes (M2), andkeep_idearecords your decision on one: keep it as canonical (weighted) or pinned (no weight), unkeep it, or dismiss it. "Show me my proposals" works by voice. It takes the Lattice token as a bearer header and is tailnet-only like the rest./demo/mcpis a read-only view for showing Lattice to someone, holding back what demo mode does (see docs/public-mcp.md, "The demo connector"). For claude.ai and the phone app, which connect from Anthropic's cloud, see docs/public-mcp.md. Speakers are pseudonymized per answer ("me", "unknown", S1, S2...), as in Idea Machine's privacy policy B. From Claude Code on a tailnet machine:claude mcp add --transport http lattice https://<host>.ts.net:8444/mcp --header "Authorization: Bearer $LATTICE_TOKEN"
Every change is a feedback event, Lattice's only write (with source 'mcp' for changes made in conversation). Service workers need HTTPS or localhost, which tailscale serve provides.
set -a; . ~/data/code/ideamachine/.env; set +a # LATTICE_DATABASE_URL
uv run lattice serve # http://127.0.0.1:8790/
uv run pytest # against the real database; with IM_DEV_ADMIN_URL, some writeDon't bind it to the LAN or the internet: evidence quotes include other people's words. The one exception is the MCP endpoint alone, published for claude.ai and the phone app through a Cloudflare Tunnel, behind OAuth and Anthropic's address range (docs/public-mcp.md), and only if you set it up.
This is where Lattice runs for real, next to Idea Machine on the NAS's NVMe pool. Idea Machine's
install/compose.yaml builds Lattice's image from the clone at /mnt/fast/repos/lattice and runs it with
Idea Machine's database. Both clones are admin-owned; their data and config (config/lattice.env,
config/cloudflared.env) are in /mnt/fast/ideamachine.
# as admin, once
git clone git@github.com:lowmagic/lattice.git /mnt/fast/repos/lattice
# to deploy: pull as admin, then run Idea Machine's installer
git -C /mnt/fast/repos/lattice pull
git -C /mnt/fast/repos/ideamachine pull
sudo /mnt/fast/repos/ideamachine/install/nas.shIt listens on 127.0.0.1:8790, and tailscale serve puts it on the tailnet on port 8444
(https://<host>.ts.net:8444/). The public MCP listener, if you set it up, is 127.0.0.1:8791 behind the
Cloudflare Tunnel (docs/public-mcp.md). The containers log to journald:
journalctl -t lattice and journalctl -t lattice-tunnel.
systemd/install.sh runs lattice serve as a user service on localhost:8790. It reads .env, which holds
LATTICE_DATABASE_URL and LATTICE_TOKEN (16 characters or more: without it lattice serve exits and the unit
restart-loops), and the service restarts after code changes only when you restart it. The script then puts
it on the tailnet with tailscale serve, at https://<host>.ts.net/ with Tailscale's certificate.
That step needs root once: sudo tailscale serve --bg http://127.0.0.1:8790, or sudo tailscale set --operator=$USER to allow serve changes without root. Never tailscale funnel, which would publish it to the
internet.