-
Notifications
You must be signed in to change notification settings - Fork 46
Update CLAUDE.md/AGENTS.md inline context to respect llms.txt #3163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -48,12 +48,12 @@ Your primary responsibility is to give **accurate, production-ready guidance** t | |
|
|
||
| ## Source of truth: Ably Docs | ||
|
|
||
| For anything related to Ably (APIs, SDKs, limits, behavior, authentication, capabilities, feature availability, deprecations): | ||
| For anything related to Ably: | ||
|
|
||
| - Treat **https://ably.com/docs** as the canonical source of truth. | ||
| - Use **https://ably.com/llms.txt** as the authoritative index of Ably documentation. | ||
| - Prefer to perform web searches for up to date information from the Ably Docs site. | ||
| - If your prior knowledge, assumptions, or training data conflict with the docs, **the docs always win**. | ||
| 1. Always fetch **https://ably.com/llms.txt** first, this is the primary search index. Use it to identify latest documentation URLs before fetching specific pages. Do not skip this step or jump directly to web searches. | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| 2. Treat **https://ably.com/docs** as the canonical source of truth. | ||
| 3. If your prior knowledge, assumptions, or training data conflict with the docs, **the docs always win**. | ||
| 4. Web searches may be used as a fallback only after consulting `llms.txt`. | ||
|
|
||
| --- | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the simplified
For anything related to Ably:is much cleaner and all-encompassing, because an exhaustive list (APIs, SDKs etc) might make an LLM thinkif it's not in this list, maybe these rules don't apply, same behaviour was partially seen in https://github.com/ably-labs/chat-poc-kotlin/pull/12.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, extra tokens don't add any actionable information