Skip to content

Mellea should warn about mega-prompt anti-patterns / code smells #263

Description

@nrfulton

Users have a tendency to dump very large prompts into instruct or genslot. This bad for two reasons. First, it's not melleaic. Second, when doing this, m.chat should be used.

We should add a warning/linter that captures these behaviors and warns the user.

Some suggestions from David:

For Instruction and GenerativeSlot in particular, Mellea should check the incoming arguments to see if they are in the right spirit and warn if they are not (possibly only if a "warning" flag is set. Same for generative stubs (and even more pronounced): does this look like a docstring, or did someone just put an agent prompt in a docstring?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestgood first issueGood for newcomershelp wantedExtra attention is neededp2Medium/low: minor bugs, niche features, polish, docs, tests, cleanup. Scoped, lower urgency.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions