Users can contribute context data as markdown files via GitHub pull requests.
Rationale | Use Cases | Contributing | Interface
- LLMs are trained with huge datasets, constrained by a training cut off date
- Providing more precise context about a project, libraries used, available tools and frameworks improves model performance
- IDEs like Cursor are starting develop their own indexing system but this makes it hard to share what’s working
- Serve as an open-source “deterministic checkpoint” that can be used for evals
Generally this exists to share context windows and prompts, see what works for others and learn from it.
Specifically for coding use cases:
- Help LLMs work more efficiently in a specific framework
- Define coding style, conventions and formatting
- Provide library documentation in a format suited for LLMs
See CONTRIBUTING.md
ctxs.ai
serves as a public endpoint for the content of this repo.
The URL structure is as follows:
/gh/{username}/{context}
for HTML representations/gh/{username}/{context}.txt
for plaintext/r/gh/{username}/{context}.json
for shadcn-style registry/r/index.json
contains all available contexts
npx ctxs add
will allow you to add a selection of context windows to your project.
On the website you will also be able to copy ctxs
commands that add files to your project. By default files will be written to ctxs/
in your current directory. Some files will be written to a designated path (e.g. Cursor rules, example).
npx ctxs add "https://ctxs.ai/r/gh/danhollick/tailwind-css-v4.json"
For any context on the site you can append .txt
to the URL to get a plaintext version of the context. This URL can be used with LLMs as a token-efficient way of providing context.
curl https://ctxs.ai/gh/martinklepsch/babashka.txt
Note that currently there is no versioning and context may change. For regular, unsupervised use it is recommended to download contexts in order to preempt prompt injection.
- Jim Lowin The Qualified Self
- llms.txt and llmstxt.directory
- PatrickJS' awesome-cursorrules
- Daniel Rosehill Prompt Library (read the README, it's great)
shadcn
CLI experience
🌟 Star the repo and contribute! 🌟
Browse via ctxs.ai