← Back to the Wiki

Best practices

CLI
>=0.28.1
Skill
>=1.4.2
Executors
claude-code, codex, gemini-antigravity
System
macos
Reviewed on
2026-10-30

Cost and context

The cost of using an LLM comes mainly from context: everything in the conversation is sent again on every call. Every token spent on what came in at the start of the session is paid for again on the following calls. Long sessions, commands with huge output, and repeated instructions make token usage grow without the work moving forward any faster.

What weighs the most

  • Long session. The more the conversation grows, the more each call costs.
  • Large output. Pasting the whole issue, dumping a command's full result, or reading the entire board.
  • Long persistent instructions. Instruction files loaded at the start of the session are paid for on every call.
  • Repeating what the skill already does. Explaining the workflow procedure only adds to the context.

What to do

  1. One stage per session. Ask for the work of the current stage, record the result, and stop. Open the next stage in another session, which picks up from the issue.
  2. Record decisions outside the chat. A comment or artifact on the issue is read once by whoever needs it. What stayed only in the conversation has to be explained again, or rediscovered, in the next session.
  3. Ask only for what's needed. “Just the status and the acceptance criteria” costs less than “show me everything about the issue.”
  4. Keep persistent instructions short. Say what is specific to your work; the skill already knows the workflow procedure.
  5. Prefer batches of small, similar items. Short items done in sequence, in the same session, tend to cost less than one session for each. When the batch grows too large, the accumulated context starts to weigh: open a new session.
  6. Delegate broad reading. See Sub-agents.

Prompt template

/malha-os-workflow Do only the current stage of ABC-123, record decisions and pending items in a comment on the issue, and stop. I'll open the next stage in another session.

How to measure

Don't assume something saves cost: measure it. Compare two sessions of the same kind of work, one with the habit and one without, and look at the usage your executor reports. A single session proves nothing, and other people's numbers don't apply to your case. That is why this page gives no absolute values.

Common mistakes

  • Reopening the same session for days. Prefer picking up from the issue in a new session.
  • Asking for “everything” just in case. Ask for what today's decision needs.
  • Measuring by what looks expensive. Measure before changing the habit.

Status

  • Available: these practices, which apply to any executor.
  • Limitation: how usage is reported changes from one executor to another, and this page doesn't state numbers.

View as Markdown