Skip to content
Skills Library
AI & agents · Building & coding

pikku-agent

/pikku-agent

Building AI agents, chatbots and LLM assistants with Pikku: pikkuAgent, ref() tools, memory, streaming, tool approval, thread ownership, rpc.agent, VercelAgentRunner and its provider map, voiceInput/voiceOutput. TRIGGER when: code uses pikkuAgent/rpc.agent/runAgent/streamAgent/VercelAgentRunner/voiceInput, or the user asks about agents, tool-calling, agent memory, model providers, speech in/out or `pikku enable agent`. DO NOT TRIGGER for MCP exposure (use pikku-wiring), workflows (use pikku-workflow), React agent hooks (use pikku-react) or general functions (use pikku-concepts).

Repository
pikku ↗
Licence
MIT
Last repository change
26.10.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
4
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 26.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Building AI agents, chatbots and LLM assistants with Pikku: pikkuAgent, ref() tools, memory, streaming, tool approval, thread ownership, rpc.agent, VercelAgentRunner and its provider map, voiceInput/voiceOutput. TRIGGER when: code uses pikkuAgent/rpc.agent/runAgent/streamAgent/VercelAgentRunner/voiceInput, or the user asks about agents, tool-calling, agent memory, model providers, speech in/out or `pikku enable agent`. DO NOT TRIGGER for MCP exposure (use pikku-wiring), workflows (use pikku-workflow), React agent hooks (use pikku-react) or general functions (use pikku-concepts).

Original author description

Building AI agents, chatbots and LLM assistants with Pikku: pikkuAgent, ref() tools, memory, streaming, tool approval, thread ownership, rpc.agent, VercelAgentRunner and its provider map, voiceInput/voiceOutput. TRIGGER when: code uses pikkuAgent/rpc.agent/runAgent/streamAgent/VercelAgentRunner/voiceInput, or the user asks about agents, tool-calling, agent memory, model providers, speech in/out or `pikku enable agent`. DO NOT TRIGGER for MCP exposure (use pikku-wiring), workflows (use pikku-workflow), React agent hooks (use pikku-react) or general functions (use pikku-concepts).

How it works

  1. Pick the reference
  2. An agent is a function that reaches other functions
  3. The knobs that do not mean what they look like
  4. What NOT to do
Original SKILL.md headings · 67 lines, 592 words
SKILL.md preview
---
name: pikku-agent
description: >-
  Building AI agents, chatbots and LLM assistants with Pikku: pikkuAgent, ref() tools, memory,
  streaming, tool approval, thread ownership, rpc.agent, VercelAgentRunner and its provider map,
  voiceInput/voiceOutput. TRIGGER when: code uses
  pikkuAgent/rpc.agent/runAgent/streamAgent/VercelAgentRunner/voiceInput, or the user asks about
  agents, tool-calling, agent memory, model providers, speech in/out or `pikku enable agent`. DO NOT
  TRIGGER for MCP exposure (use pikku-wiring), workflows (use pikku-workflow), React agent hooks
  (use pikku-react) or general functions (use pikku-concepts).
installGroups: [core]
---

# Pikku AI Agents

Signatures and option keys come from `pikku doc` — run `pikku doc --ai` for the
installed surface. This skill is the part the compiler cannot tell you: how an
agent reaches the rest of the app, and which of its knobs mean something other
than what they look like.

## Pick the reference

| You are…                                                                            | Read                          |
| ----------------------------------------------------------------------------------- | ----------------------------- |
| Defining or invoking an agent — tools, memory, streaming, approval, threads, images | `references/agents.md`        |
| Wiring the runner, or pointing model strings at a provider or gateway               | `references/runner-vercel.md` |
| Adding speech in or out of an agent                                                 | `references/voice.md`         |

## An agent is a function that reaches other functions

Tools, sub-agents and workflows are all supplied as `ref('domain:funcName')`
handles rather than imported values. The inspector resolves each ref against the
generated function map, which is what lets an agent call into another package or
a `graph:*` builtin without an import cycle — and what lets the tool menu be
filtered per session before the model ever sees it.

Invoke through `wire.rpc.agent` from inside a Pikku function; it carries the
session, the credentials and the RPC depth for you.

