GEAR: How Feature-Based Code Generation Abstracts Away Multi-Agent Framework Lock-In A new ArXiv paper (2610.35592v1) introduces GEAR, a framework-agnostic configuration layer that generates working multi-agent system code across ten frameworks from a single feature specification. GEAR models configuration choices as a constrained feature tree and reports 84.69% mapping coverage (271 of 320 feature-framework pairs), with the remaining 15% representing framework-specific capabilities that don't translate and are documented as semantic gaps. Every multi-agent builder hits the same wall: you pick LangGraph for its state machine, then realize CrewAI's task delegation fits your use case better, or AutoGen's conversational patterns match your domain. Switching means rewriting orchestration logic, tool registration, and memory plumbing from scratch. GEAR a fresh ArXiv paper, 2610.35592v1 proposes a framework-agnostic configuration layer that generates working agent system code across ten frameworks from a single feature specification. The promise is portability. The cost is lowest-common-denominator constraints and framework-specific adaptation reports you need to read before deploying. Multi-agent systems require decisions about: Each framework exposes these through different APIs: Learning one API doesn't transfer. Prototyping across frameworks means rewriting the same orchestration logic three times. GEAR uses a feature model to represent configuration choices as a tree of options with explicit constraints. You specify what you want agents, orchestration pattern, memory type , validate the configuration against framework capabilities, then generate code. The feature model captures: Constraints prevent invalid combinations e.g., hierarchical orchestration without a manager agent . The paper reports 84.69% mapping coverage 271 of 320 feature-framework pairs . The missing 15% are framework-specific capabilities that don't translate. GEAR feature specification conceptual config = { "agents": {"role": "researcher", "tools": "search", "scrape" }, {"role": "writer", "tools": "format", "save" } , "orchestration": "sequential", "memory": { "type": "conversation buffer", "max tokens": 2000 }, "reasoning": "react" } Generated LangGraph code simplified from langgraph.graph import StateGraph, END class AgentState TypedDict : messages: List BaseMessage research data: str def researcher node state: AgentState : Tool calls: search, scrape return {"research data": result} def writer node state: AgentState : Tool calls: format, save return {"messages": state "messages" + response } workflow = StateGraph AgentState workflow.add node "researcher", researcher node workflow.add node "writer", writer node workflow.add edge "researcher", "writer" workflow.add edge "writer", END workflow.set entry point "researcher" Generated CrewAI code simplified from crewai import Agent, Task, Crew researcher = Agent role="researcher", tools= search tool, scrape tool writer = Agent role="writer", tools= format tool, save tool research task = Task description="Research topic", agent=researcher write task = Task description="Write article", agent=writer, context= research task crew = Crew agents= researcher, writer , tasks= research task, write task , process="sequential" | Framework Primitive | GEAR Feature | Translation Complexity | Failure Mode | |---|---|---|---| | LangGraph StateGraph | Sequential orchestration | Direct mapping | Conditional routing requires manual edges | | CrewAI Task context | Agent dependencies | Direct mapping | Parallel tasks need process="hierarchical" | | AutoGen GroupChat | Multi-agent conversation | Adapter layer | Speaker selection logic not configurable | | Memory persistence | Long-term memory | Framework-dependent | LangGraph needs custom checkpointer, CrewAI uses built-in | | Tool registration | Agent tools | Direct mapping | Tool schemas must match framework expectations | Hierarchical orchestration in CrewAI uses a manager agent that delegates tasks. LangGraph requires explicit conditional edges. AutoGen needs a GroupChatManager with custom speaker selection. GEAR generates the closest match but documents the semantic gap. Memory persistence varies widely. LangGraph checkpointers serialize state to SQLite or Redis. CrewAI's memory is agent-scoped and framework-managed. AutoGen stores conversation history in agent objects. GEAR's "long-term memory" feature maps to different storage mechanisms, and you need to verify durability guarantees. Tool calling conventions differ. LangGraph expects Langchain tools. CrewAI uses its own Tool class. AutoGen accepts functions with type hints. GEAR generates tool registration code but doesn't translate tool implementations. Generated code includes framework-specific logging, but observability depth varies: GEAR doesn't generate unified observability instrumentation. You get whatever the target framework provides. If you need distributed tracing or custom metrics, you're adding that post-generation. GEAR outputs a project directory with: You still need to: GEAR generates the scaffolding, not a production-ready system. The 15% of feature-framework pairs that don't map are edge cases that matter: The adaptation report flags these gaps, but you're writing the missing pieces by hand. Generated code inherits framework security models: GEAR doesn't generate security layers. It generates functional code that assumes trusted inputs. Configuration drift : You generate code, modify it, then want to regenerate from an updated spec. GEAR overwrites files. You need version control and merge discipline. Framework version skew : Generated code targets specific framework versions. If LangGraph 0.3 changes StateGraph APIs, your generated code breaks until GEAR updates its connectors. Tool implementation mismatch : GEAR generates tool stubs. If your actual tool returns a different schema than the stub expects, orchestration fails at runtime. Memory overflow : Generated conversation buffers don't implement token limits consistently. Long-running agents can exhaust memory if you don't add pruning logic. Use GEAR when: Avoid GEAR when: GEAR solves the API learning curve and initial setup friction. It doesn't solve the hard parts: tool implementation, error handling, observability, and security. Treat it as a scaffolding generator, not a deployment artifact. The 84.69% mapping coverage is honest about what's portable and what isn't. The adaptation reports are the most valuable output. They tell you where framework abstractions diverge and where you'll be writing custom code anyway.