Build with Windsurf
Windsurf's Cascade mode (agent + terminal + file tree in one view) is well- suited to Konstera's workflow — scaffold, test locally, iterate until green. This page covers Windsurf-specific setup. For the preamble content and SDK rules, see Build with Claude Code which is the single-source-of-truth across all tools.
One-time setup#
- Install Windsurf
codeium.com/windsurf. Default model is Codeium's own; switch to Claude Sonnet 4.6 or GPT-5 for better accuracy on the Konstera SDK (both available as paid upgrades).
- Clone + openTerminal
git clone https://github.com/Konstera/agents cd agents/hello-world-python windsurf . - Set up memory files
Windsurf uses
.windsurfrulesfor project-level context (equivalent to Cursor's.cursorrules). Create at the repo root with the preamble content from Build with Claude Code § Preamble. - Pin the Konstera llms-full.txt as a reference
In Cascade panel:
- Click the paperclip icon → "Add URL"
- URL:
https://konstera.ai/docs/llms-full.txt
Pinned URLs are fetched on each Cascade turn so the preamble stays live as the docs evolve.
Cascade mode workflow#
Cascade is Windsurf's agent mode — write-code-and-run-tools-in-one-loop.
Open with Ctrl/Cmd + L. The pattern that works best for Konstera agent
authoring:
- State the goal in business language (not implementation terms)
Build an agent that triages inbound support tickets by severity, drafts a reply, and parks on reviewer approval before sending.
- Let Cascade propose the three files
main.py,manifest.json,Dockerfile. Review each before accepting. - Ask it to run the tests
Install the package in editable mode and run the test suite.
Cascade runs
pip install -e . && python -m pytest. If tests fail, it iterates automatically. - Smoke-test the live /invoke
Start the agent, POST a test invocation, and show me the response.
Cascade runs
python -m mainin a background terminal, waits for the HTTP server to come up, then curls/invoke.
Pattern that works well: paired review#
Windsurf has strong multi-file diffing. Pattern:
- Describe a change ("add retry logic to the capability call").
- Let Cascade edit multiple files.
- In the diff view, run the checklist below before accepting.
- Does the agent
awaiteveryctx.*call? - Is
await ctx.capability.available(name)used beforeawait ctx.capability.call(name, ...)for optional capabilities? - Does the manifest's
capabilities.needs[]match what the code calls?
Known quirks#
| Quirk | What happens | What to do |
|---|---|---|
| Hallucinated vendor imports | Cascade sometimes writes import shopify or import stripe in a Konstera agent. The pattern is wrong — see /docs/errors. | Reject the import; prompt with: "Rewrite without any vendor SDK imports. Use ctx.capability.call() instead — see the capability catalogue." |
| Memory file size | .windsurfrules has a soft limit around 20k chars. | The Konstera preamble is ~5k; fits. |
| Terminal persistence | Cascade's terminal state resets between conversations. | If you set env vars, re-apply them in the new session or put them in a .env file that the agent reads. |