Repository navigation
feat: add the Pydantic AI coding agent - #15
Merged
Merged
Conversation
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Moves the pydantic-ai lint and test matrix entries into the combined ci.yml workflow. Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
…ic-ai Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
zimeg
commented
Oct 19, 2026
zimeg
left a comment
Member
Author
There was a problem hiding this comment.
👾 Before merging a few comments for an agent nearest
Member
Author
There was a problem hiding this comment.
🗣️ note: Tests are planned to align after adjacent implementations land.
Member
Author
There was a problem hiding this comment.
📚 note: To self - will align later.
zimeg
marked this pull request as ready for review
October 19, 2026 22:48
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Member
Author
|
🏁 Will merge so we can land more structure of related samples now. |
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 pull request adds a Pydantic AI implementation of the coding agent in
pydantic-ai/, ported fromopenai-agents-sdk/with the starter agent's Pydantic AI app as the framework reference.listeners/and the framework-freeagent/files are copied unchanged, so onlyagent/agent.py,agent/guardrails.py, andagent/tools/use Pydantic AI.SelectModelcapability. Anthropic is preferred whenANTHROPIC_API_KEYis set:claude-sonnet-5-5codes andclaude-haiku-4-5routes. Otherwise it uses OpenAI with the samegpt-6.1-solandgpt-6-lunaas the OpenAI version.before_tool_executehook raisesApprovalRequired, the run ends withDeferredToolRequests, and a click resumes it withdeferred_tool_results. A dropped approval answers its call as not run, so the next turn's history stays valid.create_code_channelandarchive_channelare output functions, so a successful call ends the run with no extra model call. A Slack error in either goes back to the model as a retry.SkipToolExecution, a raising tool reaches the model as a failed tool call, and running out of turns ends with a message and keeps that turn's history.AnthropicCompactionandOpenAICompaction, in place of the OpenAI version'struncation="auto".ANTHROPIC_andOPENAI_variables out of a command's environment, since this implementation can use either provider.pydantic-ai/to the lint and test matrices inci.yml, dependabot, the root README, andAGENTS.md.Deviations from the OpenAI version, all noted in
pydantic-ai/AGENTS.md:pydantic-ai-slimdoes.ruffignores UP041 so the sharedworkspace.pykeepsasyncio.TimeoutError.Testing
pydantic-ai/.env.sampleto.env, setANTHROPIC_API_KEY, and start the app withslack runfrompydantic-ai/. Repeat the checks below with onlyOPENAI_API_KEYset.🤖 Generated with Claude Code