July 15, 2026
Scaling executable agent training data is bottlenecked by substrate-first methods that tie task generation to predefined tools, repositories, or skill graphs: expanding coverage requires manual expansion of the substrate, each new domain demands a bespoke pipeline, and the resulting task distributions often reflect substrate convenience rather than real-world demand. We introduce NexForge, a requirement-first framework that compiles free-form capability requirements into executable agent training data. NexForge first performs research-based demand discovery to identify representative task forms, realistic scenarios, and their relative prevalence. It then applies distribution-aware task compilation and automatically retrieves or constructs the files, repositories, dependencies, and runtime configurations required to materialize each task, followed by teacher rollout collection and trajectory distillation. The same pipeline, without any domain-specific infrastructure, produces 3,600 terminal tasks and 2,000 office tasks, improving Qwen3.5-35B-A3B Base from 22.5% to 52.0% on Terminal-Bench 2.0 and from 813 to 1338 Elo on GDPval; scaling to 43.2K terminal tasks reaches 58.4%, surpassing Claude Opus 4.6. Scaled further, NexForge-synthesized data contributes to the training of Nex-N2, a family of publicly available agent models that lift Qwen3.5-35B-A3B to 75.3% on Terminal-Bench 2.1 and to 1585 Elo on GDPval—achieving state-of-the-art open-source performance and surpassing several frontier proprietary systems. Nex-N2 models are available at https://nex.sii.edu.cn/.
Scaling high-quality training data is a central challenge in building capable LLM agents. Post-training agents for real-world tasks require not only task instruction, but also grounded materials, executable environments, and long-horizon interaction trajectories. Producing such data at scale remains labor-intensive: practitioners must determine what the agent should practice, design representative tasks, collect appropriate materials, and package them into runnable workspaces. This process is expensive, domain-specific, and difficult to scale.
Recent task-synthesis methods have made substantial progress by deriving executable tasks from predefined repositories, tools, skills, or execution traces [1]–[8]. However, these substrate-first approaches face three fundamental scaling limitations. First, scaling is bounded by the input substrate: the volume and diversity of generated tasks are constrained by the number of available repositories, tools, or skill specifications, and expanding coverage requires costly manual curation. Second, each domain typically demands a bespoke pipeline with domain-specific infrastructure – skill libraries for terminal tasks [5], [6], repository harnesses for software engineering [7], [8], or simulated tool ecosystems [1] – making the methods expensive to transfer to new capability targets. Third, the available substrate implicitly determines the task distribution: repository-based pipelines naturally favor implementation and debugging tasks even when real-world users also require configuration analysis, data processing, or system operation, producing distributions that reflect substrate convenience rather than actual demand.
We argue that scaling agent training data require decoupling task generation from predefined substrates. Environment synthesis should instead begin with the user’s capability requirement: before any workspace is built, the system must determine both which tasks are representative of the desired capability and what diverse real-world contexts they arise in. Only then should the materials and runtime environments be constructed to match. This requirement-first formulation separates what an agent should practice from how that practice is made executable, enabling the same pipeline to scale across domains without building a new domain-specific infrastructure for each target.
To this end, we introduce NexForge, a requirement-first framework that compiles free-form capability requirements into executable agent training data. NexForge first performs research-based demand discovery to identify representative task forms and diverse real-world scenarios associated with the target capability. Then it applies distribution-aware task compilation, combining the induced task profile with concrete scenarios to determine the task directive. Finally, NexForge retrieves or constructs the required repositories, documents, datasets, files, dependencies, etc., packages them into validated executable workspaces, and collects teacher interactions as training trajectories. By doing so, NexForge controls corpus composition independently of predefined tools or repositories and applies the same synthesis pipeline across substantially different capability domains. We evaluate NexForge on two substantially different capabilities: terminal operation yields 3,600 tasks improving Qwen3.5-35B-A3B from 22.5% to 52.0% on Terminal-Bench 2.0; office work yields 2,000 tasks improving the same model from 813 to 1338 Elo on GDPval – both from the same pipeline without domain-specific engineering. Moreover, scaling for more data makes Nex-N2 models reach state-of-the-art open-source performance on both capabilities, as shown in Figure 1.
Our contributions are threefold:
We formulate agent environment construction as a requirement-first scaling problem, identifying three bottlenecks of substrate-first synthesis: input-bounded scale, high transfer cost, and substrate-determined distributions.
We propose NexForge, an end-to-end framework that discovers task demands via multi-source research and materializes them into executable training environments with teacher trajectories, without domain-specific infrastructure.
We demonstrate that the same framework generates effective training data for both terminal and the office capabilities, substantially improving the performance of the downstream agent in distinct domains.
Scalable data synthesis often decomposes a broad capability space before generating individual examples. Self-Instruct [9] bootstraps instruction-following data from a small seed set, while GLAN [10] organizes generation through a hierarchical taxonomy of disciplines and tasks. Task-profile-guided routing data [11] controls synthetic examples using explicit task profiles, and Benchmark Agent [12] decomposes evaluation goals into structured benchmark specifications. These studies show that explicit distribution modeling improves coverage over unconstrained generation, but they primarily synthesize text instructions or evaluation instances rather than complete executable environments. Scaling their approach to agent training would additionally require grounding each task with materials, dependencies, and runtimes—a step these methods do not address.
Recent work has explored executable agent-data construction through tool ecosystems, simulated environments, execution traces, subtask composition, repositories, and domain-specific skills. Agent-World [1] and Agent World Model [2] synthesize stateful tool environments, while DIVE [3] derives grounded and verifiable tasks from execution evidence. AgentSynth [4] and TaskCraft [13] construct complex tasks through subtask composition and difficulty control. In software engineering, SWE-smith [7] and R2E-Gym [8] generate executable tasks from repositories, tests, and issue-like workflows. Terminal-oriented methods further specialize this paradigm: SkillSynth [5] generates tasks from structured skill specifications, Terminal-World [6] builds environments around reusable agent skills, CLI-Universe [14] constructs terminal tasks from a predefined capability taxonomy, and TerminalTraj [15], Nemotron-Terminal [16], LiteCoder-Terminal [17], and OpenThoughts-Agent [18] provide terminal interaction trajectories or training corpora.
These methods establish the importance of executable grounding but share three scaling limitations. (1) Input-bounded scale: the volume and diversity of generated tasks are capped by the predefined substrate—repositories, skills, tools, or traces—and expanding coverage requires manual substrate curation. (2) High transfer cost: each method builds domain-specific infrastructure (skill graphs for terminal tasks, repository harnesses for software engineering, simulated tool ecosystems for general agents) that cannot be directly reused for a different capability target. (3) Substrate-determined distributions: because tasks are derived from what the substrate supports, the resulting corpus tends to overrepresent convenient task types (e.g., implementation and debugging) at the expense of less substrate-friendly but equally important work (e.g., configuration, data processing, system operation). NexForge addresses all three by starting from free-form requirements rather than predefined substrates: the same pipeline scales across terminal and office domains without new domain-specific infrastructure. Terminal-Bench 2.0 [19] and GDPval [20] are used solely as external evaluation suites.
NexForge scales a free-form user requirement into executable environments and interaction trajectories for agent post-training. As illustrated in Figure 2, the framework contains three main stages. First, it conducts multi-source research to discover representative task demands and working scenarios associated with the requested capability. Second, it composes the discovered demands into concrete task directives under an explicit task distribution. Finally, it retrieves or constructs the required materials, packages each directive into an executable workspace, and collects teacher trajectories for training. This requirement-first pipeline determines what the agent should practice before constructing the materials and runtime environments that make the practice executable, enabling the same architecture to scale across capability domains.
NexForge takes as input a free-form capability requirement \(I\), a requested task count \(N\), and optional batch-level constraints \(B\) that let the user override the naturally discovered distribution along specific dimensions such as language or difficulty. It outputs a collection \[\mathcal{T}={\tau_1,\ldots,\tau_N},\] where each \(\tau_i\) is an executable task package contains task instruction, grounded materials, workspace files, software dependencies, and a runtime configuration, designed for trajectory collection and agent training.
We represent each task using a task form \(f_i\) and a scenario \(s_i\): \[\tau_i \leftarrow (f_i,s_i).\]
The task form \(f_i=(t_i,d_i,\sigma_i,e_i,\ell_i,h_i)\) specifies the primary task type \(t_i\), expected deliverable \(d_i\), source strategy \(\sigma_i\), runtime environment \(e_i\), language \(\ell_i\), and difficulty \(h_i\). The scenario describes the concrete context in which the task occurs, such as an organization, professional role, workflow, software system, or operational event. This decomposition enables explicit control over the corpus-level task distribution while grounding each task in a realistic context.
Given the requirement \(I\), NexForge first investigates what the requested capability entails in practice. A web-enabled research agent collects evidence from professional workflows, technical documentation, role descriptions, public examples, and other sources relevant to the domain. The collected evidence, together with the knowledge of the model, is organized into a weighted task demand profile and a diverse scenario reservoir.
The task demand profile \(\Phi(I)\) defines the intended distribution over the dimensions of the task-form: \[\Phi(I)= \{\Phi_t,\Phi_d,\Phi_\sigma,\Phi_e,\Phi_\ell,\Phi_h\},\] where each \(\Phi_k\) is a weighted categorical distribution. Candidate options are induced from research evidence and model knowledge, and are subsequently reviewed by an LLM to merge near-duplicates, remove ambiguous categories, and improve mutual exclusivity. Evidence-informed weights indicate the relative prevalence or importance of each option under the requested capability.
The profile specifies the overall composition of the generated corpus without committing to particular repositories, documents, or source files. It therefore separates the intended work distribution from the materials later used to instantiate individual tasks.
The scenario reservoir \(\mathcal{G}(I)\) contains concrete scenario guides (scenarios for short) that describe working contexts in which task forms can be instantiated. NexForge populates it through four branches: (1) keyword-conditioned self-instruct, which samples keywords from a domain keyword pool and prompts the model to generate scenarios; (2) keyword-conditioned research, which uses sampled keywords as web-search queries to discover real-world scenarios; (3) self-instruct, which directly prompts the model to generate scenarios, sampling from already accepted scenarios as few-shot examples to encourage novelty; and (4) knowledge-graph expansion, which iteratively expands sub-scenarios from the input requirement. The domain keyword pool is generated via web research or model knowledge. The relative contribution of each branch can be configured through the synthesis specification. All candidate scenarios undergo embedding-based semantic deduplication to ensure diversity across the reservoir.
Scenarios intentionally describe only the working context and omit task type, deliverable, source strategy, and runtime. This prevents scenarios from independently determining the task distribution.
NexForge composes the task-form profile and scenario reservoir into directives. For each scenario \(g_j\in\mathcal{G}(I)\), the composer expands it into a concrete scenario, then sequentially filters profile options by compatibility with the scenario and previously selected fields.
Let \(K={t,d,\sigma,e}\) denote the ordered task-form dimensions that require compatibility decisions. For each dimension \(k\in K\), the composer obtains a compatible candidate set \[C_{j,k}=F_\theta(I,g_j,k,\Phi_k,S_{j,<k}),\] where \(S_{j,<k}\) contains fields selected in earlier steps. A field is then sampled according to the profile weights restricted to the compatible set: \[f_{j,k} \sim \operatorname{Normalize} \left( \Phi_k\vert_{C_{j,k}} \right).\] Language and difficulty are sampled according to the corresponding profile distributions and batch constraints \(B\).
The resulting directive is \[\delta_j= \langle g_j,f_j,A_j,\ell_j,h_j,R_j \rangle,\] where \(A_j\) records the retained candidate sets and \(R_j\) stores the composition rationale. The directive fixes the intended work before any repository or document is selected, constraining downstream stages to find or construct materials that realize the sampled task. The compatibility filter ensures that the resulting directive is internally consistent; its effect on directive quality is evaluated in Section 5.4.
A task directive specifies the intended work but is not yet executable. NexForge converts each directive into an executable workspace and subsequently collects and distills teacher interactions into training trajectories.
Given a task directive \(\delta_j\), NexForge materializes the intended task through three successive steps: material mining, blueprint planning, and workspace generation and validation. A research agent first identifies realistic workflows and collects the resources required by the directive, including public repositories, technical documents, datasets, spreadsheets, configuration files, and other domain-relevant artifacts. When suitable external resources are unavailable, it specifies the local materials that should be generated. A planning agent then inspects the collected resources and produces a structured blueprint defining the task objective, input materials, expected deliverable, workspace organization, required transformations, software dependencies, and runtime constraints. Based on this blueprint, a coding agent constructs the executable workspace by adapting repositories, retrieving public files, generating local artifacts, installing dependencies, and configuring an unprivileged CPU-only Docker environment. Automated checks verify material completeness, source-strategy consistency, dependency availability, runtime restrictions, and the absence of leaked solutions or target artifacts. Separating research, planning, and implementation into distinct stages isolates noise introduced during resource discovery and data preparation, preventing it from propagating into downstream workspace construction.
Each validated workspace is assigned to a teacher model under a fixed interaction budget. The teacher interacts with the executable environment using the available tools, producing a trajectory that records model responses, tool calls, environment observations, intermediate failures, and recovery behaviors. NexForge then converts the collected interactions into a standardized training format through task-independent trace cleaning, removing malformed conversations, invalid message structures, duplicate-role messages, error-only outputs, and trivially short interactions. The framework does not require manually authored reference answers or task-specific success verifiers; therefore, incomplete but meaningful attempts are retained when they contain useful long-horizon reasoning, tool-use patterns, or error-recovery signals. This process produces both controllable executable task packages and requirement-aligned training trajectories that can be directly used for agent post-training.
We instantiate NexForge from two independently written capability requirements, producing Terminal-3.6K for terminal agent evaluation and Office-2K for cross-domain validation on GDPval. The two corpora differ substantially in their task forms, grounding materials, and runtime requirements, demonstrating that the same synthesis pipeline can scale to distinct user-defined capabilities without domain-specific engineering. To study data scaling, we additionally produce Terminal-2K, Terminal-43.2K, and Office-22K under the same pipeline.
The terminal specification covers command-line workflows such as repository inspection, software construction, configuration editing, data processing, system operation, and local validation, while the office specification includes spreadsheet analysis, document review, information aggregation, summarization, drafting, planning, and evidence-based recommendations. Both use a 50/50 Chinese–English split and balanced difficulty budgets. Terminal-3.6K contains 3,600 tasks, matching SkillSynth in task count and requested rollout budget, whereas Office-2K contains 2,000 independently synthesized office tasks. All synthesis stages use GPT-5.5.
We request up to three DeepSeek V4 Pro attempts for each task. After trajectory conversion and generic trace cleaning, this process yields 8,521 trajectories for Terminal-3.6K and 5,940 trajectories for Office-2K, corresponding to 2.37 and 2.97 trajectories per task, respectively. Table 1 summarizes corpus scale, trajectory complexity, task diversity, and grounding characteristics. The two specifications induce clearly different data distributions. Terminal-3.6K realizes 24 task types and is primarily grounded through public repository adaptation, whereas Office-2K realizes 15 task types and more frequently relies on public documents, spreadsheets, and reports. The ten most frequent task signatures account for only 20.6% and 15.1% of the two corpora, respectively, indicating that scale is not obtained by repeatedly instantiating a small number of templates. Unless otherwise specified, supervised fine-tuning uses Qwen3.5-35B-A3B Base for five epochs with a maximum context length of 262K, packed bfloat16 sequences, a global batch size of 64, and a learning rate of \(10^{-5}\) with cosine decay and 5% warmup. The Qwen3-32B comparison uses Terminal-3.6K with the same recipe adapted to the dense base model.
| Statistic | Term.-3.6K | Office-2K | w/o profile | w/o scenario |
|---|---|---|---|---|
| Executable tasks | 3,600 | 2,000 | 2,000 | 2,000 |
| Converted trajectories | 8,521 | 5,940 | 4,574 | 4,541 |
| Trajectories per task | 2.37 | 2.97 | 2.29 | 2.27 |
| Avg.tokens per traj. | 129K | 107K | 124K | 154K |
| Avg.tool calls per traj. | 123 | 54 | 116 | 133 |
| Chinese / English | 50/50 | 50/50 | 50/50 | 50/50 |
| Difficulty allocation | Balanced | Balanced | Balanced | Balanced |
| Realized task types | 24 | 15 | \({\sim}\)3 | \({\sim}\)16 |
| Top-10 signature cov. | 20.6% | 15.1% | 78.5% | 24.9% |
| Mean package size | 10.9 MB | 9.4 MB | 5.8 MB | 9.6 MB |
5pt
Table 2 compares NexForge with representative agent-task synthesis pipelines. Existing methods typically start from predefined tools, repositories, traces, atomic tasks, or manually designed skill structures, each requiring domain-specific infrastructure that limits scalability and transferability. NexForge instead takes a free-form user requirement as input, uses multi-source research to identify representative task demands and their relative prevalence, and then constructs the materials and executable environments needed to realize them. This requirement-first design separates corpus-level task distribution from grounding resources and supports both terminal and office capabilities through the same synthesis pipeline.
| Dataset | Synthesis Prior | Scale | Req. | Res. | Dist. | Env. | Cap. |
|---|---|---|---|---|---|---|---|
| AgentSynth [4] | Composable subtasks | \(>\)6K | – | – | \(\triangle\) | – | \(\triangle\) |
| TaskCraft [13] | Atomic tasks & tools | \({\sim}\)36K | – | – | \(\triangle\) | – | \(\triangle\) |
| DIVE [3] | Executed tool traces | 48K+3.2K | – | – | \(\triangle\) | – | \(\triangle\) |
| R2E-Gym [8] | Repos & commits | \(>\)8.7K | – | – | – | \(✔\) | – |
| SWE-smith [7] | Repos & tests | 50K | – | – | – | \(✔\) | – |
| SkillSynth [5] | Skill graph | 3.6K | – | – | \(\triangle\) | \(✔\) | – |
| Term.-World [6] | Agent skills | 5.7K | – | – | \(\triangle\) | \(✔\) | – |
| CLI-Univ. [14] | Capability taxonomy | 6K | – | \(✔\) | \(\triangle\) | \(✔\) | – |
| NexForge | Free-form requirement | 5.6K / 14.5K | \(✔\) | \(✔\) | \(✔\) | \(✔\) | \(✔\) |
3pt
We perform full-parameter SFT on Qwen3-32B and Qwen3.5-35B-A3B Base with learning rate \(10^{-5}\), batch size 64, and 5 epochs on 128 H100 GPUs. And models are evaluated on Terminal-Bench 2.0 [21] and GDPval [20] to evaluate the ability of models on terminal and office tasks. We compare our models with frontier proprietary models and terminal-specialized 32B baselines [5], [6], [14]–[18]. The results are from published papers or public leaderboards.
\begin{table}[!t][b]
@>
p0.56@>p0.21>p0.18@
Qwen3-32B & NexAU &
+ Terminal-3.6K & NexAU &
Qwen3.5-35B-A3B Base & NexAU &
+ Terminal-3.6K & NexAU &
\end{minipage} \ \end{tabular*} \end{table}
Table ¿tbl:tab:tb-results? presents the results on Terminal-Bench 2.0. Three observations stand out. First, Terminal-3.6K consistently improves models with substantially different initial capabilities: Qwen3-32B increases from \(5.6\%\pm0.9\) to \(32.3\%\pm2.4\), while Qwen3.5-35B-A3B increases from \(22.5\%\pm0.9\) to \(52.0\%\pm3.6\), corresponding to absolute gains of 26.7 and 29.5 points, respectively. This suggests that the synthesized data provides useful terminal interaction experience rather than merely compensating for weaknesses of a particular base model. Second, NexForge-trained Qwen3-32B achieves the highest mean accuracy among the compared terminal-specialized 32B models, despite NexForge being a general requirement-driven framework rather than a pipeline tailored specifically to terminal tasks. Third, combining Terminal-3.6K with the stronger Qwen3.5 base moves the resulting model into the performance range of several frontier proprietary systems, substantially narrowing the gap without changing the model architecture. Overall, the results show that research-grounded environment synthesis can produce high-quality training data that remains effective across model scales and competitive with domain-specific data construction pipelines.
Beyond the primary Terminal-3.6K run, NexForge scales along two independent axes, both requiring only configuration changes rather than manual curation or domain-specific engineering.
Because NexForge is requirement-first, transferring to a new domain requires only a new capability specification—no domain-specific task generator, tool collection, or pipeline redesign. To demonstrate this, we replace the terminal requirement with an office-work specification while keeping the pipeline unchanged. NexForge constructs 2,000 tasks covering document processing, spreadsheet analysis, planning, communication, and multimodal artifact creation. As shown in Table 3, Office-2K improves Qwen3.5-35B-A3B Base from 813 to 1338 GDPval Elo, surpassing several frontier reference models. Scaling to 22K office tasks yields 1384 Elo, further closing the gap to GLM-5 (1408) to 24 Elo. The same pipeline that produces terminal data thus transfers to an entirely different capability with only a specification change.
Within any target domain, NexForge’s data production is not bottlenecked by manually curated materials or substrate availability—scaling requires only increasing the task budget in the configuration. On Terminal-Bench 2.0, scaling from Terminal-2K (43.8%) to Terminal-3.6K (52.0%) to Terminal-43.2K (58.4%) yields continuous improvement, as shown in Table ¿tbl:tab:tb-results? and Figure 3: Terminal-2K matches Kimi K2.5, Terminal-3.6K matches Claude Opus 4.5, and Terminal-43.2K surpasses Claude Opus 4.6, confirming that NexForge-generated data remains effective at scale. The same pattern holds on GDPval: Office-2K (1338) to Office-22K (1384) shows monotonic gains. Since GDPval Elo depends on the comparison pool, comparisons with public models are treated as contextual references; the controlled base-versus-scaled comparison provides the primary evidence.
| Group | Model | GDPval Elo |
|---|---|---|
| Baselines | GPT-5.4 | 1667 |
| Claude Sonnet 4.6 | 1633 | |
| GLM-5 | 1408 | |
| Gemini 3.1 Pro | 1316 | |
| MiniMax M2.5 | 1202 | |
| Gemini 3 Flash | 1191 | |
| GPT-5.1 | 1000 | |
| Ours | Qwen3.5-35B-A3B Base | 813 |
| + Office-2K | 1338 |
8pt
We examine whether task-form control and scenario grounding provide complementary signals during task compilation. Under the same 2,000-task budget, teacher rollout setting, and SFT recipe, we construct three variants on Qwen3.5-35B-A3B Base. Terminal-2K w/o profile retains the scenarios but removes the sampled task-form directive, allowing downstream agents to infer tasks directly from each scenario. Terminal-2K w/o scenario retains the task-form profile but replaces concrete scenarios with neutral scenario seeds. Terminal-2K corresponds to the complete NexForge pipeline, where task forms are sampled conditioned on concrete scenarios.
On the terminal run, the compatibility filter retains on average only \(4.4\) of \(24\) task types, \(5.2\) of \(8\) deliverables, \(2.7\) of \(4\) source strategies, and \(4.5\) of \(20\) runtimes per scenario, so just \(2.0\%\) of the full \(24{\times}8{\times}4{\times}20\) task-form combination space is scenario-compatible. To evaluate whether DATC produces coherent directives under this constraint, we ask an LLM judge (Qwen3.7-Max) to assess whether each item directive’s task form is compatible with its guide scenario, and compare against a uniform-random baseline that ignores both profile weights and compatibility filters (w/o DATC). Over the full 2,000 items of Terminal-2K, DATC directives achieve a match rate of 81.0%, while random directives achieve only 7.0%, as reported in Table 4. The large gap confirms that scenario-conditioned compilation is essential for producing coherent task directives.
| Corpus | Method | Match count | Match rate |
|---|---|---|---|
| Terminal-2K | DATC | 1,620 / 2,000 | 81.0% |
| w/o DATC | 140 / 2,000 | 7.0% |
12pt
Table 5 shows that the full pipeline achieves the highest mean accuracy. Figure 4 (c,d) reveals the underlying mechanism: w/o profile collapses to a single dominant task type (78.5%, \(\sim\)3 effective types), while w/o scenario broadens coverage (\(\sim\)16 effective types) but yields a flat distribution that under-represents frequent workflows. Terminal-2K strikes an intermediate balance (\(\sim\)6 effective types) with the longest trajectories (114 assistant messages, 149 tool calls). Task-form control preserves coverage; scenario grounding structures the training distribution.
| Variant | Scenario | Task Form | Asst. | Tool | TB 2.0 |
|---|---|---|---|---|---|
| Terminal-2K | Reservoir | Profile | 114 | 149 | |
| – w/o profile | Reservoir | None | 98 | 133 | |
| – w/o scenario | Neutral seed | Profile | 95 | 125 |
6pt
Figure 4 (a,b) shows NexForge adapts to different requirements. The terminal corpus is dominated by software engineering (54%) but covers 23 additional types; the office corpus is more evenly distributed. Grounding differs accordingly: 45% of terminal tasks use public repositories vs.% of office tasks using web files. These shifts arise from input specifications alone, confirming cross-domain scalability.
The scenario reservoir contains 5,600 accepted scenarios with no exact or embedding near-duplicates under a cosine-similarity threshold of 0.85. The generated corpora also avoid repeated task configurations: the ten most frequent task-form signatures account for only 20.6% of terminal tasks and 15.1% of office tasks. Meanwhile, terminal and office tasks can be separated with 0.98 nearest-centroid accuracy, indicating that NexForge preserves within-domain diversity while producing clearly differentiated distributions across capability targets.
We manually inspect stratified task packages on instruction clarity, material completeness, workspace executability, difficulty calibration, and absence of solution leakage. Overall quality is high: the majority of packages score at least 4 on all five dimensions, and none receives a score below 3. Terminal-2K w/o profile and Terminal-2K obtain comparable quality, while Terminal-2K w/o scenario scores lower because its from-scratch tasks contain fewer grounded materials. However, Terminal-2K w/o scenario still outperforms Terminal-2K w/o profile on Terminal-Bench 2.0, suggesting that the ablation gap is not explained solely by package quality. Together with Figure 4 (c,d), these results indicate that task-form control and scenario grounding mainly improve training by shaping a more effective task distribution.
We present NexForge, a requirement-first framework that scales executable agent task synthesis from free-form user needs. By decoupling task-form control and scenario grounding from predefined substrates, NexForge enables the same pipeline to produce effective training corpora across distinct capability domains without domain-specific infrastructure. Experiments on terminal and office tasks demonstrate strong cross-domain scalability. NexForge scales synthesis to tens of thousands of tasks to train the publicly released Nex-N2 model family: Nex-N2-Pro reaches 75.3% on Terminal-Bench 2.1 and 1585 Elo on GDPval, competitive with frontier proprietary systems, validating that requirement-first synthesis produces effective training data at production scale. Ablations confirm that jointly modeling task distributions and concrete scenarios is essential for producing coherent directives. Future work will extend NexForge with automatically generated reference answers and machine-checkable verifiers, enabling its use in benchmark construction, reinforcement learning, and other settings that require reliable outcome-based feedback.
This supplementary material documents the implementation details, complete statistics, and additional analyses that support the main paper but do not fit within its page budget. It is organized as follows. We first give the formal scenario-conditioned task-compilation procedure (Algorithm 5) and then walk through a complete end-to-end case study of one synthesized terminal task, from the sampled directive to the runnable package. We next report the synthesis configuration, the two capability requirement specifications that define the pipeline inputs, and corpus-level statistics, audits of scenario-reservoir and task-description diversity, and the full training configuration. We then provide detailed evaluation results and the exact evaluation protocols behind the main-paper scores, including per-task and pass@k analyses and the terminal ablation. Finally, we include faithful English renderings of the four stage prompts and the teacher-rollout runtime prompt that drive the pipeline.
Algorithm 5 details how NexForge composes a task directive \(\delta_j\) from the task demand profile \(\Phi(I)\) and a single scenario \(g_j\) drawn from the reservoir \(\mathcal{G}(I)\). The composer processes the ordered task-form dimensions \(\{t,d,\sigma,e\}\) (task type, deliverable, source strategy, runtime) one at a time. For each dimension \(k\), a compatibility filter \(F_\theta\) inspects the requirement, the scenario, and the fields already selected, and returns the subset \(C\) of profile options that remain coherent in this context; the realized field \(f_{j,k}\) is then sampled from the profile weights restricted to \(C\). Because earlier decisions constrain later ones, the directive stays internally consistent (for example, a chosen runtime does not admit an incompatible deliverable), while the profile weights still steer the corpus-level distribution. Language \(\ell_j\) and difficulty \(h_j\) are drawn last under the batch-level budget rather than from scenario compatibility, and the retained candidate sets \(A\) together with the per-step rationale \(R\) are recorded so that downstream stages materialize the sampled work rather than re-inferring it from whatever materials happen to be available.
To make the pipeline concrete, we trace a single terminal task from the sampled directive to the runnable package (Figure 6). The example illustrates the central claim of the paper: the work contract is fixed by the compiled directive before any material is gathered, so the substrate is selected to serve the intended task rather than the task being inferred from whatever substrate is convenient.
The scenario describes a systems-programming context around pMARS, the portable Memory Array Redcode Simulator used to run Core War tournaments. Following Algorithm 5, the composer conditions the profile on this scenario and sequentially selects compatible task-form fields: a build, packaging, and toolchain integration task type, a command-line executable plus reproducible build script deliverable, a GitHub repository adaptation source strategy, and a shell/CLI runtime. Crucially, the same scenario could have supported a build repair, a benchmarking harness, a data-extraction task, or a cross-compilation deliverable; the sampled directive commits to one primary goal—producing an offline, statically linked cross-compilation of pMARS—so later stages do not silently drift toward the most convenient interpretation of the repository.
Conditioned on the directive, the mining stage performs targeted web research to recover the real workflow and candidate materials: the upstream pMARS source tree, a set of opponent Redcode warriors, and a league runner that scores warriors head-to-head. Mining records each asset with a concrete source, format, and intended role, and distinguishes solver-facing inputs from materials reserved for the runtime environment, so that the downstream package contains genuine artifacts rather than synthetic stand-ins.
The ideation stage consolidates the mined evidence into a single-schema blueprint. It fixes the objective (reconstruct a musl-based static pMARS binary offline and validate it by running a warrior through the league), the input materials, the expected deliverables and their success boundary, the workspace layout, and the software dependencies. Because the solver environment is a CPU-only unprivileged container, ideation resolves any environment-sensitive choices at design time—selecting an offline source archive, pinning the toolchain, and avoiding privileged or GPU-dependent steps—so the resulting task is guaranteed to be executable under the standard runtime.
The generation stage instantiates the blueprint into a solver-facing package: it lands the prepared pMARS sources and opponent programs, adds the league runner and any generated fixtures, writes a concise instruction that states the goal, starting materials, and delivery contract without leaking internal checks, and emits a CPU-only, unprivileged Dockerfile that installs the declared dependencies. Automated checks then verify material completeness, source-strategy consistency, runtime restrictions, and the absence of leaked solutions before the package is admitted for teacher rollouts.
This example shows the difference between requirement-first and substrate-first synthesis in miniature. A substrate-first pipeline that began from the pMARS repository would most naturally emit an implementation or test-repair task, because that is what the repository most directly supports. By fixing a cross-compilation build contract before mining, NexForge instead produces a long-horizon toolchain task whose difficulty and structure are determined by the intended work, and the resulting trajectory is correspondingly deep (many build, inspection, and validation steps rather than a single edit-and-test loop).
This section documents the configuration that drives synthesis and the corpus-level statistics of the resulting data. We first report the reviewed task-form profile and keyword pools that define the candidate space, then the scale and token/operation composition of the collected trajectories.
The reviewed task-form profile defines the candidate space that later sampling draws from. For the first terminal synthesis run (Terminal-2K) it contains 24 primary task types, 20 runtime environments, 8 deliverable types, and 4 source strategies, supported by a domain keyword pool of 3,678 candidates; the office run contains 15 task types, 12 runtimes, 23 deliverables, and 4 source strategies with a 773-keyword pool. The terminal profile spans more task types and runtimes, reflecting the broader operational surface of command-line work, whereas the office profile enumerates more deliverable types, matching its emphasis on documents, analyses, and recommendations. All candidate lists are pruned by the LLM review step for mutual exclusivity and bounded semantics before sampling; the realized coverage and concentration of each dimension are reported in Table 16, and the per-item scene-conditioned narrowing of these pools in Table 15.
Table 6 separates original teacher attempts from the framework-internal cleaned records for each task group and reports per-attempt token and tool-call averages, while Table 7 shows how tokens and operations distribute across message roles and tool classes. The terminal corpora are markedly more tool- and build-intensive, whereas the office corpus yields shorter, more read- and document-oriented trajectories.
| Task group | Packages | Distinct | Attempts | Records | Tok. B | Avg. tok/att. | Calls/att. |
|---|---|---|---|---|---|---|---|
| Terminal-3.6K | 3,600 | 3,501 | 8,521 | 17,635 | 3.350 | 129.3K | 123.3 |
| Office-2K | 2,000 | 2,000 | 5,940 | 6,388 | 0.693 | 106.7K | 53.6 |
| Terminal-2K | 2,000 | 1,947 | 4,656 | 9,214 | 1.760 | 128.7K | 131.7 |
| w/o profile | 2,000 | 1,916 | 4,574 | 6,555 | 1.019 | 154.0K | 132.8 |
| w/o scenario | 2,000 | 1,894 | 4,541 | 11,039 | 1.826 | 123.7K | 116.4 |
3pt
| Task group | Steps | Tool | Reason B | Tool-call B | Read | Write | Build/test |
|---|---|---|---|---|---|---|---|
| Terminal-3.6K | 82.2 | 16.0 | 1.171 | 1.574 | 26.4 | 51.5 | 4.7 |
| Office-2K | 55.6 | 39.7 | 0.072 | 0.313 | 42.8 | 34.1 | 1.0 |
| Terminal-2K | 81.6 | 16.2 | 0.526 | 0.907 | 24.7 | 52.2 | 4.7 |
| w/o profile | 76.3 | 22.1 | 0.552 | 0.837 | 28.5 | 45.1 | 3.2 |
| w/o scenario | 68.3 | 30.0 | 0.257 | 0.435 | 34.8 | 48.3 | 3.8 |
3pt
The two corpora are generated from independently written capability requirements. Each specification is a free-form natural-language description of the target capability that serves as the pipeline input \(I\) (Section 4.1). Below are faithful English renderings of the two specifications.
Design terminal-agent tasks that cover the distribution of multi-domain technical tasks in real command-line environments. The task scope spans software engineering, system administration, security engineering, scientific computing, data science, data processing, data querying, machine learning, model training, mathematical problem solving, optimization, code comprehension, file operations, game or strategy solving, multimedia processing, personal-assistant automation, and other primary directions, with room for further expansion based on real terminal task forms. Each item should require the agent to carry out real technical work through shell commands in a controlled terminal environment and produce deliverables with a well-defined final state, external behavior, or file-level result. Task outputs should be reproducible, executable, and machine-verifiable—for example, source-code or script changes, system configurations or environment states, SQL or structured-data results, model or numerical outputs, optimization plans, processed files or media, game/strategy solutions, automation execution results, build artifacts, or test outcomes. Generated items should vary substantially across task category, runtime environment, input content, required tool chain, operation path, boundary conditions, and success criteria.
Design high-value professional work tasks situated in real organizations. The task scope covers digital knowledge work in high-output industries and large organizations, including real estate and leasing, government and public services, manufacturing, professional scientific and technical services, healthcare, finance and insurance, retail and wholesale, information and media, logistics, and operations support. Task roles should cover operations management, asset management, public services, compliance oversight, engineering and manufacturing support, procurement and supply chain, information systems, legal, accounting, project management, healthcare administration, customer service, financial analysis, sales, news editing, audio/video production, and other functions. Each item should require the agent to understand a concrete work scenario, leverage the given information, structured data, communication records, business rules, system exports, public web information, or lightweight tool environments to complete analysis, judgment, computation, planning, coordination, communication, comparison, content production, media processing, or decision support. Task outputs should be concrete deliverables directly usable in a work setting—for example, structured tables, business conclusions, replies to clients or colleagues, process schedules, decision memos, priority judgments, resource-allocation recommendations, calibration notes, updated documents, presentation materials, charts, content drafts, edit lists, subtitle files, media outputs, or audio/video processing results. Generated items should vary substantially across industry, role, objective, information carrier, constraint conditions, collaboration target, time requirements, judgment criteria, and delivery format.
This section records the teacher-rollout and supervised fine-tuning configuration behind every trained model, so that each reported run can be reproduced from its logged provenance.
Across the experiments, teacher rollouts use DeepSeek V4 Pro. The records retain all teacher attempts that survive trace cleaning, which drops only malformed and degenerate trajectories. The same inclusion rule is used for the terminal ablation and Qwen3-32B comparison. All SFT runs use 16 nodes with 8 NVIDIA H100 GPUs per node, for 128 H100 GPUs in total.
| Run | Student | Task set | Train | Val | TP/EP/CP/PP | Time | Ckpt |
|---|---|---|---|---|---|---|---|
| Terminal-2K | Qwen3.5-35B-A3B | Terminal-2K both-use | 9,198 | 16 | 2/8/8/1 | 12.2h | 521 |
| w/o profile | Qwen3.5-35B-A3B | Terminal-2K scenario-only | 6,539 | 16 | 2/8/8/1 | 7.4h | 313 |
| w/o scenario | Qwen3.5-35B-A3B | Terminal-2K profile-only | 11,023 | 16 | 2/8/8/1 | 12.7h | 541 |
| Qwen3-32B comp. | Qwen3-32B | Terminal-3.6K | 17,619 | 16 | 2/1/8/4 | 6.5d | 997 |
5pt
All experimental SFT runs use full-parameter SFT for five epochs with maximum sequence length 262,144, packed sequences, bfloat16, global batch size 64, micro batch size 1, learning rate \(10^{-5}\), minimum learning
rate \(10^{-7}\), cosine decay, 5% warmup, and the ignore_empty_think loss scale. The Qwen3.5-35B-A3B runs use the qwen3_5 template and MoE expert parallelism; the Qwen3-32B comparison uses the
qwen3 template and pipeline parallelism. For the terminal ablations, final training-log summaries give approximately 1.61B packed train tokens for Terminal-2K, 0.97B for Terminal-2K w/o profile, and 1.72B for Terminal-2K w/o scenario. These
values are computed from the logged mean packed sequence length multiplied by the logged packed train-set size. They differ slightly from the converted-record tokenizer audit in Table 6, which sums visible content,
reasoning content, and serialized tool calls before training-framework packing and without chat-template overhead.
Table 9 reports the controlled Terminal-Bench 2.0 pass@1 statistics behind the scalar values in the main paper. All rows use the same in-house NexAU scaffold, task-suite revision, tools, inference settings, and denominator of 89 tasks per run. Unfinished trials, still-running trials, agent timeouts, verifier timeouts, nonzero exits, and verifier errors are counted as failures.
| Model | Runs | Pass | Mean | 95% CI | Range | |
|---|---|---|---|---|---|---|
| Qwen3.5-35B-A3B Base | 4 | 80/356 | 22.5 | 0.9 | [21.3, 23.6] | |
| Qwen3.5-35B-A3B + Terminal-3.6K | 4 | 185/356 | 52.0 | 3.6 | [48.3, 56.2] | |
| Terminal-2K | 4 | 156/356 | 43.8 | 4.3 | [39.3, 49.4] | |
| w/o profile | 4 | 143/356 | 40.2 | 5.0 | [33.7, 46.1] | |
| w/o scenario | 4 | 152/356 | 42.7 | 4.2 | [37.1, 46.1] | |
| Qwen3-32B Base | 4 | 20/356 | 5.6 | 0.9 | [4.4, 7.0] | |
| Qwen3-32B + Terminal-3.6K | 4 | 115/356 | 32.3 | 2.4 | [30.3, 36.0] |
4pt
Table 10 reports available GDPval Elo confidence intervals behind the scalar values in the main paper. The scoring follows the GDPval-AA v1 methodology of Artificial Analysis: the outputs of GPT-5.1 are fixed as the 1000-point anchor; every pair of models is then compared on all 220 GDPval tasks with an LLM judge that returns a win, loss, or tie for each task; and Elo scores are fit from the full set of pairwise match outcomes. All rows are fit in one in-house NexAU-based joint comparison pool and should not be interpreted as external GDPval leaderboard scores.
| Model | Elo | 95% CI |
|---|---|---|
| GPT-5.4 | 1667 | [1639, 1697] |
| Claude Sonnet 4.6 | 1633 | [1605, 1663] |
| GLM-5 | 1408 | [1385, 1433] |
| Qwen3.5-35B-A3B + Office-22K | 1384 | [1358, 1410] |
| Qwen3.5-35B-A3B + Office-2K | 1338 | [1312, 1364] |
| Gemini 3.1 Pro Preview | 1316 | [1291, 1343] |
| MiniMax M2.5 | 1202 | [1175, 1231] |
| Gemini 3 Flash Preview | 1191 | [1164, 1220] |
| GPT-5.1 | 1000 | [1000, 1000] |
| Qwen3.5-35B-A3B Base | 813 | [787, 840] |
4pt
Table 11 records the external Terminal-Bench reference values used for context in the main paper. These reference values come from the public leaderboard and published terminal/agent-data studies [5], [6], [15]–[18], [21].
| Group | Model | Params | TB 2.0 |
|---|---|---|---|
| External | Gemini 3.1 Pro | – | |
| DeepSeek-V4-Pro | 1.6T | 67.9 | |
| Claude Opus 4.6 | – | ||
| MiniMax M2.7 | 230B | 57.0 | |
| GPT-5.2 | – | ||
| Claude Sonnet 4.6 | – | ||
| GLM 5 | 744B | ||
| Claude Opus 4.5 | – | ||
| Gemini 3 Flash | – | ||
| GPT-5.1 | – | ||
| Kimi K2.5 | 1T | ||
| MiniMax M2.5 | 230B | ||
| DeepSeek-V3.2 | 671B | ||
| Qwen 3 Coder | 480B | ||
| Qwen3 Based | LiteCoder-Terminal-32B-SFT | 32B | |
| TerminalTraj-32B | 32B | ||
| OpenThinkerAgent-32B | 32B | ||
| Nemotron-Terminal-32B | 32B | ||
| Qwen3-32B + SkillSynth | 32B | ||
| CLI-Universe-32B (DeepSeek) | 32B | 31.2 | |
| Terminal-World-32B | 32B | 31.5 |
5pt
Beyond mean accuracy, we examine how the four independent runs distribute over individual tasks. Table 12 reports, for the base model and the Terminal-3.6K model, how many of the 89 tasks are solved in \(0,1,\ldots,4\) of the four runs. Training does not merely convert a handful of borderline tasks: the number of tasks that never pass drops from 54 to 29, while the number solved in all four runs rises from 7 to 29. Terminal-3.6K therefore adds robustly solvable tasks rather than occasional lucky passes.
| Model | 0/4 | 1/4 | 2/4 | 3/4 | 4/4 |
|---|---|---|---|---|---|
| Base | 54 | 12 | 8 | 8 | 7 |
| Qwen3.5 + Terminal-3.6K | 29 | 8 | 8 | 15 | 29 |
4pt
Figure 7 extends this to task-level pass@k, estimating whether at least one of \(k\) sampled attempts solves each task. NexForge improves the entire pass@k curve for both base models: Qwen3.5-35B-A3B rises from 52.0% at pass@1 to approximately 68% at pass@4 and stays roughly 30 points above its base throughout, while Qwen3-32B rises from 32.3% to approximately 55% (its base reaches only about 14% at four attempts). The NexForge-trained Qwen3-32B also stays above the published terminal-specialized models across the evaluated sampling budgets. These trends indicate that Terminal-3.6K expands the set of tasks for which a valid solution can be discovered through repeated sampling, not only single-attempt accuracy; the specialized-model curves are contextual references evaluated with a different scaffold.
The terminal ablation keeps the student, rollout budget, SFT recipe, and Terminal-Bench 2.0 target fixed while changing the synthesis controls. The Terminal-2K w/o profile variant keeps the diverse scenario reservoir but removes selected task form fields from the directive interface. In Terminal-2K w/o profile, downstream stages receive the scenario but not selected task form dimensions. The Terminal-2K w/o scenario variant keeps sampled task form fields and replaces the concrete scenario with a neutral scenario seed. In the implementation, Terminal-2K w/o scenario samples directly from the reviewed profile without scenario-conditioned filtering and uses the same neutral scenario text for all items. The Terminal-2K control is the original scenario-conditioned directive construction.
| Variant | Labeled | Software | Sys. admin | Data proc. |
|---|---|---|---|---|
| Terminal-2K | 2000 | 54.3 | 11.8 | 8.6 |
| w/o profile | 1997 | 78.5 | 0.5 | 2.7 |
| w/o scenario | 2000 | 24.9 | 9.1 | 5.5 |
3pt
Table 13 shows the strongest distributional effect. w/o profile collapses toward software engineering tasks and almost eliminates some terminal task families, consistent with the model’s default mapping from terminal scenarios to tasks. w/o scenario is much flatter because task form fields are sampled from the reviewed profile without a concrete scenario filter. At the reconstructed construction-dimension level, w/o scenario has normalized required-task type entropy 0.875 and effective support 16.15, compared with 0.565/6.02 for w/o profile and 0.571/6.13 for Terminal-2K. These effective-support values count distinct dimension candidates available before generation; they are not the realized task-type distribution in Table 13, which is far more concentrated for w/o profile (post-hoc labeling collapses to an effective count near one) because the generator defaults to software-engineering tasks when the directive removes selected task types. w/o profile and Terminal-2K therefore share almost the same construction-level support, yet differ sharply in realized diversity and downstream accuracy. This explains why w/o scenario remains competitive at 2,000 tasks, while the scenario reservoir is still important for large-scale synthesis where repeated neutral scenarios would make concrete task contexts generic.
We audit the synthesized packages along three axes: static integrity, scenario-conditioned filtering, and the realized distribution over task-form dimensions. Table 14 checks that each package contains the expected artifacts and is grounded in real sources; Table 15 reports how aggressively the scenario-conditioned filter narrows the candidate pool before sampling; and Table 16 with Figure 8 show the realized coverage and concentration of each dimension. Terminal-1.6K is an intermediate corpus produced during the filtering-table audit; it uses a narrower profile (18 rather than 24 primary task types) but otherwise follows the same synthesis pipeline.
| Task group | Tasks | Scenarios | Core files | Real src. |
|---|---|---|---|---|
| Terminal-3.6K | 3,600 | 3,600 | 3,600 | 2,292 |
| Office-2K | 2,000 | 2,000 | 2,000 | 1,569 |
3pt
To confirm that the synthesized packages are coherent and feasible, we manually inspect stratified task packages sampled from each corpus and ablation variant on a rubric covering five dimensions: description clarity (D1), material completeness (D2), workspace executability (D3), difficulty calibration (D4), and absence of internal-artifact leakage (D5). Overall quality is high: the majority of inspected packages score at least 4 on all five dimensions, and none receives any score below 3. Difficulty calibration is the most frequent deduction—a few tasks pack more work than the stated hour budget—while no internal-artifact leakage is observed. The Profile-only variant scores lowest because its from-scratch tasks contain fewer grounded materials, yet it still outperforms Scenario-only on Terminal-Bench 2.0, confirming that the ablation gap is driven by task-distribution shape rather than per-task package quality.
| Task group | Type pool\(\to\)kept | File pool\(\to\)kept |
|---|---|---|
| Terminal-2K | 24\(\to\)4.42 | 167\(\to\)27.37 |
| Terminal-1.6K | 18\(\to\)4.04 | 175\(\to\)37.78 |
| Office-2K | 15\(\to\)6.63 | 105\(\to\)21.61 |
3pt
| Dimension | Control role | Terminal-2K | Office-2K |
|---|---|---|---|
| Task type | Primary work form | 24/24; top 27.9% | 15/15; top 17.3% |
| Deliverable | Output contract | 8/8; top 19.1% | 23/23; top 11.9% |
| Source strategy | Grounding choice | 4; GitHub 45.2% | 4; web 69.2% |
| Runtime | Execution medium | 20/20; top 22.4% | 12/12; top 15.7% |
| Info.carrier | Evidence form | 8/8; top 17.1% | 19/19; top 14.3% |
| Material file type | File variety | 167/167; top 3.6% | 97/105; top 4.6% |
We audit scenarios with the same embedding model used by the online novelty filter. All statistics in Table 17 are computed over the accepted scenario texts before scenario mining and task form composition. Pairwise cosine is the mean cosine over all unordered scenario pairs in a branch. Nearest-neighbor (NN) median measures local redundancy within the branch. The target silhouette uses cosine distance and the two target groups, terminal and office; higher values indicate stronger separation by target. Cross-target NN is the share of scenarios whose nearest neighbor inside the same branch belongs to the other target group.
| Branch | Scenarios | Pair | NN | Silh. | Cross NN |
|---|---|---|---|---|---|
| Self-instruct | 1,868 | 0.278 | 0.678 | 0.141 | 0.16% |
| Knowledge graph | 1,868 | 0.314 | 0.655 | 0.071 | 3.64% |
| Keyword self-inst. | 932 | 0.295 | 0.625 | 0.098 | 0.86% |
| Keyword research | 932 | 0.310 | 0.622 | 0.113 | 0.32% |
3pt
The table supports three observations used in the main text. First, self-instruct is the most target-conditioned branch: it has the highest target silhouette and the lowest cross-target nearest-neighbor rate. Second, keyword research and keyword self-instruct are close in local compactness, but keyword research separates the two target intents slightly more strongly. Third, knowledge graph expansion has the weakest target separation, which is consistent with the branch exploring reusable entities, workflows, and contexts that can appear in both terminal and office settings.
We embed the final solver-facing task descriptions of the matched Terminal-2K and Office-2K sets (4,000 descriptions, 2,000 per target, 50/50 English–Chinese) with text-embedding-3-small and analyze their geometry. The two targets separate
cleanly: a nearest-centroid classifier reaches 0.980 accuracy (0.980 for the four target–language groups), and 97.8% of nearest neighbors share the target (97.2% share target and language). Separation is not template collapse, however: within-target random
pairs have mean cosine 0.571 versus 0.503 across targets, a modest gap, and nearest-neighbor cosine has median 0.797 with maximum 0.910, so descriptions are semantically concentrated by target and language without duplicating one another. Figure 9 shows the PCA projection, with four visible target–language clusters.
The synthesis pipeline is driven by four stage prompts: diverse (task profile), mine (scenario research), ideate (task blueprint), and gen (task materialization); teacher rollouts use the NexAU runtime prompt. The
stage prompts are written in Chinese in the released code; below are faithful English renderings. Jinja variables are shown as {{name}}, and the ablation-mode conditionals (guide_only, intent_only) are collapsed to
the default both-use path; where a branch changes wording we note it inline. The verbatim original templates are included in the released prompt archive under analysis/prompts/.
This prompt turns a free-form task-set specification into the reviewed task-form profile \(\Phi(I)\).
Carry out task-planning-oriented research based on the user input and organize it into a structured task profile.
User input: root_query
First research and read relevant material around the user input, covering multiple reliable sources. Prefer broad taxonomies, task collections, label systems, tool/ecosystem catalogs, standards, or domain surveys to build the overall frame, then fill long-tail directions with finer material. Scope the research to the domains, workflows, tools, objects, data forms, common deliverables, and runtime environments the user input naturally points to.
The goal is a comprehensive, cleanly structured profile, not a summary and not concrete items. The lists are the reusable candidate space for later generation: cover every candidate with real discriminative value while avoiding semantic overlap within a list. In particular, ‘task_types’ is later sampled by weight for the primary task type, so it must stay same-level, mutually exclusive, and clearly bounded; cross-cutting capabilities, material forms, runtime environments, and delivery forms go in their own fields, and ‘task_types’ keeps only the primary work type.
Output requirements: - task_types: mutually exclusive primary work categories, i.e. the single kind of work the solver mainly does in one item. Not a scene, exception, material type, runtime, deliverable, verification, or difficulty source. Each item has name, description, when_applicable, and a positive weight (relative sampling weight in the real distribution, need not be normalized; spread head/mid/tail weights apart). Merge items that usually co-occur. - runtime_environments: runnable, verifiable, interactive environments the task package or Dockerfile must prepare, not a business location. Each item has name, description, tools_or_services, when_applicable (e.g. shell/CLI, Python data analysis, Node/Java/Go/Rust build-test, local web service, database service, browser automation, PDF/OCR, media processing, scientific computing, container tooling, offline document review). - deliverables: abstract deliverable types the solver should ultimately produce. Each has name, description, typical_success_criteria (an internal profile field summarizing the final quality boundary, NOT a solver-facing acceptance/verification procedure). - information_carriers: carrier forms of the input information (not deliverables, not runtimes). Each has name, description, when_needed (e.g. code, logs, config, DB exports, issues, email, screenshots, API docs, contracts, policies, media assets). - material_file_types: a flat list of lowercase suffixes / common format names only (e.g. pdf, csv, xlsx, json, yaml, log, ipynb, pcap). No grouping, no descriptions. - When the input points to command line / terminal / local repo / executable terminal work, task_types and deliverables should favor runnable, editable, testable, reproducible, machine-checkable work and products. - Remove near-synonymous items in each list; keep task_types more restrained and mutually exclusive than the others. Keep abstract categories abstract and file suffixes / tool environments concrete.
The final action must call GenerateIntentProfile with output_path= output_path , providing an intent_profile object containing all of: task_types, runtime_environments, deliverables, information_carriers, material_file_types.
Conditioned on the item directive (a scenario composed with compatible task-form fields), this prompt gathers realistic workflows, terminology, resources, and candidate materials.
Do focused research around the given scene, distilling the task form, runtime environment, required knowledge, usable information carriers, and delivery boundary that fit this item, and produce a research record for blueprint design.
Scene input (may contain ‘item_directive’): seed_scene_json
Research focus: - The work the solver must actually do in the scene, its key objects and constraints. - How ‘item_directive.selected’ (task type, runtime, deliverable, source type) shapes the task; ‘required_task_type’ is a high-level direction, so research should clarify what it can concretely become within the original user intent, not shrink it to a fixed parameter or fixed procedure. - How ‘item_directive.applicable_options’ (information carriers, material file types) match the scene. - The domain, tool, and workflow knowledge and the judgment needed to finish the task. - Real resources, data, code, logs, config, docs, pages, tests, or interfaces that help. If difficulty_hours is present, treat it as a lower bound on expert time and look for real complexity, edge cases, and delivery boundaries that support it.
Proceed by: (1) understanding the task scene (core need, key objects, constraints, target deliverable); (2) progressive retrieval, splitting more specific queries from prior findings, covering domains, tools, environments, interfaces, data forms, deliverables, and quality boundaries; (3) curating usable resources/assets, each with a concrete name, link, format/type, purpose, and relation to the task, judging whether it is substantial enough to support reasoning, operation, construction, comparison, analysis, decision, delivery, or verification.
Produce a research record with four parts: (I) task interpretation; (II) knowledge and information required; (III) execution key points and pitfalls; (IV) usable resources and asset suggestions, marking which are suited to be solver-facing inputs and which to hidden evaluation, environment dependencies, or background. Output natural-language text with accessible links.
This prompt turns the directive and mined materials into a single-schema blueprint (ideation.json), preparing real sources via DownloadSourceFile / PrepareGitHubRepo. A variant (history-to-blueprint) emits
the same schema from the recorded research history as an XML-like document.
You are a professional task-blueprint designer. Based on the input query, scene research, task profile, and item directive, design a high-quality, high-difficulty, executable task blueprint.
Inputs: scene_query ; scene report scene_report ; task profile intent_profile_json ; item directive item_directive_json . Target language: target_language_label . Difficulty: an expert should need at least difficulty_hours hours (a lower bound, not a target to shrink to).
Requirements: - Understand what the query wants the solver to do and the real-world scene behind it. Do not merely rewrite the guide into a task description; extract scene, role, objects, boundary conditions, final target state, and material forms, then expand into deep real work within the user-intent boundary. - Choose the task type, runtime, deliverable, source type, and asset form fitting the scene. Runtime means the internal execution environment the package/Dockerfile prepares, not a business location and not a setting to write into the prompt. If ‘item_directive.selected.required_*’ fields exist they set the high-level type/deliverable/runtime/source and must be honored; optional_* are candidates, not an output checklist; default to a single primary task type. - The final task must have one clear primary goal and one primary task type; other types or deliverables only appear as supporting dimensions. Do not stack several medium tasks or independent products to fake difficulty. - The solver environment is a CPU-only, ordinary unprivileged container. Do not plan tasks needing GPU/CUDA/NVIDIA/TPU or host-level daemons, Docker Engine/socket, docker compose, KVM, PID 1 systemd, kernel modules, loop mount, or privileged containers; container/OCI directions become file-level checks/fixes on Dockerfile/Containerfile, manifest, tar, or OCI layout. These execution facts are an internal design constraint and must NOT be written into task_description unless the task object itself is a container/OCI artifact. - Use WebSearch / WebFetch to add background and to look for publicly accessible, appropriately sized real files or GitHub repositories matching the direction. Record the final source choice in ‘source_selection’ (prepared vs to-be-generated assets), referencing canonical tool outputs (remote_rel_path). Source priority: github_repo_adaptation > internet_file_download > generated_files > no_prerequisite_files; use generated files mainly to fill context, fixtures, edge samples, and consistency material, not to replace real data when available. - The initial solver-facing package must contain only real files and directories (no symlinks); do not materialize /proc, /sys, /dev, snapshots, infinite link trees, full .git history, or large vendor/build output. - task_description is a concise, direct, solver-facing statement (goal, background, starting materials or clean-environment contract, constraints, deliverable, paths, final state, external behavior contract). Its first sentence starts from the most distinctive information. Do not prescribe the solver’s solution order, planning, debugging route, or verification steps; do not expose hidden tests, reference answers, expected value ranges, scoring details, injected bugs, or a known-root-cause list. Keep local paths relative. - Do not mention internal artifacts (blueprint, ideation, item directive, intent profile, source_selection, prepared/generated assets, manifest, research process, tool names, hidden checks, the generation stage, or "intentionally injected/constructed/simulated" meta-information) in task_description. - Derive difficulty on the spot (hard_topics, difficulty_budget.justification) from the chosen fields, materials, deliverable, sources, and difficulty_hours; do not use a preset difficulty list.
After research, source preparation, field design, path/environment checks, and key value/contract self-checks, call GenerateIdeationBlueprint with output_path= output_path (a heavy final tool that regenerates the whole blueprint from the conversation; make small fixes by editing ideation.json directly). Blueprint schema requirements: schema_requirements .
This prompt writes the solver-facing package (task description, materials, Dockerfile, and internal audit files) from the blueprint, using prepared sources.
Synthesize a real task from the task blueprint. You only synthesize; an independent solver will complete it. The blueprint’s task_description is a draft to align paths, add detail, and ground materials on. Prepared external files from ideate are used directly.
Blueprint: ideation_json . Prepared sources dir prepared_sources_dir and manifest prepared_sources_manifest_path (read it before handling source_selection.prepared_assets). Target language: target_language_label . Generate the Dockerfile at dockerfile_output_path from environment_plan.
source_selection handling: prepared_assets are already prepared by ideate; locate them via the manifest (path = remote_rel_path) and copy/trim/extend/extract them into the final package. Source priority github_repo_adaptation > internet_file_download > generated_files > no_prerequisite_files; real sources should be the core material, generated assets only fill context/fixtures/edge samples. Record used assets in generation_summary.json (name, source_type, source_path, copied_to/adapted_to, usage).
Solver-facing filesystem constraints: only real ordinary files and directories; no symlink of any kind; do not copy upstream symlinks, /proc, /sys, /dev, virtual filesystems, snapshots, infinite link trees, full .git history, dependency/build caches, or large vendor/build output; trim to the minimal real subset the task needs.
Internal execution constraints: CPU-only (no GPU/CUDA/NVIDIA/TPU in tasks, Dockerfile, scripts, tests, or data pipelines; shrink ML/image/video/scientific work to small models, small data, CPU inference/training, or pure-algorithm substitutes). Ordinary unprivileged container (no host daemon, Docker Engine/socket, docker compose, KVM, PID 1 systemd, kernel modules, loop mount, or privileged container; container/OCI work is file-level only). Do not write these execution facts into the task description unless the task object is itself a container/OCI artifact.
Landing principles: task_type is a high-level direction, not a fixed script; keep the blueprint intent, source choice, and delivery boundary; deepen one primary goal rather than stacking medium subtasks. The final task_description reads like a concise issue or benchmark instruction (starting materials or clean-environment contract, goal, constraints, deliverable, key interfaces/output schema, final state, external behavior contract); no numbered subtask checklist, no solver solution route, no hidden tests / full verification commands / reference answers / expected value ranges / scoring internals, no known-defect or preset-root-cause list. For fix/recovery/troubleshooting tasks the starting materials may contain failing tests, logs, half-done implementations, or inconsistent data, but only visible symptoms and contracts go into the description.
Deliverables: (1) the task description file at task_description_path (relative paths only); (2) reference material files (reuse prepared real sources first, then create real supplementary files that are readable, parseable, and actually used in solving); (3) the Dockerfile at dockerfile_output_path (base_image matches the blueprint, installs declared dependencies, CPU-only, unprivileged-compatible, does not COPY the task files in). generation_summary.json and generation_validation.json are internal audit files at the generation root, never inside the solver package and never referenced by the task description.
Workflow: understand the blueprint; read the prepared-sources manifest; land prepared assets, then generated assets and other referenced files; write the Dockerfile; align task_description paths; self-check goal/material/interface consistency and output directory; write generation_validation.json. Finish with a checklist confirming files exist, hard_topics are reflected, materials are real, prepared assets are used and logged, paths are relative and consistent, no leaked internal/execution facts, no symlinks, CPU-only, unprivileged-compatible, and difficulty >= difficulty_hours hours.
Teacher rollouts that produce the distillation trajectories run under the NexAU runtime prompt (already in English). The base system prompt and the context-compaction prompt are shown below; tool descriptions are provided per run.
You are an AI agent named ’ agent_name ’ built on the NexAU framework.
You have access to the following tools: You can delegate tasks to the following sub-agents: Your goal is to help users accomplish their tasks efficiently by: 1. Understanding the user’s request 2. Determining if you can handle it with your available tools 3. Delegating to appropriate sub-agents when their specialized capabilities are needed 4. Executing the necessary actions and providing clear, helpful responses
You have been working on the task described above but have not yet completed it. Write a continuation summary that will allow you (or another instance of yourself) to resume work efficiently in a future context window where the conversation history will be replaced with this summary. Include: (1) Task Overview – the core request, success criteria, and constraints; (2) Current State – what is completed, files created/modified/analyzed with paths, key outputs; (3) Important Discoveries – technical constraints, decisions and rationale, errors and resolutions, approaches that failed and why; (4) Next Steps – specific remaining actions, blockers, open questions, priority order; (5) Context to Preserve – user preferences, non-obvious domain details, promises made. Be concise but complete; err on the side of preventing duplicate work or repeated mistakes.