Agentic System · Engineering notes

How a task finds its instructions

A session starts with a small set of shared rules. The subject of the request determines which project guide, procedure or specialist profile the assistant opens next.

What the agent reads, and when
  1. At startupShared rulesSafety and communication instructions enter the session.
  2. Each requestShort reminderThe prompt hook brings the writing guidance back into view.
  3. For this taskSubject guideAn animation request calls for frame checks. A Flutter screen calls for a visual comparison.

Technology

  • Markdown guides
  • Session and prompt hooks
  • Topic map
  • Specialist profiles
  • Procedural search

Load the common rules

In the Codex setup, SessionStart reads the shared safety rules and communication guide and returns their text as additional context for the model. UserPromptSubmit adds a short digest with each new request so the writing guidance stays recent. Boot checks what actually arrived and reads missing files. I keep detailed procedures in their owning guide or memory record, so changing one procedure does not require editing every prompt.

Follow a web animation request

Consider “review this scroll animation.” The hooks have already supplied the shared rules. The agent interprets “scroll animation,” follows the web development guide to motion verification, and checks frames at repeatable times. For “review this Flutter screen,” the same verb leads to the mobile verification guide and a comparison against the approved reference. The agent chooses the procedure from the subject and requested evidence. A named workflow can take it directly to the guide.

Retrieve remembered procedures

When the task calls for a stored procedure, the agent describes its intent to the context_refresh tool. That tool searches Brain’s procedural tier and returns matches into the current session. The agent checks the result against the owning project guide. If the topic is ambiguous, it searches aliases in the indexes and asks which project the user means when the evidence still fits more than one.