StackPilot: Autonomous Function Agents for Scalable and Environment-Free Code Execution

Xinkui Zhao, Yifan Zhang, Zhengyi Zhou, Yueshen Xu
8/6/2025
cs.PLcs.MA

No confident code implementation found for this paper. 4 possible matches can be shown below.

Abstract

Recent advances in large language models (LLMs) have substantially enhanced automated code generation across a wide range of programming languages. Nonetheless, verifying the correctness and executability of LLM-generated code remains a significant challenge, as traditional methods rely on language-specific compilers and environment-dependent runtimes. To overcome these limitations, we introduce StackPilot, an LLM-native, multi-agent framework designed for language-agnostic code verification and execution, which operates independently of conventional toolchains. StackPilot offers three principal innovations: (1) a Function-as-Agents paradigm, in which each function is modeled as an autonomous agent capable of fine-grained reasoning and collaborative verification; (2) an LLM-as-Executor strategy, which enables scalable verification via stack-based scheduling; and (3) a novel snapshot mechanism that preserves complete execution contexts, facilitating deterministic and lossless context switching during verification. Empirical evaluations demonstrate that StackPilot achieves framework reliability rates between 89% and 97%, substantially outperforming baseline approaches. These results indicate that StackPilot can reliably verify and execute a significantly larger proportion of LLM-generated code across diverse programming tasks compared to existing methods.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 4 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zhao2025stackpilot,
  title  = {StackPilot: Autonomous Function Agents for Scalable and Environment-Free Code Execution},
  author = {Xinkui Zhao and Yifan Zhang and Zhengyi Zhou and Yueshen Xu},
  year   = {2025},
  eprint = {2508.11665},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2508.11665v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2508.11665.svg)](https://codeofpaper.com/paper/2508.11665)

Discussion