Skip to content
项目

关于

Open-source relational AI framework with identity persistence, memory, and MCP integration. Build relationship-aware AI agents that remember, grow, and maintain continuity. Built on Claude Agent SDK.

人工智能与机器学习

这些数字如何统计

实测星标增长

24小时
0
7天
+1
15天
+2
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Resonant

A self-hosted home for you and Claude. Resonant is an always-on web UI that drives Claude Code: it finds the Claude Code sessions already on your computer, lets you pick any of them up in the browser or on your phone, and keeps them running inside its own process. Around the chat it keeps a Home page (Claude's room, orb and notes between you), routines that reach back on their own, and a Keep for the small things of a shared day.

It can also show the sessions of your other machines, each running its own Resonant (see docs/machines.md).

Resonant 4 is a new system

Version 4 is a rewrite. Resonant 3 was its own companion app on the Claude Agent SDK; Resonant 4 is built around Claude Code itself, and almost everything underneath changed. If you run Resonant 3, updating to 4 is not an upgrade in place: it is a different app, with different settings and a different data folder.

These parts of Resonant 3 are gone in 4:

  • Memory in a SQLite database, with its search and embeddings
  • The identity file (resonant.yaml and the companion's written identity)
  • Threads and the daily thread
  • Discord and Telegram
  • The Google integrations
  • House Outlook
  • The runtime theme editor
  • The res CLI

Resonant 3 stays available on the v3 branch and in its releases (v3.0.0 and earlier). To stay on it: git checkout v3. If Resonant 4 is started in a folder that still holds a Resonant 3 install, it stops and says so instead of starting.

The docs are being rewritten for version 4; the ones in this repository describe 4.

How it works

  • One Node process runs the Claude Agent SDK in-process, the same engine as the claude CLI, with the same system prompt, settings, and CLAUDE.md files.
  • Session discovery. Claude Code saves every session as a transcript under ~/.claude/projects. Resonant lists them all, grouped by folder, newest first.
  • Resume. Sending a message to a listed session resumes it inside Resonant. The session stays loaded between turns and closes after 30 idle minutes. You can pick it up again any time, here or in a terminal with claude --resume.
  • Fork. If a session changed in the last few minutes, it may still be open in a terminal. Resuming it in two places at once would make the two copies overwrite each other, so the page offers to continue in a fork (a copy) instead, which is ticked by default.
  • Permissions. Tools ask before they run, like the CLI's default mode. The request shows up in the conversation with Allow and Deny.

What's in it

Sidebar

Sessions are grouped by folder, newest first, with each folder's icon. Pin a session to keep it at the top (pins are kept on the server, so every device agrees), or Settle it to tidy it away. On a phone, the same actions open from a row's ⋯ or a long press. Click a session's title (or press F2, or use Rename in the palette or a row's ⋯ sheet on a phone) to rename it; the name is saved in the transcript, so claude --resume shows it too, and renaming doesn't move the session to the top. With more than one machine, an offline machine's sessions stay listed, dimmed and marked Offline. Search (Ctrl K) looks through every conversation on the machine and opens a hit at that message. The footer holds the machine switcher (with more than one machine), Routines, Usage and Settings.

The conversation

Replies stream in as Claude writes them. Tool calls show as rows you can open: commands with their output, file edits as diffs, subagents nested under the call that started them. Finished steps fold into a "Worked for …" line. While Claude works you see its thinking and the step it is writing as they arrive: a new file grows line by line and an edit shows as a growing diff. A running command has a clock, and after five seconds a Run in background button. Background shells, Monitors and subagents share one strip above the message box, with each one's output and a Stop button. Settings › Appearance › Tool calls in chat chooses, per device, between Show all, Hide successful and Final reply only. A reply written by a different model from the one the session uses now carries a small label with that model's name. Approvals sit inline, with Allow and Deny. When a settings hook, an SDK hook or a mod refuses a tool call, its row says who stopped it and why, and a hook that fails shows as a warning line. A plan from plan mode gets a banner with the choices to carry on.

Each message shows when it was written. Hover a reply (or tap ⋯ on a phone) to react with an emoji, reply to it, pin it, keep it as a document in the side panel, or regenerate the last one (Claude Code rewinds the turn in place and answers again). Your reactions reach Claude as a short note with your next message, and Claude can react to yours by message id with its react tool (mcp__resonant__react). A reply to a message carries a quote of it, for you and for Claude. When Claude Code compacts the conversation, a line marks the spot (with the tokens before and after, when Claude Code reports them). The header shows how full the context window is, as Claude Code counts it (amber from 80%, rose from 90%; on a phone only then). Click it (or tap the Context row in the session details on a phone) for the breakdown /context gives: system prompt, Claude Code's tools, MCP tools by server, memory files, skills and the conversation (your messages, Claude's replies, tool calls and results, the heaviest tools), plus the compaction reserve, what's free, and a tick where Claude Code compacts on its own. Claude sees it too: its context tool (mcp__resonant__context) measures the window on demand, and once the window is past half each message carries a hidden <resonant-context> line saying how full it is (Settings › General picks past half, every message, or only when it asks, per machine). With Keep's Ledger on, each message also carries a hidden <resonant-keep> line on where the day stands (see docs/keep.md). The header also has a clock to jump to a date or time, and a switch to hide Claude's thinking in this session. Export in the session details saves the whole conversation as a Markdown file or as one HTML page that opens offline.

