DJY89
← Work index
0x0011f41 · SEC/WORK/OPERATOR-PROFILE · REV.03

Operator Profile for Coding Agents

One YAML file of 15 rules, 13 loaded into every Claude Code and Codex session, tested against no-profile controls and critiqued from one brief by four LLMs.

In Progress
Next case ↗
operator-profile
[12:15:04] python render_profile.py
rules: 15 (active 15, proposed 0)
core.md ~1033 tokens, budget 1100, ok
local-core.md ~178 tokens, budget 200, ok
[12:15:09] claude -p "list the rule ids in your context"
13 ids, revision 3
[12:15:31] same question, hooks disabled
NONE
── one file, every session ──
Operator Profile for Coding AgentsFIG.01

An operator profile is a single YAML file that tells any AI coding agent how to work with me: how I read a report, what order items go in, how many reminders are welcome, when to ask and when to decide. Fourteen rules went live on 2026-11-09 and fifteen are active today, thirteen of them in the block every session loads. A renderer generates the per-tool adapters from that one file and stops, writing nothing, if the always-loaded block exceeds its token budget. A fresh Claude Code session recalled all thirteen loaded rules with the hook active and none with it off. In a separate report fixture, the profile cut the memory-jogging lines from eight to four.

13 of 13
Rule ids recalled
Fresh Sonnet session, loader on; none with it off
4 vs 8
Insight lines per report
With the profile against the no-profile control; one line bundled two items
6 of 6
Cap held on qwen3:8b
0 of 6 without the profile
1,033
Core tokens
Revision 6 against a budget of 1,100
Verification 2026-11-09, core size at revision 6

Changelog

v1 (2026-11-09): Canon v1 active with 14 rules after an eight-question interview, a deterministic renderer with a size check, a Claude Code loader, and fixtures with controls on Sonnet, Codex and three local models. Four external reviews synthesised the same day; one defect found in a live rule and fixed as revision 4.

