Kyon
Contents

Code, review and documents

Open and edit files with language servers, search the workspace, write Markdown in place, and review, comment on, commit and hand off your git changes.

Open files

You can reach any file in the project from the keyboard, by part of its name or by its path.

  • Press ⌘O (Open a file) or ⌘E (Browse files). With nothing typed you see the project's tree; type and it searches the whole tree. Choose a file to open it.
  • Type a path starting with / or ~ to open that exact file. Add :line, as in main.rs:120, to land on that line.
  • If nothing matches, Create a file named … opens a new file at the top of the project.

In an open file, ⌘L (Go to line) moves the caret to a line number. Files open in a split at the right of the tab unless you change it on Settings › Code › Editor and Code Review.

The editor

The editor handles everyday editing, and adds language intelligence where a language server runs.

  • Several carets: ⌥-click to add one, or ⌃⌥↑ / ⌃⌥↓ to add one above or below. Select this, then the next one like it (Edit › Carets) adds the next match. Esc returns to one caret.
  • ⌘/ comments or uncomments lines. ⌘⌥- folds or opens a block, ⌘⌥⇧- opens every fold, and ⌘⌥Z switches line wrapping.
  • Find: ⌘F opens the find bar with the selection in it. ↩ / ⇧↩ (or ⌘G / ⌘⇧G) step through matches; .* and Aa switch on regular expressions and matching case; Select all puts a caret on every match. The chevron at the bar's left shows Replace and Replace all.
  • Save: ⌘S. With a language server running, the file is formatted first. If the file changes on disk under unsaved edits, a strip above the code offers Overwrite or Discard this version.

Language servers

A language server gives you completions, definitions, references, renames and problems marked as you type.

Kyon can install rust-analyzer, gopls, pyright, typescript-language-server and clangd. Open a file in one of those languages and the bar along the bottom of the file offers to Enable the server for the project, or to Install it, on the machine the file is on. Once enabled, it starts whenever you work in that project. The bar's dot is green when ready, yellow when busy and red when failed; the lightning icon opens a menu to view logs, restart, stop or start it.

CommandKeyWhat it does
Finish this word⌃SpaceCompletions also appear after two letters or a .; ⇥ or ↩ takes one.
Go to definition⌘⇧JOr ⌘-click the symbol.
Find references to the symbol at the caretLists every use; also on the right-click menu.
Rename this symbol everywhereF2Open files get an unsaved edit you can undo; other files are written.
What this file declares⌘⇧SThe file's symbols. ⌘⌥B docks this outline.
What is this?⌘⇧HDescribes the symbol; resting the pointer on a word does too.
Format this file⌘⌥FFormats with the server.

Settings › Code › Indexing and projects lists each project with its index and its servers, their state, and buttons to View logs, Restart server, Start or Disable; + installs or enables one not yet in use. To add a server of your own, use the Language servers setting in the settings file (see the settings reference).

The file explorer

The project explorer keeps the tree beside your panes, on this Mac or a host.

Press ⌃1 (Left Panel: Project explorer) or ⌘⇧B (Dock the file tree beside the panes). Type in the field above the tree to filter it: letters in order match, ignoring case, so vw finds view.rs, and uni/tes matches along a path. When you pause, Kyon searches the whole tree and opens the first matches into it. The buttons beside the field switch to a regular expression, show a flat list, refresh and clear.

Look through a path, at the bottom of the panel, adds another folder, such as ~ or ../other-repo, until you remove it with the cross on its row.

Markdown documents

Markdown files open rendered, and you write in the rendered page.

The block holding the caret shows its source, with the marks faintly visible, while the rest stays rendered. ⌘⇧E (Markdown: switch between rendered and source) switches to the raw source and back.

A formatting bar above the document inserts headings, bold, italic, code, lists, task lists, quotes, links, pictures and tables. Link and Picture ask for the address in the bar, suggesting files beside the document (⇥ takes one) and, after #, headings in this or another document. Choose a file picks one instead.

  • Pictures beside the document, embedded in it or on the web are shown in the page.
  • A mermaid code block is drawn as a diagram, offline.
  • Clicking a link to a heading opens its document at that heading.

Review changes

The review takes you from reading your changes to a commit, a push and a pull request.

Open a review

In a git repository, the review control at the window's top right shows the lines added and removed across the whole branch, committed or not, against the branch it grew from. Click it or press ⌘⇧= (Toggle code review) to open the review in a panel at the right; each tab keeps its own. ⌘R (Review changes) opens one in its own tab.

Read and compare

