databricks/app-templates/modify-openai-agent
Claude Code and agent skill by databricks/app-templates
- community
Checking that the SKILL.md file is still in the repository.
Modify agent code, add tools, or change configuration. Use when: (1) User says 'modify agent', 'add tool', 'change model', or 'edit agent.py', (2) Adding MCP servers to agent, (3) Changing agent instructions, (4) Understanding SDK patterns.
Install
npx vskill@latest install databricks/app-templates/modify-openai-agentSKILL.md
The same SKILL.md was published earlier as databricks/app-templates/modify-openai-agent.
Modify the Agent
Main File
`agent_server/agent.py` - Agent logic, model selection, instructions, MCP servers
Key Files
| File | Purpose | |
|---|---|---|
agent_server/agent.py | Agent logic, model, instructions, MCP servers | |
agent_server/start_server.py | FastAPI server + MLflow setup | |
agent_server/evaluate_agent.py | Agent evaluation with MLflow scorers | |
agent_server/utils.py | Databricks auth helpers, stream processing | |
databricks.yml | Bundle config & resource permissions |
SDK Setup
Adding MCP Servers
After adding MCP servers: Grant permissions in databricks.yml (see add-tools skill)
Changing the Model
The agent's model comes from the llm-endpoint serving-endpoint resource in databricks.yml (and app.yaml), which sets the LLM_MODEL environment variable that agent_server/agent.py reads. To change the model, change that resource's name:
This also grants the app's service principal permission to query the new endpoint, so there's nothing else to keep in sync. Check your workspace's Serving page for the endpoints available to you. For local runs, agent.py falls back to its default model; set LLM_MODEL in .env to try a different one. When creating the app in the Databricks UI, pick the endpoint for the llm-endpoint resource there.
Changing Instructions
Running the Agent
Converting to Responses API format: Use process_agent_stream_events() from agent_server/utils.py to convert streaming output to Responses API compatible format:
External Resources
Next Steps
- Discover available tools: see discover-tools skill
- Grant resource permissions: see add-tools skill
- Test locally: see run-locally skill
- Deploy: see deploy skill
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingagent-migration-from-model-serving/.claude/skills/modify-openai-agent/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/databricks/app-templates/modify-openai-agent)