Skip to content

Shiitake

The Agent behind Fungi. Run it in your terminal with your own Claude or ChatGPT subscription, or host its durable Sessions in your own TypeScript app.

  • @fungi.computer/shiitake
  • v0.6.0
  • MIT

Fastest path

  1. Install

    Add it to your project with npm, pnpm, Yarn or Bun. Needs Node.js >=22.13.

    TERMINAL
    npm install @fungi.computer/shiitake hono
  2. Run your first Session

    The test host runs the real durable Agent with a scripted model, on Node's built-in SQLite.

    home.ts
    import { memoryHost } from "@fungi.computer/shiitake/testing";
    // A real durable Session with a scripted model: no keys, no timers.
    const host = await memoryHost({ script: ["Hello! I'm ready to work."] });
    try {
    const session = host.agent.session("first-session");
    const receipt = await session.send("Say hello.", { requestId: "prompt-1" });
    const snapshot = await host.settle("first-session");
    console.log(receipt.status, snapshot.terminals.at(-1)?.outcome);
    } finally {
    await host.close();
    }