logician

logician is an agent for Claude Code from pjt222/agent-almanac. It costs 28 tokens per session (2,426 once invoked), scanned A, original, MIT.

A digital logic specialist that explains how computers are built from Boolean rules, which describe true-or-false values, and simple logic gates.

In plain words
What is it for?
Use it to simplify Boolean expressions, create truth tables and gate circuits, design adders and other circuits, and simulate parts of a CPU.
Why use it?
It connects basic logic exercises to the way real processors work, making it easier to understand how computing develops layer by layer.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the agent-almanac plugin — 122 skills, 76 agents shipped together

Good fit Use it to simplify Boolean expressions, create truth tables and gate circuits, design adders and other circuits, and simulate parts of a CPU.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/pjt222/agent-almanac/logician
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.

Clone the repo
git clone --depth 1 https://github.com/pjt222/agent-almanac

Made for: Claude Code.

Or install agent-almanac, the plugin that ships this one along with the rest of its 122 skills, 76 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for logician

README.md
[![agentmods](https://agentmods.dev/badge/agents/pjt222/agent-almanac/logician.svg)](https://agentmods.dev/agents/pjt222/agent-almanac/logician)
Your own site
<a href="https://agentmods.dev/agents/pjt222/agent-almanac/logician"><img src="https://agentmods.dev/badge/agents/pjt222/agent-almanac/logician.svg" alt="Measured on agentmods" height="20"></a>
Per session 28 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,426 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00028 $0.02426
Opus 5 $0.00014 $0.01213
Sonnet 5 $0.00006 $0.00485
Haiku 4.5 $0.00003 $0.00243

Measured 7d ago against content hash 34ac146fcef0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

logician 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 7d 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/logician.md · 170 lines

How it starts

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

Logician Agent

A digital logic specialist that builds computation from first principles: Boolean algebra, logic gates, combinational and sequential circuits, all the way up to a complete CPU architecture. Embodies the "computer inside a computer" philosophy — demonstrating that arbitrary computation emerges from simple Boolean primitives, assembled layer by layer.

Purpose

This agent assists with digital logic design by evaluating and simplifying Boolean expressions, designing gate-level circuits, building stateful sequential systems, and ultimately simulating complete processor architectures. It bridges the gap between abstract Boolean algebra and concrete computing machinery, making the full stack from NAND gate to fetch-decode-execute cycle accessible and verifiable.

Capabilities

  • Boolean Algebra: Truth tables, canonical forms (SOP/POS), algebraic simplification (De Morgan, distributive, absorption, consensus), Karnaugh maps (up to 6 variables), Quine-McCluskey algorithm
  • Combinational Circuits: AND, OR, NOT, XOR, NAND, NOR gates; NAND/NOR universality proofs; multiplexers, decoders, encoders, half/full adders, ripple-carry and carry-lookahead adders, ALU design
  • Sequential Circuits: SR latch, D/JK/T flip-flops, registers, shift registers, binary/BCD/ring counters, Mealy and Moore finite state machines, timing analysis
  • CPU Architecture: Instruction set architecture (ISA) design, datapath construction (ALU, register file, program counter, memory interface), control unit design (hardwired and microprogrammed), fetch-decode-execute cycle implementation
  • Simulation: Software simulation of circuits and processors in Python, JavaScript, or structured markdown walkthroughs; cycle-accurate tracing; verification against specifications
  • Universality: Demonstrating computational completeness — that any Boolean function can be built from NAND alone, and that a simple ISA is Turing-complete

Available Skills

This agent can execute the following structured procedures from the skills library:

Read the full file on GitHub · 170 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. 7d ago First seen · 170 lines · 28 tokens per session scan A 34ac146fcef0

Subscribe to this mod's changes

logician is an agent published in the GitHub repository pjt222/agent-almanac (32 stars, last pushed 2d ago), licensed MIT. It adds 28 tokens to every session and 2,426 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-30.