concept · created Jul 12, 2026 · updated Jul 12, 2026

meta-context-engineering

#context-engineering#self-improvement#bi-level-optimization

MCE (Meta Context Engineering) — Ye et al. 2026, surveyed in 2026-07-07-harness-engineering-self-improvement. Automates context-engineering one level above ACE: instead of optimizing context content, it separates the mechanism (how context is managed) from the artifact (what is in context) and optimizes both via bi-level search.

The bi-level structure

  • Inner loop — a base-level context engineer optimizes the context function cs for a given skill s.
  • Outer loop — a meta-level agent evolves the skill itself, via agentic crossover over a skill database k1.

A skill defines a context function cs=(ρs,Fs): static components ρs (prompts, knowledge bases, code libraries) plus dynamic operators Fs (search, selection, filtering, formatting). Implementation uses standard coding-agent tools — {Read, Write, Edit, Bash, Glob, Grep, TodoWrite} — i.e. the optimizer is itself a coding agent.

Contrast with ACE

| | ACE | MCE | |---|---|---| | Optimized object | Context content (playbook bullets) | Context mechanism + content | | Structure | Heuristic rules enforced (bullet format) | Free-form skills, no enforced structure | | Search | Reflect-and-curate loop | Bi-level: inner context, outer skill evolution |

Position in the wiki

(2026-07-07-harness-engineering-self-improvement)

Referenced by 4

2026-07-07-harness-engineering-self-improvement agentic-context-engineering context-engineering recursive-self-improvement
esc