Revision 5 (2026-11-12): A fifth review, from Muse (Meta's agent), folded into the synthesis. The do-first list is capped at five items, with an on-fire item always shown. Two operator-facing standing rules are marked protected, so only I can retire them, and the renderer now rewrites two generated blocks in place: the protected rules into the global Claude Code instructions file and the full core into the Codex instructions file.

Revision 6 (2026-11-12): Four policy changes from the review round: an interrupt threshold (a push only for an outage or a promise now late), unresolved promises that repeat in each report until resolved, a lookup of recorded decisions before any question is asked, and a conflict rule under which a standing rule wins and the collision is named once. The three that touch the always-loaded block measured it at 1,033 tokens against 1,000, the renderer stopped, and I raised the budget to 1,100 with the reason recorded.

Every Session Was Re-Learning Me

I run a one-person AI and automation practice with many concurrent clients, and I work through coding agents all day: Claude Code first, Codex second, local models on the way. My memory service, KOPENG, already held hundreds of facts about my projects. It held almost nothing about how to communicate with me. Every session relearned that through corrections: too many reminders, a wall of text, a question asked four at a time, a report sorted by the wrong thing.

A fact stored as a memory is retrieved when a query happens to match it. A rule that should shape every report needs an address every session reads, which is a different object from memory, and it needed its own home.

One YAML File Generates Every Adapter

The profile is one YAML file. Every agent environment gets a thin adapter generated from it by a short Python script, and no adapter may hold a rule the file lacks.

A few words recur on this page. A harness is an agent environment such as Claude Code or Codex. An adapter is the instruction text generated for one harness. The core is the subset of rules loaded into every session. The loader is the hook that inserts the core when a session starts. A fixture is a repeatable test prompt with invented data.

CriterionPreferences written into one tool's instructions fileA fact in the memory storeOperator profile rule
ReachesThat one toolWhichever session's query matchesEvery registered harness, from one source
CheckableOnly by reading the outputOnly by reading the outputEach rule carries its own check
SizeGrows until it is skimmedRetrieved on demandFixed budget; the renderer stops when it is exceeded
CorrectionEdit each tool's fileStore another factEdit the canonical file, re-render, every adapter updates
OutcomeMaintained once per toolRetrieved when matchedLoaded every session and tested

The renderer writes three things from the canonical file: a Markdown projection for reading in Obsidian, a core of about 1,000 tokens for capable models, and a core of about 180 tokens with one line per rule for small local models. It also rewrites two generated blocks in place, between markers it owns: the protected rules into the global Claude Code instructions file, and the full core into the Codex instructions file. To change a rule, I edit the YAML and re-render. The generated files are never edited by hand, and the hook holds no rule text of its own.

HarnessHow the rules arriveStatus
Claude CodeSessionStart hook loads the core at session startLive
CodexGenerated block in its instructions file, same text as the coreLive
Small local models (Ollama)180-token core supplied by the launcherTested; launcher not built
Headless workersBrief fragment per spawnPlanned

A Rule Is a Trigger, an Action and a Check

A preference written as prose has no stated pass condition. Each rule here states when it applies, what to do, and how to tell whether it fired, so a fixture can check it.

Code · yaml
- id: priority-order
  tier: core
  trigger: Ordering items in any report, list or digest.
  action: >-
    Tier 1 first: on fire or critical, meaning critical failure, security
    breach or loss of service. Then by due date: overdue before due today,
    and the more overdue, the higher. Unknown dates are shown as unknown,
    never invented.
  check: >-
    A fixture of mixed items (one critical, one three days overdue, one due
    today, one undated) comes out critical, three days overdue, due today,
    undated.
  evidence: [interview 2026-11-09 Q1, my words quoted]
  state: active
  review_after: 2027-02-09

Rules carry a tier (always loaded, loaded for reports, or on demand), a state (proposed, active, retired) and an approval stamp. Only active rules render. Two rules are marked protected as standing rules only I can retire: the renderer stops if one is marked retired without my stamp. Each rule also carries a review date. The policy is that a review date prompts a review and only an explicit decision retires a rule; the renderer does not act on review dates yet.

Most rules came from an interview run one question at a time, which is itself one of the rules, and the rest from corrections I had already recorded. Each rule names its source. The rule I quote most often is the insight cap. A report may carry up to four memory-jogging items, each at most thirty words. Each item must be a promise I made, a decision already taken, the point where a project stopped, or a tool that already exists. Four is the maximum, and a report with nothing worth jogging carries none. An unkept promise or a reopened decision returns in every report until it resolves, with its date; the other two kinds appear once.

The Renderer Refuses to Overflow

An always-loaded block has a token budget, and a block that silently grows is a block that gets skimmed. The renderer measures the core and stops the render, writing nothing, if the budget is exceeded. The message names the overflow and the three legal fixes: tighten an action, move a rule to the on-demand tier, or raise the budget with the reason recorded.

That check fired on its first day, twice. The first measurement came in at about 720 tokens against a provisional 400, and I raised the budget to 800. Then a cross-model fixture exposed a renderer defect: the core had listed each rule's action without its trigger, which left five rules ambiguous, and one model collapsed an item that the rules say must stay expanded. Restoring the triggers brought the true size to about 907 tokens, the check stopped the render again, and the budget went to 1,000. A core trimmed quietly to fit would have hidden both events. The check fired a third time on 2026-11-12, when three approved rulings measured the core at 1,033 against 1,000, and the budget went to 1,100 with the reason recorded. The check makes growth visible without preventing it, so each raise also asks whether an existing rule can be shortened or moved out of the core.

Every Fixture Ran With and Without the Profile

A model's own account of whether it complied is no part of the result. Each fixture runs with and without the profile, so the control separates what the profile did from what the model would have done anyway. A run cut off before it finished is recorded as untested.

ModelDeliveryBehaviour with the profileControl
Sonnet, fresh headless session13 of 13 rule ids, revision 3Two-layer report, 4 insight lines, one bundling two itemsNo ids; flat report, 8 insights
Sonnet, after 32,800 tokens of unrelated textLoaded at start, no re-injection4 insights, none bundlednot run
Codex (GPT-6)Core supplied in the promptCorrect order, 3 insights, waiting item kept inlineCorrect order, 5 insights, flat
qwen3:8b, local178-token coreInsight cap held 6 of 6; ordering 0 of 6Cap 0 of 6
llama3, local178-token coreCritical item first 6 of 6; cap held 2 of 6; overdue order ignoredCritical first 0 of 6; cap 5 of 6
qwen3:4b, local178-token coreUntested: its thinking ran past the 4,000-token output limit before it answered, every runnot run
OutcomeEvery model received the rulesFollowing them varied by modelThe difference came from the profile

All figures measured 2026-11-09, and the fixtures cover the report rules, so these runs say nothing about the other rules in the file. Two limits are recorded with the results. The ordering fixture does not discriminate on frontier models, because Codex ordered correctly without the profile. And the small local models follow the short core only in part, which calls for a design change: ordering is deterministic, so a small-model launcher should sort the items in code before the model sees them. That matches a rule I already apply to Claude Code configuration, where deterministic behaviour lives in hooks.

Four Models Reviewed the Design From One Brief

The design brief went out five times with one identical prompt: to GPT-6 twice, once through Codex with access to the project files and once in ChatGPT with the brief alone, and to Grok, Gemini and Muse (Meta's agent) with the brief alone. Each review was written without sight of the others, which is what blind means here. The Codex review was synthesised against six months of my own recorded corrections before the interview; the other four landed after the build, so their findings could be checked against the measurements.

Where the brief-only reviewers reached the same findings as the reviewer with file access, those findings went to the top of the list to verify. Agreement among models is a reason to check, and the measurements settled each one: that every model can receive the rules while following them varies by model, that overflow to retrieval fails for a model without tools, that a deadline-first order ranks a cosmetic edit above an outage, and that the profile should store instructions with no description of the person. Their proposed budgets bracketed the measurement: 300, 400, 900, 900 and 1,000 tokens against a measured need of 907. The two small budgets would have pushed half the rules into retrieval that a local model cannot reach.

The round also found one defect in a live rule. The rule that colour-codes a confidence percentage named the colours and no cut-offs, so each model invented its own and the same number changed colour between sessions. Two reviewers proposed bands, a third said the bands had to come from me, and the rule now names them. A finding that restated one of the brief's own assumptions, such as automatic expiry, was left out of the agreement count.

The Rules Are Applied Without Comment

One rule sits over the others: apply the rules without naming them, without giving them as the reason for an output's shape, and without apology. The file records actions and checks and contains no description of me. I can read it whenever I like, and the agents are instructed to leave it unmentioned.

Results

  • 15 active rules in one canonical file, each with trigger, action, check, source and review date, approved by me
  • Deterministic rendering into a Markdown projection and two cores, with a size check that stopped the render three times in four days, each time with the reason recorded
  • Delivery shown: a fresh Sonnet session listed 13 of 13 rule ids with the loader and none without it (2026-11-09)
  • Two harnesses wired: Claude Code through the session loader, Codex through a generated block in its instructions file, both from the same render
  • Report rules followed on two frontier models in the fixtures run, with controls: four insight lines against eight on Sonnet, three against five on Codex
  • Limits recorded: the fixtures cover the report rules only, small local models follow the short core in part, one model is untested, and a many-turn session test is still owed
  • Five reviews from four models synthesised, one live defect found and fixed the same day

The agents used to learn how I work one correction at a time, every session. Now one file carries the rules, two agent environments load it, and a fixture shows when a rule stops working.

Key takeaways
  • An operator profile is one canonical YAML file of checkable rules; every harness adapter is generated from it and may not hold a rule the file lacks.
  • Each rule states a trigger, an action and a check, so a fixture can tell whether it fired.
  • The renderer stops when a core would exceed its token budget. The check fired three times in the first four days, each time with the reason recorded.
  • Compliance is measured from outputs against a no-profile control. Sonnet and Codex followed the report rules tested; the small local models followed the short core in part.
  • Four models critiqued the design from one brief. A finding several reached independently went to the top of the list to verify, and the measurements settled it.
0x0011f42 · SEC/WORK · MEASURED RESULTS

Rules

15

Each with a trigger, an action, a check, a source and a review date

Canonical file

1

Every adapter is generated from it by one script

Rule ids recalled

13 / 0

Fresh session with the loader, then without it (2026-11-09)

Reviews

5

Four models from one brief: GPT-6 twice, Grok, Gemini and Muse; one synthesis

Questions · direct answers

FAQ.

How do you make AI coding agents remember how you work across different models?
Keep one rule file and generate each agent's instruction block from it. Each rule names a trigger, an action and a check, and only approved rules render. A hook puts the rendered rules in front of each new session, so Claude Code, Codex and a local model read the same rules without being taught again.
How do you test whether an AI agent actually follows an instruction file?
Run the same task with and without the file and compare the outputs rather than asking the model whether it complied. A fresh session asked to list the rules in its context should name them with the hook on and none with it off. Fixtures with invented data then show whether the rules change what the model produces.
0x0011f43 · SEC/WORK · RELATED SYSTEMS