SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2505.11765 · ICML · 2025

OMAC: A Holistic Optimization Framework for LLM-Based Multi-Agent Collaboration

Joydeep Ghosh, Hilaf Hasson, Shijun Li

arXiv · PDF · Open in the Atlas

Code that ran

12 of 15 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 1 violated it and 9 have no contract verdict; 2 failures of our instrument; 3 no recorded run), measured 2026-11-24; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; 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/2505.11765.json · badge: /api/ran/2505.11765.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
xiwenchao/OMAC canonical (classifier label)
classifier basis not recorded on the link
12 ran · 3 no recorded run
FunctionStatusWhere it lives
calculate_score Ran
ran on a synthesized input
xiwenchao/OMAC/code/MMLU/calc_score.py
code served (permissive licence) · get_code("a7d74bc4eba65949")
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 float64, ndim 0, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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
import tempfile
import shutil

# Create a temporary directory structure for testing
temp_dir = tempfile.mkdtemp()
res_dir = temp_dir
exp_name = "test_exp"
exp_path = os.path.join(res_dir, exp_name)
os.makedirs(exp_path, exist_ok=True)

# Create sample .txt files in the experiment directory
# Format based on what the function expects:
# Line 0: contains acc_score as last token
# Line 1: starts with resp count, and the function parses q_cnt from line 0's comma-separated values

# Sample file 1
with open(os.path.join(exp_path, "result1.txt"), "w") as f:
    f.write("q1,q2,q3 0.85\n")  # acc_score = 0.85
    f.write("5\n")  # resp = 5
    f.write("extra line\n")
    f.write("extra line\n")

# Sample file 2
with open(os.path.join(exp_path, "result2.txt"), "w") as f:
    f.write("q1,q2 0.90\n")  # acc_score = 0.90
    f.write("3\n")  # resp = 3
    f.write("extra line\n")
    f.write("extra line\n")

# Sample file 3
with open(os.path.join(exp_path, "result3.txt"), "w") as f:
    f.write("q1,q2,q3,q4 0.75\n")  # acc_score = 0.75
    f.write("8\n")  # resp = 8
    f.write("extra line\n")
    f.write("extra line\n")

# Create a path for the target CSV
target_csv = os.path.join(temp_dir, "output.csv")

