Goldman Sachs is pulling Claude Code from its bankers and traders
Goldman Sachs is pulling Claude Code from its bankers and traders
The important part of Goldman Sachs removing Claude Code from bankers and traders is not that an AI coding tool failed a test. It is that a powerful autonomous agent reached a point where access management mattered more than convenience.
A banker asking an agent to inspect a spreadsheet is one risk. That same agent—if it can browse the intranet, read source code, execute shell commands, access credentials, and modify files—has a considerably larger blast radius. The model may still be perfectly capable. The surrounding system may simply no longer be acceptable inside a regulated environment.
That distinction is useful for every developer building AI agents: model quality and production suitability are separate decisions.
“Pulling Claude Code” does not necessarily mean “rejecting Claude”
Claude Code is an agentic harness around a Claude model. The harness can:
- Read and search files in a repository.
- Edit code and create commits.
- Execute shell commands.
- Connect to development tools and services.
- Retain context across a multi-step task. A direct Claude API integration can do none of those things by itself. It generates text or tool-use requests. The application around it decides which tools exist, what data is sent, whether a tool runs, and what happens afterwardSo the deployment boundary matters:
| Capability | Claude Code | Guarded API application | Ordinary chat completion |
|---|---|---|---|
| Natural-language interaction | Yes | Yes | Yes |
| Tool calling | Yes, depending on configuration | Yes, through an allowlist | Usually unnecessary |
| Shell or file execution | Possible | Only through a controlled broker | No |
| Multi-step autonomous work | Designed for this | Possible with explicit limits | No |
| Custom policy enforcement | Possible, but must be configured | Central and application-owned | Limited |
| Auditing task-level actions | Requires careful setup | Built into the broker | Mostly prompt/output logs |
Goldman’s move should therefore be understood as a control-plane decision, not necessarily a verdict on the underlying model. Removing a general-purpose agent from workstations does not prevent the firm from using Claude through a narrower, approved API workflow.
The reverse is also true: an API deployment is not automatically safer. If your application exposes an unrestricted bash tool to a model, you have recreated much of Claude Code’s risk with a custom implementation.
The banking-specific failure mode
Consider a trader asking:
Compare our fixed-income exposure with the latest macro scenarios and flag anything unusual.
That sounds like a harmless analyst request. In practice, the agent may need to:
- Locate portfolio files.
- Query a market-data system.
- Read internal research.
- Calculate scenario changes.
- Produce a summary.
At step two, a naïve tool implementation might execute:
curl -H "Authorization: $INTERNAL_TOKEN" \
"https://markets.internal.example/risk/exposure"
At step three, it might copy a confidential research document into a prompt sent to an external endpoint. At step five, it might write an unverified number into a file that another workflow treats as approved.
Nothing here proves that the language model was “unsafe.” The more precise diagnosis is excessive agency.
In my experience building internal copilots and agents, the common mistake is treating prompt instructions as if they were access-control boundaries. A prompt can say:
Never access user credentials or execute commands outside /workspace.
That is useful behavioral guidance, but it is not a security boundary. A hostile document, a malicious repository instruction, or a confused user can pressure the model into requesting the wrong action.
Controls must live in code and infrastructure.
A safer architecture: put the model behind a tool broker
The practical pattern is to let the model propose structured actions while a deterministic service decides whether those actions are allowed.
For example, define a narrow tool rather than exposing a shell:
from anthropic import Anthropic
client = Anthropic()
tools = [
{
"name": "get_portfolio_exposure",
"description": "Read approved aggregate exposure for a portfolio.",
"input_schema": {
"type": "object",
"properties": {
"portfolio_id": {"type": "string"},
"scenario": {
"type": "string",
"enum": ["base", "rates_up_100bp", "rates_down_50bp"]
}
},
"required": ["portfolio_id", "scenario"]
},
}
]
response = client.messages.create(
model="claude-sonnet-5",
max_tokens=1024,
tools=tools,
messages=[
{
"role": "user",
"content": "Check scenario exposure for portfolio GS-1042."
}
],
)
The model cannot query the risk system directly. It can only request a tool call with the fields defined in the schema.
The server then validates that request:
from fastapi import FastAPI, HTTPException
from pydantic import BaseModel
app = FastAPI()
class ExposureRequest(BaseModel):
portfolio_id: str
scenario: str
@app.post("/tools/get_portfolio_exposure")
def get_portfolio_exposure(request: ExposureRequest):
if not request.portfolio_id.startswith("GS-"):
raise HTTPException(status_code=403, detail="Invalid portfolio")
if request.scenario not in {
"base", "rates_up_100bp", "rates_down_50bp"
}:
raise HTTPException(status_code=403, detail="Invalid scenario")
# The real implementation calls a read-only risk service.
# It does not expose credentials or arbitrary HTTP access to the model.
return {
"portfolio_id": request.portfolio_id,
"scenario": request.scenario,
"net_duration": 4.7,
"dv01": 128400,
"data_classification": "confidential"
}
This design provides several controls at once:
- The tool exposes a business operation, not a machine.
- Inputs are validated against a strict schema.
- Authentication remains server-side.
- Read and write operations are separated.
- The service can log every proposed and executed action.
- High-impact operations can require human approval.
For file operations, the equivalent of “run this command” should be “read this approved file,” “search this indexed collection,” or “create a patch under this directory”—not a generic shell(command=...).
Context is also a governance problem
Claude Code naturally accumulates substantial context: repository files, command output, documentation, and conversation history. That is effective for coding, but it creates both cost and data-handling questions.
Suppose one task uses a 120,000-token input context and produces 2,000 output tokens. At an illustrative blended rate of $3 per million input tokens and $15 per million output tokens:
Input: 120,000 × $3 / 1,000,000 = $0.36
Output: 2,000 × $15 / 1,000,000 = $0.03
Total per full-context call = $0.39
If the workflow makes three full-context calls, the nominal cost is $1.17. That is still small in isolation. Across thousands of users and repeated agent loops, however, it becomes material.
More importantly, every repeated call may resend sensitive context. Cost optimization and data minimization should therefore reinforce each other.
Practical techniques include:
- Retrieving only the files relevant to the task.
- Replacing full documents with targeted excerpts.
- Summarizing tool results before passing them to the next step.
- Separating stable context from changing task state.
- Using prompt caching only when the provider and caching rules support the pattern.
- Redacting secrets and unnecessary customer identifiers before inference.
An enterprise agent should not read an entire 400-page internal report because retrieving three relevant paragraphs is inconvenient.
What developers should learn from the rollback
The strongest lesson is not “remove coding agents from banks.” It is “match the tool boundary to the business risk.”
A good rollout progresses through explicit stages:
- Read-only assistance: summarize approved documents and answer bounded questions.
- Structured tools: permit validated business operations rather than raw machine access.
- Sandboxed execution: run code in isolated environments with no production credentials.
- Human approval: require sign-off before commits, trades, customer communication, or material data changes.
- Limited autonomous workflows: allow multi-step work only with a strict tool allowlist, budget, and termination condition.
Every stage needs an evaluation set containing ordinary tasks, adversarial inputs, and cases where the agent should refuse or request approval. Measure more than answer quality. Track unauthorized tool attempts, sensitive-data exposure, approval rates, latency, and cost per successful task.
Claude, GPT, Gemini, and the portable tool layer
This control architecture is not Claude-specific. Claude, GPT, and Gemini can all support tool use, but their message formats, tokenization, and tool schemas differ. Build a provider-neutral internal contract rather than scattering provider-specific tool logic across the business application.
For example:
{
"operation": "portfolio.exposure.read",
"arguments": {
"portfolio_id": "GS-1042",
"scenario": "rates_up_100bp"
},
"idempotency_key": "task-8841-step-3",
"approval_required": false
}
Adapters can translate that contract into each provider’s tool format. The policy engine, permissions, logging, and approval workflow remain the same.
For teams that want to evaluate several models without managing several vendor relationships, AI Prime Tech is one option for cheaper access to Claude, GPT, and Gemini APIs. The useful feature is not merely switching model names; it is making model substitution practical while preserving the same security boundary and evaluation harness.
Practical takeaways
- Treat an autonomous coding agent as privileged software, not as chat with extra features.
- Separate model capability from deployment approval; one can be approved while the other is restricted.
- Put least-privilege tools and policy enforcement in server-side code.
- Never use prompt instructions as the only protection against secret access or unauthorized execution.
- Minimize context for both cost and confidentiality reasons.
- Log proposed actions, executed actions, approvals, and final outcomes.
- Test refusal behavior and prompt-injection resistance alongside output quality.
- Require human approval for irreversible or financially material operations.
- Keep the agent behind a provider-neutral tool broker so Claude, GPT, and Gemini remain replaceable components. Goldman Sachs pulling Claude Code from bankers and traders is a useful reminder that agentic AI does not fail in one dramatic moment. It fails—or becomes undeployable—when access, context, cost, and accountability are not designed together. The winning approach for regulated teams is not unrestricted autonomy or a blanket ban, but a narrow assistant whose permissions are smaller than its ambition.
One API key for Claude Opus 4.8, Sonnet 4.6, Haiku 4.5, Fable 5, plus GPT & Gemini — up to 80% off official pricing, pay-as-you-go.
Get Your API Key →