LOGIKASign in

Better logs, written by your agent

Coding agents write code quickly and log it poorly. Logika tells your agent what to log while it codes, checks that it did, and gives it the tools to read what production did.

An example

Left alone, an agent changing an order's status logs something like logger.info("done"). With Logika, it logs the change itself, as an OpenTelemetry span:

with tracer.start_as_current_span(
    "order.status_changed",
    attributes={"order_id": order.id, "status_before": old, "status_after": new, "cause": "payment_captured"},
):
    order.status = new

That one span answers questions nobody has asked yet: which orders went from placed to cancelled without a refund, how long they sit in pending, what usually causes a move to failed. It is plain OpenTelemetry, so nothing in your code depends on Logika.

What you get

Told what to log

Wherever code creates, changes, charges, retries or gives up on something, log it: the entity, its values before and after, and the cause.

Checked as it codes

logika check holds every change to the logging conventions your agent wrote down for each part of the code.

Reviewed at the end of a session

A read-only review by your own agent says which state changes aren't logged yet, and exactly how to log them.

Feedback from production

Every night Logika looks at what arrived: values always missing, names not declared, spans with no app version.

How it works

logika init adds a short section to your AGENTS.md, hooks and skills for Claude Code, Codex and Cursor, and sets up nock. When you ask your agent to instrument this repository with Logika, it asks whether to consult you when something is in doubt or decide and list its decisions for you, describes the repository's components in logika.json and sets up Logika where each process starts. Then it leads nock's logika.instrument round: the code is split into areas, and one agent per area instruments it and writes the rules that judge it, from what the code promises and what it really emits, until logika map leaves nothing in it unexplained and logika check passes.

From then on, the check runs when your agent finishes, and the review runs once at the end of a session that changed enough code. Your main agent never has to load Logika's documentation: the review hands it the findings, and it fixes what applies. For investigating, the CLI gives it dense, readable output: an issue with its evidence, the trace around a span, SQL over everything stored, and local capture with logika test before anything ships.

Controls and boundaries

  • Your own agent does the review, headless and read-only, on your subscription. Logika calls no AI model.
  • It reads code, not intent: the conventions are your agent's own, written down where you can review them. Logika holds the agent to them rather than judging logging in the abstract.
  • No meaning extracted from free text: existing log lines are stored and searchable, but the moments that matter become typed events.
  • You can turn it down: LOGIKA_REVIEW=off turns the review off, and LOGIKA_NUDGE=off the daily reminder to instrument changed code again.

The checks, the review's conditions and every command are in the instrumentation guide and the CLI reference.