Cursor-rules
PromptBeginner5 minmarkdown
.cursorrules
.llmrules
0
- The application name is "LLM-2000"
Sign in to like and favorite skills
.llmrules
Code Style and Structure
Here are some pieces of information you need to know about this project:
Environment Variables tracked in the .env file used in compose.yml:
DD_ENV: Datadog environmentDD_VERSION: Application versionDD_SITE: Datadog siteDD_TAGS: Datadog tags to add to the agentDD_CLIENT_TOKEN: RUM client tokenNOTIF_EMAIL: Email address to send Datadog notifications toDD_APPLICATION_ID: RUM application IDDD_API_KEY: Datadog API key [sensitive]DD_APP_KEY: Datadog application key [sensitive]DD_CLIENT_TOKEN: Datadog client token [sensitive]DATADOG_SECRET_ACCESS_KEY: Datadog secret access key for Synthetics worker [sensitive]DATADOG_PUBLIC_KEY_PEM: Datadog public key for Synthetics worker [sensitive]DATADOG_PRIVATE_KEY: Datadog private key for Synthetics worker [sensitive]Default Files:
default_prompt.txt: Default system prompt for new chats
HGETALL chat:{user_id}GET prompt:{user_id}app: Main Flask application
ChatService: Core chat logic and Redis operations
/api/chat: Check chat existence and load history/api/chat: Send message and get streaming response/api/chat: Clear chat history/api/chat/welcome: Get streaming welcome message/api/prompt: Load system prompt/api/prompt: Save system promptRedis: Chat history and prompt storage
chat:{user_id} for history, prompt:{user_id} for system promptDatadog: Monitoring and tracing
ChatUI: Main UI class handling DOM interactions and visual updates
ChatManager: Core frontend logic and state management
ChatService: API communication layer
TokenBuffer: Handles streaming text buffering and display
StreamProcessor: Processes server-sent events
Main styles: flask/app/static/css/main.css
Component styles: flask/app/static/css/components.css
Modal styles: flask/app/static/css/modal.css
Variables: flask/app/static/css/variables.css