Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
YouTube Security VideosWelcome to GitHub Copilot Day: the future of agentic engineering(22.09.2026 um 20:00 Uhr)
YouTube Security VideosMicrosoft Mechanics: What Can a Copilot Agent Actually Read?(22.09.2026 um 20:27 Uhr)
Unix & Linux ServerPeppermintOS Is Moving From Xorg to XLibre to Avoid Wayland(22.09.2026 um 19:58 Uhr)
Sicherheitslücken (CVE)USN-8803-1: Sudo vulnerability(22.09.2026 um 16:15 Uhr)
Sichere ProgrammierungClaude Opus 5.5 is now available in GitHub Copilot(22.09.2026 um 19:10 Uhr)
Sichere ProgrammierungColab is now part of your Google AI plan(22.09.2026 um 20:51 Uhr)
Sichere ProgrammierungThe Hidden Production Risks of Third-Party SDKs(22.09.2026 um 20:00 Uhr)
YouTube Security VideosWelcome to GitHub Copilot Day: the future of agentic engineering(22.09.2026 um 20:00 Uhr)
YouTube Security VideosMicrosoft Mechanics: What Can a Copilot Agent Actually Read?(22.09.2026 um 20:27 Uhr)
Unix & Linux ServerPeppermintOS Is Moving From Xorg to XLibre to Avoid Wayland(22.09.2026 um 19:58 Uhr)
Sicherheitslücken (CVE)USN-8803-1: Sudo vulnerability(22.09.2026 um 16:15 Uhr)
Sichere ProgrammierungClaude Opus 5.5 is now available in GitHub Copilot(22.09.2026 um 19:10 Uhr)
Sichere ProgrammierungColab is now part of your Google AI plan(22.09.2026 um 20:51 Uhr)
Sichere ProgrammierungThe Hidden Production Risks of Third-Party SDKs(22.09.2026 um 20:00 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

I built an llms.txt for Salesforce — so AI stops writing deprecated Apex

The problem: AI's Salesforce knowledge is structurally stale Salesforce ships three releases a year. Large language models are trained on data that's 6–18 months old. So there's a permanent gap: by the time a model "knows" a Salesforce p…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!




The problem: AI's Salesforce knowledge is structurally stale



Salesforce ships three releases a year. Large language models are trained on data that's 6–18 months old. So there's a permanent gap: by the time a model "knows" a Salesforce pattern, the platform has often moved on.



The result is code that looks right and compiles, but uses patterns from two or three releases ago. And the cruel part is that the most recently changed things — security defaults and API versions — are exactly the ones models get wrong, because that's the freshest knowledge and the last to make it into training data.



A few examples I see constantly from Claude, GPT, and Copilot:





  • WITH SECURITY_ENFORCED on SOQL — superseded by User Mode (WITH USER_MODE).

  • DML without an access level — instead of Database.update(records, AccessLevel.USER_MODE).


  • System.assertEquals(...) — the legacy assertion API; the modern Assert class (Assert.areEqual, Assert.isNull) shipped in Winter '23.

  • Workflow Rules / Process Builder — both retired; everything should be Flow.

  • API versions in the v50s on new classes, when current is v67.0.



None of these are exotic. They're the defaults a senior dev would flag in code review. But an autonomous AI pipeline doesn't have that reviewer — it has its own (stale) priors.






The fix: give the agent current ground truth



llms.txt is an emerging convention: a Markdown file at a known location that tells AI agents how to use your content. I used it to build sf-llms-context — a small, opinionated Salesforce knowledge base aimed squarely at coding agents.



Design principles:





  1. AI-first, not human-first. Every file opens with a one-line instruction for the agent, then dense structured content. No marketing, no navigation chrome.


  2. Show wrong AND right. Every deprecated pattern sits next to the current one, with the reason (governor limit / security / deprecation).


  3. Token-efficient. Brevity is a feature. Every pattern is a few hundred tokens, max.


  4. Verified, not guessed. Every governor-limit number and API version is checked against the official Summer '26 (v67.0) docs. (I even caught a limit I'd carried over that Salesforce removed in API v57.0 — verification matters.)






Does it actually change the output?



I ran a controlled test across three models — Opus 4.8, Sonnet 4.6, and free ChatGPT — each given the same user story, with and without this context file:




"When an Account's Industry changes, copy the new value to a field on every child Contact. Include tests."




I have to be honest about the result, because it surprised me: the models are good. Every no-context run produced one logic-free trigger delegating to a handler, with sharing, and bulkified maps. One even added an async Queueable fallback for accounts with thousands of child Contacts. If I cherry-picked a strawman, the first reader to reproduce it would catch me.



But line them up and a consistent gap appears:




























Model (no context) SOQL/DML mode Assertions
Opus 4.8 system mode modern Assert
Sonnet 4.6 system mode legacy System.assertEquals
GPT (free) system mode legacy System.assertEquals


All three defaulted to system-mode SOQL and DML — no FLS, CRUD, or sharing enforcement on the operation. On Summer '26 (API v67.0), the secure default is User Mode:




// default output — system mode
for (Contact c : [SELECT Id, AccountId, Account_Industry__c
FROM Contact WHERE AccountId IN :changedIds]) { ... }
update contactsToUpdate;









// with the context file — user mode
for (Contact c : [SELECT Id, AccountId, Account_Industry__c
FROM Contact WHERE AccountId IN :changedIds
WITH USER_MODE]) { ... }
Database.update(contactsToUpdate, AccessLevel.USER_MODE);






Two details made the test more interesting than a simple before/after:





  • The value isn't uniform. Opus already uses the modern Assert class unprompted; Sonnet and GPT still emit System.assertEquals. The older the model, the more the context earns its keep. (Embarrassingly, my own examples used System.assertEquals — so the content was reinforcing the legacy style. Fixed that.)


  • Context isn't magic. With the file loaded, GPT adopted the explicit access-mode syntax but chose SYSTEM_MODE — the opposite of secure. A model still has to apply what it reads. That fed straight back into the repo: I rewrote the "default to User Mode" guidance to be impossible to misread.



The takeaway isn't "AI can't write Apex." It clearly can. The gap is narrow and sharp: security defaults lag the platform, and that's the worst place for a gap, because system-mode DML compiles, passes its tests, and reviews clean. Nothing flags it until a security review — or an audit — does.






Why this matters more as workflows get autonomous



The interesting frontier in Salesforce dev right now is fully AI-driven workflows: hand an agent a user story, get back a tested, code-reviewed feature. But every stage in that pipeline — architect, implement, test, review — trusts the model's baseline knowledge. If that baseline is stale, the agent can pass its own tests and its own code review and still ship a deprecated pattern. The tests are green; the pattern is just old.



A ground-truth context file is the cheapest possible guardrail for that.






Try it



It's free and open:




  • One-fetch context (tools with web access): https://sf-llms-context.github.io/llms-full.txt

  • No web access (e.g. free ChatGPT)? Paste the content or upload the file — the URL alone gets silently ignored.

  • Browse or contribute: https://github.com/sf-llms-context/sf-llms-context



If your AI tool still generates a wrong Salesforce pattern, there's an issue template for it — that feedback is exactly what keeps this current across releases.

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten I built an llms.txt for Salesforce — so AI stops writing deprecated Apex

Thematisch verwandte Begriffe: built, llmstxt, Salesforce, stops · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-75517 | Novu provides an API for sending notifications through multiple channels…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick