Add PeppyInterface high-level API and Siggy workflow integration#2
Open
MisterGuy420 wants to merge 5 commits into
Open
Add PeppyInterface high-level API and Siggy workflow integration#2MisterGuy420 wants to merge 5 commits into
MisterGuy420 wants to merge 5 commits into
Conversation
- Create interface.py with PeppyInterface class providing unified API - Add workflow helpers: for_planning(), for_execution(), for_verification() - Add data classes: SearchResult, GrepResult, CodebaseStats - Add convenience methods: find_classes(), find_functions(), find_usages() - Add MCP prompts for Siggy workflow phases - Update server.py with 4 new prompts (peppy-planning, peppy-execution, peppy-verification, peppy-overview) - Update __init__.py to export new interface classes - Add comprehensive documentation in docs/INTERFACE.md - Add tests for the interface in tests/test_interface.py - Update plan.md with new features https://claude.ai/code/session_016XBZeHeHhb2QNY2zLqTZUB
…gin-3ENDS Add comprehensive documentation and integration guides for Peppy
- Create peppy_sigi_plugin.py module for SIGI to load Peppy as a plugin
- Add configuration schema in siggy-peppy.example.yml
- Enhance session-start hook with config parsing and better logging
- Update documentation with plugin configuration approach
Users can now enable Peppy in SIGI with a simple config:
```yaml
plugins:
peppy:
enabled: true
auto_index: true
use_enhanced_agents: true
```
https://claude.ai/code/session_017jYqbxUQhziwpdHmBznUN2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces
PeppyInterface, a unified high-level API for Peppy that simplifies codebase indexing and search operations. It includes deep integration with Siggy workflow orchestration through specialized methods for planning, execution, and verification phases, plus 4 new MCP prompts.Key Changes
New
PeppyInterfaceclass (peppy/interface.py):CodebaseIndexerandCodebaseSearcherfind_classes(),find_functions(),find_methods(),find_usages()get_file_symbols(),get_file_structure()get_stats(),get_overview()set_codebase()Data classes for cleaner results:
SearchResult: Symbol search results withto_location()andto_dict()methodsGrepResult: Grep results with context linesCodebaseStats: Codebase statistics withsummary()methodSiggy workflow helpers:
for_planning(): Returns overview, key classes/functions, and focused search resultsfor_execution(): Returns definition, usages, and file structure for a target symbolfor_verification(): Verifies expected symbols exist after changes4 new MCP prompts in
server.py:peppy-planning: Planning phase context with optional focus patternspeppy-execution: Execution phase with precise location informationpeppy-verification: Verification phase with symbol existence checkspeppy-overview: Quick codebase overviewDocumentation:
docs/INTERFACE.md: Complete API reference with examplesplan.md: Architecture overview and usage examples.gitignore: Standardized Python/IDE patternsPackage exports (
peppy/__init__.py):PeppyInterface,create_interface(), and data classesImplementation Details
PeppyInterfaceuses composition with existingCodebaseIndexerandCodebaseSearcherIndexCachecodebaseparameter for multi-project workflowsBackward Compatibility
All existing APIs remain unchanged. This is purely additive functionality.