Skip to content
Konstera
Docs · Coding agents
Konstera documentation.

Getting started, SDK quickstart, manifest reference, kernel MCP services, deploy guide and FAQ — everything you need to build and run agents on Konstera.

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.

What you'll have at the end
A Windsurf project whose Cascade agent knows the Konstera rules, and a goal → files → tests → live /invoke loop.
You need
WindsurfThe Konstera agents repoThe Preamble from Build with Claude Code
ArchitectureWhat Cascade works from, and where each piece comes from Interactive — click a block

One-time setup#

  1. 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).

  2. Clone + open
    Terminal
    git clone https://github.com/Konstera/agents
    cd agents/hello-world-python
    windsurf .
    
  3. Set up memory files

    Windsurf uses .windsurfrules for project-level context (equivalent to Cursor's .cursorrules). Create at the repo root with the preamble content from Build with Claude Code § Preamble.

  4. 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:

Flow Interactive — click a block
  1. 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.

  2. Let Cascade propose the three files
    main.py, manifest.json, Dockerfile. Review each before accepting.
  3. 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.

  4. Smoke-test the live /invoke

    Start the agent, POST a test invocation, and show me the response.

    Cascade runs python -m main in 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:

  1. Describe a change ("add retry logic to the capability call").
  2. Let Cascade edit multiple files.
  3. In the diff view, run the checklist below before accepting.
Review before you accept a diff
  • Does the agent await every ctx.* call?
  • Is await ctx.capability.available(name) used before await ctx.capability.call(name, ...) for optional capabilities?
  • Does the manifest's capabilities.needs[] match what the code calls?

Known quirks#

QuirkWhat happensWhat to do
Hallucinated vendor importsCascade 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 persistenceCascade'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.

See also#