pk is a terminal coding workspace built on Unreal Agent v0.1.1. Work in a live OpenTUI session, or hand a longer job to a durable task and come back to its progress.
curl -fsSL https://raw.githubusercontent.com/pkyanam/pk/main/install.sh | bash
pk login
cd /path/to/project
pkBun is required to run the OpenTUI interface. The installer prefers a checksum-verified paired binary/UI release when a compatible GitHub asset is published. If no release or platform asset is available, it announces a source-build fallback that requires Git and Go 1.27+ (or Go 1.21+ with automatic toolchain selection). Download or checksum failures stop installation; they do not silently start a source build. See install and update details.
For work that should keep running after you leave the interface:
pk task create -p "Implement the requested change and run the relevant checks."
pk task list
pk task attach TASK_IDTasks have durable output and can be attached to, steered, canceled, or resumed. CLI-created tasks use a fresh workspace under ~/.pk/workspaces; choose another with --workspace DIR.
- See what is happening. Follow assistant progress and live tool activity, inspect completed tool output, and answer clarification questions during foreground work.
- Keep work moving. Delegate bounded subtasks to child agents (using Luna by default), or detach a task and return to its saved progress later.
- Bring your setup. Use discovered skills, explicitly enabled plugins, and configured MCP servers. pk can also run as an ACP agent for compatible editors and clients.
- Bring files into the task. Attach images, text, and PDFs. Optional local Poppler previews let the model inspect scanned pages through
ViewImage. See file support and limits. - Choose a model connection. ChatGPT/Codex is the built-in provider. Add OpenAI-compatible Responses or Chat Completions endpoints, inspect their model lists, and select a provider for new sessions.
- Manage longer conversations. Automatic history checkpoints leave room for the next response while preserving the full local transcript. Use
/usageto inspect tokens and model limits, or/compactto make a checkpoint. See context management. - Make it comfortable. Use
/themefor Dark Mint, Light, or High Contrast, with live previews and a saved preference. - Update from the terminal. Run
pk updateor use/update, then roll back if needed. Selecting transcript text copies it when your terminal supports clipboard writes; Ctrl-Y is the fallback. - No first-party telemetry. pk operates no usage-analytics or crash-reporting service; provider and enabled-tool requests happen when you use them. See privacy and data handling.
The default model is gpt-6-luna with medium reasoning effort. Change it with pk config set model MODEL and pk config set effort EFFORT. The default context policy is full; pk config set context-policy compact opts into compacting large completed Bash results in the model-visible context while preserving their local captures. This policy is snapshot-bound for a session and does not promise lower total usage.
pk builds on Unreal Agent's asynchronous tool coordinator and can keep full local shell captures while compacting large result text sent back to the model when explicitly enabled. Prompt caching is provider-controlled; reported counters are actual provider usage, and a cache hit is never guaranteed. See the verified runtime foundation. A small paired coding-task pilot is documented in benchmark findings; it is exploratory and does not establish a general performance advantage.
Learn more: Documentation index · Getting started · Install and update · Providers · Available tools · MCP · ACP · Validation
Permissions: Bash uses the operating-system permissions of pk. A workspace organizes files; it does not sandbox the process.