Press n / p for the next or previous change and ] / [ for the next or previous file; ⌘⌥E shows more above a change and ⌘⌥S switches to what is staged. The review starts with uncommitted changes. Press c or ⌘⌥⇧R (Review a branch, a commit or a pull request) to compare against another branch (likely parent first), a recent commit or an open pull request; ⇥ sets whether uncommitted changes are included.

Comment, discard, commit

  • Hover at the left edge of a line and click the button that appears to comment. The tray at the bottom counts comments; Send to Agent pastes them into the coding agent in this tab, and Cancel discards them all.
  • ⌘⌥⌫ (Discard the changes to the file being reviewed), pressed twice, throws away the file's changes.
  • The header's button offers the next step: Commit, Publish, Push, Create PR, or the open pull request. The commit dialog lets you choose Commit, Commit and push or Commit and create PR with ↑ / ↓. Kyon finds a branch's open pull request with the forge's own command-line tool, signed in: gh for GitHub, glab for GitLab, tea for Gitea and Forgejo. It tells the forge from the remote's address (github.com, gitlab.com, codeberg.org, or a host whose name says GitLab, Gitea or Forgejo), and takes any host tea is logged in to as Gitea. Otherwise, say which with git config kyon.forge gitlab (or github, gitea), adding --global for every repository; until then Kyon asks no forge at all rather than guess. Kyon asks the forge again only every few minutes, so a pull request opened elsewhere can take that long to appear. Without the tool, or not signed in, Kyon simply shows no pull request. Creating a pull request, and reviewing someone else's, works with GitHub repositories and needs gh.
  • To open pull requests somewhere other than the forge's own page, such as your own review portal, give an address with git config: in a repository for that repository, or with --global for every one.
    git config --global kyon.pullLink 'https://my-dev-portal/{slug}/pr/{number}'
    {number} stands for the pull request's number and {slug} for the repository as the forge names it, such as kyon-sh/kyon-dev; {host}, {owner}, {repo} and {branch} work too. To send pull requests from different remotes to different places, add Pull request links to Kyon's settings file (Settings › Editor and Code Review › Edit in settings file; it is not a git setting): each entry maps a remote, written as host and path with * for anything, to an address, and the closest match wins. A repository's kyon.pullLink comes first.
    [git.pull_links]
    "git.example.com/*" = "https://my-dev-portal/{slug}/pr/{number}"
  • Where a repository's pull requests are opened against another repository, such as one on a GitHub Enterprise server of its own, tell Kyon which, and it looks for each branch's pull request there, by the name the branch is pushed under:
    git config kyon.pullRepo git.example.com/org-review/repo
    Where they are spread over several hosts, each holding its own, name them all, giving kyon.pullRepo once for each with --add. {host}, {owner}, {repo} and {slug} (owner/repo) stand for the repository's own remote, so the same lines serve every repository from your global config, and braces list several hosts at once, as a shell spreads them. These name hosts 1 to 9 of a server of your own, under the owner's name with -review added, and the remote itself:
    git config --global --add kyon.pullRepo '{1..9}.git.example.com/{owner}-review/{repo}'
    git config --global --add kyon.pullRepo '{host}/{slug}'
    Kyon asks all of them at once, takes the pull request from the one that has it, and asks that one first next time. A remote git hands to a helper, such as spoke::owner/repo, is read by what follows the ::; where that is only owner/repo, the helper's name is {host}. A repository's own kyon.pullRepo is used in place of the global one. To set this per remote instead, add Pull request repositories to Kyon's settings file: each entry maps a remote, written as host and path with * for anything, to the repository or list of repositories its pull requests are in, written the same way; the closest match wins, and kyon.pullRepo comes first.
    [git.pull_repos]
    "github.com/org/*" = ["{1..9}.git.example.com/{owner}-review/{repo}", "{host}/{slug}"]
    Kyon asks GitHub's client; if it is not signed in to a host the pull request may be on, Kyon says which and how to sign it in. Where no repository can be named, give a branch's pull request by its address, as a stacking tool can when it opens one, with git config branch.name.kyonPullUrl address, or a command that prints a branch's address, git config kyon.pullCommand 'stack-tool pr-url {branch}', with {branch} standing for the branch; printing no address means the branch has none. A pull request given by its address that GitHub's client cannot ask about is shown by its number. Pull request links match the host a pull request is on, so one found elsewhere can still open in your review portal.
  • The panel's ⋮ menu offers Delegate fixes to agent and Review with agent, which adds the agent's findings as comments. It uses the coding agent chosen in Ask with (Settings › Agent › Agent), or Claude Code. For reviewing an agent's last turn, see Coding agents.

Notes on lines

Notes let you mark lines while you read and hand them to an agent later. They are the same comments the review shows, kept per repository.

  • In the editor, hover a line and click the button by its number, then Comment. The bar under the code has Send to agent.
  • Leave a note on this line notes the caret's line; Notes on this tree lists every note; Hand the notes to the assistant types them into the focused prompt. All three are in File › Notes.

Editor and Code Review settings

Settings › Code › Editor and Code Review (⌘,) sets which editor opens file links and files from Kyon's panels, whether files open as a split or a new tab, whether Markdown opens rendered, whether the review button and its line counts show and the review opens on an agent's first change, the explorer and search limits, Format on save, Tab width and Wrap long lines. See the settings reference and the shortcuts reference.

Limits

© Ryowavefor Kyon 0.2.35