# Sessions & projects

_Sessions, worktrees, sessions that talk to each other, and the dashboard._

A project is a folder Monix Agent knows. A session is one line of
work in it — with its own conversation, its own settings, and optionally its own
copy of the code.

## Projects

Run `monixcode` in a folder and it becomes a project. Monix Agent indexes
the code once, keeps a memory for it, and remembers every session you had.
Several folders can belong to one project if your repository is split: in the
project list a adds a further folder as a
*source* (they are also listed under Settings ▸ Project ▸ Sources, with
indexing on or off). n creates a new project,
i imports a repository.

| In the project list | Key |
|---|---|---|
| Open, New project, Import repo, Add source | Enter, n, i, a |
| Pending facts (what was not written, with the reason) | p |
| Change the sort order | s |
| Session access, External agents | e, x |
| Refresh, Delete (asks first), Quit | r, d, q or Esc |

Deleting a project removes it with its sessions and memory. Your code is
never touched.

## Sub-projects

A large project can be split into parts, called sub-projects: a firmware and
an app in one repository, for example. `/subproject` lists and creates
them and moves the current session into one; in Monix Desktop they sit under
their project in the sidebar, with a ⋯ menu. A session in a sub-project gets that
part of the memory preloaded and uses the part's own settings on top of the
project's ([scopes](https://docs.nemonix.ai/monix-agent/docs/settings#scopes)).

An existing project can be added to another one as a sub-project. Everything
you set up for it comes along: its settings, hooks, MCP servers, extra folders,
scheduled jobs and connectors. *Make it its own project again* in the ⋯
menu gives them back. A part that was added before this was possible can fetch
them from its old project with *Restore settings from the old project…*,
which first shows what would come back.

## Sessions

Start as many as you like: n in the session list and
type a title, Enter creates it (an empty title creates
nothing; Esc cancels). Each keeps its own
conversation and its own history — your earlier messages in one session never
show up in another.

Missions of the same project run one after another, not at the same time:
two agents editing the same files would fight, and the memory is shared. To let
sessions work side by side on files, give each its own worktree (below).

In the session list, besides opening: i import
sessions, g the memory graph, p
pending facts, s sharing settings, y
pull what colleagues shared, Y set up a sync repository,
V the address of the memory in the browser,
e session access, x external
agents, b or Esc back.
See [the memory in the browser](https://docs.nemonix.ai/monix-agent/docs/browser) and
[Sharing with a team](https://docs.nemonix.ai/monix-agent/docs/sync).

## What belongs to one session

| What | How |
|---|---|---|
| Models, providers and effort per role | Settings ▸ Models ▸ *Only this session*. See [Models & cost](https://docs.nemonix.ai/monix-agent/docs/models#session). |
| Which memory topics are preloaded | `/areas` (below). |
| A working copy of the code | `/worktree` (below). |
| Which custom agent answers | `/agents` ▸ use in this session. |
| A completion condition to work toward | `/goal`. The number of “not met” checks it accepts is
 [Goal max rounds](https://docs.nemonix.ai/monix-agent/docs/settings#goal-rounds). |

## Continuing a mission

If the last mission of a session failed or was cancelled, `/resume`
tells the agent to finish it, continuing from where it stopped rather than
starting over. It says so if there is nothing to resume, and is refused while a
mission runs. To bring back an old
session, open it from the session list; its whole conversation is still
there.

## History and ideas

| Command | What it gives you |
|---|---|---|
| `/history` | Browse the past sessions of this project,
 or type into the search field to search what was said in all of them. Hits
 show who said it, the session and the time. It survives `/compact`
 and starting fresh — what you said three weeks ago is still findable.
 Other projects are not searched by `/history`; the agent's
 `search_history` tool can look there when access is granted. |
| `/ideas` | The project's list for later. Things
 Monix Agent noticed while doing something else: a bug it did not fix, a
 simplification it did not take, a note. Open ideas are listed; you can add
 your own and mark them done. Keys are under
 [Keys ▸ In windows](https://docs.nemonix.ai/monix-agent/docs/keys#window-keys). |

## The harvest session

Every session gets a companion **harvest session** the first
time the curator harvests it. In the session list it sits right under its
session as `└ harvest` in the TUI (`↳ harvest` in the browser); in a chat, ctrl+t
switches between the two. That is where you watch what the curator reads and
proposes. `/harvest` starts a harvest now. Details on
[the curator](https://docs.nemonix.ai/monix-agent/docs/curator#harvest).

## Who may read other sessions

Two switches, both off until you turn them on:

## Bringing sessions along

Press i in the session list to import. Monix Agent looks
for two sources for this folder: Claude Code sessions, and another Monix Agent
installation on the same machine that knows the same repository. If there is
only one source, its list opens straight away; with both you choose first. If
there is neither, it says so.

## A session with its own worktree

```
/worktree         # show the state: folder, branch, commits ahead, uncommitted files
/worktree on      # this session works in its own copy, on its own branch
/worktree merge   # bring the work back into the main tree
/worktree off     # drop the folder (an unmerged branch is kept)
```

Now two sessions can work on the same repository without touching each
other's files. What one builds is only in the main tree once you merge it. The
merge is a three-way merge; conflicts are not resolved silently, they stay open
for you. It needs a git repository.

## Sessions that talk to each other

A session can hand something to another one — a finding, a question, a piece
of work. You see the whole exchange, and it is off unless you turn it on
(Settings ▸ General ▸ cross-session talk). With it off, the agent is not even
offered the ability. Which pairs of sessions may message each other is listed
under Settings ▸ Project ▸ Crosstalk pairs.

To look at it: press v in the memory view and pick
*Cross-session talk*, or open the dashboard.

## The dashboard

A page in your browser with everything at once: the sessions of a project,
the agents available, what the sessions sent each other, scheduled jobs, and
today's usage. Press v and pick
*Dashboard*.

## Choosing what a session knows

In a large project you rarely need all of the memory at once.
`/areas` picks the topics this session gets preloaded; everything
else stays available when the agent asks for it. Which folders feed the memory
at all is `/pum-folders`; with none ticked, the whole project
does.
