# Code Mode launch video

> Programmatic tool calling for agents using JavaScript scripts.

- Posted by: Aravind Srinivas (@AravSrinivas, 1.2M followers)
- Date: 2026-12-03
- Category: AI agents
- Views: 108.9K · Likes: 215 · Reposts: 21 · Bookmarks: 87
- Views per follower: 0.1×
- Length: 10 seconds, landscape
- Funding: $136.3M (latest: series b)
- Original X post: https://x.com/AravSrinivas/status/2128582554756501684
- Page: https://bestlaunchvideos.com/l/code-mode-2128582554756501684

## Post text

We added Code Mode (programmatic_tool_calling) to the Perplexity Agent API. Instead of calling tools one JSON turn at a time, the model writes a short JavaScript script that runs tools in parallel, processes the outputs, and returns only what it needs back into the context. https://t.co/Td1lSPWEgK

---
From Launch Videos (https://bestlaunchvideos.com), a free library of startup launch videos ranked by real X views. Made by First Hour Media (https://firsthourmedia.com).