ARGS = {
    "RES_DIR": res_dir,
    "EXP_NAME": exp_name,
    "TARGET_CSV": target_csv
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
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
construct_assistant_message Ran
ran on a synthesized input
xiwenchao/OMAC/code/MATH/listwise_math.py
code served (permissive licence) · get_code("97949d1f50cd1e53")
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
import numpy as np

# Construct a valid completion dict that matches the structure
# the function expects: completion['choices'][0]['message']['content']
completion = {
    'choices': [
        {
            'message': {
                'content': 'This is a test assistant response.'
            }
        }
    ]
}

ARGS = {
    'completion': completion
}
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 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
construct_judge_message Ran
ran on a synthesized input
xiwenchao/OMAC/code/HumanEval/prompt_lib.py
code served (permissive licence) · get_code("10cf0920c5efdb39")
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

# Define test arguments for construct_judge_message function

# Example 1: Tester role
responses_tester = []
question_tester = "def add(a, b):\n    pass"
qtype_tester = 'code_completion'
role_tester = 'Tester'

# Example 2: Reflector role
responses_reflector = [
    "def add(a, b):\n    return a + b",
    "def add(a, b):\n    result = a + b\n    return result"
]
question_reflector = "def add(a, b):\n    pass"
qtype_reflector = 'code_completion'
role_reflector = 'Reflector'

# Example 3: Debugger role
responses_debugger = [
    "def multiply(a, b):\n    return a * b",
    "def multiply(a, b):\n    return a / b"
]
question_debugger = "def multiply(a, b):\n    pass"
qtype_debugger = 'code_completion'
role_debugger = 'Debugger'

# Example 4: QualityManager role
responses_qa = [
    "def fibonacci(n):\n    if n <= 1:\n        return n\n    return fibonacci(n-1) + fibonacci(n-2)",
    "def fibonacci(n):\n    a, b = 0, 1\n    for _ in range(n):\n        a, b = b, a + b\n    return a"
]
question_qa = "def fibonacci(n):\n    pass"
qtype_qa = 'code_completion'
role_qa = 'QualityManager'

# Example 5: Ranker role
responses_ranker = [
    "def factorial(n):\n    if n == 0:\n        return 1\n    return n * factorial(n-1)",
    "def factorial(n):\n    result = 1\n    for i in range(1, n+1):\n        result *= i\n    return result",
    "def factorial(n):\n    import math\n    return math.factorial(n)"
]
question_ranker = "def factorial(n):\n    pass"
qtype_ranker = 'code_completion'
role_ranker = 'Ranker'

# Dictionary mapping all parameter names to example values
# Using the Tester example as the main case
ARGS = {
    'responses': responses_tester,
    'question': question_tester,
    'qtype': qtype_tester,
    'role': role_tester
}
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
construct_message Ran
ran on a synthesized input
xiwenchao/OMAC/code/HumanEval/prompt_lib.py
code served (permissive licence) · get_code("768aa810b639c13e")
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
import torch.nn as nn

class MockAgent:
    def __init__(self, role, answer_dict):
        self.role = role
        self.answer_dict = answer_dict
    
    def get_answer(self):
        return self.answer_dict

# Test case 1: single_choice with no responses
ARGS_1 = {
    'responses': [],
    'question': 'What is 2 + 2?\n(A) 3\n(B) 4\n(C) 5\n(D) 6',
    'qtype': 'single_choice'
}

# Test case 2: single_choice with responses
ARGS_2 = {
    'responses': ['(B) 4', '(B) 4', '(C) 5'],
    'question': 'What is 2 + 2?\n(A) 3\n(B) 4\n(C) 5\n(D) 6',
    'qtype': 'single_choice'
}

# Test case 3: code_completion with no responses
ARGS_3 = {
    'responses': [],
    'question': 'def add(a, b):\n    return a + b',
    'qtype': 'code_completion'
}

# Test case 4: code_completion with responses (no Ranker)
agent_passer = MockAgent('Passer', {
    'def add(a, b):\n    return a + b': 'Syntax is valid'
})
agent_tester = MockAgent('Tester', {
    'def add(a, b):\n    return a + b': 'All tests passed'
})
agent_debugger = MockAgent('Debugger', {
    'def add(a, b):\n    return a + b': 'No bugs found'
})

ARGS_4 = {
    'responses': [agent_passer, agent_tester, agent_debugger],
    'question': 'def add(a, b):\n    return a + b',
    'qtype': 'code_completion'
}

# Test case 5: code_completion with responses (with Ranker)
agent_ranker = MockAgent('Ranker', {
    'def add(a, b):\n    return a + b': True
})
agent_quality = MockAgent('QualityManager', {
    'def add(a, b):\n    return a + b': 'Code quality is excellent'
})

ARGS_5 = {
    'responses': [agent_passer, agent_ranker, agent_quality],
    'question': 'def add(a, b):\n    return a + b',
    'qtype': 'code_completion'
}

ARGS = ARGS_1
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
construct_message Ran
ran on a synthesized input
xiwenchao/OMAC/code/MATH/listwise_math.py
code served (permissive licence) · get_code("ff195fa5698279c2")
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

torch.manual_seed(0)

# Construct agents argument - a list of agent responses
# Each agent is a list with at least one dict containing a 'content' key
agents = [
    [
        {'role': 'assistant', 'content': 'The answer is (A) because 2 + 2 = 4'},
    ],
    [
        {'role': 'assistant', 'content': 'I believe the answer is (B) since the calculation shows 5'},
    ],
]

# Construct question argument - a simple math problem string
question = "What is 2 + 2? (A) 3 (B) 4 (C) 5 (D) 6"

# Define ARGS mapping all parameters
ARGS = {
    'agents': agents,
    'question': question,
}
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
construct_ranking_message Ran
ran on a synthesized input
xiwenchao/OMAC/code/HumanEval/prompt_lib.py
code served (permissive licence) · get_code("d8d506bb4d6eb83a")
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

torch.manual_seed(0)

ARGS = {
    'responses': [
        'def hello():\n    return "world"',
        'def hello():\n    return "hello"',
    ],
    'question': 'Write a function that returns a greeting',
    'qtype': 'code_completion',
    'rank_prompt': 'Please rank the {} implementations above by quality.',
    'max_agents': 2,
}
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
construct_structure_message Ran
ran on a synthesized input
xiwenchao/OMAC/code/MATH/prompt_lib.py
code served (permissive licence) · get_code("7ec82a253737d0da")
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

torch.manual_seed(0)

# Construct current_agent - a list with at least one dict containing 'content' key
current_agent = [
    {'content': 'You are the main coordinator agent responsible for orchestrating the workflow.'}
]

# Construct agents_to_select - a list of agents, each with a dict containing 'content' key
agents_to_select = [
    [{'content': 'You are the data processing agent responsible for cleaning and transforming data.'}],
    [{'content': 'You are the analysis agent responsible for statistical computations.'}],
    [{'content': 'You are the reporting agent responsible for generating summaries.'}]
]

# Construct structure_prompt - a string that describes the structure selection task
structure_prompt = 'Please select which agents should be involved in this workflow by providing their sequence numbers in a list format.'

ARGS = {
    'current_agent': current_agent,
    'agents_to_select': agents_to_select,
    'structure_prompt': structure_prompt
}
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
parse_bullets Ran
ran; our contract draft was wrong, not the code
xiwenchao/OMAC/code/MATH/evol_eval_math.py
code served (permissive licence) · get_code("52487c571369c8c3")
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) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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

