.comet/config.yaml at the repository root. Running comet init generates sensible defaults that most projects do not need to change. Edit specific fields only when you want to customize the default workflow, document language, clarification cadence, document write policy, concurrency limit, memory or knowledge sources, or custom PR creation commands.
Recommended Native configuration
A common configuration for a Native project looks like this:Default workflow and natural-language resume
Changing
default_workflow only affects routing for new entry points. It does not convert existing Native changes to Classic or migrate Classic changes to Native. To enable both workflows in the same project, run comet init --workflow both.
Native core fields
Supervisor child concurrency
Adjust this under Dashboard → Settings → Comet configuration → Native workflow, or editnative.max_parallel_children directly:
- Slots count active children that have been dispatched and have not finished integration (including Build, Verify, and waiting for integration); the Runtime releases each slot automatically after integration finishes.
- Changes take effect on the next dispatch. If you lower the limit below the current active count, the system waits for in-flight children to finish integration before dispatching under the new limit without interrupting running tasks.
- The parent project always supplies this setting; configuration inside a child worktree does not override parent scheduling. See Supervisor Change.
- Legacy compatibility mode (Compat) still supports a per-run
--max-paralleloverride; Native SDK workflows always usenative.max_parallel_children.
Artifact root directory
artifact_root: docs maps to <project>/docs/comet/, and artifact_root: . maps to <project>/comet/. The path must remain inside the project root.
To migrate the artifact root in an existing project, do not edit the YAML or move folders by hand. Let the Agent handle it, or run the migration commands in your terminal (show displays the current root, move migrates to the target directory; if a migration is interrupted, recover with comet native doctor --repair --strategy <continue|rollback>):
Archive confirmation (native.archive_confirmation)
automatic: When Verify passes completely and all of the following hold—accepting verification is the only pending wait, no evidence waits are pending, and norunningorunknownactions exist—the Runtime automatically accepts and proceeds to Archive.required: Pauses after all Verify criteria pass and waits for your explicit confirmation in conversation before archiving.
automatic only determines whether to skip the extra confirmation before local archiving. It never executes Git merge, push, or PR creation without your consent.
Verify failure limit (native.max_verify_failures)
Limits the maximum number of real Verify failures allowed for the same confirmed target (default 5). When the limit is reached, the Native Loop pauses and lists prior failure records so you can decide whether to try a different approach, adjust requirements, or cancel the task instead of spending tokens in the wrong direction. Platform errors or missing external prerequisites pause and report directly—do not raise this limit to mask environment issues.
Document write policy outside Build (native.document_writes)
allow(default): During Shape, Verify, and Archive, writes to the following ordinary documentation files outside the Native artifact root are treated as neutral edits, preserving the original Run while letting the Agent inspect the diff and assess impact:.md,.markdown,LICENSE,NOTICE, andAUTHORSfiles at the repository root (excluding platform instruction files such asAGENTS.md);.md,.markdown,.txt, and.rstfiles inside the four fixed directoriesdocs/,doc/,documentation/, and.github/.
revert: Switches back to strict interception so writes to the ordinary documentation files listed above are rejected by the Hook Guard outside Build (while also blocking application code writes during Verify and Archive).
walkthrough.html inside the current change directory and the project configuration file .comet/config.yaml are always allowed and are not restricted by revert.
Change walkthroughs
change_walkthrough is shared by Native and Classic and defaults to true. Under Native, walkthrough.html is generated only when you explicitly request a visual change explanation (comparing before/after behavior, expanding key code, and including optional diagrams; Verify syncs actual test results and Archive keeps the archived link). Routine tasks still finish with a concise text summary. To disable walkthroughs completely and save explanation tokens, set change_walkthrough: false at the top level of .comet/config.yaml (or turn it off in Dashboard settings).
Personal memory (memory)
memory is shared by Native and Classic, with both switches enabled by default:
To read existing memories without automatically adding new ones, set
learning: false and retrieval: true.
Project knowledge (knowledge)
knowledge.provider defaults to local. In addition to the built-in code and documentation corpus, you can append project-internal Markdown globs via include (forward slashes, staying within the project root) and adjust per-file and total corpus size limits:
remote (must use HTTPS, with HTTP allowed only for localhost and loopback addresses; specify an environment variable name in token_env rather than putting a token in plaintext; timeout_ms range is 100–30000 milliseconds):
Hook write allowlist (hook.allow_paths)
Shared by Native and Classic, defaulting to an empty array. If your project has custom hooks or scripts that must write to a dedicated directory during protected phases, allowlist those directories here (project-relative directories using forward slashes /):
Custom pull request creation command (native.finish.pull_request)
This setting applies only to the legacy compatibility mode (Compat) automatic finish flow. New SDK Native changes do not use automatic finish parameters; after archiving, the Agent executes Git commits, pushes, and pull request creation directly according to the delivery scope you confirm in conversation.
In legacy compatibility mode, choosing “push and create PR” calls gh pr create --fill by default. If your team repository enforces custom PR templates, titles, or required fields, plug in a repository script via native.finish.pull_request while Comet continues handling commits, pushes, existing-PR checks, branch verification, and recovery:
providercurrently supports onlyrepository-command.commandmust be a non-empty argument array; the first element must be an executable onPATHor a project-relative path (absolute paths are not allowed).timeout_msdefaults to120000milliseconds (2 minutes) with a maximum of600000milliseconds (10 minutes).- The script starts in the project root, receives
comet.native.pull-request-finish-input.v1JSON on stdin, and returnscomet.native.pull-request-finish-result.v1JSON on stdout. - GitHub CLI (
gh) must still be installed and authenticated locally so Comet can independently verify remote branch and PR status.

