The Research Report
Prompts Aren't Strings Anymore
You write a prompt. You hit enter. You get garbage. You tweak a word. You hit enter again. Still garbage. You add more words. Now the prompt is 800 tokens of spaghetti. You can't tell which part is doing what. You can't reuse anything. You start over.
That cycle is the problem. A research team at UCLA just published a paper that gives it a name and a framework. They call it Object-Oriented Prompting, or OOPrompt. The paper (arXiv:2604.19114) was accepted to EICS 2026, and it formalizes something a lot of us have been feeling: prompts should be treated as structured, composable objects, not raw text.
What OOPrompt Actually Is
The core idea borrows from Object-Oriented Programming. In OOP, you don't write one giant function that does everything. You create objects with properties and methods. Each object encapsulates something specific. Objects can reference other objects. You reuse them. You extend them. You swap parts without breaking the whole system.
OOPrompt applies this logic to prompts. Instead of a single text block, a prompt becomes a root-level object composed of discrete properties. Each property holds one aspect of your intent: the role, the tone, the constraints, the output format, the examples. Properties don't bleed into each other. You can edit one without rewriting the rest.
The paper maps four OOP pillars to prompting:
- Encapsulation: Each intent lives in its own property with its own metadata. Your tone instructions stay separate from your formatting rules.
- Abstraction: You think in high-level goals. The system handles how those goals map to tokens.
- Inheritance: You can reuse a prompt object as a template and override specific properties for new tasks.
- Polymorphism: The same property slot can hold a simple string or a reference to an entirely new child prompt object.
That last point matters. Properties can reference other prompt objects, creating hierarchies. A "trip planner" prompt can contain a "budget constraints" property that itself is a full prompt object with its own editable fields. You decompose complex tasks recursively without losing structure.
What the Study Found
The researchers didn't just theorize. They built an MVP prototype, ran a formative study with 20 participants, used that feedback to expand the design space, built a full prototype, then brought back 8 participants for a validation study.
The tasks were deliberate: reporting technical results to different audiences, planning a group trip with conflicting preferences, debating from multiple viewpoints. These are exactly the kind of multi-faceted tasks where linear prompts fall apart.
The findings:
- Modularity works. Participants could edit one property without worrying about breaking others. Iteration got faster.
- Ambiguity becomes manageable. When you can decompose a complex intent into named properties, you see what's missing. You fill the gaps deliberately instead of hoping the model infers your intent.
- Reuse saves real time. Participants who created prompt objects for one scenario could adapt them quickly for the next.
The trade-offs were honest. OOPrompt added steps. More structure means more clicks, more decisions, more latency before the first output. Participants who wanted fast, casual answers found the overhead annoying. And opinion-forming tasks, where the model needs to reason rather than assemble, didn't benefit as much from structured decomposition.
The Bigger Shift
OOPrompt didn't emerge in a vacuum. It sits inside a broader movement that's reshaping how we think about LLM interaction.
Context engineering is replacing prompt engineering as the dominant metaphor. The idea: what you feed a model isn't a string. It's a structured context, assembled from multiple sources, versioned, tested, and composed. Phillip Carter at OpenAI and Togru Rza at Contextual AI have both pushed this framing. The argument is that "prompting" implies a single utterance, while "context" captures the full assembly of instructions, examples, retrieved documents, tool definitions, and state that determines model behavior.
PromptKit, an open-source project from Microsoft, treats prompts as composable components with schemas and versioning. You define personas, protocols, formats, and templates as separate pieces. You snap them together. You version them. The philosophical overlap with OOPrompt is direct and obvious.
PromptPack is pushing an open standard for packaging prompts in a vendor-neutral, framework-agnostic format. The goal: prompts become portable artifacts you can share, inspect, and compose across different tools and providers.
These aren't competing approaches. They're converging on the same insight from different angles. Prompts are not text. They are structured artifacts with a lifecycle: create, edit, compose, version, deploy, evaluate.
Why This Matters Now
Three things make this urgent:
- Models are getting more capable. When a model can handle complex, multi-constraint tasks, the bottleneck shifts from model capacity to prompt quality. Structure helps you express what you actually want.
- Agents are everywhere. Agentic systems don't fire one prompt and stop. They plan, decompose, call tools, and iterate. Each step needs its own prompt, and those prompts need to compose cleanly. Object-oriented structure gives agents a protocol for assembling prompts dynamically.
- Teams need reproducibility. A prompt that lives in one person's ChatGPT history is a liability. Structured, versioned prompt objects are assets. They can be reviewed, tested, shared, and improved collaboratively.
Practical Takeaways
If you're building with LLMs today, here's what to do with this:
Decompose your prompts. Stop writing monolithic system prompts. Break them into named properties: role, constraints, output format, examples, context. Even if your tooling doesn't support this natively, do it in your head. You'll write better prompts.
Version your prompts. Treat prompts like code. Track changes. Tag releases. When a prompt produces different outputs after a model update, you need to know what changed and when.
Build for composition. If you're designing an LLM-powered product, give users structured controls instead of a single text box. Radio buttons, dropdowns, and structured fields aren't dumbed-down interfaces. They're more honest interfaces. They externalize the properties that OOPrompt formalizes.
Watch the standards. PromptPack and similar efforts are trying to make prompts interoperable. If you're investing in prompt infrastructure, bet on structured formats over raw strings.
The Bottom Line
The UCLA team gave us a vocabulary and empirical backing for something the field has been circling for a while. Prompts are objects. They have properties, hierarchies, and lifecycles. Treating them as flat text is a habit from the ChatGPT launch era. It worked when tasks were simple. It doesn't scale.
OOPrompt is the formalization. Context engineering is the practitioner's framing. PromptKit is the tooling. They're all saying the same thing: stop pasting paragraphs into text boxes and hoping for the best. Structure your intent. Compose your prompts. Treat them like what they are: artifacts worth engineering.
Suggested title: Prompts Aren't Strings Anymore
Citations:
- Xu, T., Ma, D., & Chen, X. A. (2026). "OOPrompt: Reifying Intents into Structured Artifacts for Modular and Iterative Prompting." arXiv:2604.19114. Accepted to EICS 2026. https://arxiv.org/abs/2604.19114
- Microsoft PromptKit: https://github.com/microsoft/PromptKit
- PromptPack / PromptKit Schema Versioning: https://promptkit.altairalabs.ai/reference/schema-versioning/
- Context Engineering discussion: https://promptarch.ai/blog/context-engineering-the-new-paradigm
Word count: 958
Fact-check notes:
- The paper's formative study had 20 participants; the validation study had 8 returning participants. Double-check the exact validation study count if precision matters — the abstract says "8 returning participants" but I should confirm from the full text.
- The four OOP pillar mappings (encapsulation, abstraction, inheritance, polymorphism) are drawn directly from Table 1 in the paper. Verify the mapping descriptions match if quoting directly.
- PromptKit's description as "composable, version-controlled prompt components" is from the GitHub repo README. Confirm current state of the project if referencing in final publish.
- Context engineering as a term has multiple proponents. The specific people I named (Carter, Rza) should be verified or the reference broadened to avoid misattribution.