Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .changeset/use-append-text-file.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"create-expert": patch
---

Use appendTextFile instead of editTextFile in ecosystem-builder

The ecosystem-builder instruction incorrectly told the LLM to use
editTextFile for appending content. editTextFile is a search-and-replace
tool, not an append tool. Changed to use appendTextFile which is the
correct tool for adding content to the end of a file.
9 changes: 3 additions & 6 deletions apps/create-expert/src/lib/create-expert-toml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,10 @@ Generate not just a single Expert, but an **ecosystem** of experts that ensures
4. **Doctor Expert**: Only if external dependencies exist - diagnoses and fixes issues

## Output
Use editTextFile to APPEND the Expert ecosystem to the existing perstack.toml.
Use appendTextFile to add the Expert ecosystem to perstack.toml.
First read the file to understand the existing structure, then append your Expert sections.
Do NOT use writeTextFile - it would overwrite the entire file.

## How to Append
1. First, read perstack.toml to understand the existing structure
2. Use editTextFile to add your Expert sections at the END of the file
3. Do NOT modify model, runtime, or provider settings - they already exist
Do NOT modify model, runtime, or provider settings - they already exist.

## Ecosystem Generation Strategy

Expand Down