Claude Code and coding AI tools not working well
Docs feedback
I'm vibing with Claude Code. It's constantly screwing up Base UI. I want to use Base for Accessibility features, and have been struggling to get Claude code to work well with this library. Would be nice to have a link for Doc, or Components so I can easily paste a link to the correct docs. Also, it keeps screwing up the import references "base-ui" instead of base-ui-components. Maybe if there was a specific page to show basic usage, perhaps in a context-friendly page? The struggle is real on this and I have not had these issues with other libraries such as Chakra or Shadcn.
Would be nice to have a link for Doc, or Components so I can easily paste a link to the correct docs Maybe if there was a specific page to show basic usage, perhaps in a context-friendly page?
Our component docs and demos are at: https://base-ui.com/react/components/popover
According to https://github.com/anthropics/claude-code/issues/600#issuecomment-2918186508, Claude Code can perform web searches
Can you share a reproduction and more details about the issues you're having? @a2liquidwms
When https://github.com/mui/base-ui/pull/1738 lands, the experience should be better (cc @Janpot).
Since the issue is missing key information and has been inactive for 7 days, it has been automatically closed. If you wish to see the issue reopened, please provide the missing information.
As #1738 was merged, starting with the next release, LLMs will have easier access to our documentation. I'm closing the issue for now, but feel free to comment or create a new one if the experience is still not satisfactory.
It feels like we should keep this open, and close it once we have a guide in the docs equivalent to https://tailwindcss.com/docs/editor-setup.
cc @colmtuite
the context7 mcp is able to retrieve token optimized documentation of many major libraries into claude code https://github.com/upstash/context7.
the context7 mcp is able to retrieve token optimized documentation of many major libraries into claude code
Base UI is configured with a llms.txt, proof: https://context7.com/?q=Base+UI. But they says that GitHub source work better, proof: https://context7.com/add-library?tab=llmstxt
Best Practices Prefer GitHub documentation repositories as they work best with Context7; use llms.txt for libraries without open documentation repo.
I wonder what works best. I thought we were doing https://github.com/mui/mui-public/issues/423 because llms.txt are supposed to work better.
Side note, I have asked to fix "MUI Base UI" it should be "MUI Base".
Also opening https://github.com/mui/mui-public/issues/555
The current state of the built-in knowledge of LLM models about Base UI: https://gist.github.com/oliviertassinari/0e76fd9f10611b940ffd319c4ea045d1.
Now https://www.reddit.com/r/LocalLLaMA/comments/1nu6dmo/comment/ngyvv90/ is probably right. Does it matter, add an MCP, and problem solved?
A side note on llms.txt, those files are not too far from useless today. More details in: https://github.com/mui/mui-public/issues/724#issuecomment-3325141239.
A side note on llms.txt, those files are not too far from useless today.
I initially read this as "llms.txt" files are useless, but I assume you specifically mean "our llms.txt files", right? Where do you think we need to concentrate to improve on them?
My take on it would be that they lack substance. i.e. we generate them from our human docs, and there is literally no substance to the component docs beyond:
- a short sentence like "A set of collapsible panels with headings.", which leaves a lot to the imagination
- one styled example in two different styling solutions
- one snippet outlining the correct hierarchy of the subcomponents
- property tables with short descriptions for each sub component
Quite frankly, I think even for humans these docs lack substance. I personally struggle heavily with them. I feel like the next thing to do in order to improve llms.txt is improve the content of the docs:
- Improve the initial paragraphs. Explain which use-cases the component solves, and perhaps even which ones it isn't meant for. Clearly explain the scope, which a11y concerns does it handles for you.
- Forget about adding examples for more styling solutions. Instead add more use-cases. Different compositions of the subcomponents, different layouts, integrations with other libraries, integration with other base UI components...
One idea that could complement this is to explicitly separate reference docs from usage-oriented content.
For example, each component page could have:
-
A default Reference / API view (roughly what we have today: props, slots, hierarchy, minimal example)
-
A second Guides tab (or a separate Guides section) focused on:
- Common use-cases the component solves
- Compositions and layout patterns
- Integration with other Base UI components
- Integration with external libraries
- Edge cases and advanced behaviors
This would let the core docs stay concise while giving us a structured place to add depth where it matters.
Concept by Nano Banana
So, we have a winning solution here, https://vercel.com/blog/agents-md-outperforms-skills-in-our-agent-evals; no?
This looks like an issue that can be opened indefinitely. If there are still specific problems with how AI agents use Base UI, feel free to open new issues.