LOGIKASign in
On this page

Overview

Logika is observability and analytics for coding agents. It is four steps, each built on the one before, and you climb as far as you like.

  1. A logging platform. An application already instrumented with OpenTelemetry works as it is. Through the logika-otel enhancer it sends its traces, logs and metrics; Logika stores every span, log record and metric data point, and you and your agent query them in dense form (logika query). The ledger is optional: with an empty one, no name is reported as undeclared.
  2. It wakes your agent. Any span that ends in an error, and any log record with an exception or an ERROR or FATAL severity, raises an issue, whatever the ledger declares; beyond that, an event marked anomaly is one whenever it is seen, and rules say what must follow what. The server-side evaluator judges the stream every 5m, issues land in the project's queue, and the notifier emails the members subscribed to their environment. Logika Monitor then wakes your own coding agent on your machine, delivering as you set each environment in the console: a pull request, a deploy, or instructions of your own (how and where to deploy, what to leave alone, when only to report).
  3. Good logging practices. Your agent logs as many state transitions as it can: whatever the code creates, updates, charges, retries or gives up on, an event naming the entity, its identity, its values before and after, and the cause. That is what makes a later diagnosis possible, by Logika, by an agent, or by you querying the logs. logika check holds each change to the conventions logika.json sets for each component, and, in components marked instrumented, Logika's reviewer reads the change at the end of a session.
  4. Reflection. Rules about what must hold are not written while coding: they can only check what was recorded, and they are written well only against what the code really emits. So they are written later, with you, in a deliberate round: nock reflect logika, from nock, which logika init installs. It has two parts: rules (validate, paths, timeouts, rules, and invariants) and analytics (funnels, milestones, views and the breakdowns they need). Each is written into the ledger from real captures, and each rule is proven on replays (logika replay) before it lands.

Logika does not extract meaning from unstructured logs, and calls no LLMs: the fix loop runs on your own coding-agent subscription. There is no log viewer and there are no live dashboards: logs are queryable through the API and CLI in dense form, for agents.

The loop

  1. You run logika login and logika init in the repository, then ask your coding agent to instrument it. It maps the components, asks you which to instrument, writes each one's logging conventions into logika.json, sets up the enhancer, instruments the code, and tells you when it's ready for logika sync.
  2. As it writes code, the agent logs each state transition; logika check holds the change to the components' conventions, and logika test runs your code with local capture and judges it.
  3. logika sync (CI on release) sends the ledger; code built with it is judged by it.
  4. The application emits; the evaluator judges every 5m.
  5. An issue reaches the queue, and the environment's subscribers are emailed.
  6. Once woken, the agent claims the open issues (logika claim), investigates through the API, delivers fixes (commits, pull requests or deploys) and closes every item with one resolution (logika resolve), emailed in the thread that announced the issues.
  7. A fixed issue that recurs on an app version first seen after the fix reopens as a regression; instrumentation feedback and your reflection rounds improve the ledger.

The model

