You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(server): add Pi coding agent adapter with Azure OpenAI support
Add Pi (@mariozechner/pi-coding-agent) as a third AI agent backend
alongside Claude Code and OpenCode. Pi is a provider-agnostic TypeScript
coding agent that supports Azure OpenAI, OpenAI, and Anthropic.
Key changes:
- PiAgentAdapter: builds sandbox spec, runner script with write-tool
output, Swift escape sanitization, self-correction retries via -c
- PI-AGENTS.md: 42-line orchestrator prompt (vs 268 for Claude Code)
- AZURE_OPENAI provider: new LlmProvider enum, proxy route, config
- Shared loadClasspathResource() extracted to AgentAdapter interface
- sanitizeBodyForAzure now keys off provider enum (not URL heuristic)
- Docker image: node:22-slim + Pi 0.65.0 + Bun + precompute infra
- CI: agent-pi-build job in docker build workflow
Tested end-to-end: 80% accuracy on 3 MRs, 0.848 NEG F1. Delivery
verified posting MR summaries + inline diff notes to GitLab.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: server/application-server/src/main/java/de/tum/in/www1/hephaestus/agent/adapter/AgentAdapterConfiguration.java
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,11 @@ public AgentAdapter openCodeAgentAdapter(ObjectMapper objectMapper) {
Copy file name to clipboardExpand all lines: server/application-server/src/main/java/de/tum/in/www1/hephaestus/agent/adapter/ClaudeCodeAgentAdapter.java
0 commit comments