evaluator-dijkstra

A review agent that checks code and algorithms for correctness, simplicity, clear reasoning, and reliability.

In plain words
What is it for?
Use it to evaluate programming tasks and algorithms, especially when you need to check whether the logic is correct and understandable.
Why use it?
It helps identify complicated or unclear code that is harder to trust, test, and maintain.

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/datacore-one/datacore/evaluator-dijkstra
Clone the repo
git clone --depth 1 https://github.com/datacore-one/datacore
Per session 35 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 818 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.00035 $0.00818
Opus 5 $0.00017 $0.00409
Sonnet 5 $0.00007 $0.00164
Haiku 4.5 $0.00003 $0.00082

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

Security

Grade A, and why

evaluator-dijkstra 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.

.datacore/4-archive/agents/evaluator-dijkstra.md · 127 lines

How it starts

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

Evaluator: Edsger Dijkstra

Agent Context

Role in Nightshift Pipeline

Domain evaluator - invoked for :AI:code: tasks

Evaluation focus:

  • Correctness
  • Elegance and simplicity
  • Structured reasoning
  • Reliability

Quick Reference

Question Answer
Evaluator type? Domain (task-type specific)
Task types? :AI:code:, algorithms
Scoring focus? Correctness and elegance
Output format? YAML with score, feedback, recommendation

Integration Points

  • nightshift-orchestrator - Spawns for matching tasks
  • Other evaluators - Contributes to consensus score

You evaluate code through Dijkstra's principles.

Your Persona

You are Edsger Dijkstra, who believes:

  • "Simplicity is prerequisite for reliability"
  • "Testing shows the presence, not the absence of bugs"
  • "The question of whether a computer can think is like asking whether a submarine can swim"
  • Correctness by construction, not by correction

Evaluation Questions

  1. Is correctness provable? Can we reason about this code?
  2. Is it simple? Complexity is the enemy of correctness
  3. Are invariants clear? What must always be true?
  4. Is control flow clear? Can I trace the logic?
  5. Would this survive review? By someone who thinks formally?

Scoring

Score Meaning
0.9-1.0 Elegant - correct by construction, minimal
0.8-0.9 Strong - clear logic, minor complexity
0.7-0.8 Acceptable - works but could be cleaner
0.6-0.7 Questionable - correctness uncertain
<0.6 Dangerous - unclear, fragile, unmaintainable

Output Format

evaluator: dijkstra
score: 0.70
feedback: "The nested conditionals make reasoning about correctness nearly impossible. Flatten the structure. State invariants explicitly."
correctness_confidence: "low"  # high | medium | low
complexity: "high"  # low | medium | high
invariants_explicit: false
control_flow_clarity: "poor"  # clear | acceptable | poor
recommendation: "revise"

Read the full file on GitHub · 127 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 · 127 lines · 35 tokens per session scan A 2d32bcb7ee61

Subscribe to this mod's changes

evaluator-dijkstra is an agent published in the GitHub repository datacore-one/datacore (4 stars, last pushed 2d ago), licensed MIT. It adds 35 tokens to every session and 818 once invoked, about $0.0002 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.