Code: your repository, any branch

Browse the project's repository at any branch, open and edit any file, and commit it from Git — on every device.


Code shows the project's repository as itself: its whole tree and any file, at the branch you picked for it in Git. It works the way VS Code does, on the web, the desktop app, the Mac, an iPad and both phones.

It appears in the project's navigation as soon as the project has a repository or a bucket. On a phone it starts in More; someone with Manage project can move it into the bar in Settings → Navigation.

In a project with several repositories, Code asks which one to open first and remembers your pick on that device. A Repository switch changes it; each repository keeps its own branch and its own changes, and Git lists them all. Editing a file together works in whichever repository it is in.

A bucket in Code

The project's buckets are in the same switch, under their own heading. A bucket's tree is every file in it: its code, and the folders its wiki and Assets keep, each marked. Open, edit and save any file. A save checks each file against the version you opened, and when someone changed one meanwhile nothing is saved and Code says which. A file's History lists its earlier versions where the bucket keeps them, and Restore brings one back. Search finds files by name and text, and says what it skipped. A bucket has no branches, commits, compare or pull requests, so Code shows none of them there and Git lists only repositories. A project whose only storage is a bucket opens it in Code and has no Git tab.

Browsing

  • Where you are reading heads the tree: the repository and its branch, like api · main, and how many changes wait there. Either opens Git, where you switch branch or make one.
  • The explorer is a file tree with an icon for every common file type. Folders that hold only another folder show as one row, like src/main/kotlin. Type to filter it.
  • Go to file (⌘P on the web and the Mac, the search field on a phone) finds a file by a few letters of its name.
  • Search (⇧⌘F) finds text across the branch's files, with match case and regular expressions.
  • History, in a file's menu, opens Git's History showing that file. The branch's history and Compare are in Git.

Pictures, PDFs, videos and ZIP archives open in the same viewer as a run's files. Markdown, HTML and SVG open as a preview with their source a click away. Files over 1 MB open read-only.

Markdown is any of .md, .markdown, .mdown, .mkd, .mkdn, .mdwn and .mdx. A Markdown file that opens with front matter — key: value lines between --- lines — shows those values as properties over the text in Preview; Edit source edits the file as written, front matter and all.

In Preview, images including SVG, videos, HTML pages, reports, tables and font specimens share zoom controls. Images open at original size or fit the reader when larger, without enlarging small images. Press the percentage to choose Fit or a fixed zoom preset. Fit follows the reader size; a percentage such as 100% keeps its scale when the pane resizes. PDFs and office documents keep their document zoom. Reading a file's source uses the editor's controls instead. Source text in file previews, including files opened from ZIP archives, supports selecting and copying a range across lines with or without word wrap. Line numbers are not copied.

On the desk and web workbench, closing a file tab returns to the most recently used tab that remains open. Closing another tab leaves the current file in front.

Right-click a tab to close it, close other tabs, close tabs to its left or right, close saved tabs, or close all tabs in its reader. On iPad, long-press instead. Close Saved Tabs keeps unsaved work open; other bulk closes ask before discarding edits. Cancelling leaves the tabs open.

