Documentation

The fact sheets behind Duct: what it stores, how its agents are wired, where credentials live, and a map of the code. Generated from the repository, so they cannot drift from it.

Map

Duct architecture

An interactive map of the Duct monorepo: the backend, app, desktop shell and site, how they talk to each other, and which file to open first for each job.

Updated 2026-11-04docs/architecture.html
Reference

Data model

Every table the Duct backend owns, what it records, and which of the four stores answers where something is recorded: rows, events, logs or memories.

Updated 2026-11-25docs/engineering/data-model.md
Reference

Agent ports and the event contract

The harness boundary of Duct's agents: the six ports a runner implements and the server-sent event contract the app renders, and the code that enforces each.

Updated 2026-10-26docs/engineering/agent-ports-and-events.md
Guide

Building and changing agents

How an agent is built and changed in Duct on LangChain, LangGraph and deepagents: the rules, the primitive behind each, what enforces it, and the checklists.

Updated 2026-11-29docs/engineering/agent-engineering.md
Guide

Agent output QA

How Duct tests agents whose output is subjective, a brief or a post, with an LLM-as-judge harness: the trials, the rubric, the judge's biases and mitigations.

Updated 2026-11-10docs/engineering/agent-evaluation.md
Reference

Credential storage

Where every secret Duct holds actually lives, on the desktop and on a server: the local API key, provider keys and OAuth tokens, and what protects each of them.

Updated 2026-10-26docs/engineering/credential-storage.md
Runbook

Local Security Audit Skill

The local security gate for Duct's backend and app: the audit skill, the leak scanner, the pre-commit hook and the policy they enforce before a change ships.

Updated 2026-09-14docs/engineering/security-audit-skill-and-hooks.md