Skip to content
RepoGo Logo

Using RepoGo

Terminal and files

The project's tab bar stays expanded as you scroll.

Terminal#

The Terminal tab opens a shell on your computer in the project's folder. You can open several sessions.

Files#

The Files tab shows the project's folder as a tree. From it you can:

  • Create a New File or New Folder.
  • Upload files or photos, or take a photo straight into the project.
  • Rename, Duplicate, Delete, Share, and copy or paste a file's contents.

Tap a file to open it in the editor. Tap an open file’s tab to switch to it; only the selected file is displayed. The app and App Clip both allow editing text files, with no read-only setting. Tap Save to write your edits to the environment. Markdown and other formats can switch to a rendered view, and long files have an outline.

Search in Files matches both file names and contents across the project, with an option to match case.

Actions#

The Actions tab appears automatically when the project has an actions.json file in its folder. It shows the commands declared in that file so you can run them from your phone. An empty or invalid file still shows the tab; open the file from the tab to fix it.

json
{
  "actions": [
    { "name": "test", "label": "Run tests", "cmd": "npm test" },
    { "name": "dev", "label": "Start dev server", "cmd": "npm run dev", "terminal": true }
  ]
}

Each action takes:

FieldWhat it does
nameRequired. The action's id, unique in the file.
cmdRequired. The command, run in your shell from the project's folder.
labelThe name the tab shows; name if left out.
groupPuts actions under a shared heading; the rest go under Other.
cwdA folder inside the project to run in, instead of its top.
terminaltrue runs it in a terminal tab of its own, which stays open with the output when it ends. Use it for a dev server.
detachtrue runs it in the background with its output in a log, until it ends or you stop it.
timeoutMsHow long a plain action may run, in milliseconds. 30 seconds if left out, at most 10 minutes.
envFromLoads secrets from a .env file on any of your environments. See Env sources.
envPlain variables to set, such as { "PORT": "3000" }.

An action with neither terminal nor detach waits for the command and shows its output when it finishes. With both, terminal wins.

Pages#

Your agent can save a card you'll want again, such as a status, a dashboard or a list, as a page in your environment's plugins folder (~/.repogo/plugins), where every project can open it. It then replies with a button that opens the page, or shows the page right in the chat, instead of drawing a new card each time. A page can be:

  • a .ui file: native screens written in card markup;
  • a .md file: writing, with cards in it.

A page updates on its own when it changes on your environment. Pull down to refresh it and fetch its data again.

A page can link to files on your environment, and tapping one opens it in the app's file viewer: images, PDFs, video, CSV, SQLite and code. In a .md page, link to the file's path. A path is relative to the project's folder, or a full path on your environment. You can only open files RepoGo can already read there, such as your projects' files.

A page can also show a file right in it, without opening the editor: a PDF to scroll, an image, a video or audio to play, or a CSV or SQLite table.

Rows, buttons and images in a card can have a menu of their own: touch and hold one to see more actions, often with a preview of the web page, file or page it opens.

When you keep asking for the same thing, your agent offers to write a plugin that fetches it and a page that shows it, so you can open it from the chat without asking again.

A plugin can also stream, for things that keep coming, such as a server's logs or a build's output. A streaming list shows a green Live badge and stays on the newest line as new ones arrive; scroll up to read back. It runs only while you're looking at it: leave the page and it stops on your environment.