Pi Coding Agent Setup After 2 Months

Pi Coding Agent Setup After 2 Months

Transitioning to Pi for AI Work

Overview of Current Setup

  • The speaker has transitioned to using Pi as their primary interface for all AI-related tasks, including coding.
  • The setup has evolved over two months, showcasing a personalized configuration that adapts to user needs.

Tools and Extensions Added

  • Pi comes with four built-in tools; the speaker has added additional tools for enhanced functionality.
  • A web search tool linked to Google API allows for custom queries, handling JSON parsing issues effectively.
  • The "ask user question" tool enables the AI to fill in context during interactions without pausing.

Utilizing Sub Agents

Importance of Sub Agents

  • Sub agents are crucial for maintaining context hygiene; the speaker uses a minimal loadout: scout, researcher, and worker.
  • Each sub agent serves specific functions: researcher conducts web research, scout explores directories, and worker writes code.

Building Extensions with Sub Agents

  • Demonstration of building a Pi extension using scout and researcher sub agents to verify documentation details.
  • Emphasis on keeping the orchestrator agent's context window clean by avoiding excessive files.

Video Analysis Capabilities

Video Extract Tool

  • A video extract tool allows Pi to analyze videos efficiently; it can handle local files and YouTube links.
  • Demonstration involves identifying a movie clip from an ambiguous prompt without providing timestamps.

Functionality Insights

  • The tool offers various methods for analyzing videos without requiring full analysis each time.

Additional Custom Tools

Search Tools

  • YouTube search and Google image search tools are included but may not be necessary in the global config due to limited use cases.

Persistent Memory Implementation

  • A basic project-based memory system is implemented; toggling memory creates or updates a memory file automatically.

Managing Context and Output

Context Management

  • The slash context command displays current context usage but is deemed not particularly useful by the speaker.

Markdown Output Handling

  • An MD link feature allows output messages to be printed into markdown files for better LaTeX rendering capabilities.

Safety Features in Command Execution

Bash Guard Extension

  • This extension prevents harmful commands from executing by prompting confirmation before running potentially destructive actions.

File Change Logging

Tracking Edits

  • A file changes extension logs all edits made during sessions, allowing users to inspect changes thoroughly.

Skills Integration

YouTube Transcript Skill

  • This skill retrieves transcripts from YouTube videos efficiently, aiding content creation processes.

Conclusion on Configurations

  • Speaker suggests considering GitHub repositories for sharing configurations but emphasizes building personal setups tailored through Pi.
Video description

My current Pi coding agent config for agentic engineering and everything else AI. 0:00 Intro 0:30 web-search 1:03 web-fetch 1:23 ask-user-question 2:22 subagents 4:00 video-extract 5:56 youtube-search & google-image-search 6:47 /memory 8:27 /context 8:51 md-link 9:39 custom-header 9:48 /read-only 10:10 bash-guard 11:09 filechanges 13:11 (video editing agents) 13:24 youtube-transcript 13:54 orchestrator 14:31 stop-slop 14:52 pdf-reader 16:21 reddit 16:58 (youtube story finder sidequest) 18:37 outro