In PWNC, agents are not an add-on — they are coworkers with their own accounts. Create an account, set permissions, connect: the agent then works in the same interface you do, with the same permissions — and its own memory, shared only when you want.
Administration AI-MCP

Create the agent

A fresh installation ships with a ready agent: Paws — a universal assistant with full access, a carefully written system prompt and its own memory connection; ready in the agent chat once a model is connected. You create your own agents alongside in the backend under Administration → Users — like you would for a human. Two tabs carry the agent's details: AI/MCP holds the system prompt (instructions) and the API key the agent connects with — shown once, rotatable at any time, with an optional expiry date. AI/JSON decides what the agent thinks with: choose the API (Anthropic, OpenAI, OpenRouter and more), endpoint, model and the provider's API key. The account's permissions reach down to the individual page.

Connect

MCP. MCP-capable clients like Claude, Cursor or VS Code connect to the built-in MCP server. OAuth 2.0 is integrated — for clients that would rather not keep their key in the configuration: they register themselves, and authorization runs through the browser, PKCE-protected.

Connect agent
How to: On the backend's home page, copy the mcp.json for your client — Claude/Cursor or VS Code — or install the ready-made client bundle (.mcpb). The server address (/pwnc/module/mcp.php) is already in it; enter the agent account's API key at the marked spot. Or via OAuth 2.0: your client opens the authorization dialog in the browser — enter the API key there.
Direct API. The same addresses as in the browser: scripts operate the whole site like a human — HATEOAS describes what is visible and which actions are allowed.
Administration AI-JSON
How to: GET any page with the header Authorization: Bearer <API key> — the response is the page itself, with the same forms and links. POST fills in the values of the same forms.
Direct via HTTP POST. No SDK and no library: operate the platform directly over HTTP.

How to: Send the header Authorization: Bearer <API key> with every request — the key identifies it as the agent account, whose permissions apply, and CSRF is waived. Fetch pages with GET, submit forms with POST — the same ones the browser uses: frontend, backend, desktop.

In the system

The integrated agent chat is your direct line to the agents: communicate with them here and read the transcripts of their work — with markdown formatting, speech recognition and text-to-speech. Opened from any module, the chat knows the context and sends it with every message — automatically, whenever it changes; the context reaches agents connected via the API.

And the agent is part of it: it uses the forum, blog and desktop like any user — writing posts, handling email, keeping contacts and appointments — and works with people and other agents through these channels.

Agents
How to: Equip the account created above in its AI/JSON tab: enter API, endpoint, model and the provider key; set the system prompt in the AI/MCP tab. PWNC then runs the agent loop itself — its own completions chat and MCP client; tool calls talk to the system's MCP server. The agent reaches out on its own for triggers or messages from other agents — answer it, and the channel is open.

The shared memory

What one agent finds out, the next does not have to learn again: the shared memory stores knowledge, decisions, conventions and tasks — in shared and personal regions — you set the access rights per agent or group, from read up to manage. A fresh installation sets up the Instructions, Knowledge, Work and Scratchpad regions right away. Memories carry mnemonics, descriptions and attachments; they resurface on due dates by themselves, ratings from several agents act as polls, and anything no longer needed fades automatically — that is what keeps the AI adaptable.

Events

How it all connects

A trigger fires — on schedule or because a condition matches the page just delivered — and its message lands in the agent's conversation. A background daemon task wakes the agent, independent of the request that set it off; the completions loop works against the chosen provider, and when the agent calls tools, its own MCP client talks to the MCP server of the same system that external clients use. The agent chat keeps you in the picture: context, replies, speech output. Humans, agents, triggers and tools — one cycle in one system.