After using Claude Code every day for 10 months, it still surprises me.
In my last Advanced Claude Code workshop, Claude Code outright refused to follow the instructions in CLAUDE.md. It happened to 2 out of 16 learners.
In my last Advanced Claude Code workshop, Claude Code outright refused to follow the instructions in CLAUDE.md. It happened to 2 out of 16 learners.
Here is the setup. CLAUDE.md can live in different subfolders, and each one applies to its own folder. To demo this, we created two subfolders: english-1 and english-2.
In english-1, the CLAUDE.md said “Always write in Singlish.”
In english-2, “Always write in UK English.”
I named the first folder english-1 on purpose, not singlish. I wanted to prove the output is shaped by CLAUDE.md, not by the folder name.
We then prompted Claude Code to:
“Write an article about AI use cases in [industry] and save in @english-1/”
It worked for most learners. But for 2 of the 16 learners, Claude Code did the opposite. It explicitly said that while CLAUDE.md asked for Singlish, the folder is named english-1, so it decided to write in proper English.
One rule I always share about CLAUDE.md: always loaded does not mean always followed, especially once the context window fills up. But this is the first time I have seen Claude Code outright refuse and explain why.
The lesson: an LLM weighs everything in its context, not just the instructions you give it. When your context is confusing, the folder name conflicting with CLAUDE.md here, you are leaving it to luck which signal Claude Code follows.
If you are building with Claude Code, writing good instructions is only half the job. The other half is removing the signals that contradict them.
#AI #ClaudeCode #VibeCoding #AIAgents #BuildInPublic
If you are a non-techie who wants to learn Claude Code from a practitioner, I run a Foundations of Claude Code workshop.
Details: https://lnkd.in/e9r8kScw
If you are already familiar with Claude Code in the Terminal, my next Advanced Claude Code workshop is on 24 Jul, 10am to 6pm. This CLAUDE.md demo is one of the things we do there. We deep dive into context engineering, skills and workflow patterns to run big and long-running tasks (a.k.a. Loop Engineering).
Details: https://lnkd.in/eR6WPQnC
Enjoyed this? Subscribe for more.
Practical insights on AI, growth, and independent learning. No spam.
More in AI Agents
冬至快乐!Happy Winter Solstice Festival!
I’m curious to see how well Meta AI can create images of Chinese cultural festivals.
What’s the most common hallucination you've seen from an LLM?
For me, it’s when you ask, “How do I do X in Y app or software?”
🚨 Hot take: “AI + senior will replace junior” is one of the most dangerous myths in business right...
Many leaders see AI as an excuse to cut junior hires. But as AWS CEO Matt Garman put it recently, that’s one of the dumbest things you can do.
From insight to action: AI is not the future—it’s the now.
At the Business+AI Forum 2024, our speakers shared groundbreaking insights on how AI is transforming industries, creating opportunities, and solving real-wor...
Not all AI projects need data scientist and AI engineers.
One of the most common mistakes business leaders make in their AI project is getting the wrong team to build.
AI Agents are not plug-and-play. 5 ways to add useful skills to your AI agents.
Most of them came thinking AI agents are plug-and-play. Set it up, and it becomes extremely helpful immediately.
冬至快乐!Happy Winter Solstice Festival!
I’m curious to see how well Meta AI can create images of Chinese cultural festivals.
From insight to action: AI is not the future—it’s the now.
At the Business+AI Forum 2024, our speakers shared groundbreaking insights on how AI is transforming industries, creating opportunities, and solving real-wor...
AI Agents are not plug-and-play. 5 ways to add useful skills to your AI agents.
Most of them came thinking AI agents are plug-and-play. Set it up, and it becomes extremely helpful immediately.
What’s the most common hallucination you've seen from an LLM?
For me, it’s when you ask, “How do I do X in Y app or software?”
🚨 Hot take: “AI + senior will replace junior” is one of the most dangerous myths in business right...
Many leaders see AI as an excuse to cut junior hires. But as AWS CEO Matt Garman put it recently, that’s one of the dumbest things you can do.
Not all AI projects need data scientist and AI engineers.
One of the most common mistakes business leaders make in their AI project is getting the wrong team to build.