# Konfiguráció

A store beállításai: a `tkt config` parancsai és a kulcsok táblája.

## Workspace-beállítások

`tkt config list` (érték és forrás: `file` / `default`), `tkt config get <kulcs>` (az alapérték `(default)` jelöléssel), `tkt config set <kulcs> <érték>`, `tkt config unset <kulcs>`; mind ismeri a `--json`-t ([a kulcsok](#ref-config)).

- A `set` YAML-ként olvassa az értéket (`4000` szám), az olvasója szabályával ellenőrzi, és csak a kulcs sorát írja át; rossz értéknél semmit.
- Ismeretlen kulcs: `ERR_CONFIG_KEY_UNKNOWN` (did-you-mean); a `workspace`, `schemaVersion`, `idScheme` csak olvasható: `ERR_FIELD_READ_ONLY`.

### Részletek

Az `unset` után újra az alapérték él. REST (store API, `GET/PATCH /v1/workspace/config`): pl. `PATCH /v1/workspace/config` `{"bundleTokenBudget": 4000}`; a `null` törli a kulcsot, mindent vagy semmit (422-nél semmi).

Példák: `tkt config set bundleTokenBudget 4000`, `tkt config get bundleTokenBudget`, `tkt config unset bundleTokenBudget`.

## Konfigurációs kulcsok

A `.aitodo/config.yaml` ismert kulcsai az alapértékükkel (`tkt config list|get|set|unset`).

### Kulcsok

| kulcs | alapérték | csak olvasható, mert | jelentés | bővebben |
|---|---|---|---|---|
| `workspace` | `null` | it names the workspace; `tkt init` sets it | The store's name |  |
| `schemaVersion` | `3` | it records the level of the store's data; `tkt init` writes it, `tkt reorg` raises it | The level of the store's data; `tkt doctor` names an older store (`tkt reorg`) |  |
| `idScheme` | `"PREFIX-NNN"` | every existing ticket id was minted with it | How ticket ids are formed: the group prefix and a number |  |
| `bundleTokenBudget` | `3000` |  | The Context Bundle's token budget for every read of this store | [A bundle kerete](/docs/concepts/budget.md#context-budget) |
| `mentionPatterns` | `[]` |  | Patterns that turn a body word into a doc ref (`{pattern, doc}` items) | [Említések a törzsben](/docs/concepts/refs.md#context-mentions) |
| `decisionPrefix` | `"D"` |  | The prefix of decision ids (`D63`) | [Döntések](/docs/concepts/decisions.md#context-decisions) |
| `idRangeMax` | `50` |  | The most ids an id range (`D18-D21`, `SG-4..SG-9`) names; a wider one names only its two ends | [Döntések](/docs/concepts/decisions.md#context-decisions) |
| `staleHighValueDays` | `14` |  | Days after which an open high-value ticket counts as stale in `tkt report release` | [Érték- és release-riportok, release notes](/docs/guides/plan/reports.md#plan-reports) |
| `lowValueCloseDays` | `90` |  | Days after which an open low-value ticket is a close candidate in `tkt report release` | [Érték- és release-riportok, release notes](/docs/guides/plan/reports.md#plan-reports) |
| `untouchedDays` | `90` |  | Days after which an unanchored doc or gotcha counts as untouched in `tkt doctor` and `tkt review --unanchored` | [\`tkt doctor\`](/docs/guides/maintenance/doctor.md#maint-doctor) |
| `completenessWeights` | `null` |  | Completeness weights (item: weight) | [Teljesség: a checklist](/docs/concepts/reviews.md#context-completeness) |
| `automation` | `null` |  | Automatic workflows: auto or suggest | [Teljesség: a checklist](/docs/concepts/reviews.md#context-completeness) |
| `sharedCounter` | `true` |  | Every worktree of the repo shares one id counter | [Párhuzamos worktree-k](/docs/guides/team/worktrees.md#team-worktrees) |
| `parallelRiskPaths` | `["**/migrations/**", "**/schema*"]` |  | Path globs `tkt plan parallel` treats as a risk when two tickets touch them | [Mi mehet párhuzamosan](/docs/guides/team/worktrees.md#plan-parallel) |
| `worktreeBranch` | `"feat/{id}-{slug}"` |  | The branch name template of `tkt worktree new` | [Párhuzamos worktree-k](/docs/guides/team/worktrees.md#team-worktrees) |
| `worktreeDir` | `"../{repo}-{id}"` |  | The directory template of `tkt worktree new` | [Párhuzamos worktree-k](/docs/guides/team/worktrees.md#team-worktrees) |
| `worktreeSetup` | `null` |  | A command `tkt worktree new` runs in the new worktree | [Párhuzamos worktree-k](/docs/guides/team/worktrees.md#team-worktrees) |
| `planMethod` | `null` |  | The default decomposition method of `tkt plan begin` | [Bontási módszerek](/docs/guides/plan/methods.md#plan-methods) |
| `focus` | `null` |  | The project focus: the milestone, epic or release `tkt next` stays inside | [A projekt fókusza](/docs/concepts/focus.md#plan-focus) |
| `releaseVersionPattern` | `"default"` |  | The version form of a release: `default` or `semver` (X.Y.Z, X.Y.Z-rc.N) | [Release-ek tervezése](/docs/guides/plan/releases.md#plan-release-planning) |
| `embedProvider` | `null` |  | The embedding provider of `tkt search`: `local`, `server`, `endpoint` or `off` (unset: none; the server only when set) | [AI-rétegek: hol fut a modell](/docs/guides/team/ai-layers.md#team-ai-layers) |
| `embedModel` | `null` |  | The embedding model: a sentence-transformers name for `local` (unset: `BAAI/bge-m3`), the endpoint's model for `endpoint` | [AI-rétegek: hol fut a modell](/docs/guides/team/ai-layers.md#team-ai-layers) |
| `embedUrl` | `null` |  | The OpenAI-compatible embedding endpoint of `embedProvider: endpoint` (https; the key in `AITODO_EMBED_KEY`) | [AI-rétegek: hol fut a modell](/docs/guides/team/ai-layers.md#team-ai-layers) |
| `llmUrl` | `null` |  | The OpenAI-compatible LLM endpoint of `llmProvider: endpoint` (https; the key in `AITODO_LLM_KEY`) | [AI-rétegek: hol fut a modell](/docs/guides/team/ai-layers.md#team-ai-layers) |
| `llmModel` | `null` |  | The model `llmProvider: endpoint` asks for | [AI-rétegek: hol fut a modell](/docs/guides/team/ai-layers.md#team-ai-layers) |
| `llmPickModel` | `null` |  | The model of `tkt ask`'s pick step on `llmProvider: endpoint` (unset: `llmModel`) | [Kérdés a store-hoz](/docs/guides/loop/ask.md#loop-ask) |
| `llmProvider` | `null` |  | The LLM provider: `local` (the LLM command), `server`, `endpoint` or `off` (unset: the tkt server's when available) | [AI-rétegek: hol fut a modell](/docs/guides/team/ai-layers.md#team-ai-layers) |

## Parancsok ezen az oldalon

- [`tkt config list`](/docs/reference/commands/maintenance.md#tkt-config-list): Every known key with its value and source (file / default)
- [`tkt config get`](/docs/reference/commands/maintenance.md#tkt-config-get): Print a key's value; a key not in the file prints its default with `(default)`
- [`tkt config set`](/docs/reference/commands/maintenance.md#tkt-config-set): Write a key; only its line in config.yaml changes
- [`tkt config unset`](/docs/reference/commands/maintenance.md#tkt-config-unset): Remove a key from config.yaml, so its default applies again

## Kapcsolódó

- Hibakód · 422: [`ERR_CONFIG_KEY_UNKNOWN`](/docs/reference/errors.md#ERR_CONFIG_KEY_UNKNOWN): Not a known config.yaml key
- Hibakód · 422: [`ERR_FIELD_READ_ONLY`](/docs/reference/errors.md#ERR_FIELD_READ_ONLY): The field or config key is read-only
