Skip to content

YAML crew pipeline: support role/backstory shorthand for agent steps #31

@landigf

Description

@landigf

Problem

The current YAML pipeline format requires verbose system prompts for each crew member. For a crew of 8 experts, this makes the YAML file very long and hard to maintain.

Suggested syntax

Add role and backstory shorthand fields that get composed into a system prompt:

steps:
  - id: security-expert
    role: "Application Security Engineer"
    backstory: "10 years in appsec, OWASP Top 10 specialist"
    prompt: "Review this code for security issues: {code}"

Which internally generates:

system: "You are a Application Security Engineer. Background: 10 years in appsec, OWASP Top 10 specialist."

This matches the CrewAI mental model (role + backstory + goal) and makes crew YAML files much more readable.

The TypeScript agent() function already supports this pattern — this is about bringing it to YAML.

Labels

enhancement, yaml, crew

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions