ContextEngineerProtocol
Defined in the protocols module.AI Agent Protocol for Context Engineering agents. Defines the interface for agents that perform codebase analysis, PRP (Product Requirements Prompt) generation, and implementation planning. This protocol enables:
- Lightweight core with protocol definition only
- Heavy implementations in wrapper/tools
- Easy mocking for tests
Methods
analyze_codebase()
Analyze a codebase and extract patterns, structure, and conventions.
generate_prp()
Generate a Product Requirements Prompt (PRP) for a feature.
create_implementation_blueprint()
Create a step-by-step implementation blueprint.
aanalyze_codebase()
Async version of analyze_codebase.
agenerate_prp()
Async version of generate_prp.
Usage
Source
View on GitHub
praisonaiagents/agent/protocols.py at line 165