Files opened from Code, Assets or Wiki offer Edit content for CSV/TSV cells, Word text and presentations on an editable slide canvas. Spreadsheets open directly in one workbook workspace, with no Preview/Edit switch. Editing is available when you have permission to edit the file; read-only files keep the same grid with editing disabled. CSV/TSV tables grow as you type in their last row or column. Use the + below the last row to add a row, or the + in the final column header to add a column; Enter, Tab and right-arrow navigation also extend the grid when needed. Use Save to keep the original file in this branch's working copy; automatic commits follow the project's settings. For files with a mode switch, Preview shows your current edits before they are saved; you can still Save while previewing. Returning to Edit content keeps your draft. Documents also open directly in their rich text workspace. Other file headers switch between Preview, Edit content and, for supported text files, Edit source. Switching between Preview and Edit content preserves unsaved edits and each mode’s scroll position for tables and presentations. Unchanged draft previews are reused. Save with ⌘S or Ctrl+S, or press Save in the status bar; phones also offer Save in navigation. Closing a dirty file offers Save, Don’t Save and Cancel. To discard unsaved edits, close the file and choose Don't Save. Choose a sheet or document section in its picker, or a slide in its filmstrip. With a keyboard, Tab and Shift+Tab move between cells, Enter moves down a column, Shift+Enter moves up, and Option+Enter (Mac) or Alt+Enter inserts a line break. Enter at the end of a column commits and releases focus. Arrows move between cells at text edges; inside text they move the caret. Escape cancels the current field edit and releases the cell while keeping other edits. Clicking outside a field commits it and releases focus. Paragraphs keep normal multiline typing. ⌘S or Ctrl+S saves from Edit or Preview. On Android, the keyboard's Next and Done actions move focus or dismiss the keyboard. Click a blank cell beside the row plus to add a row and start editing in that column. Right-click a row number on desktop, or long-press it on touch, and choose Delete row to remove it. Undo row deletion restores the previous draft and row space; Cmd/Ctrl+Z also restores a deletion before further typing. DOCX/DOCM, XLSX/XLSM and PPTX/PPTM/PPSX retain their other Office parts. A formula bar shows the selected cell's value or expression and updates supported results while you type. Saving recalculates arithmetic, references across sheets, SUM, AVERAGE, MIN, MAX, COUNT, COUNTA, comparisons, IF, IFERROR, AND, OR, NOT and concatenation. Unsupported formulas and cycles retain their expressions, clear stale caches and warn. The spreadsheet workspace has sheet tabs along the bottom, a formatting toolbar and a formula bar. Select a cell, drag a range or enter an A1 range in the name box. On macOS, the menu row uses Liquid Glass, formatting uses the same quiet toolbar controls as the markdown editor, and Find opens the shared floating find-and-replace card. Type to replace a cell, or press Enter/F2 to edit it. To keep a number or expression as text, begin it with an apostrophe. Arrow keys move the selection; Shift extends it. Copy/paste rectangular ranges, drag the selection corner to fill values/formulas, or use Ctrl/⌘D to fill down or the Edit menu to fill right. Ctrl/⌘F opens Find; Ctrl/⌘R opens Replace. Find and replace searches the active sheet. Sum places totals below selected columns or beside a selected row, leaving the selected values intact. In an empty cell, it sums adjacent numbers above or to the left; occupied destinations are refused. Cut is available in workbooks without formulas; use Copy when formulas exist. Drag column/row heading edges to resize; double-click a column edge to fit its contents. Insert, Data and View menus hold structural commands, sorting/filtering and freeze settings. The Sheet menu offers PDF export and layout preview. The sheet strip shows selection statistics. Preview zoom and full-screen controls keep their place while loading and become available when the preview is ready. Numbers files also open locally in this grid with table tabs, selection, copying, Find and zoom. Both older and modern Numbers workbooks are read-only; download keeps the original file. Advanced Numbers styling, charts and floating objects are not shown. Text, highlight and fill controls share a shade palette. Pick a swatch to apply it immediately. On phones and tablets, scroll the palette for more shades; Custom keeps recent colors, and Add custom color opens exact hex entry and the platform's advanced color controls. Screen sampling is available on Mac and supported browsers. Document colors keep their RGB values across light and dark appearance. The grid follows the app's appearance; authored cell colors stay with the workbook. Use the file status bar's zoom controls on a wide reader, or pinch on a phone. The formula bar sits above the grid on every device, with the cell's address at its start; on phones two touch handles extend a selection without filling cells, and the sheet tabs run along the bottom — press the sheet in front for its menu, or hold any other. Android and Apple both use native formatting, Find and sheet menus. Preview and editing retain the same canvas, scale and unsaved cells. The spreadsheet commands add/remove rows, columns and sheets, format ranges, filter and sort values, and insert bar, line or pie charts. Formula/merged/table sorts and column changes inside tables are refused to preserve the workbook. Legacy Office, OpenDocument and RTF use conversion and can change layout.

