Your agent plans badly because it has no context profile. Here is the shape one needs
A few weeks ago I wrote that your AI agent cannot plan your day because there is no format for it. That post was about the output: what a day plan has to carry so an agent can read it, edit it, and repair it when the day
A few weeks ago I wrote that your AI agent cannot plan your day because there is no format for it. That post was about the output: what a day plan has to carry so an agent can read it, edit it, and repair it when the day breaks.
This post is about the input, which is the harder half. Before an agent can write a plan worth reading, it needs to know things that are not in the conversation and not in the calendar.
Why a system prompt is not a context profile
The usual answer is to paste a paragraph of "about me" into every agent you use. That fails for four reasons, and none of them are about model quality.
- It is not state. A paragraph in a system prompt does not change when your situation changes. If you moved a standing meeting, stopped training in the mornings, or took on a new project, the paragraph is now lying, and nothing tells the agent it is lying.
- It is not addressable. The agent can read it, but it cannot update one fact, cannot tell you which fact it used, and cannot ask "is this still true" about a single item.
- It is duplicated. You copy a slightly different version into Claude, Cursor, Codex and whatever ships next month. They drift, and no two agents share your reality.
- It is not yours. You cannot inspect it, correct it, or delete a line without editing every client.
A context profile is the same information held as structured state: one canonical copy, readable and writable by both the user and the agent, and versioned enough that an agent can tell fresh facts from stale ones.
The minimum useful shape
These are the fields that actually change a plan. Anything that does not change the plan does not belong in the profile, because every field you add is a field that can go stale and mislead.
{
"profile": {
"version": 7,
"updated": "2026-11-28T06:40:00Z",
"timezone": "Asia/Kolkata",
"goals": [
{ "id": "g1", "what": "ship the billing migration", "scope": "2026-Q4", "weight": "high" }
],
"routines": [
{ "what": "walk", "when": "07:00", "days": ["mo","tu","we","th","fr"], "duration_min": 25, "protected": true }
],
"constraints": [
{ "what": "deep work before 11:00", "kind": "energy", "source": "stated", "last_confirmed": "2026-11-20" },
{ "what": "no meetings before 09:30", "kind": "hard", "source": "stated", "last_confirmed": "2026-10-02" }
],
"preferences": [
{ "what": "admin batched into one block", "confidence": 0.9, "source": "observed", "last_confirmed": "2026-11-26" }
],
"current_focus": { "what": "billing migration", "until": "2026-12-05" }
}
}
Four properties make this usable rather than decorative.
Every entry has a source. stated means the user said it. observed means the system inferred it from behaviour. Agents should treat those differently: an observed preference is a hypothesis, a stated constraint is a rule.
Every entry can carry last_confirmed. A constraint from two months ago is not the same as one from yesterday. An agent that does not know the difference will confidently plan around a life you no longer live.
Preferences carry confidence, constraints do not. There is no such thing as a 70 percent hard constraint. If something must not happen, it is a constraint with a date, not a preference with a score.
current_focus is a pointer, not a list. The single thing the day is serving right now. A plan with five active priorities is a plan that protects none of them.
What each field buys you
This is the part that is easy to skip and the reason profiles turn into decoration.
- Without
routines, the planner fills your morning with work and you delete it every day. - Without
constraints.age, the planner schedules a 06:00 gym session because you said you liked mornings in March. - Without
preferences.confidence, the planner treats one skipped admin block as a preference against admin blocks. - Without
current_focus, every task looks equally urgent and the day becomes a backlog. - Without
timezone, "tomorrow" is wrong for anyone working across regions, which is most people using an agent that runs on a server.
The read and write path
A profile that only the user can edit decays, because nobody maintains a form. A profile that only the agent can edit drifts, because models infer confidently from thin evidence.
The split that works: the agent proposes, the user confirms, both read the same record.
In practice, over MCP, that means a small tool surface rather than one blob:
- read the plan and the profile before suggesting anything
- propose a change to a single entry, with the reason attached
- write only after the human approves the change
- regenerate the plan after the write, so the day reflects it immediately
That is roughly what the server I built does. The tools are read_day_planner, add_daily_task, update_task_status, generate_day_plan, plus notes and reports, and destructive or outbound actions are gated on human approval. The agent guide is at nityasha.com/docs and the server is at https://www.nityasha.com/mcp if you want to read the discovery documents and see how OAuth and the tool schemas are shaped.
Three failure modes worth designing against
Staleness without a clock. If a fact has no date, it is permanently true, which is a bug. Store when it was confirmed and let the agent ask.
Over-fitting to one week. One busy Tuesday is not a pattern. Prefer observed entries only after repetition, and let them decay.
Silent overwrites. If an agent can rewrite the profile, it will eventually overwrite a stated constraint with an inferred preference. Version the profile and keep the last confirmed value.
What I want to know
If you are building agents that touch a person's real schedule, I am curious which fields you ended up needing that are not in the list above, and which ones you cut because they turned out to be noise. Reactions are fine, replies are better.
The first post in this series, on the output format, is here.
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes โ full credit and traffic to the original publisher.