@jaggerxtrm/specialists 3.12.0 → 3.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/config/hooks/specialists-session-start.mjs +1 -1
  2. package/config/mandatory-rules/bead-id-verbatim.md +14 -0
  3. package/config/mandatory-rules/per-turn-handoff-schema.md +16 -0
  4. package/config/skills/specialists-creator/SKILL.md +16 -0
  5. package/config/skills/update-specialists/SKILL.md +183 -350
  6. package/config/skills/using-kpi/SKILL.md +86 -0
  7. package/config/skills/using-specialists-v2/SKILL.md +1 -1
  8. package/config/skills/using-specialists-v3/SKILL.md +390 -112
  9. package/config/specialists/changelog-keeper.specialist.json +2 -1
  10. package/config/specialists/code-sanity.specialist.json +3 -1
  11. package/config/specialists/debugger.specialist.json +3 -1
  12. package/config/specialists/executor.specialist.json +3 -1
  13. package/config/specialists/explorer.specialist.json +2 -1
  14. package/config/specialists/overthinker.specialist.json +2 -1
  15. package/config/specialists/planner.specialist.json +3 -1
  16. package/config/specialists/researcher.specialist.json +2 -1
  17. package/config/specialists/reviewer.specialist.json +3 -1
  18. package/config/specialists/security-auditor.specialist.json +53 -10
  19. package/config/specialists/specialists-creator.specialist.json +2 -2
  20. package/config/specialists/sync-docs.specialist.json +3 -1
  21. package/config/specialists/test-runner.specialist.json +2 -1
  22. package/dist/index.js +247 -355
  23. package/dist/lib.js +38 -19
  24. package/dist/types/cli/help.d.ts.map +1 -1
  25. package/dist/types/cli/run.d.ts.map +1 -1
  26. package/dist/types/cli/version-check.d.ts +3 -0
  27. package/dist/types/cli/version-check.d.ts.map +1 -1
  28. package/dist/types/index.d.ts +1 -1
  29. package/dist/types/specialist/mandatory-rules.d.ts +5 -0
  30. package/dist/types/specialist/mandatory-rules.d.ts.map +1 -1
  31. package/package.json +4 -4
  32. package/config/specialists/.serena/project.yml +0 -151
package/dist/lib.js CHANGED
@@ -555,6 +555,8 @@ var require_Alias = __commonJS((exports) => {
555
555
  });
556
556
  }
