continuum-cursor
Skill84 starsChanged 6 months agoApache-2.0View on GitHub
Set up Cursor for a Continuum project — .cursor/rules/ MDC file, glob patterns, and what to include so Cursor generates correct Continuum code. Invoke when the user asks "set up Cursor for my project", "Cursor rules for Continuum", ".cursor/rules", or "MDC file for Continuum".
- Reads credentials
In this repository49 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/commands/monitoring/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/continuum.mdcCursor rule
- AgentDB Advanced FeaturesSkill
- AgentDB Learning PluginsSkill
- AgentDB Memory PatternsSkill
- AgentDB Performance OptimizationSkill
- AgentDB Vector SearchSkill
- browserSkill
- continuum-agentSkill
- continuum-claude-codeSkill
- continuum-codexSkill
- continuum-evaluationSkill
- continuum-handoffsSkill
- continuum-llm-providersSkill
- continuum-memorySkill
- continuum-observabilitySkill
- continuum-quickstartSkill
- continuum-recipesSkill
- continuum-streamingSkill
- continuum-temporalSkill
- continuum-testingSkill
- continuum-tools-mcpSkill
- continuum-workflowsSkill
- github-code-reviewSkill
- github-multi-repoSkill
- github-project-managementSkill
- github-release-managementSkill
- github-workflow-automationSkill
- Hooks AutomationSkill
- Pair ProgrammingSkill
- ReasoningBank with AgentDBSkill
- ReasoningBank IntelligenceSkill
- Skill BuilderSkill
- sparc-methodologySkill
- stream-chainSkill
- swarm-advancedSkill
- Swarm OrchestrationSkill
- V3 CLI ModernizationSkill
- V3 Core ImplementationSkill
- V3 DDD ArchitectureSkill
- V3 Deep IntegrationSkill
- V3 MCP OptimizationSkill
- V3 Memory UnificationSkill
- V3 Performance OptimizationSkill
- V3 Security OverhaulSkill
- V3 Swarm CoordinationSkill
- Verification & Quality AssuranceSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 80
Use alwaysApply: true for framework-level rules that apply regardless of which file is open.
- Very specific: line 101
Don't put the full Continuum API reference inline — reference AGENTS.md or docs instead.
- Very specific: line 102
Don't use alwaysApply: true for files with large content — it inflates every request's context.
- Distinctive: line 103
Don't duplicate rules across files — Cursor merges all matching MDC files per request.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Continuum + Cursor Skill
Cursor reads .cursor/rules/*.mdc files. The Continuum repo ships
.cursor/rules/continuum.mdc — copy it into any downstream project.
Minimal MDC file for a Continuum project
Create .cursor/rules/continuum.mdc:
---
description: Continuum agent framework conventions for this project
globs: ["src/**/*.py", "tests/**/*.py", "playground/**/*.py"]
alwaysApply: true
---
# Continuum Project Rules
This project uses **Continuum** (import: `continuum`, package: `shyftlabs-continuum`).
## Setup invariants
- Python 3.13. Venv: `python3.13 -m venv .venv`
- All public APIs are **async**. Entrypoints: `asyncio.run(main())`
- Always `load_dotenv()` before importing continuum settings
- `OPENAI_API_KEY` required even when using Anthropic/Gemini (mem0 embedder)
- Infra via docker compose: Redis :6380, Milvus :19530 (or Qdrant :6333)
## Core imports
\`\`\`python
from continuum.agent import BaseAgent, AgentRunner
from continuum.agent.config import AgentConfig, AgentMemoryConfig, RunnerConfig
from continuum.agent.types import Handoff, MemoryScope, RunContext, EventType
from continuum.llm import LLMClient, LLMConfig
from continuum.memory import MemoryClient
from continuum.session import SessionClient
\`\`\`
## Provider routing
Model string prefix determines provider (when gateway is not set):
- `gpt-*`, `openai/*` → OpenAI SDK
- `claude-*`, `anthropic/*` → Anthropic SDK
- `gemini/*`, `google/*` → Gemini via OpenAI-compat
When `SMART_GATEWAY_URL` is set, all models route through GatewayProvider automatically.
Use `gateway_mode="strict"|"modest"|"quality"` on BaseAgent to control routing tier.
## Critical don'ts
- No `litellm` — removed entirely
- No `response_format` on Anthropic — instruct via system prompt and parse manually
- No JSON mode + tools on Gemini simultaneously — pick one
- MemoryScope enum: `from continuum.agent.types import MemoryScope` (not from `continuum.memory`)
- SessionClient.add_message takes `ChatMessage(...)` not `role=` kwargsGlob patterns
Match these globs to ensure rules apply to all relevant files:
globs:
- "src/**/*.py" # application source
- "tests/**/*.py" # tests
- "playground/**/*.py" # playground scripts
- "*.py" # root-level scriptsUse alwaysApply: true for framework-level rules that apply regardless
of which file is open.
Multiple rule files (recommended)
Split into focused files for large projects:
.cursor/rules/
├── continuum.mdc # framework API — alwaysApply: true
├── agents.mdc # project-specific agent descriptions
├── testing.mdc # test conventions — globs: tests/**
└── api.mdc # FastAPI/endpoint conventionsDon't
- Don't put the full Continuum API reference inline — reference
AGENTS.mdor docs instead. - Don't use
alwaysApply: truefor files with large content — it inflates every request's context. - Don't duplicate rules across files — Cursor merges all matching MDC files per request.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