## The knobs that do not mean what they look like

- **`goal` is the prompt field, and it is required.** There is no `instructions`
  key. `role`, `personality` and `goal` are concatenated in that order and
  nothing validates which text lands where, so the split buys legibility only.
- **`output` is honoured only when the agent has no tools.** A structured-output
  schema on a tool-calling agent is silently inert. The pairing that wants it is
  reading an image or a document into typed data — one tool-free agent, an
  `output` schema, and the picture passed as an `attachments` entry.
- **An `output` the model returns is validated.** The run fails with
  `AgentOutputValidationError` (502, `issues` lists what did not match) rather
  than handing back a malformed object; there is no retry. A `null` the model
  sends for an optional field comes back absent, so `.optional()` holds.
- **`auth` defaults to `false`**, because agents are normally invoked from an
  already-authenticated `pikkuFunc`. `scopes` and `permissions` are enforced
  either way — see `pikku-permissions`.
- **`approvalRequired` sits on the tool function, not on the agent.** The run
  then resolves `status: 'suspended'` with `pendingApprovals`; answer with
  `rpc.agent.approve(runId, approvals)`.
- **Model strings split on the first slash only** — `provider/model`, so
  `'ollama/qwen2.5:7b'` is fine and a string with no slash throws rather than
  defaulting to a provider.

## What NOT to do

- **Do not trust a caller-supplied `resourceId` as an owner.** It never is: the
  session's principal (`userId`, or `orgId` under `sessionScope: 'org'`) is
  prefixed onto it, so a client sub-partitions inside its own boundary and cannot
  read across one. A sessionless run gets an ephemeral anonymous owner.
- **Do not rely on the tool menu alone for authorization.** It is two-layer — the
  session decides which tools an agent can see, and the function's own
  `permissions` still guard the call when the model picks one.
- **Do not point the `'*'` provider at a single vendor.** It resolves every
  provider name with no exact entry, so aimed at one vendor an `anthropic/…`
  string silently reaches OpenAI. Point it at a gateway or a scripted test
  provider — something that genuinely accepts arbitrary model names.
- **Do not add `@pikku/ai-voice` as a dependency.** It still publishes but its
  entire source is `export {}`. Voice is two middlewares in `@pikku/core/agent`,
  with the speech models reached through the `agentRunner`.
Files in this package (4)
  • SKILL.md 5 KB
  • references/agents.md 13 KB
  • references/runner-vercel.md 4 KB
  • references/voice.md 6 KB

Versions

The database has no other skills named pikku-agent.

Database snapshot: 13.11.2026 · package version 008180e5835c (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100pikku-react
    React frontend talking to a Pikku backend: PikkuProvider/createPikku, generated React Query hooks (usePikkuQuery, usePikkuMutation, usePikkuInfiniteQuery), usePikkuRPC/usePikkuFetch, realtime subscriptions, agent and workflow hooks. TRIGGER when: writing a React component that…
  • 100pikku-concepts
    Use FIRST, and whenever you are about to write or change Pikku code: core mental model, function types, project structure, code generation, testing, and reading `pikku doc` (the installed API surface, which also indexes which skill teaches each area). TRIGGER when: starting any…
  • 100langchain
    Framework for building LLM-powered applications with agents, chains, and RAG. Supports multiple providers (OpenAI, Anthropic, Google), ReAct agents, tool calling, memory management, and vector store retrieval. Use for building chatbots, question-answering systems, autonomous…
  • 100agent-engineering-expert
    Build LLM agents that use tools safely: tool design, the agent loop, memory, MCP servers, multi-agent orchestration, sandboxing and prompt-injection defence. Use when the user mentions AI agents, tool use or function calling, MCP or Model Context Protocol, autonomous workflows,…
  • 95zig-agents
    Patterns and best practices for building AI agents in Zig. Covers tool systems, context management, LLM providers, streaming responses, and session persistence. Use when implementing agent functionality.
  • 95ai-agents-and-tools
    In an aidd repository, use when code touches agents, tool calling, MCP servers, A2A, agent memory, autonomous actions, tool permissions, or prompt injection.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.