ObjectWhat it is
UserA person. Owns projects and may be a member of others.
ProjectThe unit of billing and isolation. Your token names the project it is for.
LedgerA named, versioned schema. One logika.json per repository declares one ledger; several repositories may belong to one project.
EnvironmentResolved from the SDK key, never from attributes. Creating a key names its environment and creates it if it is new (default when you name none); the console's Settings or logika api add one too. None is special: there is no production environment. Each is a separate queue with its data stored apart, and can be renamed (queries, analytics and the queue follow the new name) or deleted once no live key writes to it. Its owners set, in the console's Settings, when the agent works its issues: auto (a member's monitor takes them on its own), on_request (when someone presses Wake my agent; the default) or never; which agent runs (Claude Code by default, Codex, or a command of your own); how it delivers (a pull request by default, a deploy, or instructions of your own); a time limit for a run (none by default); and how many days of raw events it keeps, the tier's unless you set fewer. A new environment can copy them from another. Who is emailed about it is each member's own: an owner chooses a member's environments when inviting them, each member changes their own, and the project's creator is subscribed to every environment as it is created.
InstanceOne process: the unit of liveness and loss accounting.
EventA declared, typed thing that happens: a span (an operation with a beginning and an end) or a leaf (a short span marking a point in time).
IssueA judged condition worth attention, with evidence and occurrences; its kind is anomaly in the API and the CLI.
QueueThe project's single list of things addressed to you: issues, instrumentation feedback and account messages.

Identifiers

Every object the API or CLI exposes carries a short typed identifier: a kind prefix and an encoded number, such as an_K3mP9qRt for an issue, pr_… for a project, qi_… for a queue item and tok_… for a token. A wrong-kind identifier is rejected by name. OpenTelemetry span and trace ids are shown as they are; ledger versions are plain integers per ledger.

Credentials

  • Token, yours, for one project. logika login writes it as LOGIKA_TOKEN to the .env beside logika.json, and logika token prints one for CI or a server. It acts with your role (editors and owners get tokens; viewers read in the console) and stops working when you leave the project. Keep it out of version control; the console lists yours, to revoke any.
  • SDK key, per ledger and environment. Ingest-only, carried by the enhancer in OTEL_EXPORTER_OTLP_HEADERS. A staging key cannot write production data.
  • Browser session, for the console only, through GitHub or Google sign-in. Sessions are listed and revocable from your account.

The queue

Each item has a kind. The agent works items by claiming them (logika claim) and closing them with one resolution (logika resolve): fixed, with its delivery, dismissed with a reason, or left open with a reason.

KindWho works itCloses when
anomalya run, after Wake my agent or on its own in an auto environmentfixed or dismissed by a resolution; nothing closes it by time or silence
insightthe agent, when you ask Why?dismissed, or explained by the agent you asked; raised anew when the change comes back after a quiet day
feedbackthe agent, when you ask Fix itthe critic re-checks it nightly, or a resolution closes it
accountthe agent, when you ask Fix it and it can fix itthe condition clears

Runs take issues only. An insight, feedback or an account condition the agent can fix (non-trace signals, a revoked key in use, a ledger synced with warnings, code running a ledger nobody synced) is worked only when you ask: the console's Why? on an insight and Fix it on the others, or asking your agent, which claims it by id.

An issue is open, claimed (a run holds it), fixed or dismissed, and keeps counting occurrences whatever its state. Fixing means fixing the code; dismissing means the condition is unimportant, so calibrate the ledger (fix the logs) so it stops firing. A fixed or dismissed issue reopens as a regression when it recurs on an app version first seen after it was closed, so set service.version in your application; occurrences from older or unversioned code accumulate quietly, and the nightly critic reports their counts. An unusual-change (change) issue is a regression a release is to blame for (worse on one app version, or since a deploy), and reopens like any other by that version; dismissing a change finding says this level is normal here and widens its threshold.

Change detection splits what it finds in two. A regression is an issue of check change, for the agent to fix: a failure rate, latency or typical value worse on one app version than on the others, or worse since a deploy. Everything else is an insight, for you: traffic that rose or fell, a failure rate, latency or count that moved with no version or deploy to blame, one environment worse than the others, and, judged daily, a funnel's conversion falling or a numeric param's typical values shifting. Volume is grouped: every event whose traffic rose in an environment is one insight, "traffic rose across N events", listing each event with its numbers and split by app version (and likewise for a fall), since one cause such as a new version beside the old usually moves them all; dismissing it widens the threshold of every event in it. Insights are listed as What changed atop the console's Analytics, and ride along on the next issue email. Runs never take one: the agent looks at an insight only when you ask Why?, in a session of its own, and its answer shows on the insight. An insight never reopens per app version; one that comes back after a day without occurrences is raised anew. Change detection compares app versions and environments side by side from the first hour, and judges each event against its own history from about a day on: with little history only a large change counts, and as history accumulates the band narrows and daily and weekly rhythms are learned, gradually rather than at a fixed age.

There is no mute and no acknowledgement. A condition that should not fire is a ledger edit; a real problem is a fix. Starting the agent is never per item: Wake my agent (in the email, the console or Logika Monitor's menu) means fix the open issues: a run works one environment's, claims them all and ends with one resolution, and the next environment's run follows. One run at a time works the issues; a Wake my agent pressed meanwhile is taken in by the running agent, and waits for the next run. Only your own monitor answers your Wake my agent, never another member's; a wake your monitor does not take within 5m is given up, and you are emailed. In an auto environment Logika waits up to 3m after new issues for a member's monitor to claim them; the email then says whose agent is on them or that it could not start; otherwise it carries your Wake my agent button.

Email. An email goes to an environment's subscribers only after an evaluation round finds new issues or regressions there, grouped, and is never repeated: there are no reminders. Other open issues, open feedback and account notices ride along; notices with nothing to ride along on for a week are sent together. New insights ride along on the next issue email ("Also changed") and never send one of their own. While your own Logika Monitor isn't connected, the email says to run logika login first. What the agent does is emailed, each as its own message in the thread: its resolution (the root cause, and each item's outcome with its delivery or reason), or that it stopped without resolving; when your agent could not start or sign in, the email offers no Wake my agent, since that is fixed on your computer first. The answer to a Why? is never emailed, and what a person does by hand never is.

Every email ends with a one-click unsubscribe link, and opens and clicks are never tracked. An address that bounces, is blocked, reports an email as spam or unsubscribes is no longer emailed and leaves every subscription; each of its projects gets an account item saying so until email resumes, when the person chooses their environments again (or, after a bounce, an owner re-subscribes them from Settings → Email, which lists every email sent about the project in the last 90d with its delivery).

Spending. Each member sets one soft monthly limit on what their agent's runs spend in the project, across its environments, in the console (or logika api membership set); there is none until they set one, and an agent changes it only when its member asks. Past it, that member's monitor starts nothing more in the project until the month turns or the limit is raised (another member's may), their emails say so instead of offering Wake my agent, and they are emailed once that month. A running agent is never stopped: past its environment's time limit it is only asked to round up.