Use this file to discover all available pages before exploring further.
Cursor is an AI-first code editor. By wiring Atlas into it, you can have Cursor remember architectural decisions, project conventions, past bugs, and team preferences across sessions — even across different projects.
Add these to your shell profile (~/.zshrc or ~/.bashrc) or a .env file in your project:
export ATLAS_API_KEY="atlas_your_key_here"export ATLAS_USER_ID="your-name" # your personal namespaceexport ATLAS_SESSION_ID="cursor-session" # optional working memory
Add .env to your .gitignore. Never commit API keys.
Go to Cursor Settings → Rules for AI and add the following rule. This teaches Cursor to consult Atlas before and after each significant response.
You have access to a long-term memory system called Atlas.BEFORE answering architectural, technical, or project-specific questions, run: python atlas_memory.py search "<summary of the question>"and include the retrieved context in your response.AFTER making an important architectural decision, design choice, or discovering a non-obvious bug fix, run: python atlas_memory.py add "<concise fact about the decision>"Facts worth storing:- Technology choices and their rationale ("We use gRPC over REST for internal services because...")- Non-obvious bug fixes ("The race condition in payment_service.py was caused by...")- Team conventions ("All API responses use snake_case, never camelCase")- Performance findings ("Redis pipeline batching reduced latency by 40% for bulk writes")- Dependency notes ("Do not upgrade langchain-core above 0.2.40 — breaks graph transformer")
# Store your first architectural decisionpython atlas_memory.py add "We use PostgreSQL as the primary database. Chose it over MySQL for better JSONB support and ACID compliance on complex transactions."# Ask a questionpython atlas_memory.py ask "Why do we use PostgreSQL?"
Now open Cursor’s chat and ask: “What database are we using and why?” — Cursor will retrieve and surface the answer from Atlas.
The best habit is to store a fact right after Cursor makes a recommendation you accept. Say: “Store this decision in Atlas” and Cursor will run atlas_memory.py add for you.
Use project-specific personas
Set ATLAS_PERSONA=<project-name> so memories from different projects stay separated, even under the same user namespace.
Search before asking
Before asking Cursor a question about an existing system, prompt it with: “Search Atlas for context on X, then answer.” This ensures it uses your stored knowledge before hallucinating.