Enablement: help coding agents write idiomatic Mellea code

Aperta
#1,433 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Tranquilla
Stack tecnologico
python

Direzione di ricerca

Read docs/AGENTS_TEMPLATE.md, .agents/skills/, mellea/stdlib/tools/mcp.py, and the runnable examples in docs/examples/ to understand the existing guidance and tooling. Compare the proposed distribution options and open questions, then identify a focused sub-task to break out; the success criterion is a low-friction way for coding agents to produce idiomatic, correct, current Mellea code.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

documentation enhancement needs-design p1 triage/needs-user-input

Problem

When developers point a coding agent (Claude, Cursor, Codex, etc.) at a task involving Mellea, the generated code tends to be subpar. They invent APIs that don't exist, reach for antipatterns, don't do things the "melleaic way", etc.

This matters most for new users: their first experience is often mediated through an agent, and a bad first result reads as "Mellea doesn't work" rather than "the agent didn't know how to use Mellea." We need something a developer can drop into their own project's agent with minimal effort.

What we already have

  • docs/AGENTS_TEMPLATE.md: a genuinely good, opinionated guide (the @generative pattern, anti-patterns section, common errors table). But it lives in our repo and requires the developer to know it exists and copy it manually
  • .agents/skills/: we already use the agentskills.io skill standard internally.
  • m serve / mellea/stdlib/tools/mcp.py: Mellea can already expose generative programs as MCP tools. We don't yet have an MCP server that teaches an agent to write Mellea
  • docs/examples/: a large corpus of runnable, idiomatic examples

Areas to investigate

These are the sub-tasks to evaluate and break out; the epic is about picking the right mix, not committing to all of them.

  1. Distributable agent skill(s): publish a "writing Mellea code" skill following the agentskills.io standard so any compatible agent can pick it up. Reuses AGENTS_TEMPLATE.md content; likely the lowest-friction path
  2. MCP server for authoring: an MCP server the developer points their agent at, exposing tools like: search idiomatic examples, look up the correct API for a task, validate a snippet against current APIs, surface anti-pattern warnings
  3. Published, versioned AGENTS.md snippet: a canonical, copy-pasteable block (or uvx-installable command that writes it) kept in sync with each release, so "the melleaic way" travels with the version the developer is actually on
  4. Context/docs optimized for retrieval: a compact, agent-oriented docs bundle (not the full repo), shippable via llms.txt or similar

Open questions

  • Prioritization: which surface(s) do we ship for the next release, and which are follow-ups?
  • Version sync: how do we keep guidance aligned with the version the developer actually has installed? Antipattern advice rots fast — stale guidance may be worse than none.
  • Measurement: how do we know it's working? A likely approach: an eval harness that gives an agent N Mellea tasks with and without the enablement package and scores idiomaticity + correctness. (Scope TBD, could be its own sub-task.)
  • Distribution: bundled with the mellea pip package? A separate install (mellea-agent-kit)? A hosted MCP endpoint?

Success criteria

A developer using a mainstream coding agent can, with a single low-friction step, get their agent to reliably produce idiomatic, correct, and current Mellea code, without hand-holding and without pasting the repo into context.

Lingua principale
Python
Stelle
1.8k
Fork
161
Merge medio
4g 3h
PR unite (30g)
45

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di generative-computing/mellea

Tutte le issue di generative-computing/mellea

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.