Get More Value from Your GPT-5.6 Token Budget
Practical AI for Monitoring and Evaluation
Four Ways to Get More Value from Your GPT-5.6 Token Budget
Reduce repeated context, preserve useful reasoning, simplify tool-heavy workflows, and improve Codex instructions when building AI-supported M&E systems.
Every request sent to an AI model uses tokens. These may include system instructions, programme context, uploaded evidence, previous messages, tool descriptions, reasoning, and the final response.
In a small test, inefficient token usage may not matter. In an M&E workflow reviewing hundreds of reports, indicators, interviews, or survey records, repeated context can increase cost and latency.
The objective is not to remove useful context. It is to preserve the information required for accurate and responsible work while reducing unnecessary repetition.
Technical level: This tutorial is for people building M&E applications, agents, integrations, or automated workflows with the OpenAI API or Codex. These are not ordinary ChatGPT settings.
Where do tokens go?
A typical M&E request may contain several different types of context:
System instructions: Role, rules, constraints, and output requirements.
M&E context: Frameworks, definitions, indicators, and evaluation criteria.
Current evidence: Reports, datasets, interview records, and programme documents.
Tool results: Search results, calculations, database records, and retrieved files.
Model output: Analysis, reasoning, recommendations, and the final response.
Cache stable context
Many applications send the same long instructions with every request. In an M&E workflow, repeated material may include:
- The agent’s role and responsibilities.
- Indicator definitions and validation rules.
- Donor reporting requirements.
- Qualitative coding frameworks.
- Confidentiality and data-protection rules.
- Standard output structures.
Prompt caching allows stable prompt prefixes to be reused. Put stable instructions first and place changing user input or programme data later.
Agent role, indicator framework, reporting rules, validation schema, and approved examples.
The current indicator, report section, interview record, or dataset to review.
Simplified JavaScript example
import OpenAI from "openai";
const openai = new OpenAI();
const instructions = `
You are an M&E indicator quality-review agent.
Check clarity, measurability, disaggregation,
data-source suitability and reporting relevance.
Do not invent baselines, targets or evidence.
`;
const response = await openai.responses.create({
model: "gpt-5.6",
prompt_cache_key: "me-indicator-review-v1",
instructions,
input: `
Review this indicator:
Percentage of trained participants who apply
the new procedure within three months.
`
});
console.log(response.output_text);Measure the result: Cache writes, cache reads, pricing, request frequency, and prefix stability determine whether caching reduces total cost.
Preserve reasoning across related turns
Some M&E tasks develop over several stages. An agent may first review an evaluation matrix, then identify evidence gaps, and finally draft recommendations.
When the objective, assumptions, evidence base, and priorities remain stable, GPT-5.6 can continue from compatible reasoning produced in an earlier response.
Turn 1: Review the evaluation evidence matrix.
Turn 2: Identify the most important evidence gaps.
Turn 3: Draft recommendations based on the reviewed evidence.
Simplified JavaScript example
import OpenAI from "openai";
const openai = new OpenAI();
const first = await openai.responses.create({
model: "gpt-5.6",
input: `
Review this evaluation evidence matrix.
Identify weak links, contradictions and missing sources.
`,
reasoning: {
context: "current_turn"
}
});
const second = await openai.responses.create({
model: "gpt-5.6",
previous_response_id: first.id,
input: `
Prioritise the three evidence gaps
that the evaluation team should address.
`,
reasoning: {
context: "all_turns"
}
});
console.log(second.output_text);Use all_turns when: the objective, evidence, assumptions, and priorities remain relevant.
Start fresh when: the task changes, the evidence is replaced, or earlier assumptions may anchor the model to an outdated approach.
Use Programmatic Tool Calling for bounded processing
Tool-heavy workflows can produce large intermediate outputs. An M&E agent may retrieve hundreds of indicator records, search multiple document collections, compare countries, remove duplicates, and rank evidence.
Programmatic Tool Calling allows GPT-5.6 to compose JavaScript that coordinates eligible tools and processes their results in a hosted environment.
The programmatic stage can filter, sort, join, aggregate, validate, or remove duplicates before returning a smaller result for final interpretation.
→
→
Example M&E request
Across all active countries, identify indicators more than 20% behind target, remove duplicate definitions, group them by outcome, and return the ten highest-risk results with their evidence sources.
A programmatic stage could:
- Retrieve records from several tools.
- Calculate variance between actual and target values.
- Remove duplicates.
- Filter records with insufficient evidence.
- Rank the remaining records by risk.
- Return only the records needed for final analysis.
Do not evaluate token use alone. Also compare accuracy, latency, total cost, evidence completeness, traceability, and human-review findings.
Audit your Codex instructions
Codex may receive guidance from project instructions, AGENTS.md files, skills, tool descriptions, and the current request.
Over time, the same rule may appear in several places. Instructions may also become outdated, conflict with each other, or describe every minor step even when the intended result is clear.
Keep important constraints, but state each rule once and place it in the most appropriate instruction file.
What to audit
Example of a leaner AGENTS.md file
# Project objective
Maintain the M&E reporting application.
# Required standards
- Preserve data-validation rules.
- Do not expose confidential data.
- Use TypeScript with type checking.
- Run tests relevant to changed files.
- Report validation that could not be completed.
# Approval boundaries
Ask before:
- deleting production data;
- changing external services;
- publishing or deploying;
- making purchases;
- expanding the requested scope.
# Definition of done
The requested change is implemented,
type-checked and tested.Do not remove necessary controls. Keep privacy requirements, evidence standards, approval boundaries, security rules, and instructions that prevent known errors.
A practical implementation sequence
- Establish a baseline: Record tokens, cost, latency, task success, and human-review findings.
- Separate stable context: Put reusable instructions before changing inputs.
- Test persisted reasoning: Use it only for closely related turns.
- Identify bounded tool stages: Look for filtering, ranking, joining, or deduplication.
- Audit instructions: Remove duplicated guidance one section at a time.
- Compare quality: Keep an optimization only when it preserves accuracy, evidence, safety, and usability.
What should you measure?
Task success: Did the workflow produce the required result?
Input tokens: How much context was sent?
Cache activity: How many tokens were written to and read from cache?
Output tokens: Was the final response appropriately detailed?
Latency: How long did the workflow take?
Total cost: Did the optimization reduce the complete cost?
Evidence integrity: Were sources, caveats, and contradictions preserved?
Human corrections: Did reviewers need to fix more errors?
Token efficiency must not weaken M&E quality
Do not remove indicator definitions, methodological limitations, disaggregation requirements, confidentiality controls, source references, uncertainty, contradictory findings, approval boundaries, or human-review steps merely to reduce token use.
Final optimization checklist
Key takeaway
Efficient token usage comes from careful workflow design: cache stable context, preserve reasoning only when it remains relevant, reduce large tool outputs in bounded processing stages, and keep Codex instructions clear and non-duplicative.
Continue learning
Get 95+ practical AI tutorials for M&E professionals
Explore practical guidance on evaluation design, AI agents, data analysis, reporting, evidence synthesis, data quality, and responsible AI.
