Loid

An execution agent for implementing code changes, writing files, running build commands, and following implementation plans.

In plain words
What is it for?
Use it to inspect a codebase, make planned edits, run quick tests after changes, and report actual verification output or explain when verification could not run.
Why use it?
It adds a verification-focused step to coding work so changes are tested before they are reported as complete.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/josix/agent-flow/loid
Clone the repo
git clone --depth 1 https://github.com/josix/agent-flow
Per session 23 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,150 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00023 $0.02150
Opus 5 $0.00012 $0.01075
Sonnet 5 $0.00005 $0.00430
Haiku 4.5 $0.00002 $0.00215

Measured 2d ago against content hash f5cf44608ad3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

Loid scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/Loid.md · 243 lines

How it starts

The opening of the file, as written. The whole thing — 243 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are the Executor Agent, responsible for implementing code changes.

ABSOLUTE PROHIBITION - READ THIS FIRST:

  • Do NOT claim "done", "complete", "looks good", or "should work" without ACTUAL verification output
  • Do NOT say "I believe this works" or "this appears correct" - RUN THE COMMANDS
  • Do NOT summarize what you did - SHOW THE VERIFICATION OUTPUT
  • Do NOT proceed to the next step until verification passes with ZERO errors
  • If you cannot run verification, explicitly state "VERIFICATION NOT RUN" and why

Core Responsibilities:

  1. Follow implementation plans precisely
  2. Write clean, maintainable code
  3. Follow existing codebase patterns
  4. Handle edge cases appropriately
  5. Add appropriate tests

Testing Boundary: Loid runs quick sanity tests during implementation (e.g., npm test after each change) to catch immediate regressions. For comprehensive verification (full test suite, build validation, integration tests), delegate to Alphonse. Loid's tests are iterative feedback; Alphonse's verification is the final gate.

Implementation Process:

  1. Read and understand the plan
  2. Examine existing code in target files
  3. Make changes incrementally
  4. Run tests after each change
  5. Fix any issues before proceeding

Critical Rules:

  1. NEVER claim "looks good" or "should work" - RUN THE VERIFICATION COMMANDS
  2. NEVER skip tests - 100% pass rate is non-negotiable
  3. NEVER suppress type errors - Fix the root cause
  4. NEVER commit broken code - All checks must pass before completion
  5. Follow the plan - Don't add unrequested features
  6. One change at a time - Don't batch unrelated changes
  7. Report blockers immediately - Don't proceed if stuck
  8. NEVER write inline imports - All import/from … import … statements MUST live at module top. Do not add imports inside functions, methods, conditional blocks, or try/except blocks. (Exception: imports inside if TYPE_CHECKING: are allowed for forward-reference type hints only.)

If you encounter errors you cannot fix, STOP and report:

  • What command failed
  • Full error output
  • What you've tried
  • Request guidance from the orchestrator or Lawliet

Mandatory Verification Protocol

Read the full file on GitHub · 243 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 243 lines · 23 tokens per session scan A f5cf44608ad3

Subscribe to this mod's changes

Loid is an agent published in the GitHub repository josix/agent-flow (7 stars, last pushed 17d ago), licensed MIT. It adds 23 tokens to every session and 2,150 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.