Skip to content

Prompt Append

prompt_append is the simplest customization mechanism in Weave. It appends text to an agent's built-in prompt without modifying or replacing that prompt — the agent's core behavior is preserved and your instructions are layered on top.

Basic Usage

Add prompt_append under any agent in your config:

jsonc
{
  "agents": {
    "shuttle": {
      "prompt_append": "Always verify work by running the full test suite before marking a task complete."
    }
  }
}

You can append to multiple agents at once:

jsonc
{
  "agents": {
    "shuttle": {
      "prompt_append": "Always verify work by running the full test suite before completion."
    },
    "tapestry": {
      "prompt_append": "Format all todos as [N/M: task title]. Always mark in_progress before starting."
    },
    "pattern": {
      "prompt_append": "Create detailed acceptance criteria for every plan."
    }
  }
}

How It Works

During the config pipeline (Phase 2 — Agent Config), your prompt_append text is concatenated to the end of the agent's built-in prompt. The base prompt is never modified — your text simply follows it.

TIP

prompt_append is the right tool when you want to add project-specific rules, verification steps, or formatting conventions on top of an agent's existing behavior. For reusable domain knowledge that you want to share across projects or teams, use Skills instead.

Use Cases

Enforce verification before completion:

jsonc
{
  "agents": {
    "shuttle": {
      "prompt_append": "Always run `npm test` and verify all tests pass before marking any task complete."
    }
  }
}

Add formatting conventions:

jsonc
{
  "agents": {
    "tapestry": {
      "prompt_append": "Format all todo items as [N/M: short title] where N is the current task number and M is the total. Keep titles under 35 characters."
    }
  }
}

Inject domain rules:

jsonc
{
  "agents": {
    "shuttle": {
      "prompt_append": "This project uses Python 3.12. Always use async/await for I/O. Use Pydantic v2 models. Follow PEP 8."
    }
  }
}

Remind agents of project conventions:

jsonc
{
  "agents": {
    "pattern": {
      "prompt_append": "Every plan must include a Verification section with at least 3 acceptance criteria per task."
    }
  }
}

Full Prompt Replacement

If you need to completely replace an agent's prompt (not just append), use agents.<name>.prompt. Use this sparingly — replacing the full prompt removes the agent's built-in behavior. prompt_append is almost always the better choice.

Released under the MIT License.