stella init
Analyze the workspace, infer its domain taxonomy, and build the code-graph index.
Analyze the current workspace, infer its domain taxonomy, and build the code-graph index that powers memories, reflections, and structured exploration.
Synopsis
stella init [global flags]What it does
stella init does the following:
- Infers the domain taxonomy and writes it to
<workspace>/.stella/domains.toml. This taxonomy is the tagging vocabulary for memories, reflections, and every code-graph node and edge. It is also persisted into the context plane at<workspace>/.stella/context.db. - Builds the code-graph index at
<workspace>/.stella/codegraph.db— the databasestella graphqueries. - Syncs extensions — adopts commands, skills, and agents from other agents'
.claude/and.agents/directories (workspace and user scope) as symlinks under.stella/.
It works offline using a heuristic fallback, so it never hard-fails on configuration — you can initialize a workspace even without a resolvable provider credential.
Run stella init once per workspace to prime Stella's understanding of your codebase. The generated files live under <workspace>/.stella/.
Flags
stella init takes the global flags. Because it can run offline, model selection is optional:
| Flag | Why it matters here |
|---|---|
--model <provider/model_id> | Pin the model used for taxonomy inference. Omit it to rely on auto-detection or the offline heuristic fallback. |
The global --budget flag is accepted but not honored by init — the analysis makes at most a couple of token-capped inference calls and does not track a budget.
Generated files
| Path | Contents |
|---|---|
<workspace>/.stella/domains.toml | The inferred domain taxonomy (tagging vocabulary). |
<workspace>/.stella/codegraph.db | The code-graph index (queried by stella graph). |
<workspace>/.stella/context.db | The context plane — the domain taxonomy and context facts. |
Examples
Initialize the current workspace:
stella initInitialize using a specific model for taxonomy inference:
stella --model openai/gpt-5.5 init