Skip to content

Projects

Typically a project is a git repository.

It has a name and one or more folders on your Mac, and it is where sessions do their work. Everything a session needs to work well in that codebase belongs to the project, so every session that runs there starts with it.

Sessions in a project are its domain experts

Section titled “Sessions in a project are its domain experts”

A session that runs in a project is not a general assistant that happens to be pointed at some files. It starts inside that project, with what the project gives it:

  • The code itself. The session works in a copy of the repository, and reads the instructions the repository keeps for agents.
  • The project’s agent setup. The tools and instructions you have set for agents working here.
  • The project’s environment. Its environment variables, and a setup script that gets each fresh working copy ready to run (see Setup and teardown scripts).
  • The project’s saved actions. The commands you use to run, test and build it.

So a session in your API project knows how the API is built and tested, and a session in your iOS app knows the app. Each is the expert on its own project, and only on that one.

This is the idea the rest of Kestrel is built on. When a task reaches into another project, the session does not reach in and edit unfamiliar code. It asks a session in that project, the expert there, to make the change. See Workstreams.

A fresh working copy of a repository is not ready to run: it has no installed dependencies, no local configuration, nothing started. A project can carry two scripts so that every session’s copy is ready to go, without you or the agent doing it by hand each time.

ScriptWhen it runsTypical use
SetupWhen a session’s working copy is madeInstall dependencies, copy a local config file, prepare a database
TeardownBefore a session is archivedStop what was started, remove what setup created

Set them in the project’s Settings → Scripts. With a setup script in place, a session can build, run and test your app from its first message.

Choose the + beside Projects in the sidebar, or right-click an empty part of the sidebar and choose Create project…. The page has two tabs:

  • One project. Give it a name and add its folders. The name follows the first folder until you type one.
  • Several from a folder. Pick a parent folder and tick the projects inside it.

You can also drop a folder on Kestrel’s Dock icon, or choose Browse for project… in the project picker when starting a session.

A project can have several folders. One is the default, where new sessions start.

A plain folder can be a project too, with less:

Git repositoryPlain folder
Where a session worksIn a working copy of its ownIn the folder itself
Sessions editing at onceAs many as you likeOne at a time
Change history in the Changes paneYesNot yet

If a second session tries to edit a plain folder, it is told which session is already editing it, and waits until that one is finished or stopped.

Click the arrow on a project’s row to open its page. It has two tabs, Sessions and Settings. Settings is where you give the project’s sessions their context:

SectionWhat it is for
GeneralThe name, and New sessions start from: Ask each time, Latest default branch, or Checked-out branch, as it is
FoldersAdd, remove and reorder folders, and choose the default
GitGit defaults, when working copies are cleaned up, and whether reviews start on their own here
ActionsSaved commands you can run from the ▶ button in the Terminal pane
ScriptsThe setup script, run when a working copy is made, and the teardown script, run before a session is archived
EnvironmentEnvironment variables for this project’s sessions
Agent setupInstructions and tools for agents working in this project

Right-click the project and choose Remove. It is available once the project has no sessions. The folder on disk is not touched. Archive hides a project without removing it.