Architecture
A frontend plus one native loop. Not a fourth coding agent.
Process model
CLI / TUI / SDK → detached session runner → native tool loop
→ HTTP Responses / Chat Completions
→ tools / MCP / permission gates
One event loop per runner, with portable session history and explicit cancellation and cleanup.
One event loop
Blocking work uses the platform poll seam. Provider connections begin lazily; no vendor agent process is launched.
Config and state
| Path | Contents |
|---|---|
~/.tny/settings.json | Model, permission mode, HTTP profiles, UI, per-workspace overrides |
~/.tny/mcp.json | Trusted MCP servers only |
~/.tny/sessions/ | Transcripts and recovery |
~/.tny/skills/ | Managed skill installs |
~/.tny/tasks/ | User task-preset Markdown definitions |
<repo>/.tny.json | Repo-safe limits only |
<repo>/.tny/tasks/ | Project task-preset Markdown definitions |
<repo>/AGENTS.md | Project instructions |
BYOK keys come from environment variables; settings store only their names. Native subscription OAuth credentials can be refreshed and persisted privately. Never log credentials.
Language
C11, vendored .c files you can see in nm: yyjson, picohttpparser. ANSI TUI, not a widget kit. macOS TLS is Security.framework, dlopen'd at first use. Never static OpenSSL or libcurl.