Starting a workspace
Development reference · View source
| Command | Effect |
|---|---|
runyte | Open the workspace discovered from the current directory, in the mode set by mode |
runyte --mux, runyte -a | Attach to the current project’s persistent session, starting it if needed |
runyte -a WORKSPACE | Attach to a named session from any directory, starting it if needed |
runyte --ide | ide mode, overriding the mode setting |
runyte DIRECTORY | Open that directory in the workspace discovered from the current directory |
runyte --init /path/to/project | Make that exact directory a workspace and exit |
runyte --serve | Run the host in the foreground |
Finding the workspace. Runyte walks up from the launch directory to the
nearest Git (.git), Jujutsu (.jj), or Subversion (.svn) root, or else to a
workspace state directory (.runyte/). A working copy wins over a nearer state
directory. When neither exists and the launch directory is exactly your home
directory, ide and mux use the home workspace. The environment and effective
account home paths both qualify, compared after resolving links. Displayed ~
keeps the environment home’s meaning when they differ. Its state lives in the
per-user state directory
,
and Runyte creates no new relative state directory such as ~/.runyte/. Subdirectories never discover
this fallback: ~/scratch is still adopted by ide or refused by mux unless
ordinary discovery finds a workspace.
When neither exists elsewhere, an ide launch makes the launch directory the
workspace, as Helix uses its working directory: it creates .runyte/ there,
says so in a notification, and later launches from it or from a directory below
it find the same workspace. The interaction line echoes the chosen workspace
and how it was found: a Git, Jujutsu or Subversion root, an existing state
directory, the home workspace, or a workspace created by this launch. A persistent session also
says whether it started or was already running. The echo appears on launch,
deliberate attachment and session switching, and stays until another action
replaces it. Startup warnings and errors take priority; editor mode has no
workspace echo. See
Where workspace state lives
.
A checkout rooted at home keeps its version-control identity and normal project scans. Its new state lives in the per-user state area; an existing configured relative state directory is retained.
Home fallback project scans (Finder, file pickers and workspace grep) stay on one
filesystem and visit at most 20,000 entries. The results say when that limit
was reached. On macOS these scans skip ~/Library, including when hidden files
or unfiltered search are enabled. To search it explicitly, open that directory
as the scan root, or use runyte --editor ~/Library.
Some directories are never made a workspace this way, because a .runyte/ in
them would become the workspace of every later launch from a directory below
with no repository:
- the filesystem root;
- the temporary directory;
- on Unix, a directory other accounts can write to, or one another account owns.
A launch naming a file outside the launch directory, such as
runyte /etc/hosts from ~/Downloads, is not made one either: it is about
that file, not about where the shell happened to be. These launches refuse. The message names the mode, whether a flag or the
mode setting selected it, where discovery started, and why the directory
was not adopted. Open a project with cd DIRECTORY && runyte, make a
workspace deliberately with runyte --init DIRECTORY, or edit without one
with runyte --editor. A mux refusal instead offers
runyte --mux DIRECTORY to open or create a workspace from the current
directory, or runyte --init DIRECTORY to create one only. Replace
DIRECTORY with the desired directory; quote paths containing spaces or shell
characters. Displayed paths abbreviate your home directory as ~.
A launch that fails after making its workspace, for example because it has no
terminal, leaves the .runyte/ it created. A mux launch without a selector
can create the home workspace. Elsewhere, it,
--wait, and lifecycle management commands never create a workspace: run an
ide launch or --init there first. An explicit directory attachment can
create one, as described below.
--init DIRECTORY creates the configured state directory (.runyte/ by
default) in exactly that directory, or uses the per-user state area for home.
It prints how to open it and exits without
starting the editor. Windows PowerShell uses
Set-Location -LiteralPath PATH; if ($?) { runyte } for the ide opening
command:
initialized a workspace in /path/to/project
open it with: cd '/path/to/project' && runyte or runyte --mux '/path/to/project'
- An existing state directory is used as is, never reset or removed, and the output says it is already a workspace.
- It picks the named directory even when an ancestor has its own state directory.
- It refuses a state directory that would overlap your configuration or cache directories.
mode: mux makes a bare runyte attach like runyte -a.
- Launches naming a target — a file or a directory, including
runyte .— run in ide mode in this process, so their relative paths and+LINE[:COLUMN]positions keep ordinary meaning. --muxreads its argument as a workspace, not a file.
runyte -a WORKSPACE uses the same selector as the lifecycle commands (see
Selecting a session
).
- A session that is not running is started first.
- An existing directory unknown to the catalog names that exact directory:
Runyte creates its state directory if needed and starts its session.
:session-attach DIRECTORYand the explorer’sTab sdo the same. - A bare
runyte -auses the workspace of the current directory, including the home workspace, and refuses when there is none.
Only one interactive TUI may be attached at a time. Separate control connections can still manage the host.