Deep dives • Series Part 1 of 3
Building a General AI Agent, Part 1: Context Initialization and Domain-Selective Loading
If you want one agent to handle both sales and engineering work, start with context discipline. Keep one stable identity. Keep startup context lean. Load domain expertise only when the task requires it.
What a general agent really is
A general agent is not a giant prompt with every playbook loaded all the time. It is one consistent operating identity that can switch domains without dragging irrelevant context into the current task.
The core design principle
Separate context into three layers:
- Core startup context loaded every session: identity, rules, and a short skill index.
- Skills loaded only when the task calls for one.
- Task context loaded for the active request only.
How skill loading works in practice
- Agent receives the request.
- It checks the skill index in its startup context: one line per skill on when to use it.
- It opens only the skill that matches the task.
- It does the work and checks the result the way the skill says.
Bare-bones checklist
- One stable agent identity.
- One startup context pack with non-negotiable behavior rules.
- A short skill index, one line per skill.
- Full skills loaded on demand, never all at once.
- Explicit precedence rules.
Rather have us do this step?
We build agents like this for your business, starting with a free 30-minute call.