Autora
CLAUDE.md1 starsChanged 2 months agoMITView on GitHub
The "Release version" workflow (.github/scripts/check_release.py) fails any change to src/, server/, server.ts, package.json, public/, index.html, vite.config.ts, Dockerfile, pdf-editor/ or blofstedt-autora/docker-compose.yml unless the same branch also: 1. Bumps "version" in package.json to a higher number (patch bump by default, e.g. 0.9.1 -> 0.9.2), and the top two "version" fields in package-lock.json to the same number. 2. Rewrites releaseNotes in blofstedt-autora/umbrel-app.yml to describe this change, not the last release. If the change contradicts the manifest's description, update that too. Do not touch…
The file
We split this CLAUDE.md into the rules it gives an agent
6 rules. About 0 are common, 1 is distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
Do not touch version in umbrel-app.yml or the image tag in blofstedt-autora/docker-compose.yml.
- Distinctive: line 24
Do this in the same commit as the code change, without being asked.
- Very specific: line 31
Only when a change genuinely has no user-facing effect, skip the bump and put [no release] in the pull request title or body instead.
- Very specific: line 286
All of it follows the one agent-cursor switch (state.agentCursor).
- Very specific: line 326
Every turn, from any source (the chat box, a job, a watcher), goes through startTurn() in server.ts, and learning runs after it.
- Very specific: line 373
Every event goes through emitEvent() in server.ts, which blanks secrets at any depth of the payload (redactDeep).
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Autora: rules for every change
Release every change that reaches the container (CI enforces this)
The "Release version" workflow (.github/scripts/check_release.py) fails any
change to src/, server/, server.ts, package.json, public/,
index.html, vite.config.ts, Dockerfile, pdf-editor/ or
blofstedt-autora/docker-compose.yml unless the same branch also:
- Bumps
"version"inpackage.jsonto a higher number (patch bump by default, e.g. 0.9.1 -> 0.9.2), and the top two"version"fields inpackage-lock.jsonto the same number. - Rewrites
releaseNotesinblofstedt-autora/umbrel-app.ymlto describe this change, not the last release. If the change contradicts the manifest'sdescription, update that too.
Do not touch version in umbrel-app.yml or the image tag in
blofstedt-autora/docker-compose.yml; the check fails if you do. After the
merge, the image workflow builds and publishes ghcr.io/blofstedt/autora:<version>
and only then commits both to main (.github/scripts/offer_release.py), so
Umbrel never offers an update whose image is still building ("manifest
unknown").
Do this in the same commit as the code change, without being asked. Before pushing, run the check locally and make sure it passes:
git fetch -q origin main && python3 .github/scripts/check_release.py --base origin/main --head HEADOnly when a change genuinely has no user-facing effect, skip the bump and put
[no release] in the pull request title or body instead.
Other checks before pushing
Once per checkout, also npm --prefix pdf-editor ci: the PDF window's editor
is a sub-project with its own dependencies (see below).
npm run lint: typechecks the client (tsconfig.json), the server (tsconfig.server.json) and the tests (tsconfig.test.json), then runs ESLint (eslint.config.js). ESLint is type-aware and aimed at bugs, not style: unawaited promises (mark fire-and-forget ones withvoid), hooks called conditionally or with stale dependencies, unused code. It must pass with no errors or warnings;.github/workflows/check.ymland the Docker build both run it.npm test(afternpm run build: the PDF window's test drives the built editor)npm run build: also buildspdf-editor/intodist/pdf-editor/
Where things are
server.ts: the Express app, every/api/*route, the/ws/:sessionevent stream and the agent turn loop.server/: the pieces it uses.tools.ts(the agent's tools),llm.tsandproviders.ts(model calls),browser.ts(Playwright; the session's browser has tabs --tabPages,newTab/switchTab/closeTab, a link to a new tab opens and shows one, the sign-in popup returns to its opener when it closes -- and an adaptive stream:TIERSstep down whenhooks.backlogsays a viewer is behind, the rate rises whiletouched(), and one sharp screenshot follows when the page has been still),desktop.ts(the relay),store.ts/state.ts(what is kept on disk underAUTORA_HOME),LiveBrowser.devtools()(every console line and request of every tab, 400 kept; the menu's Developer tools panel pollsGET /browser/devtools, the agent hasbrowser_devtools),snapshots.ts(version history of the working folder: a git directory of its own under the state dir with the project as work tree, so the project's.gitis never touched; a version is saved at the end of a turn that wrote code (codeTouchedinserver.ts),restoresaves the present first and usesread-tree --reset -u;GET /api/versions,POST /api/versions/restore; the app window's Versions, Templates and Console panels areAppVersions.tsxandDevtoolsPanel.tsx),extensions.ts(Chrome extensions, unpacked underAUTORA_HOME/extensions/<name>/pkg;launchArgs()adds--load-extensionand--headless=newwhen any is enabled,browser.tsthen drops Playwright's--disable-extensions; the id is Chrome's, from the folder's path; the popup opens as a tab),browsedata.ts(the browser's history, bookmarks and downloads, one list for the install inbrowser-data.json; a download becomes an artifact viahooks.onDownload;LiveBrowser.findwalks text nodes itself because headlesswindow.findfinds nothing),credentials.ts,mcp.ts(plusmcpcatalog.ts,mcpoffer.tsandmcpscript.ts: the servers the agent offers, sets up or writes itself),preview.tsandpick.ts(the app window: a second browser per session showing what the agent is building, the static server and dev-server address finding, and the page-side script that reads what a person selected; comments are kept inserver.tsuntil sent as one review),pdf.tsandpdfrender.ts(the PDF tools: pdf-lib -- the@cantoofork, for encrypted files -- changes the file; pdf.js in a headless Chromium reads text and draws pages. Positions are top-left points of the page as shown; every result is a new artifact, and dropped or redacted content is removed from the bytes, not covered),pdftext.ts(pdf_replace_text: reads a page's content stream and the fonts it names, finds the words, and rewrites their bytes in place where the font holds the letters -- a cut-down font is trusted only with letters the file shows it drawing -- or removes the old glyphs and returns where to draw the new ones. Edits run one at a time on the stream as the last left it, matches last first; the page stays vector, nothing is rasterised. Where it worked, and each objectpdf_editplaces (cueForItem), go to the window ascuesondesk.open;pdf-editor/src/AgentCues.tsxplays them -- a cursor that retypes, types a box, clicks a stamp into place, drags a box or traces a stroke, the toolbar ringed on the tool it would have picked up, and the placed objects held back until the cursor lands them. Only ever a presentation: the file and the objects are the server's, authorship stays with the agent (so the changes are still up for accept/decline), nothing injects input into the editor, and the window can switch it off),pdfdesk.ts(the PDF window: the file the agent works on, open beside the chat in SecurePDF's editor. Whatpdf_editplaces becomes the editor's own movable objects, each keeping the item it came from so the file shows exactly what was drawn until the person changes it; the file is the base pages with every object flattened on, rewritten on every change; the person's changes are told to the agent once),officedesk.ts+src/components/OfficeWindow.tsx(the Office window -- Autora Pages (.docx), Sheets (.xlsx) and Slides (.pptx), each its own switch on the Tools page,pages/sheets/slidesinToolSettings, an oldofficein a settings file turns all three; the PDF window is "Autora PDF". The agent's cursor:officedesk.tscuesFordiffs before/after intocueson the state,OfficeCursor.tsxplays them over the frame askingoffice/shim/cursor.jswhere the text/cell is (caption fallback), withsrc/lib/humanPath.ts-- the browser pointer's motion and a human typing rhythm, shared withpdf-editor/src/AgentCues.tsx. Briefing text:OFFICE_GUIDE/WINDOWS_GUIDEintools.ts. The document the agent works on, open beside the chat in GenOffice's own editor for it, built byscripts/build-office.mjsintodist/office/web/{docs,slides,sheets}and served at/office-appwith a sandbox CSP. The editor runs in an origin-less frame, so it cannot fetch anything:OfficeWindowanswers itsautora:officerequests (fonts, the document, saves, Export PDF -> the PDF window, presence) and passes on the agent's edits;office/shimis the Electron stand-in, it hides the editor's own AI panel and turns its AI group into an "Autora" button that focuses the chat box, and uses the editor's dark theme. Word keeps the document in the page: the page sends the bytes on every save and the agent's edit is pushed in. PowerPoint and Excel keep it in an engine (officehost.ts, one child process per window, started on the first ipc): the frame's ipc goesPOST /api/officedesk/:session/ipc?rev=N,revbeing the window'sloadRevso a replaced page cannot reach the new one; the engine saves to<session>.work.<ext>, which is polled every 800 ms (checkEngineFile) and becomes the document (personSaved); the agent's edit is written there and handed to the open editor where it stands (reloadLive: a deck is read again and the page toldslides:deck-changed, which keeps the slide it was on; a workbook is queued again and nudged to open it), and only if that fails is the frame remounted (its key followsloadRev).settle()runs before every Office tool so the person's last edit has reached the file. The person's changes are told to the agent once in words made by comparing text (describeChangefor paragraphs and slide text,describeCellsfor cells). One surface,"office", for presence and Take control (touched, held), as for the PDF. On a phone the window is not the editor butcomponents/OfficePages.tsx: pictures of the pages (officepages.ts: the editor's PDF, drawn by pdf.js, kept per session by a hash of the file's bytes -- the last two -- with each run of text and where it sits;POST /api/officedesk/:session/pagesuntilready, the previous pictures shown dimmed meanwhile). Tapping words points at them (lib/officeSelection.ts): a chip beside the message box, andsendinApp.tsxputs "(Pointing at ... on slide 2 of pitch.pptx.)" in front of what they type, which is how a phone edits; "Full editor" is one button away.renderToPdfalso keeps the last six PDFs by hash, so the agent and the phone share one layout. A tap names what it landed on: a deck's element by the idoffice_edittakes (slideElementsinoffice.tsreads their boxes; shapes and pictures with no words are pointed at by their box), a workbook's cell when the value is in only one;locatorForinofficedesk.ts),officerender.ts(the same editors headless, foroffice_lookpictures andoffice_pdf; PDFs always go to Autora's own PDF window),notebooks.ts(artifacts grouped by purpose with notes between them, stored asnotebooks.json; retention keeps whatever a notebook holds or cites),guard.ts(what stops and asks before a risky call),crosssite.ts(refuses requests and websockets started by other websites),tls.ts(the optional https listener and the certificates it issues),logs.ts(the Logs page's ring buffer).- How it learns and runs on its own:
memory.ts: the memory graph (ranked recall, merging near-copies, provisional to confirmed).learning.ts: looking back at a finished turn and deciding what to keep.scheduler.ts: cron jobs and watchers.customtools.ts: scripts the agent saved as its own tools.toolhealth.ts: recent failures per tool, told to the agent.loopwatch.ts(the same call repeating) anderrorbudget.ts(the same error across different attempts; kept per chat bybudgetstore.ts, eased by a success, forgotten after hours): notes in the result the model reads, then a stop that is told to the next turn (resume.ts).loopwatch.gaterefuses (in a line, tool list unchanged, so the provider's cache holds) an exact call repeated after its warning; rounds that change nothing earn a[Stall]note; an error-budget stop is kept as a provisional "dead end" memory.server/replay.ts+npm run replay -- events.json [warnAt=3 ...]replays a recorded chat against these rules, to compare settings on the same chat.context.supersedeReadsstubs old reads in one batch (a mid-history edit breaks the provider's cache, so never one by one).requirements.ts(requirementstool,requirements.updatein the log): what the person asked for, verbatim, with a status. A message that lists its asks is split into items; one sent while work is open is kept whole (noteAsksinserver.ts); the agent merges, edits, drops. Told every turn from the log (so compaction cannot paraphrase it), andfinishAuditsends the agent back once per turn if an ask is neither done nor dropped. A message typed while a turn runs is an amendment (turn.amend), not an interrupt: queued inamendments, told to the turn at its next round boundary (end of the last tool result) or when it is about to finish, and answered by a fresh turn if it lands after the last look. Only{mode: "interrupt"}(Alt/Ctrl/Cmd+Enter), files, voice and/commandsstop the turn first. The project check also runs when a to-do or ask is marked done mid-turn (itemCheckNote, capped per turn).office.ts(office_guide|read|edit|check|create|convert, familyofficeintoolload.ts): Word, Excel and PowerPoint files, read and edited without a window by running GenOffice's command line (Apache-2.0, github.com/genspark-ai/genoffice) as a child process. Nothing of it is copied into this repo:scripts/build-office.mjsfetches the commit inoffice/PIN.json, bundles its CLI and builds its Rust spreadsheet engine intodist/office/in GenOffice's own "packaged" layout (cli/,wasm/,native/;office/NOTICE.md). Bump the sha to take a newer one.npm run build:officeruns it; the Dockerfile builds the engine in its own stage withcargo zigbuildfor musl amd64+arm64 (it has a C dependency, so plainrust-lldcross-linking does not work) and the CLI in the builder; CI runs it before the tests. Without the build the tools are not offered (officeDir()), without the engine only the Excel ones say so, andtests/office.test.ts/e2e-office.test.tsskip. Results are artifacts like the PDF tools' (an edit works on a copy; the agent's own file is updated in place); after an Excel editrefreshFormulasrewrites every formula so stored results of dependents are current (the engine only sets fullCalcOnLoad). Pictures and PDF come from the editors themselves: laying a page out is GenOffice's editor's job, not the engines'. Each editor is built (office/vite/editor.mjs, run with the checkout's own Vite bybuild-office.mjs) as one page for a sandboxed frame --dist/office/web/{docs,slides,sheets}/index.html: script, styles and worker inline, fonts listed in a manifest and supplied by the host, PDF import stubbed (the PDF editor does that) -- withoffice/shim/standing in for Electron (common.jsis the host bridge:postMessagein a frame,window.__autoraHostin headless Chromium;docs.jsanswers Word'swindow.desktopitself). PowerPoint and Excel keep their document in Electron's main process, so that code runs too, as a child process (server/officehost.ts, built per app intodist/office/host/<app>.cjsbyoffice/host/build.mjs): GenOffice's realslides-main/sheets-mainbundled overoffice/host/electron-main.cjs, a stand-in for theelectronmodule (ipcMain registry, web contents whosesendis a push to the parent, aBrowserWindowthat is a page in the server's Chromium via rpc -- how it prints, nativeImage sizes read from the file header; menus, dialogs and the dock do nothing). The page side is the app's real preload, bundled byoffice/host/preload.mjsoveroffice/shim/electron-renderer.js(ipcRenderer -> the host'sipc, JSON with tagged buffers:common.jsenc/dec,wireinofficehost.ts), so every one of the 160-odd channels works without being listed;slides.js/sheets.jsonly override where Autora is the host (theme, which file is open, Export PDF).autora:<name>invokes are Autora's own requests to the app's main code (extrainoffice/host/build.mjs: Excel makes the editor's window and queues the workbook itself).server/officerender.tsopens the editor page in the shared Chromium (withBrowserContextinpdfrender.ts), serves it from memory over a made-up origin and refuses everything else, lets the editor's own headless-export path run, and returns the PDF;office_lookdraws pages from it (lookAtPdfinpdf.ts, shared withpdf_look) andoffice_pdf/office_convert to pdfsave it as an artifact and open it in the PDF editor window (PDFs go to our editor, never GenOffice's). A deck takes ~10 s, a workbook ~11 s (Excel's export waits until the engine has been quiet after the workbook opened: its formulas settle a moment late).AUTORA_OFFICE_DEBUG=1prints the page's console, the ipc channels and where the time goes. The engine is forked withexecArgv: [](under tsx it would start the loader too: 5 s), Excel's export waits for the engine to be quiet 1 s and the workbook to have been open 1.7 s (formulas settle late), andserveOfficeEditorssends pages and fonts compressed (brotli, kept after the first time; the Excel page is 14 MB, 3 MB sent).mindrules.ts(+site.ts): the rules the mind is kept by. Everymemory_write/memory_updategoes throughcheckEntry/checkText: a title that starts with its subject, one topic per record (length limit by kind), nothing about the moment, no secrets, and areference(what a product's official docs say: kindreference, withsubject,facetinterface|api|docs|workflow|quirk,sourceURL,fetched) that names its source -- one not recognisably the subject's own site is keptprovisional. Interface references go stale in 21 days, docs in 90 (REFERENCE_FRESH_DAYS);MemoryGraph.groundingOf(site)says none/stale/fresh. Ground first (state.groundFirst, Mind page):actsOnSitecalls (browser click/fill/ press/upload, non-GEThttp_request) on a site with nothing fresh stored are refused up to three times a turn with "read the official docs and write a reference", then let through so a missing docs site cannot wedge a turn;groundingNotenames such sites from the request,siteMemorysays it on the first visit, andMEMORY_GUIDE(tools.ts) tells the agent to do it for any product, API or app interface before working or answering "where is X in Y".POST /api/memory/tidy {dry?}files old records under a subject and lists what needs a rewrite (the Mind page's Tidy up button). The reflection prompt (learning.ts) asks for subject-first titles and drops lessons that break the same rules.argcheck.ts: every call is checked against its tool's own schema before anything else sees it.verify.ts: the person's project check (Settings), run by the loop when the agent says it is finished after changing something; a failure goes back to the agent with the raw output, up totriesruns a turn.subagent.ts(research): a worker with a fresh context and read-only tools (looksOnlyjudges every call), its own loop watch and schema check, a step limit; only its short report reaches the main thread. It is given the model and tools byresearchForinserver.ts, so it is tested with a script.codediff.ts: the working folder, watched. After a command that changes things the loop scans it (stat first, read what changed, small source files kept to compare) and emitsfile.editcards -- lines added, removed and a little context; lock files, environment files, build output and Autora's own state dir are never shown; a folder overMAX_TRACKEDfiles is not followed.FileCelltypes a card that has just arrived (a replay of code already written, off with the agent-cursor switch inlib/agentCursor.ts).presence.ts: working side by side. One record per chat of what the person touches (touchPresenceinserver.ts, from the input routes), leases that run out a few seconds after their last touch, and explicit control they take and hand back (POST /api/sessions/:id/control).heldForrefuses an agent call that would use a held surface -- not an error, so it never feeds the loop watch or error budget -- andnote()says what they did, once, at the next round (or the next turn's note).COLLABORATIONtells the agent how to behave. Client:lib/collab.tsand the Take control / Hand back buttons. In the PDF the editor tells the server what is selected or dragged (autora:presence, every few seconds while held) andpersonChangestouches each object the person changed;pdf_editskips objects they hold, does the rest of the call and says what it left (PdfOutcome.heldwhen nothing could be done).domdiff.ts+LiveBrowser.domMap/markAt/glideTo(browser.ts): after code changes the preview's page is compared with how it was (matched by tag, words and class, never position) and the cursor -- drawn into the page, so it is in the streamed frames -- glides to what is new or restyled and outlines it with a name. A served folder is reloaded by the loop on a code change as well as by its file watcher, which misses files replaced whole.app_previewclick/hover/type/press/scroll use the page as a person would, in the window the person is watching, and are refused while planning. All of it follows the one agent-cursor switch (state.agentCursor).companion.ts: when no turn is running and nobody is mid-task, the agent says one short line about what the person just did in a shared window (agent.remark, shown in the thread and kept in its history as its own words). A small unwatched model call, so: only for touches worth a word, after they pause, 25s apart and at most 12 an hour, never over a running turn or with nobody looking, the model may answer SKIP, andcollabRemarksswitches it off (Settings -> Working together). A running turn answers in its own words instead, from the presence note.merge3.ts+editfile.ts(edit_file): the careful way to change a file the person may also edit. The loop scans the folder before each changing call and at the end of each round, and what changed that the agent did not do is the person's: shown as a card tagged "you", told to the agent, leased to them for a while.edit_fileapplies exact replacements, keeps their changes beside the agent's when the two touched different lines, and writes nothing (naming what they did) when they clashed. Not while a background command runs, which also writes files.codesearch.ts(code_search): exact, regex and BM25-ranked search over a folder in plain code; walks afresh each time, caches only per-file indexes.ledger.ts(ledgertool): the agent's working notes (goal, decisions, facts, next) in the log asledger.update, plus what it touched, read off its calls; said every turn so interrupts and restarts lose nothing.readfile.ts(read_file: range / outline / symbol) andhints.ts(the nearest paths and page text said inside a failure). A long result's vault id is logged astool.storedand named in the recap.toolload.ts(tools_enable): specialist tool sets (pdf, widgets, mcp, schedule, notebooks) are out of the model's list until a message, a PDF, a call or a request brings them in (tools.enablein the log).AUTORA_ALL_TOOLS=1shows all. A new tool in one of those families is covered by itsmatch; a new family goes inFAMILIES.trace.ts:GET /api/sessions/:id/trace, read from the log.suggest.ts: what to suggest, from what is actually on the install -- one-tap tasks for a new chat, a schedule offered once, next-step chips after a reply. Pure, no model call.noticer.ts: cheap checks (disk, Docker over its socket, failed schedules) said once and dismissable until they clear.push.tsandwebpush.ts: the installed app is the phone interface, so notifications go through it (Web Push, encrypted to the device), held during quiet hours. There is deliberately no chat-app or third-party channel (Telegram, WhatsApp, ntfy): don't add one.
- Every turn, from any source (the chat box, a job, a watcher), goes through
startTurn()inserver.ts, and learning runs after it. A turn cut short (Stop, a message sent while it works, a restart) ends withturn.agent.done {stopped};resume.tsreads that from the log and the next turn is told what was cut off, so it carries on rather than treating the new message as the whole job (and an Agent-mode build stays a build). pdf-editor/: SecurePDF's editor (from blofstedt/SecurePDF), its own sub-project with its own React 19 and Tailwind so neither touches the app. It runs in a frame sandboxed without an origin (components/PdfWindow.tsx) and talks to the page bypostMessageonly; it never calls the API. So it bundles pdf.js's legacy build and runs its worker as a classic script from a blob (a module worker cannot start in an origin-less frame), and fetches nothing from a CDN: Autora may have no internet.- Full screen on a phone (
lib/fullscreen.ts): one shared flag for every pinned tool (browser, app window, PDF, Pages/Sheets/Slides, widget), so Follow (busiestSurfaceinThread) moves the stage to the next tool with the screen still full. While it is up,components/ImmersiveChat.tsxis laid over it: the agent's last reply as aglance(first sentence, fades after ~5 s) placed beside the cursor when the tool reports one (lib/cursorPos.ts: the Office cursor and the PDF cues --autora:cursorfrom the editor frame), else at the top; a translucent chat button and a one-line box that sends throughonSuggest; and a Follow toggle. Office cues locate the place in the editor (office/shim/cursor.js): text in the DOM for Pages; a deck's element box as fractions of the slide (withSlideBoxes, the canvas is not searchable); a workbook cell by the grid's measured default layout. src/: the React client.App.tsxholds the session and stream; on a desktop the menu, the conversation and the window beside it are three panes whose seams drag (components/ResizeHandle.tsx, widths and "menu folded away" kept per browser bylib/panes.ts, applied as--rail-w/--chat-w);lib/derive.tsfolds the event log into what the thread shows;components/renders it.- Keeping long threads fast (measured: a 150-turn thread went from 100% CPU
and 7 fps while a reply streamed to about what a 3-turn one costs):
App.tsxadds streamed events in batches (EVENT_BATCH_MS), not one render per event.derive()output goes throughshare()(lib/share.ts), so unchanged cards keep their identity;TurnBucket,CellView,ReplyandMarkdownarememoised on it. Every prop passed intoThreadmust be stable: handlers fromuseCallback, never inline arrows..turnhascontent-visibility: autoinstyles.css, so off-screen turns cost nothing per frame. A newposition: fixedelement inside a thread card must be added to the:has()exemption there.
tests/: plaintsxscripts, one per area.npm testruns everytests/*.test.tsit finds (tests/run.ts), so a new file needs no wiring.docs/ARCHITECTURE.md: why it is built this way.
Security rules
Autora has no login of its own and runs shell commands for whoever reaches it, so these hold for every change:
- Every event goes through
emitEvent()inserver.ts, which blanks secrets at any depth of the payload (redactDeep). Never write to a socket or the log around it. A new kind of secret the app reads from the environment belongs insecretTable()inserver/state.ts. - New routes need no auth code, but must not undo
server/crosssite.ts: it refuses state-changing requests and websockets whoseSec-Fetch-Sitesays another site started them. Keep side effects offGET. - Anything the agent or a web page produced (HTML, SVG, widgets) is shown in a
sandboxed frame or served with
Content-Security-Policy: sandbox, never inline on the app's own origin. - A saved credential is only sent where it belongs: compare parsed hosts
(
new URL(...).hostname), never substrings of a URL. - The default bind is
127.0.0.1; only the container setsAUTORA_HOST=0.0.0.0.
Core principle: remove friction, keep the person's creativity
The agent exists to remove all friction from creative work and to do non-creative work completely. Ask of every feature: is there creativity in this?
- No creativity involved, so the agent does it. Productivity work (Word, Excel, PowerPoint, PDF, forms, files, set-up, wiring) runs in full agentic mode. Nobody needs to enjoy it. This is what Autora already does.
- Creativity involved, so the agent guides and the person decides. It brainstorms, asks questions, suggests, explains and handles the technical background, but never replaces the person's choices. The goal is to keep creativity in the process, not to override it.
- The mode follows the work, not a setting. The same chat is full agent on a deck and a guide on a novel; switching what the person is making switches how the agent behaves. It may watch what the person is doing and work out what they are after (the presence and companion code), and it picks a tool for them when they cannot find one. It must stay easy to correct.
- Creative writing: a tutor and editor. It structures brainstorming, helps
define characters and places, and critiques. It does not write the story.
Enforce this by giving the tool family no insert or replace tool, not by a
prompt rule (see Writers Block in
docs/BACKLOG.md). - Building an app: the agent handles code, databases and connections. The person focuses on design and usability, editing as much as they like directly, in real time beside the agent, not only by prompting.
- Games and 3D (planned): coding stays in the background. The person asks for actions and properties ("slippery", "jump", "run") and the agent makes them, but every granular setting stays theirs to change. The story and the world are theirs.
- Everything is a canvas where the person's imagination runs the scene: no learning curve, no friction. New tools are judged against this.
Standing product decisions
- Yolo is the default: no tool call waits for approval in chat, and
needsApprovalinserver/tools.tsreturns false. Approval is opt-in, per chat, by the person: the header's Yolo / Ask selector (permissions, withask_whenfor when to ask, inserver/modes.ts). Don't make Ask the default or add approval prompts anywhere else unless asked. - A chat also has a work mode, chosen in the message box: Agent (the default:
plans first, then switches itself to build with
set_mode; the switches show in the thread, the selector stays on Agent), Build (works straight away) or Plan (read-only). Planning is refused, never asked about.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

