The independent daily for Salesforce admins, developers and architects

Curated by Abhinav (opens in a new tab)

Using a Git-based knowledge graph to give AI agents reliable engineering context (opens in a new tab)

You will learn how Salesforce structured a Git-backed, domain-split knowledge graph for AI agents, the mistakes that shaped it, and how it cut Kubernetes upgrade effort.

Why read this

You will also see the tutorial steps and the open problems around stale knowledge and agent accountability.

  1. Choose one engineering domain
  2. Create Git repository with AI agent
  3. Connect and validate knowledge sources
  4. Run LINT checks regularly
The Second Brain setup process, from choosing a domain to ongoing maintenance

Salesforce engineers found that architectural decisions were scattered across repositories, meeting transcripts, collaboration tools and documentation, and that some were being reversed without anyone noticing. As AI agents entered their workflows, they built a Git-based knowledge system called the Second Brain, backed by a knowledge graph that links decisions to source evidence, ownership and implementation. Today it spans 21 domain-specific repositories, more than 200 sources and over 250 articles.

Their first attempt, a single large repository, made agents slower and more expensive, because retrieval slowed and irrelevant material consumed context. They split it into smaller domain brains connected through the graph, so agents start in the relevant domain and follow links only when needed. The article also stresses knowledge integrity: keeping source references, surfacing contradictions for human review, flagging gaps, and keeping sensitive material out of the repository rather than inventing answers.

The article walks through a roughly 20-minute setup. Readers pick one domain, create a repository with an AI coding agent using the Second Brain plugin and skills from GitHub, and ingest sources such as repositories, pull requests, meeting notes and tickets, using MCP connectors where available. Updates take about three minutes after the first ingestion. A LINT skill checks for conflicting decisions, outdated knowledge, missing connections, undocumented topics and unprocessed pull requests, and the team runs it manually each week.

The reported results include about 80% automation of Kubernetes upgrades, cutting hands-on work from three months to three weeks, and a new DevOps engineer completing a first production pull request in under two weeks. The authors note that production upgrades still need human oversight and that the figures are not from a formal productivity measurement. They close by naming unresolved issues: knowledge freshness, autonomous validation, and agent identity and accountability.

Read the original at Salesforce Engineering (opens in a new tab)

Worth reading?

Recommended

Tracing retrieval-augmented generation accuracy failures backward through the context pipeline (opens in a new tab)

You will learn how to isolate and fix accuracy failures in a retrieval augmented generation pipeline by tracing errors backward through parsing, chunking, and retrieval stages.

Why read this

The article also outlines Salesforce specific tools and architectures that improve enterprise document processing and query performance.

The authors describe a RAG application that passed standard text benchmarks above 90% but gave customers wrong answers in production. On complex, customer-representative enterprise documents, accuracy fell to about 46%. Errors could start at any stage: parsing, chunking, enrichment, embedding, retrieval, or answer generation. The central point is that an LLM only sees the context the pipeline preserves, so if information was lost earlier, a stronger model or a rewritten prompt will not recover it. The recommended debugging method is to trace each wrong answer backward through the pipeline, checking first whether the needed context arrived intact and then whether retrieval, chunking, or parsing removed it.

On parsing, the article argues that one strategy does not fit every page. Simple prose can go through a fast deterministic parser, while pages with tables, charts, or diagrams need processing that can interpret visual structure and relationships. Multi-page tables should be kept as one logical unit so their headers still apply after a page break. The authors say their Intelligent Parsing approach routes content by complexity at the page level, raising accuracy in a staged benchmark from 65.1% to 84.4%.

On chunking, the authors recommend treating chunk boundaries as units of meaning rather than storage limits. Headers should stay with their tables, diagrams with their explanations, and procedural steps in order, with overlap used when a split is unavoidable. Chunks can be enriched with summaries, tags, structural context, likely user questions, and file-level details such as title and filename. The article also cites SFR Embedding v3, which extends context capacity from 512 to 8,000 tokens, and reports that enriched indexing raised accuracy from 84.4% to 86.8%.

For retrieval, the article warns that the most semantically similar chunk may belong to the wrong product or context. Explicit constraints such as product, region, or customer tier should be applied as metadata pre-filters before similarity ranking. Questions whose answers depend on facts spread across documents may need GraphRAG, which builds a knowledge graph so an agent can traverse multi-hop relationships; the article says it is slated for general availability in November 2026. Each retrieval method should match the question’s shape.

Finally, the authors advise measuring one change at a time against a human-validated end-to-end benchmark, so that each gain can be attributed to a specific stage. They also cover latency: moving payloads under 100 MB from a Spark-based batch architecture to a service-based Just-in-Time indexing architecture cut indexing time three to four times, from more than 30 minutes to about seven to ten minutes.

Read the original at Salesforce Engineering (opens in a new tab)

Worth reading?