Code & Terminal
Run TypeScript or JavaScript calculations, execute shell commands, and automate tasks on your device.
Run code without leaving the conversation
Chalie can execute TypeScript or JavaScript for calculations, data analysis, and logic — and run shell commands to interact with your system. Ask Chalie to compute something, automate a task, or run a one-off command and it does it right in the conversation.

Getting started:
- “Calculate the compound interest on $10,000 at 5% over 10 years.”
- “List the 10 largest files in my Downloads folder.”
- “Write and run a TypeScript snippet that counts the words in this text.”
JavaScript and TypeScript calculations
For maths, statistics, data processing, and logic, Chalie runs TypeScript or JavaScript in a sandboxed Deno runtime:
- “What’s the standard deviation of these numbers: 12, 15, 18, 22, 30?”
- “Convert 72°F to Celsius and tell me if it’s comfortable.”
- “I have a list of prices — calculate the average, min, max, and total.”
- “Write JavaScript to parse this JSON and tell me how many entries have a ‘status’ of ‘active’.”
The sandbox has zero permissions — no file system, no network, no subprocess — so it is limited to pure computation and the standard built-in globals (Math, JSON, Array, Map, Set, etc.). Use console.log to emit results. For file or network operations, use shell commands instead.
Shell commands
For tasks that need to interact with your system, Chalie can run shell commands:
- “List all running processes sorted by CPU usage.”
- “How much disk space is left on my machine?”
- “Find all files modified in the last 24 hours in ~/Documents/.”
- “Check if port 8080 is in use.”
- “Run my build script at ~/project/build.sh.”
Commands run in your home directory. Chalie classifies each command by risk (read-only, file modification, installation, remote access) and applies your configured policies. Secrets and credentials are filtered from the environment before execution.
Commands have a default timeout of 30 seconds, extendable to 5 minutes for longer-running tasks.
Combining code and conversation
The real power is combining computation with conversation:
- “Here are my sales figures for the month — calculate the growth rate and tell me if we’re on track for the quarter.”
- “Run the test suite and tell me which tests failed.”
- “Parse this CSV and give me a summary of the data.”
Policies
Shell command capabilities are governed by your configured policies. You can set which categories of command (file modification, installation, remote connections, etc.) require confirmation or are blocked entirely. See the Policies guide for details.