Visual presentations open directly in the slide workspace. Their Office menus and compact formatting bar match documents and spreadsheets, including typed font sizes, presets and minus/plus. Insert adds text, tables, connectors, shapes and images. Slide holds layouts, page size, backgrounds and transitions; Arrange groups, aligns and distributes objects. Select an object for formatting, or use Format options for its inspector. Native toolbars fold only controls that do not fit into More formatting and keep their icons. File saves, exports PDF, previews the current draft and starts presentation mode. Editing updates an unsaved draft and keeps the workspace available; it does not autosave the file. Save waits for queued edits before writing the working copy.

Comments in workbooks and decks. A cell with a comment has a small purple triangle in its corner, as in Excel. Rest the pointer on the cell, or press the triangle, to read its thread; reply, resolve, and edit or delete your own comments there. To comment, right-click a cell and choose Add comment, or use Add comment on the toolbar or under Insert. In a deck, a slide's thumbnail shows how many comments it has and a commented object has a bubble beside it; Add comment comments on the selected object, or on the slide when nothing is selected. View → Comments opens the Comments panel, as in a Word document: the sheet's or slide's threads with their replies, and Show resolved comments once one is resolved. Choose a thread to go to its cell or object. Comments are written into the file, so Excel and PowerPoint show them too, and in a live file everybody sees them arrive. Anyone who can edit the file can reply and resolve; only a comment's author can edit or delete it. A file you can only read shows its comments without Reply or Resolve.

Presentation search uses the same Find and Replace control as the other editors. Find searches text across slides, tables and groups; previous and next select an exact match. Expand Replace to replace one or all matches. Match Case, Whole Word and Regular Expression options use the shared search rules, including capture groups in regex replacements. Closing Find returns to the selected text.

On phones, documents open in a flowing layout with readable text and compact side padding. One bar under the page holds Undo and Redo, then Format, Insert, Find and the document's own menus; the header keeps the file's menu and Save. In a presentation, Speaker notes and Present take Find's place, and Find is under Edit. While you type, the same bar holds Format, Bold, Italic, Underline, Strikethrough, lists, indents and Link above the keyboard, with Hide keyboard at its end. Format opens a panel at half height so the page shows each change: Text and Paragraph for a document, Text and Cell for a workbook, and Text, Paragraph, Shape and Slide for a presentation — with nothing selected it opens on Slide. Emphasis, alignment, lists and indents are one row each; on Apple, fonts are listed in their own face. The document's menu contains File, Edit, Insert, Format, View and Review. Toggle View → Print layout to check the fitted printed page; turn it off to return to flowing text. This changes the view, preserving saved paper dimensions and margins.

Word documents open ready to write in a continuous rich text workspace. Select text to change its font, size, color, emphasis or link. The toolbar and Format menu control paragraph styles, alignment, spacing and lists. Enter a point size in the Font size field and press Enter, choose a preset, or use the adjacent minus/plus buttons for one-point adjustments. Toolbar shortcuts also insert links, images and comments, or clear the selected text's formatting. Select words and press Ctrl/Cmd+K to open the compact link picker beside them. Paste a web address or email, or search the project's files and links already used in the document. Choose a file to link the selected words; at a cursor, its filename becomes the link text. Arrow keys and Enter choose a suggestion. A cursor inside a link lets you change or remove its destination while keeping its text. Escape closes the picker. The vertical-arrows-and-lines icon opens Line spacing; choose Single, 1.15, 1.5 or Double. On Mac, tools move into More formatting only when the reader is too narrow; the menu keeps each tool's icon and current selection. Headings populate Document outline for navigation. Insert adds tables, page breaks, images, headers/footers and comments. Table commands add/remove rows and columns, merge/split cells and resize columns. Insert, paste or drop a PNG/JPEG at the cursor, then select it for Image options: size, aspect ratio, crop, alt text and text wrapping. Drag its corner handle to resize proportionally. File → Page setup changes paper dimensions, orientation and each margin immediately. View → Ruler shows a compact ruler across the editor, with draggable paragraph/first-line indent markers. Its controls keep their size as you zoom; focused markers also accept arrow keys (Shift moves by an inch). Edit offers Undo, Redo and Find and replace. Review adds comments or a suggested replacement; reply to and resolve comment threads in the panel. New comments, replies and suggestions use your signed-in Peractor member name automatically; authors already in the file are preserved. The panel also accepts or rejects tracked replacements. View offers the outline, comments, spellcheck, word count and a pageless canvas. Word, workbooks and visual presentations share the same menus and compact formatting controls; file permissions control editing. Word count appears in the existing file status line alongside save state and zoom. The ruler stays beneath the toolbar, aligned with the page as you scroll. File → Present document opens the current draft full screen. Use arrows, Page Up/Down or Space to navigate, Home/End for the first/last page, a page number followed by Enter to jump, B to blank the screen, ? for shortcuts and Escape to return with edits intact. Controls hide when idle. PDFs and Markdown reports offer Present document in their file actions or preview status controls. Browser PDFs use the browser’s own page navigation. On Apple and Android, editing prompts such as sheet renaming, comments and page setup use native app sheets and forms. File also offers page setup, current-draft print-layout preview and PDF export. Save writes the original file format; presentation, preview and export include pending rich edits. The page canvas is continuous; the print-layout preview shows the actual paginated result. Simultaneous document editing and version-history restore are not available yet.

