Skip to content

Set up Cursor Cloud dev environment - #1

Merged
mosesman831 merged 1 commit into
mainfrom
cursor/setup-dev-environment-daa2
Jul 11, 2026
Merged

Set up Cursor Cloud dev environment#1
mosesman831 merged 1 commit into
mainfrom
cursor/setup-dev-environment-daa2

Conversation

@mosesman831

Copy link
Copy Markdown
Owner

What this does

Sets up and verifies the Dendrite development environment for Cursor Cloud agents. No application source was modified — only environment docs and a local LLM config helper were added.

Changes

  • AGENTS.md: added a ## Cursor Cloud specific instructions section documenting durable, non-obvious caveats (build-before-run since the bin runs from dist/, better-sqlite3 native build, no-key checks, LLM requirement, the Ollama-version segfault gotcha, index-db location).
  • dendrite.config.local.yaml: a config override that points Dendrite at a local OpenAI-compatible LLM (http://127.0.0.1:11434/v1, llama3.2:3b, apiKeyEnv: NONE) so the pipeline can run fully offline without API keys.

Update script (startup)

npm install (minimal; build/test/service startup intentionally excluded).

Verification

  • npm install — deps + better-sqlite3 native build
  • npm run build
  • npm run test:ci — smoke suite (no keys)
  • node dist/cli.js doctor -c dendrite.config.local.yaml — LLM reachable
  • ✅ end-to-end dendrite ingest — classified + wrote structured Markdown notes into the vault (learnings, memories), with append-to-existing and cross-linking
  • ⚠️ npm test — 30/31 with the small local model; the single FTS search failure is a data/model-quality artifact (weak local model routing), not an env issue

Hello-world log:
hello_world_ingest.log

Full suite log:
full_test_local_llm.log

To show artifacts inline, enable in settings.

Open in Web Open in Cursor 

Co-authored-by: Moses Man <mosesman831@users.noreply.github.com>
@mosesman831
mosesman831 marked this pull request as ready for review July 11, 2026 02:57
Copilot AI review requested due to automatic review settings July 11, 2026 02:57
@mosesman831
mosesman831 merged commit 06399c1 into main Jul 11, 2026
1 check passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds Cursor Cloud-specific development environment guidance and a local config override to let Dendrite run against a local OpenAI-compatible LLM endpoint (intended to work without API keys), without changing application source code.

Changes:

  • Added dendrite.config.local.yaml for running Dendrite against a local OpenAI-compatible LLM endpoint (e.g., Ollama) with apiKeyEnv: NONE.
  • Extended AGENTS.md with Cursor Cloud-specific setup/verification caveats (build-before-run, native module build, keyless checks, and local LLM guidance).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
dendrite.config.local.yaml Adds a local/offline-friendly config override for Cursor Cloud agents.
AGENTS.md Documents Cursor Cloud-specific environment setup and verification guidance.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +12 to +16
stt:
provider: openai-audio
baseURL: http://127.0.0.1:11434/v1
model: whisper-1
apiKeyEnv: NONE
Comment thread AGENTS.md

Startup runs `npm install` automatically (the update script). Everything below is durable, non-obvious context — see `README.md` / `package.json` scripts for the standard commands.

- **Build before running anything.** The `dendrite` bin points at `dist/cli.js`, so `npm run build` (tsc) must be run before `doctor`/`ingest`/`serve`/`mcp`/`npm test`. There is no ts-runtime; rebuild after any `src/` change. Build is intentionally kept out of the update script.
Comment thread AGENTS.md
- **LLM is required for real work.** `ingest`, `serve`, `mcp` and the full `npm test` (31 checks) call an OpenAI-compatible chat endpoint. No `OPENAI_API_KEY`/`NVIDIA_API_KEY` is set by default. Two ways to get a working LLM:
1. Add `OPENAI_API_KEY` and/or `NVIDIA_API_KEY` as secrets (default `dendrite.config.yaml` uses NVIDIA primary + OpenAI fallback).
2. **Offline (no keys):** run [Ollama] serving a small model and point Dendrite at it. Use `dendrite.config.local.yaml` (already in repo) via `-c dendrite.config.local.yaml`; it targets `http://127.0.0.1:11434/v1`, model `llama3.2:3b`, `apiKeyEnv: NONE`.
- **Ollama gotcha:** the newest Ollama (0.31.x) **segfaults during model warmup on this CPU**. Install a stable older build instead: `curl -fsSL https://ollama.com/install.sh | OLLAMA_VERSION=0.6.8 sh`, then `ollama serve` (systemd isn't running, so start it manually, e.g. in tmux) and `ollama pull llama3.2:3b`. Ollama is deliberately NOT in the update script (too heavy).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants