# Qwen Code: You are running Qwen Code in the root directory

> Qwen Code was started from `/`, so it would read the whole filesystem as context. The exact message, why Qwen Code prints it, and the fix.

_Updated November 23, 2026 · Checked against Qwen Code 0.24.6, reproduced in EnvHaven 1.9.0_

## The message

```text
Warning: You are running Qwen Code in the root directory. Your entire folder structure will be used for context. It is strongly recommended to run in a project-specific directory.
```

## What it means

Qwen Code was started from `/`, so it would read the whole filesystem as context.

## Fix

1. `cd` into your project folder and start `qwen` there.

## In an EnvHaven workspace

Only if started from `/`; workspace terminals open in `/config/workspace`.

## Where this comes from

This message was produced by Qwen Code (Qwen Code 0.24.6) itself, in a throwaway EnvHaven 1.9.0 container, on 2026-11-23; the text above is copied from that output.

## Keep reading

- [Qwen Code](https://envhaven.com/agents/qwen-code)
- [Is Qwen Code down?](https://envhaven.com/status/qwen-code)
- [Every agent error](https://envhaven.com/errors)

Source: https://envhaven.com/errors/qwen-code/running-in-the-root-directory
