Quasar: A Programming Language Specialized for LLM Code Actions
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) often call external tools to solve tasks. One effective strategy is for LLMs to write code, enabling them to use complex control flow such as conditionals and loops. Such code actions are typically represented as Python code, since LLMs are proficient at writing it. However, many programming language features that would support more effective code actions are difficult to implement for Python. We propose separating internal code that captures program logic from external calls to tools that interact with the world. New features can then easily be implemented by (1) annotating external calls with the effects relevant to that feature, and (2) modifying the execution of the internal code to track this information. We develop a novel programming language, Quasar, that implements this idea. To illustrate its utility, we implement several useful features on top of Quasar to enhance code actions: access control with batched user queries to improve security, autoparallelization of external calls to reduce latency, and conformal prediction for uncertainty quantification to mitigate hallucinations.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 24 of its 39 references that are in the map. First posted on arXiv 13 Jun 2025.
Builds on
24 of 39 references.
References · 24
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,182
- 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,211
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,737
- 2024Evaluating Very Long-Term Conversational Memory of LLM Agentscited by 830
- 2023ViperGPT: Visual Inference via Python Execution for Reasoningcited by 603
- 2024Executable Code Actions Elicit Better LLM Agentscited by 564
- 2024AgentHarm: A Benchmark for Measuring Harmfulness of LLM Agentscited by 437
- 2024AppWorld: A Controllable World of Apps and People for Benchmarking Interactive Coding Agentscited by 401
- 2025Defeating Prompt Injections by Designcited by 297
12 more
- 2021Learn then Test: Calibrating Predictive Algorithms to Achieve Risk Controlcited by 271
- 2023Conformal Language Modelingcited by 170
- 2024The Emerged Security and Privacy of LLM Agent: A Survey with Case Studiescited by 131
- 2024Uncertainty Estimation and Quantification for LLMs: A Simple Supervised Approachcited by 76
- 2024From LLM to Conversational Agent: A Memory Enhanced Architecture with Fine-Tuning of Large Language Modelscited by 43
- 2021Torch.fx: Practical Program Capture and Transformation for Deep Learning in Pythoncited by 40
- 2023Measuring The Impact Of Programming Language Distributioncited by 32
- 2023TRAQ: Trustworthy Retrieval Augmented Question Answering via Conformal Predictioncited by 25
- 2024Conformal Structured Predictioncited by 10
- 2024Opportunistically Parallel Lambda Calculuscited by 5
- 2024Uncertainty Quantification for Neurosymbolic Programs via Compositional Conformal Predictioncited by 4
- 2024REDO: Execution-Free Runtime Error Detection for COding Agentscited by 2
Built on by
Citing papers per year: 2025: 2; 2026: 2.
4 papers.
- 2025Enforcing Temporal Constraints for LLM Agentscited by 34
- 2026The LLMbda Calculus: AI Agents, Conversations, and Information Flowcited by 4
- 2025Sharing State Between Prompts and Programscited by 2
- 2026Beyond Human-Readable: Rethinking Software Engineering Conventions for the Agentic Development Eracited by 0
- 2026Beyond Human-Readable: Rethinking Software Engineering Conventions for the Agentic Development Era8 Apr 2026
- 2026The LLMbda Calculus: AI Agents, Conversations, and Information Flow23 Feb 2026
- 2025Enforcing Temporal Constraints for LLM Agents25 Dec 2025
- 2025Sharing State Between Prompts and Programs16 Dec 2025