---
title: "AI Code Mode - Air Market"
description: "When a model writes code you want to run, you need somewhere contained to run it. This covers executing LLM-generated TypeScript in sandboxed environments, with a choice of isolate drivers, and keepi…"
canonical: "https://airmarket.ai/app/ai-code-mode"
---

[Air Market](/) / [Developer Tools](/category/devtools) / AI Code Mode

Skill by [TanStack](/@tanstack)

# AI Code Mode

Run model-written TypeScript in a sandbox instead of trusting it loose

## What this does

When a model writes code you want to run, you need somewhere contained to run it. This covers executing LLM-generated TypeScript in sandboxed environments, with a choice of isolate drivers, and keeping snippets around between runs. Reach for it when model-written code needs to actually execute.

### Top 3 things it does for you

- Run LLM-generated TypeScript in a sandbox
- Keep a library of snippets between runs
- Show execution progress in my chat UI

## Information

**AI Code Mode at a glance**

|  |  |
| --- | --- |
| Kind | Skill |
| Publisher | [TanStack](/@tanstack) |
| Category | [Developer Tools](/category/devtools) |
| Works with | Agent Skills - an open standard supported by 40+ agents |
| Size | 19 KB |
| Licence | MIT |
| Repository | [TanStack/ai](https://github.com/TanStack/ai/tree/0fb826321c9ba7bd5d8ba0062be2a00b6178726d/packages/ai-code-mode/skills/ai-code-mode) |
| GitHub stars | 3,020 (as of Nov 2026) |

## Security report

**Verified.** AIR scanned this exact version of AI Code Mode and flagged nothing. AIR's verdict: **safe**.

**What AI Code Mode's check was run against**

|  |  |
| --- | --- |
| Commit | 0fb826321c9ba7bd5d8ba0062be2a00b6178726d |
| Content hash | f0f8e25c6b7d3508de57ad3d18e8cf06c562dae96d9962254af77220c7ce1be7 |
| Files read | [Browse the files at this exact commit](https://github.com/TanStack/ai/blob/0fb826321c9ba7bd5d8ba0062be2a00b6178726d/packages/ai-code-mode/skills/ai-code-mode/SKILL.md) |

A scan is named by the exact content it read, not by a version number. A different version is a different artifact, and nothing here applies to a version AIR has not scanned.

[Read the full security report for AI Code Mode](/security/ai-code-mode)

## About AI Code Mode

This covers running LLM-generated TypeScript in sandboxed environments through createCodeModeTool(), with a choice of isolate drivers: createNodeIsolateDriver, createQuickJSIsolateDriver, createQuickJSBunIsolateDriver, and createCloudflareIsolateDriver.

codeModeWithSnippets() handles persistent snippet libraries, with storage options including FileSystem, LocalStorage, InMemory, and Mongo. Trust strategies are part of the picture too.

On the client side, execution progress arrives as code_mode:* custom events in useChat.

## What's inside

- SKILL.md - instructions

## Questions

### Is AI Code Mode safe to install?

AIR scanned this exact version of AI Code Mode and flagged nothing. AIR's verdict: safe. The verdict is named by the content that was read, at commit 0fb826321c9b, so it cannot drift onto a version nobody scanned. The full report is at https://airmarket.ai/security/ai-code-mode.

### How do I install AI Code Mode?

Open https://airmarket.ai/app/ai-code-mode on Air Market and use the install action: Air Market hands Claude a prompt naming this exact skill, and Claude sets it up. Source, pinned to the exact commit this listing describes: https://github.com/TanStack/ai/tree/0fb826321c9ba7bd5d8ba0062be2a00b6178726d/packages/ai-code-mode/skills/ai-code-mode. Install from that link, not the branch.

## Related on Air Market

- [More Developer Tools listings](/category/devtools)
- [Everything by TanStack](/@tanstack)

---

Canonical URL: <https://airmarket.ai/app/ai-code-mode>
