Skip to content

Agent Setup Wizard

The Agent Setup Wizard turns your workspace into a tuned team of AI agents. It analyzes your code, detects your stack, proposes specialists, and saves them into .claude/agents/ — all in a few clicks.

Setup wizard overview

  • The first time you open a project in Ptah
  • After a major stack change (e.g., migrating from REST to GraphQL, adding a mobile app)
  • When you want to refresh agent prompts against the latest codebase conventions

Ptah scans your workspace to build a fingerprint: package manifests, lockfiles, framework configs, test runners, CI pipelines, and directory conventions. The scan is local and read-only.

You’ll see a live progress list as files are analyzed. Typical scan time is under 30 seconds for mid-sized repos.

Step 1 — analysis

The results from step 1 are summarized into a detected stack — languages, frameworks, databases, cloud targets, testing tools, and build systems. You can:

  • Confirm auto-detected entries
  • Add anything the scan missed (e.g., internal libraries)
  • Remove false positives

Step 2 — stack

Ptah uses the confirmed stack to produce a recommended agent roster. All 13 built-ins are always included; the wizard additionally proposes stack-specific variations (for example, a backend-developer tuned for NestJS + Prisma, or a frontend-developer tuned for Angular signals).

Each proposed agent shows:

  • Name and role
  • Suggested system prompt (scrollable preview)
  • Tool permissions
  • A rationale line explaining why it was suggested

The final step is a diff view. You can:

  • Toggle individual agents on/off
  • Edit any prompt inline before committing
  • Rename agents (they must be unique within the workspace)

Click Save roster to write files to .claude/agents/. Ptah reloads the agent registry automatically — no restart needed.

<workspace-root>/
.claude/
agents/
project-manager.md
software-architect.md
backend-developer.md
frontend-developer.md
...

Each file is plain Markdown with YAML frontmatter:

---
name: backend-developer
description: Implements server-side features with NestJS + Prisma conventions.
tools: [read, write, bash, ptah_search_files]
---
You are a senior backend engineer working in a NestJS monorepo...

Open Command Palette → Ptah: Run Agent Setup Wizard at any time. The wizard detects existing agents and presents a merge view so you don’t overwrite manual edits.