def parse_bullets(sentence):
    bullets_preprocess = sentence.split('\n')
    bullets = []
    for bullet in bullets_preprocess:
        try:
            idx = bullet.find(next(filter(str.isalpha, bullet)))
        except:
            continue
        bullet = bullet[idx:]
        if len(bullet) != 0:
            bullets.append(bullet)
    return bullets

# Construct valid arguments
sentence = "  • First bullet point\n  - Second bullet\n123 Third with number\n\n  * Fourth item"

ARGS = {
    "sentence": sentence
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
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
parse_ranks Ran
ran on a synthesized input
xiwenchao/OMAC/code/HumanEval/utils.py
code served (permissive licence) · get_code("2861b77fe609900a")
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 list, ndim 1, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 random
import re

# Set seed for reproducibility
random.seed(42)

# Test case 1: String input with valid ranking pattern
completion_str = "Some text before [2, 3, 1] and maybe more text after"

# Test case 2: Dict input with choices structure
completion_dict = {
    'choices': [
        {
            'message': {
                'content': 'Analysis: The ranking is [4, 2, 1, 3] for the items'
            }
        }
    ]
}

# Define ARGS with all parameters
ARGS = {
    'completion': completion_str,
    'max_num': 4,
    'random_num': 2
}
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 list, ndim 1, dtype family int — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
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
parse_ranks Ran
ran on a synthesized input
xiwenchao/OMAC/code/MATH/prompt_lib.py
code served (permissive licence) · get_code("292858f6b6362eab")
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 int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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
import random

def parse_ranks(completion, max_num=4, random_num=3):
    if not isinstance(completion, str):
        content = completion['choices'][0]['message']['content']
    else:
        content = completion
    pattern = '\\[([1234])(?:,\\s*([1234]))?(?:,\\s*([1234]))?(?:,\\s*([1234]))?\\]'
    matches = [tuple(filter(None, match)) for match in re.findall(pattern, content)]
    try:
        match = matches[-1]
        tops = [int(match[i]) for i in range(len(match))]

        def clip(x):
            if x < 2:
                return 2
            if x > max_num:
                return max_num
            return x
        tops = [clip(x) for x in tops]
    except:
        print('error in parsing ranks')
        print('content: ', content)
        tops = random.sample([random_num, max_num], 1)
    return tops[0]


# Test case 1: string input with valid ranks
completion_str = "The rankings are [1, 2, 3] in order."

# Test case 2: dict input with valid ranks
completion_dict = {
    'choices': [
        {
            'message': {
                'content': 'Here are the results: [2, 3, 4]'
            }
        }
    ]
}

ARGS = {
    'completion': completion_str,
    'max_num': 4,
    'random_num': 3
}
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 int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
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
parse_yes_no Ran
ran, violated the contract we drafted
xiwenchao/OMAC/code/MATH/evol_eval_math.py
code served (permissive licence) · get_code("efece58874c297b1")
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) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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

