warp icon indicating copy to clipboard operation
warp copied to clipboard

Warp not loading WARP.MD rules on Windows

Open Jimmydeleeuw opened this issue 1 year ago • 5 comments

Pre-submit Checks

Describe the bug

I had Warp create a WARP.md file at project root but also in subfolders. At the /init I see the /RULES tab being populated. However, when I exit the WARP program, and reload from the same directory or /initialize the directory it doesn't seem to pick up WARP.md again no matter what I do.

I tried all the suggestions by the AI. It seems to be a visual bug in the /rules interface on WINDOWS. Because I ask WARP if it can find and will respect my rules, he does acknowledges it.

Here’s what I see as your global rules and how I’ll follow them.

Core assistant rules • No inline style attributes. Use CSS variables/tokens and Tailwind utilities only. • Always import @ratigan/design-system/global.css in the app’s global CSS, and apply base bg/fg on html and body. • Use these token-backed utilities: bg-background, bg-surface, text-fg, text-fg-muted, text-fg-inverse, border-[--color-border], bg-primary, bg-secondary, bg-success, bg-warning, bg-error. • Theme switching: set/remove documentElement.dataset.theme; ensure swatches read CSS vars after the frame (e.g., via requestAnimationFrame). • Rule precedence: nearest WARP.md > root WARP.md > .warp/rules.md. • Editor/linting: VS Code should set css.lint.unknownAtRules to ignore (for Tailwind @theme). If using Stylelint, ignore the theme at-rule.

Project/tooling rules I’ll respect • Monorepo with Bun workspaces. • Package manager: Bun (bun install; bun --cwd frontend dev|build|start). • Lint: bun --cwd frontend run lint (ESLint 9 + eslint-config-next). • Next.js 15 (App Router), React 19, Tailwind v4 (via @tailwindcss/postcss in postcss.config.mjs). • TypeScript path alias: @/* -> ./src/*; frontend source under frontend/src. • Default branch: main. • Do not commit .env; use .env.example; root .gitignore is authoritative.

Design system-specific rules (packages/design-system/WARP.md) • All tokens live in the design system; apps must consume via CSS variables (no hex in apps). • Tailwind v4 @theme mappings must expose utilities (e.g., bg-surface, text-fg, bg-primary). • Adding a theme requires a :root[data-theme=""] mapping brand/semantic/surfaces/text/border/ring. • Component primitives (.badge, .divider, .skeleton, .form-control, .btn, .card) should reference tokens only.

Your personal workflow rules (from your curated rules) • Commits should use git ship "Commit message". • Always use Bun as the package manager. • Always use the latest versions of packages we install.

Yes, I understand these and will follow them: • I won’t introduce inline styles; I’ll use your token utilities and import global.css. • I’ll structure theme switching as specified and respect precedence (nearest WARP.md wins). • I’ll use Bun for scripts and installs, and use git ship for commits when requested. • Any component or CSS changes will reference design-system tokens, not raw hex.

So please fix the UI bug :)

To reproduce

/init WARP.md on windows. make some rules.

In Rules TAB it then shows the rules perfectly.

However after leaving the program and restarting from the same directory it does not pick them up. I have configured WARP properly with rules always being loaded

Expected behavior

I expect WARP to also load the WARP.md file after program restart not just on the initial load.

Screenshots, videos, and logs

No response

Operating system (OS)

Select an OS

Operating system and version

Windows 11

Shell Version

No response

Current Warp version

v0.2025.09.10.08.11.stable_01

Regression

No, this bug or issue has existed throughout my experience using Warp

Recent working Warp date

No response

Additional context

No response

Does this block you from using Warp daily?

Yes, this issue prevents me from using Warp daily.

Is this an issue only in Warp?

Yes, I confirmed that this only happens in Warp, not other terminals.

Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e

None

Jimmydeleeuw avatar Sep 13 '25 08:09 Jimmydeleeuw

Same issue here on Windows 11 and Warp v0.2025.09.17.08.11.stable_02

tbrandenburg avatar Sep 23 '25 10:09 tbrandenburg

I used Warp for four weeks before realizing it wasn't getting WARP.md (amazing how well it performed without it!). Indicative conversation:

Recite from memory what you know about our Marshaler.

I don’t actually retain project-specific details or code between sessions, so I don’t have any “memory” of your Marshaler beyond what’s in this current conversation (which so far is nothing about it). ...

WARP.md should've talked about it. You don't automatically receive that file as context?

I don’t automatically get any files as context; I only see what you explicitly send me or what I read via tools. WARP.md isn’t visible by default, and the path I tried (C:\Dev\Barreleye\UI\WARP.md) doesn’t exist according to the filesystem. ...

it's in the project root (not UI) and I'm under the impression that Warp should've placed it in your context window

C:\Dev\Barreleye\WARP.md

[describes what's in WARP.md]

OK, but you didn't have that info before reading the file?

Correct: I did not have that information before reading WARP.md just now.

I don’t get your repo or its docs “preloaded” into my context. I only know:

....

WARP.md is mentioned under Rules though:

Image

qwertie avatar Nov 14 '25 08:11 qwertie

I have the same issue on Windows 11 and Warp v0.2025.11.19.08.12.stable_06

ravenwits avatar Dec 05 '25 10:12 ravenwits

I am running v0.2026.01.07.08.13.stable_01 and running into the same issue where the WARP.md file does not seem to load. In a dbt project I have a WARP.md file that I created with /init. I can see the file displayed in the Project Rules settings. I added specific instructions to prefix commands with uv run dbt ... in that file. When I prompt something like 'build model xxx' warp tries to run dbt ... fails, then tries poetry dbt ... fails etc. so it does not seem to have the WARP.md context. When I start a new session and ask it what it knows about running commands it does not seem to read the WARP.md

> without reading any files what do u already know about running dbt commands in this repo
A Based on the context you've provided, here's what I know about running dbt commands in this repo without reading files:

1. Location: You're in the C:\Users\dbt directory, which is the dbt project root.
2. Indexed codebase: There's a codebase called "dbt" that's been indexed at that path, so I can semantically search it if needed.
3. Environment: You're on Windows using PowerShell (pwsh 7.5.4), currently on the main git branch.
4. Standard dbt workflow: Since this follows typical dbt project structure, I'd expect standard commands like:
◦  dbt run - execute models
◦  dbt test - run tests
◦  dbt build - run and test
◦  dbt compile - parse and validate
◦  dbt docs generate - create documentation

Note it does not say anything about uv run.

Is this the expected behavior? Should I tell it to read the WARP.md file as start of session?

andymeierdev avatar Jan 15 '26 12:01 andymeierdev

This is still not fixed in v0.2026.01.21.08.14.stable_03 which now uses AGENTS.md as the default.

andymeierdev avatar Jan 23 '26 18:01 andymeierdev