---
title: "Project"
description: "Use a project as Mimir's working context: the picker, new-shell directory and read-only git panel for branch, diff and pull requests."
canonical_url: "https://mimir.atnatewos.dev/docs/project"
markdown_url: "https://mimir.atnatewos.dev/docs/project.md"
last_updated: "2026-12-06"
x_farming_labs_generated_preamble: true
---

# Project
URL: /docs/project
LLM index: /llms.txt
Description: Use a project as Mimir's working context: the picker, new-shell directory and read-only git panel for branch, diff and pull requests.

# Project

A project is a working directory Mimir treats as where you are working, usually
a Git checkout. It replaces the old Repos section: there is no Project tab, no
`Alt` slot and no Git client. The project is context - it decides where new
shells start and what the project panel inspects.

Existing shells keep their own directory. Selecting another project never moves
a running session, and clearing the project does not close anything.

## Selecting

The palette has three project actions:

| Action | What it does |
| --- | --- |
| `Project: switch…` | Opens the picker: recent projects, checkouts below the local parent, or a typed path |
| `Project: set local parent…` | Sets the folder whose immediate children are offered. Stored in `repos.json` beside the config |
| `Project: clear` | Forgets the current project; new shells start at home |

The picker filters as you type. A bare word is looked up below the local parent,
in the current directory, then in your home; anything path-shaped (`~`, `./`,
`/`) is taken literally. `Enter` selects, `Esc` closes.

The same choice is available without the UI:

```sh
mimir project                     # print the current project
mimir project mimir               # a name below the local parent
mimir project ~/projects/mimir    # a path
mimir project --clear
```

The command writes the choice for the next window; a running Mimir keeps its
current project until you switch it in the palette.

The top bar shows `⑂ name branch ●` on the right when a project is selected, so
the context is visible from every section. The marker says nothing about other
shells - it is the project, not the active pane's directory.

## The project panel

`Project: status, diff, pull requests` opens a modal panel for the current
project. It reads; it never writes.

| Keys | Action |
| --- | --- |
| `o` / `Enter` | Open the repository on GitHub in Browser |
| `p` | Recent pull requests, open and closed, through `gh` |
| `d` | Working-tree diff: status, staged and unstaged stats, patch |
| `f` | GitHub's fork page |
| `y` / `c` | Copy the path / clone URL |
| `r` | Read git status again |
| `j` / `k` | Move in a list, scroll a diff |
| `Esc` | Back one level, then close |

The panel shows branch, dirty marker, ahead/behind counts, last commit and the
`origin` URL. A directory without a Git checkout is still a valid project; the
panel simply has less to say.

## What stays outside Mimir

- Cloning, fetching, pulling, pushing, committing and branch operations.
- Creating a fork: the `f` key hands you GitHub's fork page.
- GitHub authentication: it stays in `gh`. Mimir never reads a token.

Remote GitHub repository discovery from the old Repos section is gone. A project
is local; listing an owner's repositories was not project context, and the
Browser already covers GitHub.

## Files

| File | Purpose |
| --- | --- |
| `$XDG_STATE_HOME/mimir/project.json` | Current project and a short recent list |
| `$XDG_CONFIG_HOME/mimir/repos.json` | Local parent for the project picker |

`project.json` is workspace state, written atomically, and is safe to delete: the
picker then starts from the local parent alone.

## Sitemap

See the full [sitemap](/sitemap.md) for all pages.
Docs-scoped sitemap: [/docs/sitemap.md](/docs/sitemap.md).
Well-known sitemap: [/.well-known/sitemap.md](/.well-known/sitemap.md).
