SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2601.08955 · 2026

Imagine-then-Plan: Agent Learning from Adaptive Lookahead with World Models

Jian Wang, Wenjie Li, Hanlin Wang, Youwei Liu, Beichen Guo

arXiv · PDF · Open in the Atlas

Code that ran

14 of 18 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (5 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 5 have no contract verdict; 9 failures of our instrument; 4 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2601.08955.json · badge: /api/ran/2601.08955.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
loyiv/ITP community
Papers with Code archive
14 ran · 4 no recorded run
FunctionStatusWhere it lives
ChatGeneration Ran
ran on a synthesized input · constructed an object; no result was computed
loyiv/ITP/itp/orchestrator.py
code served (permissive licence) · get_code("cb4ad1af85e2cce7")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, ChatGeneration: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from dataclasses import dataclass

@dataclass
class ChatGeneration:
    text: str
    raw_text: str

torch.manual_seed(0)

ARGS = {
    "text": "Hello, how are you?",
    "raw_text": "Hello, how are you?",
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ChatGeneration — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a ChatGeneration output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
DeepSeekAPILLM Ran
ran on a synthesized input · constructed an object; no result was computed
loyiv/ITP/itp/orchestrator.py
code served (permissive licence) · get_code("d654df042acc2656")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, DeepSeekAPILLM: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os
from dataclasses import dataclass
from typing import List, Optional, Dict

# Set up environment variable for API key (required by the function)
os.environ['DEEPSEEK_API_KEY'] = 'test-api-key-12345'

# Define ARGS dict with all parameters for DeepSeekAPILLM.__init__
ARGS = {
    'api_key_env': 'DEEPSEEK_API_KEY',
    'model': 'deepseek-chat',
    'base_url': 'https://api.deepseek.com',
    'timeout_s': 120,
    'max_retries': 3,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
requests — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DeepSeekAPILLM — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a DeepSeekAPILLM output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
ITPDecision Ran
ran on a synthesized input · constructed an object; no result was computed
loyiv/ITP/itp/orchestrator.py
code served (permissive licence) · get_code("05b7208e858ee61a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, ITPDecision: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from dataclasses import dataclass

torch.manual_seed(0)

@dataclass
class ITPDecision:
    k: int
    k_raw: str
    foresight: str
    foresight_raw: str
    reflection: str
    thought: str
    action: str
    policy_raw: str

ARGS = {
    "k": 5,
    "k_raw": "5",
    "foresight": "look ahead strategy",
    "foresight_raw": "raw_foresight_text",
    "reflection": "this is a reflection",
    "thought": "this is a thought process",
    "action": "take action A",
    "policy_raw": "policy_raw_output",
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ITPDecision — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a ITPDecision output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
PromptRender Ran
ran on a synthesized input · constructed an object; no result was computed
loyiv/ITP/itp/orchestrator.py
code served (permissive licence) · get_code("53cb563045540ac5")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, PromptRender: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# PromptRender takes a template string and renders it by replacing placeholders
# The render method takes keyword arguments as strings and replaces {key} patterns

ARGS = {
    'template': 'Hello {name}, you have {count} messages from {sender}.'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type PromptRender — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a PromptRender output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
PromptTemplate Ran
ran on a synthesized input · constructed an object; no result was computed
loyiv/ITP/itp/orchestrator.py
code served (permissive licence) · get_code("0da3549500da00b3")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, PromptTemplate: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

ARGS = {
    'template_text': 'Hello {name}, you have {count} messages from {sender}.'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type PromptTemplate — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a PromptTemplate output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
_extract_tag_or_field Ran
ran; our contract draft was wrong, not the code
loyiv/ITP/itp/orchestrator.py
code served (permissive licence) · get_code("f08a96bd4231d971")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re

def _extract_tag_or_field(text: str, tag: str, field: str) -> str:
    raw = text or ''
    m = re.search(f'(?is)<{tag}[^>]*>\\s*(.*?)\\s*</{tag}>', raw)
    if m:
        return m.group(1).strip()
    m = re.search(f'(?is)<{field}[^>]*>\\s*(.*?)\\s*</{field}>', raw)
    if m:
        return m.group(1).strip()
    m = re.search(f'(?im)^\\s*{re.escape(field)}\\s*:\\s*(.+?)\\s*$', raw)
    if m:
        return m.group(1).strip()
    return ''

ARGS = {
    'text': '<content>  Hello World  </content>',
    'tag': 'content',
    'field': 'description'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
_messages_to_prompt Ran
ran; our contract draft was wrong, not the code
loyiv/ITP/itp/orchestrator.py
code served (permissive licence) · get_code("64a222151846dc40")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from typing import List, Dict

class MockTokenizer:
    def __init__(self, has_chat_template=False):
        self.chat_template = "[CHAT]" if has_chat_template else None
    
    def apply_chat_template(self, messages, tokenize=False, add_generation_prompt=False):
        if self.chat_template:
            return "[CHAT_OUTPUT]"
        raise Exception("No chat template")

tokenizer = MockTokenizer(has_chat_template=False)

messages = [
    {"role": "system", "content": "You are a helpful assistant."},
    {"role": "user", "content": "What is 2+2?"},
    {"role": "assistant", "content": "2+2 equals 4."},
]

ARGS = {
    "tokenizer": tokenizer,
    "messages": messages,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
_truncate_by_stop_strings Ran
ran; our contract draft was wrong, not the code
loyiv/ITP/itp/orchestrator.py
code served (permissive licence) · get_code("0639ddaf4ea63c9d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
from typing import List, Optional

def _truncate_by_stop_strings(text: str, stop: Optional[List[str]]) -> str:
    if not stop:
        return (text or '').strip()
    s = text or ''
    cut = None
    for st in stop:
        if not st:
            continue
        idx = s.find(st)
        if idx != -1 and (cut is None or idx < cut):
            cut = idx
    return (s[:cut] if cut is not None else s).strip()


ARGS = {
    "text": "Hello world this is a test string that should be truncated",
    "stop": ["is a", "truncated", "world"]
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_prompt Ran
ran; our contract draft was wrong, not the code
loyiv/ITP/itp/orchestrator.py
code served (permissive licence) · get_code("21523634b7dd82f6")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned PromptTemplate. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
from pathlib import Path
from dataclasses import dataclass

@dataclass(frozen=True)
class PromptTemplate:
    template_text: str

    def render(self, **kwargs: str) -> str:
        text = self.template_text
        for k, v in kwargs.items():
            text = text.replace('{' + k + '}', str(v))
        return text

def read_text(path: str | Path) -> str:
    p = Path(path)
    return p.read_text(encoding='utf-8')

def load_prompt(path: str | Path) -> PromptTemplate:
    return PromptTemplate(template_text=read_text(path))

# Create a temporary file with template text
with tempfile.NamedTemporaryFile(mode='w', suffix='.txt', delete=False) as f:
    f.write("Hello {name}, your score is {score}.")
    temp_path = f.name

ARGS = {
    'path': temp_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type PromptTemplate — a PromptTemplate output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PromptTemplate output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
normalize_action Ran
ran; our contract draft was wrong, not the code
loyiv/ITP/itp/orchestrator.py
code served (permissive licence) · get_code("4a920b2ceac6b3b0")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re

def normalize_action(action: str) -> str:
    a = (action or '').strip()
    a = re.sub('\\s+', ' ', a)
    a = re.sub('(?is)^<action[^>]*>\\s*', '', a)
    a = re.sub('(?is)\\s*</action>\\s*$', '', a)
    return a.strip()

ARGS = {
    'action': '<ACTION type="move">  walk   forward  </ACTION>'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
pick_fallback_action Ran
ran; our contract draft was wrong, not the code
loyiv/ITP/itp/orchestrator.py
code served (permissive licence) · get_code("99ac8254b04e3c55")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Analyzing the function:
# - It takes admissible_commands which is Optional[List[str]]
# - It filters for strings that are non-empty when stripped
# - It returns the first command stripped, or 'look' as fallback

# Test case 1: Normal list with valid commands
ARGS = {
    "admissible_commands": ["take apple", "go north", "examine door"]
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
read_text Ran
ran; our contract draft was wrong, not the code
loyiv/ITP/itp/orchestrator.py
code served (permissive licence) · get_code("aa20ac65f6b33d56")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
from pathlib import Path

# Create a temporary file with some text content
with tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.txt', encoding='utf-8') as f:
    f.write("Hello, this is test content for the read_text function.")
    temp_file_path = f.name

ARGS = {
    'path': temp_file_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
split_system_user Ran
ran; our contract draft was wrong, not the code
loyiv/ITP/itp/orchestrator.py
code served (permissive licence) · get_code("074d7f7b66ff7af6")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

# Construct a valid prompt_text string with both 'System:' and 'User:' sections
prompt_text = """System: You are a helpful assistant.
User: What is the capital of France?"""

ARGS = {
    'prompt_text': prompt_text
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
validate_action Ran
ran; our contract draft was wrong, not the code
loyiv/ITP/itp/orchestrator.py
code served (permissive licence) · get_code("b172369c1a19452b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from typing import List, Optional

# Construct arguments for validate_action function

candidate = "<action> go north </action>"

admissible_commands = [
    "go north",
    "go south",
    "look",
    "take sword",
    "drop item"
]

ARGS = {
    "candidate": candidate,
    "admissible_commands": admissible_commands
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
ITPOrchestrator Not yet run
unverified (harvested, no recorded run)
loyiv/ITP/itp/orchestrator.py
code served (permissive licence) · get_code("5dac82f6ed3d3491")
How it ran

no invocation recorded.

LocalCausalLM Not yet run
unverified (harvested, no recorded run)
loyiv/ITP/itp/orchestrator.py
code served (permissive licence) · get_code("3352e72b424c76ca")
How it ran

no invocation recorded.

PolicyModel Not yet run
unverified (harvested, no recorded run)
loyiv/ITP/itp/orchestrator.py
code served (permissive licence) · get_code("96106dbeb38b4670")
How it ran

no invocation recorded.

WorldModel Not yet run
unverified (harvested, no recorded run)
loyiv/ITP/itp/orchestrator.py
code served (permissive licence) · get_code("7e7128e9ce87c11f")
How it ran

no invocation recorded.

Also present in other papers' code

Of 18 samples lifted from this paper's linked repositories, 18 carry a function identity and 0 do not. Of the 18 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 18 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Recent advances in world models have shown promise for modeling future dynamics of environmental states, enabling agents to reason and act without accessing real environments. Current methods mainly perform single-step or fixed-horizon rollouts, leaving their potential for complex task planning under-exploited. We propose Imagine-then-Plan (ITP), a unified framework for agent learning via lookahead imagination, where an agent's policy model interacts with the learned world model, yielding multi-step "imagined" trajectories. Since the imagination horizon may vary by tasks and stages, we introduce a novel adaptive lookahead mechanism by trading off the ultimate goal and task progress. The resulting imagined trajectories provide rich signals about future consequences, such as achieved progress and potential conflicts, which are fused with current observations, formulating a partially observable and imaginable Markov decision process to guide policy learning. We instantiate ITP with both training-free and reinforcementtrained variants. Extensive experiments across representative agent benchmarks demonstrate that ITP significantly outperforms competitive baselines. Further analyses validate that our adaptive lookahead largely enhances agents' reasoning capability, providing valuable insights into addressing broader, complex tasks. Our code and data will be publicly available at: https://github.com/loyiv/ITP.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2601.08955")
get_code_for_paper("2601.08955")
have("2601.08955")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2601.08955.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2601.08955.svg)](https://syntology.ai/paper/2601.08955)

Connect an agent — have() is free.