I spoke about building a context layer for AI agents at AWS Community Day Thailand 2026 in Bangkok. It was good to see familiar faces again and spend time with the local engineering community. Thank you to Dr. Vit Niennattrakul and the AWS User Group Thailand team for organizing it. I was also glad to catch Dr. Werner Vogels, CTO of Amazon.com, on stage.
My talk started with a comparison: an AI agent joining a company is like an external team joining a project. It can write code and read public documentation. It does not know why your team made a particular architecture decision, which service owns a piece of data, or which exception exists because of a past incident.
That missing knowledge is often the difference between working code and code a team can keep.
A working service we had to rewrite Link to heading
In the talk, I shared an example from a backend project. The task looked well suited to agents: build a small service around a third-party integration. The requirements were clear, the public documentation was good, and most of the work was familiar API and CRUD code.
The agents built it. The integration worked, the endpoints worked, and we could demonstrate the result. Then the team rewrote it.
The agents had met the written requirements, but they had built the service without the team’s existing conventions and decisions. They knew how to build a service. They did not know how to build our service.
You can fix one result with a better prompt. The larger question is how to give the next agent the same onboarding, automatically.
What a context layer does Link to heading
A context layer sits between company information and the tools that use it. It connects facts to their meaning: what a service is, who owns it, what it depends on, which decisions still apply, and where to check the current state.
It helps to separate four jobs:
- Instructions tell an agent how to work.
- Tools let it read systems or take an action.
- Memory records what happened in a previous interaction.
- Context explains how the organization works today.
An agent needs the relevant context for the task, with links back to the source. It should not have to read every document in the company or trust an old note as current truth.
Start with Markdown Link to heading
You do not need a new database to begin. Pick one repeated question, one agent, and one or two source systems. Write down the things people keep explaining to new team members:
docs/
services/checkout-api.md
decisions/checkout-auth.md
runbooks/checkout-api.md
The service file can name its owner, repository, environments, dependencies, and runbook. The decision file can explain why authentication works the way it does. Add a review date and a link to the source of each fact. Keep the files in Git so engineers can correct them in a pull request.
Then make onboarding part of the workflow. When a decision changes, update the decision file. When a service is deployed or retired, update its record. At the start of a task, have the agent look up the named service and load its service file, current decisions, and runbook. A simple file search is enough to start; as the collection grows, index it on each merge. Have a person review changes to shared context. That is much more useful than appending another paragraph to every prompt.
Markdown works because everyone can read it, review it, and move it between tools. The difficulty comes later: two files can describe the same service under different names, a decision can be superseded without anyone noticing, and access to one document may be more restricted than access to another.
When a graph database helps Link to heading
Some engineering questions are really questions about relationships:
incident -> deployment -> service -> owning team -> runbook
If an incident follows a deployment, I want to move through that chain and inspect the evidence at each step. I may need facts from the incident tracker, deployment system, repository, cloud account, and runbook. A search result containing five separate documents still leaves me to work out how they connect.
A graph database can store the services, teams, deployments, incidents, and resources as connected records. It makes those paths explicit and queryable. That is where Amazon Neptune fits in an AWS design. Amazon Bedrock Knowledge Bases can help find relevant source documents, while Amazon Bedrock AgentCore Memory handles what happened in earlier interactions. These are different jobs.
A graph is useful once relationships across systems become the problem. It does not make stale facts correct or bypass permissions. Each connection still needs a source, an owner, and a way to stay current. For a small team, well-kept Markdown may be enough for a long time.
Build the onboarding once Link to heading
The agent framework will change. The way your company names services, records decisions, and assigns ownership should not have to be rebuilt with every new tool.
Start with one question your engineers answer repeatedly. Write down the answer and its sources. Make it easy to retrieve and easy to correct. Add a graph when finding the connections takes more work than finding the documents.
That was the main idea I wanted to leave with the audience in Bangkok: give agents the same useful orientation you would give a new engineering team, then keep it up to date.