557
557
  resolve(doc, ctx) {
558
+ if (ctx?.maxAliasCount === 0)
559
+ throw new ReferenceError("Alias resolution is disabled");
558
560
  let nodes;
559
561
  if (ctx?.aliasResolveCache) {
560
562
  nodes = ctx.aliasResolveCache;
@@ -1334,6 +1336,7 @@ var require_stringify = __commonJS((exports) => {
1334
1336
  nullStr: "null",
1335
1337
  simpleKeys: false,
1336
1338
  singleQuote: null,
1339
+ trailingComma: false,
1337
1340
  trueStr: "true",
1338
1341
  verifyAliasOrder: true
1339
1342
  }, doc.schema.toStringOptions, options);
@@ -1603,18 +1606,18 @@ var require_merge = __commonJS((exports) => {
1603
1606
  };
1604
1607
  var isMergeKey = (ctx, key) => (merge.identify(key) || identity.isScalar(key) && (!key.type || key.type === Scalar.Scalar.PLAIN) && merge.identify(key.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge.tag && tag.default);
1605
1608
  function addMergeToJSMap(ctx, map, value) {
1606
- value = ctx && identity.isAlias(value) ? value.resolve(ctx.doc) : value;
1607
- if (identity.isSeq(value))
1608
- for (const it of value.items)
1609
+ const source = resolveAliasValue(ctx, value);
1610
+ if (identity.isSeq(source))
1611
+ for (const it of source.items)
1609
1612
  mergeValue(ctx, map, it);
1610
- else if (Array.isArray(value))
1611
- for (const it of value)
1613
+ else if (Array.isArray(source))
1614
+ for (const it of source)
1612
1615
  mergeValue(ctx, map, it);
1613
1616
  else
1614
- mergeValue(ctx, map, value);
1617
+ mergeValue(ctx, map, source);
1615
1618
  }
1616
1619
  function mergeValue(ctx, map, value) {
1617
- const source = ctx && identity.isAlias(value) ? value.resolve(ctx.doc) : value;
1620
+ const source = resolveAliasValue(ctx, value);
1618
1621
  if (!identity.isMap(source))
1619
1622
  throw new Error("Merge sources must be maps or map aliases");
1620
1623
  const srcMap = source.toJSON(null, ctx, Map);
@@ -1635,6 +1638,9 @@ var require_merge = __commonJS((exports) => {
1635
1638
  }
1636
1639
  return map;
1637
1640
  }
1641
+ function resolveAliasValue(ctx, value) {
1642
+ return ctx && identity.isAlias(value) ? value.resolve(ctx.doc, ctx) : value;
1643
+ }
1638
1644
  exports.addMergeToJSMap = addMergeToJSMap;
1639
1645
  exports.isMergeKey = isMergeKey;
1640
1646
  exports.merge = merge;
@@ -1842,13 +1848,20 @@ ${indent}${line}` : `
1842
1848
  if (comment)
1843
1849
  reqNewline = true;
1844
1850
  let str = stringify.stringify(item, itemCtx, () => comment = null);
1845
- if (i < items.length - 1)
1851
+ reqNewline || (reqNewline = lines.length > linesAtValue || str.includes(`
1852
+ `));
1853
+ if (i < items.length - 1) {
1846
1854
  str += ",";
1855
+ } else if (ctx.options.trailingComma) {
1856
+ if (ctx.options.lineWidth > 0) {
1857
+ reqNewline || (reqNewline = lines.reduce((sum, line) => sum + line.length + 2, 2) + (str.length + 2) > ctx.options.lineWidth);
1858
+ }
1859
+ if (reqNewline) {
1860
+ str += ",";
1861
+ }
1862
+ }
1847
1863
  if (comment)
1848
1864
  str += stringifyComment.lineComment(str, itemIndent, commentString(comment));
1849
- if (!reqNewline && (lines.length > linesAtValue || str.includes(`
1850
- `)))
1851
- reqNewline = true;
1852
1865
  lines.push(str);
1853
1866
  linesAtValue = lines.length;
1854
1867
  }
@@ -2203,7 +2216,7 @@ var require_stringifyNumber = __commonJS((exports) => {
2203
2216
  if (!isFinite(num))
2204
2217
  return isNaN(num) ? ".nan" : num < 0 ? "-.inf" : ".inf";
2205
2218
  let n = Object.is(value, -0) ? "-0" : JSON.stringify(value);
2206
- if (!format && minFractionDigits && (!tag || tag === "tag:yaml.org,2002:float") && /^\d/.test(n)) {
2219
+ if (!format && minFractionDigits && (!tag || tag === "tag:yaml.org,2002:float") && /^-?\d/.test(n) && !n.includes("e")) {
2207
2220
  let i = n.indexOf(".");
2208
2221
  if (i < 0) {
2209
2222
  i = n.length;
@@ -4428,7 +4441,7 @@ var require_resolve_flow_scalar = __commonJS((exports) => {
4428
4441
  while (next === " " || next === "\t")
4429
4442
  next = source[++i + 1];
4430
4443
  } else if (next === "x" || next === "u" || next === "U") {
4431
- const length = { x: 2, u: 4, U: 8 }[next];
4444
+ const length = next === "x" ? 2 : next === "u" ? 4 : 8;
4432
4445
  res += parseCharCode(source, i + 1, length, onError);
4433
4446
  i += length;
4434
4447
  } else {
@@ -4497,12 +4510,13 @@ var require_resolve_flow_scalar = __commonJS((exports) => {
4497
4510
  const cc = source.substr(offset, length);
4498
4511
  const ok = cc.length === length && /^[0-9a-fA-F]+$/.test(cc);
4499
4512
  const code = ok ? parseInt(cc, 16) : NaN;
4500
- if (isNaN(code)) {
4513
+ try {
4514
+ return String.fromCodePoint(code);
4515
+ } catch {
4501
4516
  const raw = source.substr(offset - 2, length + 2);
4502
4517
  onError(offset - 2, "BAD_DQ_ESCAPE", `Invalid escape sequence ${raw}`);
4503
4518
  return raw;
4504
4519
  }
4505
- return String.fromCodePoint(code);
4506
4520
  }
4507
4521
  exports.resolveFlowScalar = resolveFlowScalar;
4508
4522
  });
@@ -4643,17 +4657,22 @@ var require_compose_node = __commonJS((exports) => {
4643
4657
  case "block-map":
4644
4658
  case "block-seq":
4645
4659
  case "flow-collection":
4646
- node = composeCollection.composeCollection(CN, ctx, token, props, onError);
4647
- if (anchor)
4648
- node.anchor = anchor.source.substring(1);
4660
+ try {
4661
+ node = composeCollection.composeCollection(CN, ctx, token, props, onError);
4662
+ if (anchor)
4663
+ node.anchor = anchor.source.substring(1);
4664
+ } catch (error) {
4665
+ const message = error instanceof Error ? error.message : String(error);
4666
+ onError(token, "RESOURCE_EXHAUSTION", message);
4667
+ }
4649
4668
  break;
4650
4669
  default: {
4651
4670
  const message = token.type === "error" ? token.message : `Unsupported token (type: ${token.type})`;
4652
4671
  onError(token, "UNEXPECTED_TOKEN", message);
4653
- node = composeEmptyNode(ctx, token.offset, undefined, null, props, onError);
4654
4672
  isSrcToken = false;
4655
4673
  }
4656
4674
  }
4675
+ node ?? (node = composeEmptyNode(ctx, token.offset, undefined, null, props, onError));
4657
4676
  if (anchor && node.anchor === "")
4658
4677
  onError(anchor, "BAD_ALIAS", "Anchor cannot be an empty string");
4659
4678
  if (atKey && ctx.options.stringKeys && (!identity.isScalar(node) || typeof node.value !== "string" || node.tag && node.tag !== "tag:yaml.org,2002:str")) {
@@ -1 +1 @@
1
- {"version":3,"file":"help.d.ts","sourceRoot":"","sources":["../../../src/cli/help.ts"],"names":[],"mappings":"AAqEA,wBAAsB,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,CAiGzC"}
1
+ {"version":3,"file":"help.d.ts","sourceRoot":"","sources":["../../../src/cli/help.ts"],"names":[],"mappings":"AAoEA,wBAAsB,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,CAgGzC"}
@@ -1 +1 @@
1
- {"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../src/cli/run.ts"],"names":[],"mappings":"AAkjBA,wBAAsB,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,CAgSzC"}
1
+ {"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../src/cli/run.ts"],"names":[],"mappings":"AAkjBA,wBAAsB,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,CAiSzC"}
@@ -1,3 +1,5 @@
1
+ type PackageRequire = (specifier: string) => unknown;
2
+ export declare function readBundledPackageVersion(requireFn?: PackageRequire): string;
1
3
  export declare const localVersion: string;
2
4
  export interface VersionCheckCache {
3
5
  checked_at_ms: number;
@@ -14,4 +16,5 @@ export declare function readCachedVersionCheck(): VersionCheckCache | null;
14
16
  export declare function getVersionCheckResult(): VersionCheckResult | null;
15
17
  export declare function formatVersionCheckNudge(result: VersionCheckResult): string | null;
16
18
  export declare function markVersionCheckNotified(result: VersionCheckResult): void;
19
+ export {};
17
20
  //# sourceMappingURL=version-check.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version-check.d.ts","sourceRoot":"","sources":["../../../src/cli/version-check.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,YAAY,QAAiB,CAAC;AAM3C,MAAM,WAAW,iBA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AAkB,GAAG,MAAM,GAAG,IAAI,CAIjF;AAED,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,kBAAkB,GAAG,IAAI,CAMzE"}
@@ -2,7 +2,7 @@
2
2
  /**
3
3
  * Specialists MCP Server — entry point
4
4
  * Subcommands: install, version, list, view, models, init, db, validate, edit, config, run,
5
- * status, ps, result, feed, poll, clean, merge, epic, end, stop, attach, quickstart, serve, script, release, help
5
+ * status, ps, result, feed, clean, merge, epic, end, stop, attach, quickstart, serve, script, release, help
6
6
  */
7
7
  export {};
8
8
  //# sourceMappingURL=index.d.ts.map
@@ -17,8 +17,13 @@ interface MandatoryRulesIndex {
17
17
  required_template_sets?: string[];
18
18
  default_template_sets?: string[];
19
19
  }
20
+ export interface MandatoryRulesSection {
21
+ setId: string;
22
+ block: string;
23
+ }
20
24
  export interface MandatoryRulesInjection {
21
25
  block: string;
26
+ sections: MandatoryRulesSection[];
22
27
  setsLoaded: string[];
23
28
  ruleCount: number;
24
29
  inlineRulesCount: number;
@@ -1 +1 @@
1
- {"version":3,"file":"mandatory-rules.d.ts","sourceRoot":"","sources":["../../../src/specialist/mandatory-rules.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,aAAa,EAAE,CAAC;CACxB;AAED,MAAM,WAAW,8BAA8B;IAC7C,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,YAAY,CAAC,EAAE,aAAa,EAAE,CAAC;CAChC;AAED,UAAU,mBAAmB;IAC3B,sBAAsB,CAAC,EAAE,MAAM,EAAE,CAAC;IAClC,qBAAqB,CAAC,EAAE,MAAM,EAAE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AAE,MAAM,EAAE,CAAC;CAClC;AAED,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,qBAAqB,EAAE,CAAC;IAClC,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,EAAE,OAAO,CAAC;CAC1B;AAsBD,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,GAAG,mBAAmB,GAAG,IAAI,CAwB/E;AAoKD,wBAAgB,4BAA4B,CAC1C,gBAAgB,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE;QAAE,eAAe,CAAC,EAAE,8BAA8B,CAAA;KAAE,CAAA;CAAE,GACpG,uBAAuB,CA6BzB;AAED,wBAAgB,wBAAwB,CAAC,gBAAgB,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE;QAAE,eAAe,CAAC,EAAE,8BAA8B,CAAA;KAAE,CAAA;CAAE,GAAG,MAAM,CAEtJ"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jaggerxtrm/specialists",
3
- "version": "3.12.0",
3
+ "version": "3.13.0",
4
4
  "description": "OmniSpecialist — 7-tool MCP orchestration layer powered by the Specialist System. Discover and execute .specialist.yaml files across project/user/system scopes via pi.",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -28,7 +28,7 @@
28
28
  "scripts": {
29
29
  "build": "bun build src/index.ts --target=bun --outfile=dist/index.js && sed -i '1s|#!/usr/bin/env node|#!/usr/bin/env bun|' dist/index.js && chmod +x dist/index.js && bun build src/lib.ts --target=node --format=esm --outfile=dist/lib.js && tsc --emitDeclarationOnly --declaration --outDir dist/types",
30
30
  "dev": "bun run src/index.ts",
31
- "start": "node dist/index.js",
31
+ "start": "bun dist/index.js",
32
32
  "lint": "tsc --noEmit",
33
33
  "test": "bun --bun vitest run",
34
34
  "test:node": "node node_modules/.bin/vitest run",
@@ -53,8 +53,8 @@
53
53
  "author": "",
54
54
  "license": "MIT",
55
55
  "dependencies": {
56
- "@modelcontextprotocol/sdk": "^1.21.0",
57
- "yaml": "2.8.2",
56
+ "@modelcontextprotocol/sdk": "^1.29.0",
57
+ "yaml": "2.8.4",
58
58
  "zod": "^3.25.76",
59
59
  "zod-to-json-schema": "^3.24.6"
60
60
  },
@@ -1,151 +0,0 @@
1
- # the name by which the project can be referenced within Serena
2
- project_name: "specialists"
3
-
4
-
5
- # list of languages for which language servers are started; choose from:
6
- # al bash clojure cpp csharp
7
- # csharp_omnisharp dart elixir elm erlang
8
- # fortran fsharp go groovy haskell
9
- # java julia kotlin lua markdown
10
- # matlab nix pascal perl php
11
- # php_phpactor powershell python python_jedi r
12
- # rego ruby ruby_solargraph rust scala
13
- # swift terraform toml typescript typescript_vts
14
- # vue yaml zig
15
- # (This list may be outdated. For the current list, see values of Language enum here:
16
- # https://github.com/oraios/serena/blob/main/src/solidlsp/ls_config.py
17
- # For some languages, there are alternative language servers, e.g. csharp_omnisharp, ruby_solargraph.)
18
- # Note:
19
- # - For C, use cpp
20
- # - For JavaScript, use typescript
21
- # - For Free Pascal/Lazarus, use pascal
22
- # Special requirements:
23
- # Some languages require additional setup/installations.
24
- # See here for details: https://oraios.github.io/serena/01-about/020_programming-languages.html#language-servers
25
- # When using multiple languages, the first language server that supports a given file will be used for that file.
26
- # The first language is the default language and the respective language server will be used as a fallback.
27
- # Note that when using the JetBrains backend, language servers are not used and this list is correspondingly ignored.
28
- languages: []
29
-
30
- # the encoding used by text files in the project
31
- # For a list of possible encodings, see https://docs.python.org/3.11/library/codecs.html#standard-encodings
32
- encoding: "utf-8"
33
-
34
- # line ending convention to use when writing source files.
35
- # Possible values: unset (use global setting), "lf", "crlf", or "native" (platform default)
36
- # This does not affect Serena's own files (e.g. memories and configuration files), which always use native line endings.
37
- line_ending:
38
-
39
- # The language backend to use for this project.
40
- # If not set, the global setting from serena_config.yml is used.
41
- # Valid values: LSP, JetBrains
42
- # Note: the backend is fixed at startup. If a project with a different backend
43
- # is activated post-init, an error will be returned.
44
- language_backend:
45
-
46
- # whether to use project's .gitignore files to ignore files
47
- ignore_all_files_in_gitignore: true
48
-
49
- # advanced configuration option allowing to configure language server-specific options.
50
- # Maps the language key to the options.
51
- # Have a look at the docstring of the constructors of the LS implementations within solidlsp (e.g., for C# or PHP) to see which options are available.
52
- # No documentation on options means no options are available.
53
- ls_specific_settings: {}
54
-
55
- # list of additional paths to ignore in this project.
56
- # Same syntax as gitignore, so you can use * and **.
57
- # Note: global ignored_paths from serena_config.yml are also applied additively.
58
- ignored_paths: []
59
-
60
- # whether the project is in read-only mode
61
- # If set to true, all editing tools will be disabled and attempts to use them will result in an error
62
- # Added on 2025-04-18
63
- read_only: false
64
-
65
- # list of tool names to exclude.
66
- # This extends the existing exclusions (e.g. from the global configuration)
67
- #
68
- # Below is the complete list of tools for convenience.
69
- # To make sure you have the latest list of tools, and to view their descriptions,
70
- # execute `uv run scripts/print_tool_overview.py`.
71
- #
72
- # * `activate_project`: Activates a project by name.
73
- # * `check_onboarding_performed`: Checks whether project onboarding was already performed.
74
- # * `create_text_file`: Creates/overwrites a file in the project directory.
75
- # * `delete_lines`: Deletes a range of lines within a file.
76
- # * `delete_memory`: Deletes a memory from Serena's project-specific memory store.
77
- # * `execute_shell_command`: Executes a shell command.
78
- # * `find_referencing_code_snippets`: Finds code snippets in which the symbol at the given location is referenced.
79
- # * `find_referencing_symbols`: Finds symbols that reference the symbol at the given location (optionally filtered by type).
80
- # * `find_symbol`: Performs a global (or local) search for symbols with/containing a given name/substring (optionally filtered by type).
81
- # * `get_current_config`: Prints the current configuration of the agent, including the active and available projects, tools, contexts, and modes.
82
- # * `get_symbols_overview`: Gets an overview of the top-level symbols defined in a given file.
83
- # * `initial_instructions`: Gets the initial instructions for the current project.
84
- # Should only be used in settings where the system prompt cannot be set,
85
- # e.g. in clients you have no control over, like Claude Desktop.
86
- # * `insert_after_symbol`: Inserts content after the end of the definition of a given symbol.
87
- # * `insert_at_line`: Inserts content at a given line in a file.
88
- # * `insert_before_symbol`: Inserts content before the beginning of the definition of a given symbol.
89
- # * `list_dir`: Lists files and directories in the given directory (optionally with recursion).
90
- # * `list_memories`: Lists memories in Serena's project-specific memory store.
91
- # * `onboarding`: Performs onboarding (identifying the project structure and essential tasks, e.g. for testing or building).
92
- # * `prepare_for_new_conversation`: Provides instructions for preparing for a new conversation (in order to continue with the necessary context).
93
- # * `read_file`: Reads a file within the project directory.
94
- # * `read_memory`: Reads the memory with the given name from Serena's project-specific memory store.
95
- # * `remove_project`: Removes a project from the Serena configuration.
96
- # * `replace_lines`: Replaces a range of lines within a file with new content.
97
- # * `replace_symbol_body`: Replaces the full definition of a symbol.
98
- # * `restart_language_server`: Restarts the language server, may be necessary when edits not through Serena happen.
99
- # * `search_for_pattern`: Performs a search for a pattern in the project.
100
- # * `summarize_changes`: Provides instructions for summarizing the changes made to the codebase.
101
- # * `switch_modes`: Activates modes by providing a list of their names
102
- # * `think_about_collected_information`: Thinking tool for pondering the completeness of collected information.
103
- # * `think_about_task_adherence`: Thinking tool for determining whether the agent is still on track with the current task.
104
- # * `think_about_whether_you_are_done`: Thinking tool for determining whether the task is truly completed.
105
- # * `write_memory`: Writes a named memory (for future reference) to Serena's project-specific memory store.
106
- excluded_tools: []
107
-
108
- # list of tools to include that would otherwise be disabled (particularly optional tools that are disabled by default).
109
- # This extends the existing inclusions (e.g. from the global configuration).
110
- included_optional_tools: []
111
-
112
- # fixed set of tools to use as the base tool set (if non-empty), replacing Serena's default set of tools.
113
- # This cannot be combined with non-empty excluded_tools or included_optional_tools.
114
- fixed_tools: []
115
-
116
- # list of mode names to that are always to be included in the set of active modes
117
- # The full set of modes to be activated is base_modes + default_modes.
118
- # If the setting is undefined, the base_modes from the global configuration (serena_config.yml) apply.
119
- # Otherwise, this setting overrides the global configuration.
120
- # Set this to [] to disable base modes for this project.
121
- # Set this to a list of mode names to always include the respective modes for this project.
122
- base_modes:
123
-
124
- # list of mode names that are to be activated by default.
125
- # The full set of modes to be activated is base_modes + default_modes.
126
- # If the setting is undefined, the default_modes from the global configuration (serena_config.yml) apply.
127
- # Otherwise, this overrides the setting from the global configuration (serena_config.yml).
128
- # This setting can, in turn, be overridden by CLI parameters (--mode).
129
- default_modes:
130
-
131
- # initial prompt for the project. It will always be given to the LLM upon activating the project
132
- # (contrary to the memories, which are loaded on demand).
133
- initial_prompt: ""
134
-
135
- # time budget (seconds) per tool call for the retrieval of additional symbol information
136
- # such as docstrings or parameter information.
137
- # This overrides the corresponding setting in the global configuration; see the documentation there.
138
- # If null or missing, use the setting from the global configuration.
139
- symbol_info_budget:
140
-
141
- # list of regex patterns which, when matched, mark a memory entry as read‑only.
142
- # Extends the list from the global configuration, merging the two lists.
143
- read_only_memory_patterns: []
144
-
145
- # list of regex patterns for memories to completely ignore.
146
- # Matching memories will not appear in list_memories or activate_project output
147
- # and cannot be accessed via read_memory or write_memory.
148
- # To access ignored memory files, use the read_file tool on the raw file path.
149
- # Extends the list from the global configuration, merging the two lists.
150
- # Example: ["_archive/.*", "_episodes/.*"]
151
- ignored_memory_patterns: []