Presentations open on a visual canvas with a slide filmstrip. Select an object to format it, drag to move it, and drag its corner handles to resize. Double-click text to type directly on the slide; phones also offer Edit text. Select characters to change their font, size, color or emphasis. Select multiple objects to group, align or distribute them. Drag a thumbnail between slides to reorder the deck; on phones, hold the thumbnail before dragging. An accent insertion line marks the drop position. Drag near the filmstrip edge to scroll through a longer deck. The moved slide stays selected, and Undo/Redo restores the order in one step. The slide menu also offers Move up/down; web thumbnails support Alt+Shift+arrow keys. Add, duplicate, reorder or delete slides, choose a layout, set the background and page size, and write speaker notes. Phone thumbnails sit below the slide in portrait and beside it in landscape, numbered underneath, and yield space while typing; the strip ends with New slide, which adds a slide in the current layout, or hold it to choose one. Speaker notes and contextual formatting open in native sheets. Editing enlarges small slide text; opening Format dismisses the keyboard while retaining the selection. Shared master background/fonts remain available in Editor actions.

Table inserts a table on the slide. Select a cell to type or format its text and fill. Table tools add, delete and resize rows and columns and merge or split cells. On the web, Tab moves between cells and Shift-click selects a range to merge. Native menus merge the selected cell with its neighbor. Select the table to move or resize it as one object.

Line inserts a line, arrow, elbow or curved connector. Select two shapes to connect them; attached endpoints follow the shapes. Select the connector to change its endpoints, dash, color or weight.

