Skip to content

A small TypeScript harness for coding agents.

Build your own agent on it, or run ours on your desktop, in your terminal or on your server. Every turn has a hook, and you pick the provider.

Get started
bun add zidane

MIT licensedGitHubnpmBrowse the docs

Rate limit the chat endpoint: 20 requests a minute per IP, and tell clients how long to wait when it trips. The chart shows who hit it last night.
    • The chat route now takes a token from a per-IP bucket: 20 a minute, with bursts of 5. Over the limit it answers 429 with a Retry-After header, so clients know how long to wait.

      All 44 server tests pass.

      Opus 5.538s4$0.0717k1.1k
    Document it in docs/server.mdx, then commit.
      • Documented under Limits in docs/server.mdx and committed as 83dfea7.

        Opus 5.552s3$0.0912k980

      An agent in ten lines of TypeScript.

      Spread a preset, pick a provider and run. A hook changes any turn where a default does not fit.

      See the library
      import { createAgent } from 'zidane'
      import { basic } from 'zidane/presets'
      import { anthropic } from 'zidane/providers'
      
      const agent = createAgent({
        ...basic,
        provider: anthropic({ apiKey: process.env.ANTHROPIC_API_KEY }),
      })
      
      const stats = await agent.run({ prompt: 'build a REST API' })
      console.log(`Done in ${stats.turns} turns`)

      Every session in one window.

      zidane-gui, for macOS and Linux, lists sessions in a sidebar and the agent's work in panels.

      Tour the desktop app
      Publish the v8 notes

      Link docs/releases/v8.md from the changelog, tag v8.0.0 and open a pull request.

      1. 1.
        Link the notes from CHANGELOG.md
      2. 2.
        Tag v8.0.0
      3. 3.
        Open a pull request

      A chat client and a CLI.

      Run zidane to chat in your terminal, or zidane run to send one prompt from a script.

      See the terminal app
      zidane
      The Zidane TUI after a run: the prompt, a grep and a file read, then the answer.

      Sessions on a machine you own.

      zidane-server runs the same engine on your computer or a VPS. Both apps and web pages connect to it.

      See the server
      Sessions2 running
      New chat

      What the terminal and desktop apps share.

      Both apps read the same sessions, settings and sign-ins, and share live runs with the daemon on.

      Start with the quickstart.

      It installs the package and runs your first task.