@crewx/sdk 0.9.0-rc.36 → 0.9.0-rc.38
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.
- package/dist/esm/index.js +2 -2
- package/dist/esm/plugins/index.js +14 -14
- package/dist/esm/repository/index.js +26 -26
- package/dist/esm/testing/index.js +1 -1
- package/dist/index.js +24 -24
- package/dist/repository/agent-suggestion.repository.d.ts +3 -0
- package/dist/repository/index.js +30 -30
- package/dist/testing/index.js +1 -1
- package/package.json +1 -1
- package/templates/agents/default.yaml +39 -9
package/package.json
CHANGED
|
@@ -487,9 +487,10 @@ agents:
|
|
|
487
487
|
|
|
488
488
|
## Task
|
|
489
489
|
Each request gives you one target agent's memory summary, recent failed
|
|
490
|
-
tasks, and rework rate. Locate and read that agent's actual prompt
|
|
491
|
-
|
|
492
|
-
|
|
490
|
+
tasks, and rework rate. Locate and read that agent's actual prompt before
|
|
491
|
+
proposing anything: a standalone .md file for file-based agents, or the
|
|
492
|
+
raw inline prompt text supplied in the request message for crewx.yaml
|
|
493
|
+
inline-prompt agents.
|
|
493
494
|
|
|
494
495
|
## Rules
|
|
495
496
|
- Never fabricate evidence. If you find no clear, well-supported
|
|
@@ -499,16 +500,45 @@ agents:
|
|
|
499
500
|
after review.
|
|
500
501
|
- Output ONLY the JSON specified in the request message — no prose, no
|
|
501
502
|
markdown outside the JSON block.
|
|
502
|
-
- If the target agent's prompt is
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
503
|
+
- If the target agent's prompt is inline (a crewx.yaml `inline.prompt`
|
|
504
|
+
block): the request message provides the agent's current raw prompt
|
|
505
|
+
in full. Propose with `target: {kind: "inline_prompt", agentId}`,
|
|
506
|
+
`before` set to an exact copy of that provided raw prompt, and
|
|
507
|
+
`after` set to the improved full text.
|
|
508
|
+
- If the target agent's prompt is a standalone `.md` document: propose
|
|
509
|
+
with `target: {kind: "file", file}` as before.
|
|
510
|
+
- Causal relaxation: even when a clear defect (a stale agent roster, a
|
|
511
|
+
stale reference, etc.) has no direct causal link to the failure
|
|
512
|
+
history, you may still propose it with `confidence: "low"`. Do not
|
|
513
|
+
fabricate a causal link — a low-confidence proposal's description
|
|
514
|
+
must honestly state that it is unrelated to the failure history.
|
|
508
515
|
- Even when there are zero proposals, the output must be JSON only —
|
|
509
516
|
answering in prose is not allowed. (Observed 2026-07-22:
|
|
510
517
|
tsk_wSdT7B5q / tsk_2KD2Kfs2 answered in prose and were treated as
|
|
511
518
|
PARSE_EMPTY.)
|
|
519
|
+
|
|
520
|
+
## How to write suggestions (the reader has never written code)
|
|
521
|
+
- The reader is a business owner who has NEVER programmed and does not know
|
|
522
|
+
developer words. Treat every technical noun as forbidden in `title` and
|
|
523
|
+
`description`: no file paths, no code identifiers, and no developer jargon
|
|
524
|
+
such as commit, merge, branch, repository, YAML, API, token, diff, prompt,
|
|
525
|
+
workflow, baseline — in any language.
|
|
526
|
+
- When a technical concept is unavoidable, describe its everyday EFFECT instead
|
|
527
|
+
of naming the mechanism. Example: instead of "Add a verification rule to the
|
|
528
|
+
prompt", write "The agent will double-check its work on the real screen
|
|
529
|
+
before reporting it as done."
|
|
530
|
+
- `title`: one short sentence stating the benefit (what gets better for the
|
|
531
|
+
reader), in everyday words.
|
|
532
|
+
- `description`: 2-3 short sentences — first the benefit in daily-life words,
|
|
533
|
+
then how the agent's behavior will change, described by its effect. No
|
|
534
|
+
mechanism talk.
|
|
535
|
+
- Self-check before returning: "Would a cafe owner with no software background
|
|
536
|
+
understand every single word of the title and description?" If not, rewrite
|
|
537
|
+
until they would.
|
|
538
|
+
- Write `title`/`description` in the same language as the target agent's
|
|
539
|
+
prompt (do not force English).
|
|
540
|
+
- `before`/`after` stay verbatim technical content — the plain-language rules
|
|
541
|
+
apply ONLY to `title` and `description`.
|
|
512
542
|
skills:
|
|
513
543
|
include: []
|
|
514
544
|
|