---
title: "Run long tasks in the background with Claude Code | Ian Nuttall"
description: "Run long tasks in the background with Claude Code"
canonical: "https://ian.is/post/claude-background-tasks"
language: "en"
---

# Run long tasks in the background with Claude Code

Jun 2025 / 134,152 views / [via X](https://x.com/iannuttall/status/1937985342378021275)

Claude Code pro tip:

add this line to your .zshrc or .bashrc (ask CC to do it for you) and you can move long running tasks to the background to keep chatting

```
export ENABLE_BACKGROUND_TASKS=1
```

![Image from the original X post](https://ian.is/media/tweets/1937985342378021275/1937985342378021275/7427b84e12423d0e2bdebba2b800b30a8a2738ccf03c0394db00aba720ed0ee7.jpg)

Found this via @ryoppippi but props to @SIGKITTEN who was first to discover it

## Ian's List

Join 15k\+ subscribers
