Getting Started¶
This guide walks you through setting up PGA for the first time and starting your first AI-powered chat session.
Step 1: Initialize Configuration¶
PGA stores its configuration at ~/.powergentic/ in JSON or YAML format. Create a default config with:
| Bash | |
|---|---|
1 | |
This creates a default configuration file with a placeholder Azure OpenAI profile.
Step 2: Add an LLM Profile¶
PGA needs at least one configured LLM provider. You can add a profile interactively:
| Bash | |
|---|---|
1 | |
This launches an interactive wizard that asks you to:
- Select a provider —
azure-openai,azure-ai-foundry, orollama - Enter provider-specific settings — endpoint, deployment, API key, etc.
- Optionally set as default — if this is your first or preferred profile
Quick Setup: Ollama (Local Models)¶
If you have Ollama installed locally:
| Bash | |
|---|---|
1 2 3 4 5 6 7 8 9 10 11 12 | |
Quick Setup: Azure OpenAI¶
| Bash | |
|---|---|
1 2 3 4 5 6 | |
Info
See LLM Providers for detailed setup instructions for each provider.
Step 3: Validate Configuration¶
Confirm everything is set up correctly:
| Bash | |
|---|---|
1 | |
You should see:
| Text Only | |
|---|---|
1 | |
To view your full config (with secrets masked):
| Bash | |
|---|---|
1 | |
Step 4: Start Chatting¶
Navigate to a project directory and launch an interactive session:
| Bash | |
|---|---|
1 2 | |
Or simply run pga with no arguments — it defaults to interactive chat:
| Bash | |
|---|---|
1 2 | |
You'll see:
| Text Only | |
|---|---|
1 2 3 4 5 6 7 8 | |
Type your question or request at the ❯ prompt:
| Text Only | |
|---|---|
1 | |
The agent will use its built-in tools (file reading, directory listing, grep search, etc.) to explore your project and provide an answer.
Step 5: Try Single-Shot Commands¶
Explain Something¶
| Bash | |
|---|---|
1 | |
Get a Shell Command Suggestion¶
| Bash | |
|---|---|
1 | |
Step 6: Set Up Project Agents (Optional)¶
Create project-specific AI instructions:
| Bash | |
|---|---|
1 2 | |
This creates:
AGENTS.md— Global instructions for the AI when working on your projectagents/code-reviewer.agent.md— An example custom agent
Edit AGENTS.md to describe your project, coding standards, and conventions. The AI will follow these instructions in every chat session within that directory.
Tip
Learn more about creating custom agents in the Agents documentation.
Interactive Chat Commands¶
Inside an interactive chat session, you can use slash commands:
| Command | Description |
|---|---|
/help |
Show all available commands |
/exit or /quit |
End the session |
/clear |
Clear conversation history |
/agents |
List available agents |
/agent <name> |
Switch to a specific agent |
/profile <name> |
Switch LLM profile mid-session |
/status |
Show current session info |
/multiline |
Enter multi-line input mode |
Example Session¶
| Text Only | |
|---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | |
Next Steps¶
- Commands — Full reference for all CLI commands
- Agents — Creating custom agents for your project
- Configuration — Advanced configuration options
- Tools — Understanding the tools available to the agent