If you have not yet installed the CLI and run first-time setup, start with Installation.
The Core Workflow
Every Potpie session follows the same basic loop:- Setup once —
potpie setup --repo . --agent claude - Verify readiness —
potpie status --host - Register your repo —
potpie source add repo . - Resolve context before working —
potpie resolve "<task>" - Work in your harness — the installed skill handles context calls automatically
- Record learnings —
potpie record --type decision --summary "..."
Running the CLI
--json to get machine-readable output for scripting or agent consumption:
--verbose or -v for full tracebacks when debugging CLI errors.
Every subcommand accepts --help:
Onboarding a Repository
When you start working with a new codebase, register it as a source in the active pot.1. Confirm the active pot
potpie setup, you will have a default pot already active. For a new project, you might create a dedicated pot:
2. Register the repository
Ingestion is demand-driven. When your AI harness calls
potpie resolve or potpie graph read, the engine pulls the relevant project context on demand. You do not need a separate “index” command on the happy path.3. Verify the source is registered
4. Register a GitHub remote (optional)
To let the engine pull PR history, code reviews, and source metadata from GitHub:Recommended onboarding sequence
Retrieving Context for a Task
potpie resolve is the primary entry point for context retrieval. Call it with a natural-language description of your upcoming task, and it returns a scoped context package.
Basic usage
With intent
Use--intent to tell the engine what kind of work you are doing. It shapes which parts of the graph are prioritised.
| Intent | When to use |
|---|---|
feature (default) | Planning or building a new capability |
debug | Investigating a failure or unexpected behaviour |
review | Preparing for a code review or PR |
ops | Infrastructure or operational context |
With retrieval depth
Use--mode to control how deeply the engine reads the graph:
| Mode | Behaviour |
|---|---|
fast | Returns the most confident matches quickly. Good for frequent calls. |
balanced | Default for most tasks. |
verify | Cross-checks evidence before returning. |
deep | Traverses full graph relationships. Use for complex debugging. |
Constraining the context
Use--include to limit the retrieval to specific context families:
JSON output for agent consumption
Running a Narrow Search
Usepotpie search when you know a specific phrase, file name, symbol, or entity and want a direct lookup rather than a full task context package.
search does not require a task description. It runs a narrow query against entity and claim indexes directly.
Recording Project Memory
Usepotpie record to save durable project learnings back into the graph. These recordings appear in future resolve results across sessions.
Record types
| Type | What to use it for |
|---|---|
decision | Architectural or process decisions the team has made |
fix | A specific root cause and fix that should be remembered |
preference | Team conventions and coding standards |
constraint | Hard limits or non-negotiable requirements |
Examples
Scope keys
Use--scope key:value to associate a recording with a specific service, file, team, or feature. Scope is free-form key:value pairs separated by commas:
AI-Assisted Coding Workflow
When you runpotpie setup --repo . --agent claude, Potpie installs a skill into Claude Code (or your chosen harness). This skill instructs the agent to call Potpie for context before editing code.
What the agent does automatically
- Before working on a task, the agent calls
potpie resolve "<task>". - Potpie returns scoped context: relevant services, decisions, dependencies, and recent changes.
- The agent reads this context and then proceeds with the task grounded in real project knowledge.
- The agent may call
potpie searchfor follow-up lookups orpotpie recordto capture important findings.
Checking and refreshing skills
Updating skills after a Potpie upgrade
Debugging Workflows
For debugging tasks, use--intent debug with resolve and combine with search for follow-up entity lookups.
Typical debug session
Feature Development Workflow
For building new features, start withresolve to understand the codebase before touching code.
Code Review Preparation
Before reviewing a PR, resolve context to understand the blast radius and relevant decisions:Working with Multiple Workspaces (Pots)
If you work on multiple projects or want to isolate context boundaries, use separate pots..potpie.toml file can bind a repository to a specific pot automatically:
platform-api.
Source Ingestion
Local repository
Local repo sources are registered withpotpie source add repo. Context is pulled on demand via resolve and graph read.
GitHub integration
Connect GitHub to let the engine index PRs, issues, code reviews, and source history:Linear integration
Connect Linear to let agents query issues, projects, and documents:Jira integration
Confluence integration
Viewing the Graph UI
Potpie includes a local graph explorer you can open in your browser:Day-to-Day Quick Reference
| What you want to do | Command |
|---|---|
| Resolve context before a task | potpie resolve "<task>" |
| Run a narrow entity lookup | potpie search "<phrase>" |
| Record a decision or finding | potpie record --type decision --summary "..." |
| Check host readiness | potpie status --host |
| Add a repository source | potpie source add repo . |
| Switch active workspace | potpie use <pot-name> |
| Open the graph explorer | potpie ui |
| View recent project events | potpie timeline recent --time-window 7d |
| Install or refresh skills | potpie skills install --agent claude |
| Connect GitHub | potpie github login |
| Run diagnostics | potpie doctor |
Next Steps
CLI Manual
Complete command reference with all options, arguments, and exit codes.
Context Commands
Deep reference for
resolve, search, and record.Graph & Operations
Graph workbench, daemon, ledger, backend, skills, and cloud.