Paragraph controls margins, indentation and spacing. Numbered and bulleted lists format the current paragraph or selected text. Link opens a focused address editor for selected text, including table cells. Mac and iPad use an anchored popover; phones use a native dialog. Enter a website or email address and press Return/Done or Apply. Bare domains use HTTPS, and email addresses become mail links. Selecting a full web address (https://… or www.…) or an email address before choosing Link applies it directly; other selected text opens the address editor. A caret inside an existing link edits that link across its formatting runs, with a Remove link action. Changes remain in the draft until Save.

Text selection stays active while applying multiple formats. Find searches text across slides and table cells, with case matching and single or all-match replacement. Ctrl/Cmd+F opens search; Ctrl/Cmd+K opens the link control. Text typed during formatting or Save remains an unsaved draft for the next Save.

Gradient background and Gradient fill edit linear fills. Choose a stop to change its color, position or opacity, add/remove stops, set the angle, then Apply. Selecting a solid color removes the gradient.

Format options provides precise position, size and rotation, plus image crop, masks, flips, opacity, brightness and contrast. Replace image keeps the image's position and adjustments. Transition controls the slide effect, duration and timed advance, with an option to apply to all slides. Present displays the rendered deck full screen with notes, an elapsed timer, pause, blank-screen and navigation controls. Use arrows or Space to advance, Home/End to jump to the first/last slide, a slide number then Enter to jump, On a phone, swipe left/right to move through rendered pages; the presentation-actions menu contains blank screen, notes and pause. N for notes, P to pause timed advance, B to blank the screen and Escape to return. Controls hide when idle; ? shows the keyboard shortcuts. Copy, Cut and Paste carry objects between slides and decks with their pictures and charts, and paste pictures and text from other apps. Imported charts are drawn from the figures saved with them. Charts, SmartArt and shapes the editor doesn't draw keep what they hold as written: select one to move, resize, reorder, copy or delete it whole, while those of the slide's layout stay put. Use Preview layout to see their full rendering. Advanced imported paragraph styles and effects, object animation authoring and live co-editing are not yet available.

Diagrams are .drawio.svg files: the drawing rides inside the picture, so the same file opens in draw.io, previews anywhere an SVG does, and opens here as an endless canvas. Pick a tool from the bar or press its key (V select, H hand, R rectangle, D diamond, O ellipse, A arrow, L line, P pen, T text, E eraser) and drag to draw; a tap makes a shape of the usual size, and Q keeps the tool after drawing. Start typing to label the selected shape, or double-click it. Drag from a shape's edge to attach an arrow; drag an arrow's end to reconnect it, the middle of a segment to bend it, and its label to move the label. Shapes snap to each other's edges, centres and spacing; Alt while dragging makes a copy. The style panel offers what fits the selection: colours, fill, stroke, sloppiness, corners, arrow type and heads, font size, alignment, opacity and order. Shapes, beside the circle on the bar, opens draw.io's shapes on four shelves — Basic, Arrows, Flowchart and Containers — with a search; click one to add it or drag it where it goes. Right-click, or touch and hold, for cut, copy, paste, duplicate, edit text and lock, with order and grouping under Arrange and zoom and the grid under View; a locked shape shows only its outline and takes no arrows. Pages are tabs along the bottom, each with rename, move and delete. On a phone the bar sits at the bottom and two fingers pan and zoom; on an iPad or Android tablet a pencil always draws.

Save writes only what changed into the file's drawing and redraws its picture in light colours; everything you did not touch stays exactly as it was. Groups, rotation, routed and bent connectors, HTML labels, sketch style, freehand marks, pictures and several pages all edit. Anything Peractor cannot edit, such as a custom stencil or a label with formatting it does not know, is drawn as it is and stays read-only, and so does a page with more than 1,000 shapes and connectors. A whiteboard is a diagram made for a room of people, with sticky notes, sections, votes and a timer, and takes up to 5,000.

New file in Assets and Wiki (New Office file in Code, beside its plain New file) creates a document, workbook, deck, diagram or whiteboard: give it a name, pick its kind, and, when the branch keeps templates of that kind in .agents/templates/office/, pick one under Start from or keep Blank. Pick Other for any other file, a text file, a Markdown page or a script, and name it with its extension. Code and Wiki Office drafts use Code Changes and the project's commit preference and remain visible in Wiki before commit; Assets creation uses the normal upload review. Files over 10 MB and protected documents remain read-only.

An Office file you open opens live (below), so two people editing it at once never meet this. If you saved an Office draft into Changes instead and another person changes the file before your Code commit lands, Changes asks which version to keep. Choose the repository copy or your saved local file; Office files are not merged automatically. Another change to either copy requires a fresh choice. Commits are authored by you and committed under the organization's Git access identity. Comment author labels are part of the document.

Editing together, live

A Word document, workbook, deck, diagram or CSV in Code opens live: whoever else has it open is in it with you, on every app. Markdown and code files open live too. Type at the same time — each edit goes a moment after you pause and is merged with everybody's. Where two people changed the very same words, both are kept.

Who's here. The faces on the file's status line (in the header on a phone) are the others in the file, each ringed in the colour their cursor, cell or selection wears in it. In a document, a Markdown or a code file, each person's caret stands where they are with their name over it and their selection tinted, on every app; on a slide or a diagram, the shapes somebody holds are outlined in that colour with their name. Press a face to go to their sheet, slide or page. A dimmed face is somebody who can only read the file: they watch the edits arrive, in Markdown and code too, on every app. Reconnecting… means the connection dropped; what you type goes when it is back.

Saving. A live file is committed to the branch when anybody presses Save, after two quiet minutes, at least every fifteen minutes, and when the last person closes it. The commit is authored by whoever wrote last, with a Co-authored-by: line for everybody else who wrote. Closing the file asks nothing: the edits are kept, even through a closed tab or a host restart. Save says Not saved when a commit was refused, such as on a protected branch.

Agents and outside commits. When the assistant, an MCP client or a run writes to a file that is open, or somebody pushes a change to it, the change is merged into the open file, and an agent shows its face while its edit lands.

In the Mac, iPhone, iPad and Android apps, undo in a live Markdown or code file goes back as far as the last edit somebody else made.

Up to 25 people can have one file open. A file you hold an unsaved draft of in Changes, a Markdown or code file over 512 KB, and older formats such as .doc and .xls, open on their own as before.

Versions

Every commit that changed a file is a version of it, so a file's File history is its versions, newest first, whoever made them — a person, a live session's save, an agent. Each one opens as it was then.

Name a version to find it again: Name version… on its row, or Name this version… on an open file, which names its newest save. File history shows the name in place of the commit's message, and Named only lists just those. A name is a note on the version, not a change to the file, so naming commits nothing; renaming or removing it is the same.

Compare with current shows what changed in the file since that version — a document's paragraphs, a workbook's cells, a deck's slides, as any comparison does.

Restore puts the file back as it was, as a new version on the branch: the version it replaces stays in File history, and anybody with the file open sees the restore arrive as an edit. When somebody saves the file at the same moment, nothing is restored and you are told.

Naming and restoring need Edit files. The assistant and MCP clients name and restore versions too; the assistant's restore waits for your yes, even in Auto.

Editing, and committing

Change a file, add one, rename or delete one, make a folder. Saving keeps the change on your device; nothing has reached the repository yet. Changed files show the way VS Code shows them: M for modified, A for added, R for renamed, and a dot on the folders that hold them.

Git's Changes lists everything you have changed on the branch, with a commit message ready and one Commit button: all of it, as one commit, straight to the branch. Each branch keeps its own changes, so switching branch loses nothing.

Someone with Manage project can turn on Commit as you finish (Commit automatically in the Mac, iPhone, iPad and Android apps) in the project's settings. Then saving, adding, renaming or deleting commits at once.

Git keeps no empty folders, so a new folder lives on your device until a file goes in it.

When somebody else changed it too

Code merges your edit with whatever landed on the branch since you opened the file — silently, when you changed different lines. When you both changed the same lines it shows both versions and asks which to keep, exactly as the wiki does.

Office files merge too. A Word document merges paragraph by paragraph, a workbook cell by cell (the cell keeps whoever wrote it last), and a diagram shape by shape, with comments kept on both sides. A deck merges when your device kept the slide changes it made, as it does for edits made offline; otherwise, and for older formats such as .doc, you choose which version to keep.

A branch that only takes changes through a pull request (a protected branch) refuses the commit. Git says so and, if you hold Create branches, offers Commit to a new branch with your changes intact.

Reading Code takes View files, committing takes Edit files, and Create branch… takes Create branches. Every member holds all three unless your organization changed Everyone or the project set its own access.

Folders and files with their own access

A folder or a file can be closed to some people. What you can't open is left out of the tree, search and history, and of a commit's and a comparison's changed files; a commit whose files are all hidden from you keeps its message and reads "Changes to files you can't open". A commit is refused if it changes a file you can't edit.

Edit, rename and delete follow what you may do with each file. A folder or file with settings of its own shows a lock to the people who manage access there, and Manage access… in its menu opens them. See Private projects & access.

Code reads and commits through your organization's git access, the same one runs use. Checking a branch out onto a machine is not part of Code yet.