Skip to contents

Get started

Getting started

Run a first agent call offline, then connect a model.

Why Peter?

The name gptr, for Peter Naur and Peter Wason, and what System 1 and System 2 mean.

Ask Peter

Language models

Choose a provider, a command-line login or a local Ollama model.

Typed decisions

Logical answers, labels and scores, one per input, with probabilities.

Interactive console

Chat in the console, steer a running answer and approve changes.

Configuration

Settings, scopes and precedence; R options and credentials.

Build workflows

Record, replay and export

Record agent calls beside your code, replay them and export a script.

Teams and background work

Teams, fan-outs and sub-agents; background jobs, checkpoints and usage.

Harnesses and coaching

Build your own peter and let it improve itself on your task, round after round.

Tools and artifacts

Inspect objects, run programs, and build and reopen artifacts.

Extend gptr

Skills and plugins

Skills, prompt templates, agent files and plugins.

MCP

Call MCP tools as R functions, or serve your R session over MCP.

Extending gptr

Add a tool, a policy or a hook with a small spec.

Understand execution

Execution model

What one model turn does, and where objects live.

Token efficiency

Budgets, caches and descriptions that keep context small.