Get in Touch

Course Outline

Introduction to Pi

  • An overview of Pi, its philosophy of minimalism, and control mechanisms
  • A comparison with Claude Code, Codex CLI, and Cursor for government use cases
  • The four built-in tools: read, write, edit, and bash for efficient task management
  • Scenarios where Pi is preferred over more complex agents in public sector operations

Installation and Setup

  • Installing Pi using npm and other package managers for government systems
  • Configuring API keys for 15+ supported providers to ensure seamless integration
  • Setting up the working directory and context files to align with organizational standards
  • Running Pi in both local and Docker environments for flexibility and scalability

Core Terminal Workflows

  • Generating code from simple prompts to streamline development processes
  • Reading and editing files with precision to maintain data integrity
  • Executing bash commands safely within the agent for secure operations
  • Managing session state and context resets to ensure consistent performance

Building Custom Skills

  • Understanding the TypeScript skill API for custom development
  • Writing custom read, write, and edit operations tailored to specific needs
  • Integrating specialized workflows by hooking into bash execution
  • Testing and debugging skills in isolation to ensure reliability

Prompt Templates and Themes

  • Adapting system prompts for various programming languages and frameworks used in government projects
  • Creating reusable prompt templates to maintain team consistency and efficiency
  • Packaging themes as shareable modules to facilitate collaboration and standardization

Extending Pi with npm Packages

  • Bundling custom skills as pi packages for easy distribution
  • Publishing these packages to npm and Git repositories for broader access
  • Installing community-contributed packages to leverage external expertise
  • Managing dependency versions and ensuring compatibility across different systems

Provider Flexibility

  • Switching between providers such as Anthropic, OpenAI, Google, and others for government applications
  • Optimizing performance by balancing cost, speed, and quality per task
  • Running entirely local models to handle sensitive code securely

Practical Use Cases

  • Implementing automated testing and test generation workflows for government software projects
  • Refactoring legacy code using custom skill chains to modernize systems
  • Generating and maintaining documentation to ensure compliance and transparency
  • Integrating Pi into CI/CD pipelines with minimal agent overhead for efficient deployment

Security and Control

  • Understanding the 300-word system prompt boundary to manage data constraints effectively
  • Requiring manual approval for write operations to ensure control and security
  • Sandboxing bash execution in untrusted environments to prevent unauthorized access
  • Implementing audit logging of all agent actions for accountability and traceability

Summary and Next Steps

  • Recap of the principles of minimalism, control, and extensibility that guide Pi's design for government use
  • Community resources and contribution guidelines to foster a collaborative ecosystem
  • Advanced topics for experienced Pi users to explore deeper functionalities and optimizations

Requirements

  • Experience with terminal-based development and Bash scripting
  • Fundamental knowledge of TypeScript or JavaScript
  • Familiarity with npm package management

Audience

  • Developers in search of a lightweight, customizable coding solution for government use
  • Senior engineers requiring complete control over agent internals
  • Teams transitioning to terminal-first development practices
 14 Hours

Number of participants


Price per participant

Upcoming Courses

Related Categories