---
title: kb-project
section: 1
header: user manual
footer: version 0.0.32 cdbcbcf
date: 2026-11-20
author: R. S. Doiel
---

# NAME

kb-project — manage projects

# SYNOPSIS

kb project add [--status concept|active|paused|concluded] NAME [DESCRIPTION]

kb project list

kb project show NAME

kb project concepts NAME

kb project set-status NAME STATUS

kb project set-description NAME DESCRIPTION

kb project rename [--root PATH] [--dry-run] OLD NEW

kb project delete NAME [--force] [--dry-run]

# DESCRIPTION

A project is the top-level container observations and concepts attach to.
Names are unique; adding a project whose name exists is refused (exit 1,
"already exists", naming its id) and changes nothing -- use set-status and
set-description to change either. The name workspace, in any case, is reserved
(exit 2) for add and rename: it names the workspace tier in a record reference
such as workspace/DR-0003, so a project of that name could never be reached.

add
: create a project. --status sets the initial status (default: active) and
  goes before NAME: a --status typed after NAME is a usage error (exit 2)
  rather than description text. Put -- before NAME to keep a flag-looking
  word in the description.

list
: list every project (bare rows — see kb format in kb-search(1) for an
  assembled Markdown view with linked concepts/observations included)

show
: show a single project by name

concepts
: list the concepts linked to a project

set-status
: change an existing project's status. STATUS must be one of concept,
  active, paused, concluded.

set-description
: replace an existing project's description, reindexing it for
  kb-search(1). A description is grounding context -- it is what
  show prints and what search returns -- so this is how one that has gone
  stale gets corrected. Trailing words are joined with a space, as in add;
  pass an explicit empty string to clear the description entirely.

rename
: rename a project and reindex it for search. Refuses if NEW already names
  another project. If the project owns records, first rewrites every owned
  record's project: frontmatter to NEW -- both-or-neither, rolling back
  every file already written if any write fails -- before renaming the
  project row; no record's database row is touched, so the next
  kb-ingest(1) of that corpus sees a changed checksum against an
  unchanged identity and updates in place rather than minting a phantom
  project. --dry-run reports which files would be rewritten without
  writing anything. --root sets the workspace root record paths are
  relative to (default: inferred from the database path). See DR-0026
  (knowledge/decisions/), which supersedes DR-0024's outright refusal.

delete
: delete a project. Meant for a stray empty one (a failed ingest can leave one).
  A project that owns any observation, record or document is refused, with
  --force or without: one command must never destroy work, so delete or move
  the content first (exit 1). A project attached only to concepts is refused
  unless --force, which removes those links and the project; the concepts stay.
  --dry-run reports what would happen and changes nothing. A NAME that looks
  like a flag is given after --.

Deletion is local to one database, with no tombstone: kb-merge(1) and
kb-import(1) from a database that still has the row bring it back, so
delete it there as well. `agents/knowledge.jsonl` is re-exported from the database,
so a delete reaches a database rebuilt from it. See DR-0050 (knowledge/decisions/).

# CAVEATS

A description, status, or name edited on two machines now reconciles: both
kb-merge(1) and kb-import(1) adopt whichever side's
updated_at is later (DR-0025, generalized to name by DR-0026), so a project
renamed on one machine and left untouched on another arrives as one renamed
project, not two, regardless of merge/import order. See
DR-0024/DR-0025/DR-0026 (knowledge/decisions/).

# EXIT STATUS

The workspace convention, as described in kb(1).

0
: done

1
: no project has that name (show, concepts, set-status, set-description,
  rename, delete); add or rename onto a name that already exists; or delete of
  a project that still owns an observation, a record or a document (and, without
  --force, one that is linked to concepts)

2
: a missing or surplus argument, a status outside the vocabulary (concept,
  active, paused, concluded), the reserved name workspace for add or rename, a
  flag typed after NAME that belongs before it, or an unknown subcommand

# SEE ALSO

kb-observation(1), kb-link(1), kb-search(1),
kb-merge(1)