def parse_yes_no(string):
    """
    Parses a string containing "yes" or "no" and returns a boolean value.

    Args:
        string (str): The string to parse.

    Returns:
        bool: True if the string contains "yes", False if the string contains "no".

    Raises:
        ValueError: If the input string does not contain "yes" or "no".
    """
    if 'yes' in string.lower():
        return True
    elif 'no' in string.lower():
        return False
    else:
        return None


ARGS = {
    "string": "yes"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
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
solve_math_problems Ran
ran; our contract draft was wrong, not the code
xiwenchao/OMAC/code/MATH/evol_eval_math.py
code served (permissive licence) · get_code("8fce0277228f26b2")
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) 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 solve_math_problems(input_str):
    pattern = '\\d+\\.?\\d*'
    matches = re.findall(pattern, input_str)
    if matches:
        return matches[-1]
    return None

# The function takes a single parameter: input_str (a string)
# It searches for numbers (integers or floats) in the string and returns the last match
# We need to provide a string that contains at least one number

ARGS = {
    'input_str': 'The answer to problem 1 is 42 and problem 2 is 3.14159'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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
calculate_score Not yet run
unverified (harvested, no recorded run)
xiwenchao/OMAC/code/HumanEval/utils_evo.py
code served (permissive licence) · get_code("23694908a81661df")
How it ran

no invocation recorded.

construct_prerank_message Not yet run
unverified (harvested, no recorded run)
xiwenchao/OMAC/code/MATH/prompt_lib.py
code served (permissive licence) · get_code("19fbbb08c4288bbc")
How it ran

no invocation recorded.

construct_ranking_message Not yet run
unverified (harvested, no recorded run)
xiwenchao/OMAC/code/MATH/listwise_math.py
code served (permissive licence) · get_code("0280292f0bc4da2c")
How it ran

no invocation recorded.

Also present in other papers' code

Of 15 samples lifted from this paper's linked repositories, 15 carry a function identity and 0 do not. Of the 15 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 1 later) and 12 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.

FunctionAlso present inEarliest-datedOthers named
solve_math_problems 2 other papers
1 dated earlier, 1 later
2310.02170 (2023-10)
A Dynamic LLM-Powered Agent Network for Task-Oriented Agent Collaboration
2510.06307 (2025-10)
Belief-Calibrated Multi-Agent Consensus Seeking for Complex NLP Tasks
parse_bullets 1 other paper
1 dated earlier
2310.02170 (2023-10)
A Dynamic LLM-Powered Agent Network for Task-Oriented Agent Collaboration
parse_yes_no 1 other paper
1 dated earlier
2310.02170 (2023-10)
A Dynamic LLM-Powered Agent Network for Task-Oriented Agent Collaboration

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-24.

Repositories linked to this paper

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

Abstract

Agents powered by advanced large language models (LLMs) have demonstrated impressive capabilities across diverse complex applications. Recently, Multi-Agent Systems (MAS), wherein multiple agents collaborate and communicate with each other, have exhibited enhanced capabilities in complex tasks, such as high-quality code generation and arithmetic reasoning. However, the development of such systems often relies on handcrafted methods, and the literature on systematic design and optimization of LLM-based MAS remains limited. In this work, we introduce OMAC, a general framework designed for holistic optimization of LLM-based MAS. Specifically, we identify five key optimization dimensions for MAS, encompassing both agent functionality and collaboration structure. Building upon these dimensions, we first propose a general algorithm, utilizing two actors termed the Semantic Initializer and the Contrastive Comparator, to optimize any single dimension. Then, we present an algorithm for joint optimization across multiple dimensions. Extensive experiments demonstrate the superior performance of OMAC on diverse tasks against recent approaches. Codes are available at: https://github.com/xiwenchao/OMAC.

For agents

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

get_harvested_code_for_paper("2505.11765")
get_code_for_paper("2505.11765")
have("2505.11765")

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

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

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

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

Connect an agent — have() is free.