DeesseJS
  • Enterprise
  • Pricing
DeesseJS logoDeesseJS

Software engineering as a commodity: agents that code, workflows that scale, infrastructure that works. Built with the DeesseJS ecosystem.

Ecosystem

  • Errors
  • DRPC
  • Collections
  • FP

Learn

  • Docs
  • Blog
  • Changelog
  • Knowledge Base

Use cases

  • SaaS apps
  • AI products
  • Landing pages
  • API backends
  • Internal tools

Company

  • About
  • Manifesto
  • Principles
  • Vision
  • Enterprise
  • Delivery
  • Help

Legal & Trust

  • Privacy
  • Terms
  • Cookies
  • DPA
  • Security

Community

  • Open Source Program
  • Github
  • LinkedIn
  • X

Explore

  • Customers
  • Templates
  • Ecosystem
  • Stack
© 2026 DeesseJS. All rights reserved.
  1. Knowledge Base
  2. Agents
  3. Build your first agent stack
aillmrag

Build your first agent stack

Compose an AI agent with the SDK, a tool registry, and a streaming endpoint.

The DeesseJS agent stack wires three things together: a model provider, a tool registry, and a streaming endpoint that surfaces the agent's reasoning in real time.

1. Install the SDK

pnpm add @deessejs/agents

2. Compose an agent

import { Agent } from "@deessejs/agents"

const agent = new Agent({
  model: "claude-sonnet",
  tools: [searchDocs, runQuery, deployPreview],
})

3. Stream the response

for await (const chunk of agent.stream("Deploy the staging env")) {
  process.stdout.write(chunk.text)
}

What's next

  • Use the Next.js RAG template — wire embeddings and a vector store.
  • Add observability — capture traces from the streaming endpoint.

Similar guides

  • 2026-08-05

    Use the Next.js RAG template

    From the templates registry to a streaming chat endpoint with embeddings.
    rag
    David PereiraChief Executive Officer
    1 min read

Ready to ship?

Read more, or ship with us.

Subscribe to the blog and changelog feeds, install the CLI to scaffold a project in under five minutes, or talk to our delivery team if you need a hand. Same templates, same contracts, same guarantees.

Install the CLIBrowse the registry