Edit from here. The pencil on any of your messages goes back to before it: the conversation goes back there, and the message returns to the box (pictures and files too) to change and send again. If Claude changed files since, you choose "Put files back too" or "Go back, keep files"; the ask lists the files first. Files go back from Claude Code's own file checkpoints, which Resonant turns on for every session it runs (enableFileCheckpointing), so only changes made with Claude's edit tools go back, and only for messages sent since that was on. Before files go back, Resonant copies them as they are, so Undo on the band above the box puts the conversation and the files back as they were. Ticking "Keep this conversation as it is now" first copies it into a session of its own. Nothing reaches Claude Code until the next message goes: then it resumes the session at the point before that message (resumeSessionAt), in the same session. Going back before the first message starts a new session with the new one. A conversation can't go back past a compaction. On a reply, Fork from here (in ⋯ on a phone) opens a new session with the conversation up to that reply. None of this is offered in a home session.

Claude can send you a real file from the computer with its send_file tool (mcp__resonant__send_file): a PDF, a picture, a song, a video, a zip, a Word document, anything up to 100 MB. It shows as a card in the conversation. A picture shows inline and opens full screen: pinch or double-tap to zoom, swipe down, tap beside it, press Esc or the close button to come back, and on a phone press and hold it to save it to Photos (it's the file itself, not a copy drawn on the page). Several pictures sent one after another show as one grid of square tiles, and the viewer goes through them (swipe sideways, the arrow keys or the side buttons). Audio plays in a slim player of Resonant's own (play button and a waveform to seek on), video plays in place, a PDF opens (in the viewer on a computer, in the phone's own reader on a phone), and every file has a Download button. Resonant copies the file into data/sent-files/ when Claude sends it, so the card keeps working when the original changes or moves, and only files Claude sent can be fetched, behind your sign-in. Web pages and unknown kinds only download; nothing sent runs as Resonant's page. "Made for you" on Home opens its file the same way.

Composer

  • Model, effort and mode chips under the box. Modes are Ask before acting, Accept edits, Plan, and Full access (which asks you to confirm, and starts when the session reopens). The machine keeps each session's mode, so it stays the same after a reload or a restart, and on every device. A routine that reopens a closed session runs in its mode, but never picks Full access up by itself.
  • While Claude works, Enter steers (your message goes in at Claude's next step) and Ctrl Enter (or the clock button next to Send, the way to do it on a phone) queues it for after the turn. Queued messages can be edited or taken back.
  • Files: attach them, paste images, or drag them in. @ finds files in the session's folder.
  • / opens the session's commands: mod and plugin commands first, then skills and your own, then Claude Code's. For a session that isn't open yet, Resonant starts Claude Code briefly in its folder (no prompt, nothing saved) to read the list, then keeps it for 10 minutes.
  • /btw <question> asks a side question about the conversation, even while Claude works. The answer shows just above the message box with a Copy and a Close, and nothing is added to the conversation. In a session open here, Claude Code answers it in its own process; otherwise Resonant asks a one-off copy of the conversation that is never saved.
  • Drafts are kept per session until you send them, and each session opens where you last left it (in this browser), unless something new came in since.
  • Tips: now and then (at most one a day, the first an hour after you first open Resonant) a short tip about something Resonant can do waits at the bottom right until you close it. No more tips turns them off on that device.
  • Session details shows how long the last turn took and how fast the model wrote, in tokens a second.
  • New session (Ctrl Shift O) asks for a folder: pick a recent one, search, paste a path, or browse. It shows the folder's git branch.

Workbench side panel

The panel beside the conversation (toggle it from the session header, or, on a wide screen, from the slim column of icons at the conversation's edge while it's closed) has tabs:

  • Diff: every file the session changed, as a file tree and diffs. Comment on lines and send the comments to Claude as one message, Revert a file, or Open in editor (VS Code, or RESONANT_EDITOR). Big sessions stay quick: long diffs start folded.
  • Terminal: a real shell in the session's folder (Ctrl+` ), kept running on the machine so a reload or a sleeping phone comes back to it. Off for paired machines until switched on in that machine's own Settings › Terminal. See docs/workbench.md.
  • Commands: the commands Claude ran and what they printed.
  • Files: browse and read the session's folder.
  • Preview: the session's dev server, or an HTML page in its folder, beside the chat. It goes through Resonant's own preview port, so it works over Tailscale https and on a phone, shows the page's errors, and has a phone-width view.
  • Library: artifacts and pinned messages from every session on this machine.
  • Agents: every subagent in the session, working ones first. Pick one to see what it was asked, each step, its report, and Stop. @ in the box also lists the agents the folder has.

Artifacts. Every session gets an artifact tool. Claude calls it to show something once in the conversation (a chart, a diagram, a mockup) or to keep it, which adds a card and a panel tab with its versions. Artifacts use Resonant's colours and fonts. You can Keep a shown one, edit a kept one, and pin artifacts and files so they stay as tabs in every session. .html, .svg and .md files Claude writes can be seen as they render, opened in Preview, or kept as artifacts too. A revert, an edit or a keep is passed to Claude as a short note with your next message, so Claude knows what you did. Drag the panel's edge to resize it.

Claude's preview check. Every session also gets a preview tool: Claude renders a page in a headless browser on this computer and gets a screenshot plus its console errors and failed requests, so it can check its own work. You see the screenshot in the conversation.

More in docs/workbench.md, including the preview port's safety rules and its Tailscale setup.

The panel's Mods section sits under the Workbench (see Mods, below).

Git and worktrees

In a git folder, a branch chip in the session header shows the branch, commits to push or pull, files not committed yet, and the pull request with its checks once there is one (on a phone, the branch row in the session details). It opens the Git card: where the branch stands and the one next step (Commit, push and open PR, Push, Pull or Open pull request), with the others below. The commit dialog lets you pick files and offers a message Claude drafts; the pull request dialog drafts a title and description, with the base branch and a draft switch. The Diff tab can show the last turn, the whole session, what isn't committed, or the whole branch, and revert a single hunk. Resonant runs git and GitHub's gh command (signed in on that machine) with no shell in between; RESONANT_GIT_PATH and RESONANT_GH_PATH in .env point at other copies, and RESONANT_DRAFT_MODEL picks the model that drafts the text (Haiku by default).

New session's Where it works picks This folder, New worktree (a copy of the repository on its own branch, under .claude/worktrees/, the same place Claude Code's own worktrees go), or Try 2 ways / Try 3 ways: the same message to two or three worktrees at once, each with its own model and effort. The tries open side by side, and Keep this one keeps the one you like. The Git card merges a worktree back (only when the folder it came from has nothing uncommitted) or opens a pull request from it, and lists every worktree of the repository with Remove, which asks first if work would be lost. The sidebar shows worktree sessions under their repository's folder.

Usage and search

The usage chip in the session header shows the session's tokens and an API-equivalent cost (an estimate: on a subscription you don't pay it). The card breaks it down by model, and the Usage view adds up every session changed in the last 7, 30 or 90 days, biggest first.

Mods

Plugins and mods installed in Claude Code load in every session. A mod's status line shows under the composer, its toasts float at the top right, and its log lines appear as dim rows in the transcript. RESONANT_PLUGIN_DIRS in .env (or Settings › Mods) loads extra plugin or mod folders, which helps while writing one.

A pane a mod opens ($.ui.open) becomes a tab in the side panel's own Mods section, under the Workbench (drag the line between them to share the room, or show and hide it with the "Mods" button in the header), with working buttons, fields and pickers; the section opens on it when a mod opens it while you're there (wide screens only), and its × closes it. A pane opened with a size (rows) sits just above the composer as a dialog, and Escape closes it when the mod allows; one opened as a widget, or that you shrink, floats as a small card at the composer's top right. Rows a mod places in the conversation ($.ui.place) show where it put them. What a mod draws above the prompt shows just above the composer, and what it draws on a tool row shows under that row. Drawings (Svg) show as images, and a mod's own widgets (Client) run in a sandboxed frame that can't reach Resonant's page. A theme a mod sets is offered by a palette button in the session's header, off until you turn it on.

Panes use an internal part of the Agent SDK, so a Claude Code update could change them. Settings › Mods (or RESONANT_MOD_PANES=off) turns them off, and the Claude Code Update button checks a new version still has that part before switching to it.

Routines, timers and watchers

The clock button in the sidebar opens the routines page. A routine sends a prompt on a schedule (weekdays at 9:00, every 4 hours, or any cron), a timer sends one once at a set time, and a watcher sends one when something is true (you've been away for 2 hours, or you've just come back) and then rests for a while. Each one goes to a new session in a folder or continues a session you pick. If that session is busy or may be open in a terminal, the run waits and tries again every minute for up to 6 hours. A home session (one Resonant shows but never opens) can't take a run at all, so a run aimed at one fails at once and says why. Runs ask before using tools like any session (or use the mode from Settings › Defaults), so one may wait for you in the sidebar. "Away" means no Resonant page has seen a key, click or tap from you. Times follow this computer's time zone, or RESONANT_TIMEZONE in .env. Everything is kept in data/routines.json.

Claude has the same control from inside any session: its routines tools (list, add, change, delete) can set up, retime, reword, retarget, pause or remove any of them without asking, and the ones it makes say "Set up by Claude" on the page. A routine Claude set up, or whose prompt, target or mode it changed, never takes Full access from the session it continues or from Settings › Defaults: that run asks before acting instead, until you save the routine yourself on the Routines page. Only you can give a routine Full access.

More machines

Install Resonant on another machine, run npm run pair there, and paste the link into Settings › Machines here. Its sessions show up next to this machine's, new sessions can start on either, and its notifications and routines work from here too. See docs/machines.md, with scripts/install-linux.sh for Ubuntu and scripts/install-windows.ps1 for Windows.

Settings

The gear at the bottom of the sidebar (Ctrl ,) opens Settings. On a phone it's a list you tap into.

  • This device: Appearance (light, dark or system theme) and Notifications and app (turn on notifications, pick which events, quiet hours, install the app).
  • Each machine (with a machine picker when there are several): MCP servers (every server Claude Code would load, with its status and tools; add, remove, turn on or off per folder, reconnect), Skills (each skill and command On, Name only, Only when typed or Off, as Claude Code's own skillOverrides), Plugins and mods (install, update, marketplaces, the mod panes switch), Defaults (model, effort and permission mode for new sessions and routines), Routines and wakes (each one at a glance, with its on/off switch), Terminal (on or off, open from other machines, which shell, the shells open now), Usage, Diagnostics (how Resonant last stopped and what a restart picked up, the Claude Code sessions running now with Stop, versions, errors the page reported, and the server's log, with Copy report for a bug report; the log is also kept in data/logs/server.log), and General (when idle sessions close, how long a session counts as maybe open in a terminal, the time zone, the password and passkeys).
  • All machines: Machines (pair, rename, forget, and which machines can reach this one) and Claude Code (each machine's versions and Update buttons; see below).

Each machine keeps its own settings in data/settings.json. A change to servers, skills or plugins reloads every open session (after the current turn), so no restart is needed; a session's details card also has reconnect buttons for its servers, "Reload plugins, skills and servers" and "Restart Claude Code". When an MCP server asks a question (a sign-in link or a short form), it shows as a card in the conversation.

Claude Code updates

Settings › Claude Code shows two copies of Claude Code per machine. Built into Resonant is the one Resonant runs, which comes with the Agent SDK. In the terminal is your claude command, a separate install; its Update runs claude update.

The built-in Update is made to be safe for deploys and mods:

  1. It installs the newest Agent SDK into data/claude-code/<version>/, beside Resonant, never into the repository's node_modules, package.json or package-lock.json. So git pull and npm ci keep working, and the update survives them.
  2. Before switching, it checks the new version: it loads in Node with everything Resonant calls, its Claude Code starts, and (with mod panes on) it still has the parts mod panes use. If a check fails, Resonant keeps what it runs and says why. When only the mod panes check fails, Update anyway installs it.
  3. It restarts Resonant under PM2 on the new version. If Resonant stops within a minute of that first start, the next start goes back to the repository's version by itself, and Settings says so.
  4. Use the repository's version goes back by hand. Once the repository names an SDK at least as new, Resonant uses the repository's copy again and removes the old update.

Keyboard

Ctrl K (⌘K on a Mac) opens the command palette: sessions, new sessions in a folder, and every action, including the side panel's tabs, the model and permission-mode pickers, a direct switch to each mode, the Mods section, and renaming. Ctrl / lists all the shortcuts. New session is Ctrl Shift O, because browsers keep Ctrl N for themselves.

Ctrl F (⌘F) finds words in the open conversation: everything loaded, including each turn's folded work and a row's folded output (a command's output, a file Claude read or edited, a thought). Enter and Shift Enter step through the matches, and the turn and row a match sits in unfold. Press Ctrl F again while the find bar has focus for the browser's own find. On a phone, find is in the session details sheet. If older messages aren't loaded yet, the bar offers to load them.

On a phone

Open Resonant at its https address (Tailscale) and add it to the home screen; it then opens in its own window and keeps its files on the phone, so it starts fast. The session list is a drawer that follows your finger (pull from the left edge to open it), the page itself never scrolls, and the composer sits above the keyboard.

Settings › Notifications and app turns on notifications for that device: one when a session needs approval, finishes a turn, or stops with an error, even with Resonant closed. A device that has the session on screen stays quiet. On iPhone, notifications only work once Resonant is on the home screen. On Android and desktop, an approval notification has Allow and Deny buttons. Each device chooses which events it hears about and can set quiet hours, when notifications arrive without sound. Under that, Devices that get notifications lists every phone and browser signed up, which one is this one, what each hears about and when it last got one; each can be renamed, sent a test, or removed. The installed app's icon shows how many sessions are waiting for approval. If the server can't be reached at start-up, Resonant says so and keeps retrying instead of showing the sign-in page. The keys for this live in data/vapid.json; deleting that file signs every device out of notifications.

Sign-in

Resonant refuses to serve anything until APP_PASSWORD is set. Signing in sets a cookie that lasts 7 days. Changing the password in Settings signs every other device out (the one you changed it on stays in). By default it only listens on 127.0.0.1, so only this computer can open it; use Tailscale (tailscale serve) to reach it from your phone and other machines.

A folder that brings its own Claude Code setup (hooks or MCP servers in .claude/settings.json, .claude/settings.local.json or .mcp.json) asks "Do you trust the files in this folder?" on the New session page before a session starts there, as a terminal does. Until then, Resonant's lists of commands and servers for that folder leave its setup out, and routines can't open a session there. Folders that already had sessions, and folders the Claude Code terminal already trusted, don't ask. The answers are kept in data/trusted-folders.json.

A picture in a reply that lives on another site shows as a button and loads only when you tap it, so text Claude copied from a web page or a file can't use it to send things out of the chat. A session whose folder is your whole home folder or a drive's root previews only the folder the page is in.

Passkeys. Settings › General › Add a passkey lets you sign in with Face ID, Touch ID, Windows Hello or a password manager instead of typing the password; the sign-in page then shows Sign in with a passkey and offers it in the password field's suggestions. After a password sign-in at an address with no passkey yet, Resonant offers to make one there (Not now, or Don't ask again on this device). To sign in on a computer with the passkey on your phone, pick the browser's "use a phone or tablet" option and scan its QR code with the phone (the computer needs Bluetooth on). The password keeps working on its own. A passkey works only at the address it was made at (the Tailscale https://….ts.net name, or localhost; a plain http:// LAN address can't use passkeys), and only on the machine you sign in to: paired machines are reached through it. The list of passkeys (public keys only) is in data/passkeys.json; removing one in Settings stops it working.

Hearing audio

Claude can't hear, so Resonant listens for it: audio sent in chat and audio notes on Home go through Resonant's built-in ears (the CED sound model, run on the machine), which name the sounds, voices and instruments in them and when they happen, with how sure, keeping the room apart from the voice. Claude gets those words, and you see them under the file. When someone talks, a speech model (Parakeet or Whisper, picked per machine) writes down what they say, on the machine, and Claude also gets how they talk as plain measurements: pace, loudness, pauses, pitch. npm run try-speech -- <a recording of you> shows which speech model understands your voice best. Music also gets a picture (waveform, spectrogram, notes) that Claude can look at. Nothing to install: the models download once on first start. See docs/hearing.md.

What the agent knows about Resonant

A session Resonant starts gets a short guide to Resonant at the end of Claude Code's system prompt: which machine it's on, how you see the chat, what Resonant's notes in a message mean, and which of Resonant's tools to use when. Each of Resonant's tool servers carries its own guide too, and the space tool tells the agent what's connected right now. It's read once per session, never per turn. Settings › General turns it off per machine and shows what the agent reads. See docs/agents.md.

Requirements

  • Node.js 20.12 or newer (node --version)
  • Claude Code signed in on this computer (run claude once and log in), or ANTHROPIC_API_KEY set in .env

Set up

cd C:\resonant
npm install
copy .env.example .env     # then open .env and set APP_PASSWORD
npm run build

.env.example lists every setting, with what it does.

Run it always-on with PM2

npm install -g pm2
pm2 start ecosystem.config.cjs
pm2 save

Then open http://127.0.0.1:3199.

Useful commands: pm2 logs resonant, pm2 restart resonant (after npm run build), pm2 stop resonant.

PM2 doesn't start itself when Windows boots. To start Resonant when you log in, run this once yourself:

powershell -ExecutionPolicy Bypass -File scripts\install-autostart.ps1

It registers a scheduled task named "Resonant" that runs scripts\clod-autostart.cmd at logon, as you, without admin rights. Remove it with Unregister-ScheduledTask -TaskName Resonant -Confirm:$false.

Update Resonant

Coming from Clod (Resonant 4's name before release)? Settings named CLOD_… in .env keep working, and so do old conversations. Once, switch PM2 to the new name: pm2 delete clod, then pm2 start ecosystem.config.cjs and pm2 save. A Clod install that pulls from the old private repository moves to this one once, too: git remote set-url origin https://github.com/nekyialabs/resonant.git, git fetch origin, then git checkout -B main origin/main and git branch -u origin/main (its history was cleaned, so a plain git pull can't follow it).

Then, each time:

git pull
npm ci
npm run build
pm2 restart resonant

A Claude Code update made from Settings lives in data/claude-code/ and is kept through this (see Claude Code updates, above).

Develop

npm run dev        # server with reload on save
npm run dev:web    # page with hot reload at http://localhost:5173, forwarding to the server
npm run check      # type-check the server and the page
npm test           # server tests (node:test)
npm run build
npm run test:e2e   # page tests in a browser (Playwright), against the build

Server tests (test/*.test.ts) run on a made-up ~/.claude and data/ folder in a temp directory (see test/helpers.ts), so they never touch yours. test/hub.test.ts drives the live side (hub and runner) over a real WebSocket.

Page tests (test/e2e/*.spec.ts) start the built Resonant with test/e2e/serve.mjs, which makes the same kind of temp world with one saved session. They sign in, open a session, send, allow and deny a tool, start a new session, use the palette and Settings, and do the same on a phone-sized screen. The first time, run npx playwright install chromium, or set RESONANT_BROWSER to a Chromium you already have.

A stand-in Claude Code. Both kinds of test use test/fake-claude/claude.mjs instead of the real Claude Code (through RESONANT_CLAUDE_PATH). It speaks the same protocol to the Agent SDK and answers from a script: "You said: …" to anything, and it asks to run a command when the message says "permission". Nothing is signed in or spent.

CI. .github/workflows/ci.yml runs the type check, the server tests, the build and the page tests on every pull request and every push to main.

Layout

server/
  index.ts           HTTP routes, static page, WebSocket upgrade
  config.ts          .env and defaults
  auth.ts            password gate and signed session cookie
  passkeys.ts        passkey sign-in (WebAuthn) and the list in Settings › General
  sdk.ts             the Agent SDK, loaded once: the repository's or an update (claude-code.ts)
  claude-code.ts     where the built-in Claude Code comes from, and the checks an update passes
  versions.ts        /api/versions: what each copy of Claude Code runs, and updating it
  sessions.ts        lists sessions and reads history through the Agent SDK
  transcripts.ts     reads Claude Code's JSONL transcripts
  runner.ts          one live Claude Code session: prompt queue, steering, streaming, permissions
  hub.ts             WebSocket routing between pages and live sessions
  protocol.ts        message types shared with the page
  prompt.ts          a message plus its files, as one prompt
  models.ts          the model list and session settings
  folders.ts         folders for New session: recent, search, browse, git branch
  pins.ts            pinned sessions
  usage.ts           tokens and cost per session
  search.ts          full-text search across transcripts
  extras.ts          /api/usage and /api/search
  workbench.ts       side panel routes: changes, revert, files, open in editor
  changes.ts         what a session changed, file by file, read incrementally
  artifacts.ts       the artifact, preview, react and send_file tools every session gets
  sent-files.ts      files Claude sent: the copies in data/sent-files and /api/sent/:id
  reactions.ts       reactions to messages, both ways (data/reactions.json), and finding a prompt
  regenerate.ts      the last turn, for Regenerate
  aside.ts           /btw: a side question answered from the conversation, never added to it
  rewind.ts          Edit from here: where a message sits, waiting rewinds, copies for Undo
  context.ts         how full a session's context window and what fills it (data/context.json), the agent's context line and tool answer
  chat-routes.ts     /api routes for reactions, the context gauge and keeping a reply
  artifact-theme.ts  Resonant's colours and fonts for artifacts rendered on the server
  preview.ts         the preview port: tickets, the dev server proxy, session folders
  preview-check.ts   Claude's preview check: screenshot and errors from a headless browser
  browser.ts         the shared headless browser (Playwright's, Chrome or Edge)
  library.ts         artifact library, pins and notes for Claude (data/library)
  library-routes.ts  /api routes for the library
  mods.ts            mod status lines and "/" command lists
  extensions.ts      MCP servers, skills, agents and plugins Claude Code would load, for Settings
  mcp-info.ts        what the page may see of an MCP server's config (no secrets)
  claude-cli.ts      runs the built-in Claude Code's `claude mcp` and `claude plugin` commands
  surface.ts         mod panes, dialogs, widgets, placed rows, bands, tool-row drawings and themes:
                     the only file using the SDK's internal surface protocol
  orchestrator.ts    routines, timers and watchers: scheduling, waiting, run log
  conditions.ts      what a watcher waits for (away, back, time window, days)
  routines-routes.ts /api/routines
  routine-tools.ts   the routines tools Claude gets in every session
  clod-settings.ts   this machine's settings (data/settings.json)
  machines.ts        paired machines: pairing, the relay to /api/m/<id>/ and /ws?machine=<id>
  peers.ts           this machine's side: pairing codes and peer keys other machines sign in with
  pair.ts            the `npm run pair` command
  push.ts            web push: notifications for approvals and finished turns, and the device list
web/src/
  App.tsx            sign-in, sidebar, new session, routing
  SessionView.tsx    a session: header, transcript, approvals, composer
  transcript.ts      turns saved and live messages into things to show
  api.ts             calls to the server (any machine)
  components/        Composer, Timeline, ToolRow, SidePanel and its tabs, Mods, Routines, Usage,
                     CommandPalette, NewSession, Machines and more
  components/ui/     shared pieces: Tooltip, toast with Undo, Select, Skeleton, Empty, ActionSheet
  settings/          the Settings dialog, one file per section (sections.tsx lists them)
  workbench.ts       side panel state
  mobile.ts          phone keyboard, drawer swipe, long press
  passkeys.ts        passkey sign-in and management in the browser
  sessionActions.ts  palette actions the open session adds (pickers, Mods section)
  machines.ts        every machine's sessions, with offline machines' last list remembered
  shortcuts.ts       keyboard shortcuts
  tips.ts            paced one-time tips (one a day at most), as an explicit state machine
  places.ts          where you were in each session, so it opens there again
  pwa.ts             install, service worker and notifications on this device
web/public/
  sw.js              service worker: file cache and notifications
  manifest.webmanifest, icons/   what a phone needs to install Resonant
test/
  *.test.ts          server tests
  e2e/               page tests and the server they run against
  fake-claude/       the stand-in Claude Code
scripts/             installers for Linux and Windows, and the Windows logon task
docs/machines.md     more than one machine
docs/workbench.md    the side panel, Preview and the preview check
docs/home.md         Home and Command, and Claude's home tools
docs/hearing.md      how Resonant listens to audio for Claude (CED sounds, Parakeet or Whisper words, tuning to your voice)
docs/agents.md       what the agent is told about Resonant: Your space, tool guides, the space tool

Credits

Built on the Claude Agent SDK. Ideas from Resonant 3 and T3 Code. Resonant is not affiliated with T3 Code, or with Anthropic.

Licensed under the Apache License 2.0. See NOTICE and THIRD_PARTY.md.

探索相关项目

加载中…