noctcore

Local first / Open source / MIT

Autonomy,
governed.

Agents write the code. Every change still passes a gate.

noctcore is a small family of open source developer tools for working with coding agents: two desktop apps and 25 npm packages. Agents write most of the code; the structure, the review gates and the safety rules stay in human hands, on your machine, in files you can read.

Browse the librariesFollow a change

npx @noctcore/harness check

Run a repo's own checks in any CI. Zero runtime dependencies, no network, no account.

Sheet
00, the org mark
Form
plan, held passage
Parts
7 rects on 64u
Routes
1 through, 0 around
Note
Work passes through the core; nothing passes around it. Every sheet below is drawn the same way.

The drawing set / 6 sheets

Follow one change through the gates.

Each sheet is drawn from a flow the code really runs, in its real order. Steps are named as the README names them; copper marks what a step stops, as an example of the class it addresses, not a promise to catch every case.

Scroll to turn the sheets, or pick one from the tabs.Pick a sheet from the tabs.

An agent diff rises toward your branch through lint rules, repo checks and the gauntlet. Shell injection stops at the lint rules, a CI job that installs packages while it holds a secret stops at the repo checks, and a skipped test stops at the gauntlet.shell injectionsecret at installskipped test01lint rules02repo checks03gauntletagent diffyour branchAn agent diff rises toward your branch through lint rules, repo checks and the gauntlet. Shell injection stops at the lint rules, a CI job that installs packages while it holds a secret stops at the repo checks, and a skipped test stops at the gauntlet.shell injectionsecret at installskipped test010203agent diffyour branch
Sheet
01 of 06
Route
agent diff to your branch
Subject
noctcore

Every change still passes a gate.

An agent diff on its way to your branch meets the family in order: lint rules in the editor and CI, repo checks in CI, then the verification gauntlet before the merge.

  1. 01 lint rules stops shell injection no-shell-interpolation@noctcore/eslint-plugin-security
  2. 02 repo checks stops secret at install github-actions-secret-no-install@noctcore/harness/rules
  3. 03 gauntlet stops skipped test anti-gaming sweepNightcore guardrail battery
Source code passes the contracts, async-safety and security plugins on its way to a clean lint run. An unchecked fetch stops at contracts, a fetch with no timeout at async-safety, and shell interpolation at security.unchecked fetchno timeoutshell interpolation01contracts02async-safety03securitysourceclean lintSource code passes the contracts, async-safety and security plugins on its way to a clean lint run. An unchecked fetch stops at contracts, a fetch with no timeout at async-safety, and shell interpolation at security.unchecked fetchno timeoutshell interpolation010203sourceclean lint
Sheet
02 of 06
Route
source to clean lint
Subject
noctcore/eslint-plugins

Catch bugs that compile.

Source passes three of the fifteen plugin families on its way to a clean lint run. Each report points at the exact place.

  1. 01 contracts stops unchecked fetch fetch-must-check-ok@noctcore/eslint-plugin-contracts
  2. 02 async-safety stops no timeout require-fetch-timeout@noctcore/eslint-plugin-async-safety
  3. 03 security stops shell interpolation no-shell-interpolation@noctcore/eslint-plugin-security
One harness check run as a ledger: unit tests, a lockfile rule and actionlint at its pinned version pass; the secret-no-install rule fails on a job that reads a token and installs packages; zizmor is blocked with exit 2 because neither its pinned binary nor Docker is there. The run exits 1 and lists both stops..noctcore/harness.json01unit-testsnode --testpassed02lockfile-registry-resolutionslint-meta, supply chainpassed03actionlintpinned, native binarypassed04github-actions-secret-no-installlint-meta, token held during installfailed05zizmorno pinned binary, no Dockerblocked, exit 2exit 1: every check ran, both stops are listedOne harness check run as a ledger: unit tests, a lockfile rule and actionlint at its pinned version pass; the secret-no-install rule fails on a job that reads a token and installs packages; zizmor is blocked with exit 2 because neither its pinned binary nor Docker is there. The run exits 1 and lists both stops..noctcore/harness.json01unit-testsnode --testpassed02lockfile-registry-resolutionslint-meta, supply chainpassed03actionlintpinned, native binarypassed04github-actions-secret-no-installlint-meta, token held during installfailed05zizmorno pinned binary, no Dockerblocked, exit 2exit 1: every check ran, both stops are listed
Sheet
03 of 06
Route
manifest to exit code
Subject
noctcore/harness

Hold a repo to its own rules.

One run of harness check. Every check runs, every command is printed, and a check that could not run is a failure, never a pass.

  1. 01 lint-meta stops secret at install github-actions-secret-no-install@noctcore/harness/rules
  2. 02 pinned tools stops missing pinned tool blocks the run zizmor, actionlint, gitleaks@noctcore/harness/pinned-tools
A login rises toward a session through reserve attempt, verify password and the epoch fence. Brute force stops at reserve attempt, account enumeration at verify password, and a revoked token at the epoch fence.brute forceenumerationrevoked token01reserve attempt02verify password03epoch fenceloginsessionA login rises toward a session through reserve attempt, verify password and the epoch fence. Brute force stops at reserve attempt, account enumeration at verify password, and a revoked token at the epoch fence.brute forceenumerationrevoked token010203loginsession
Sheet
04 of 06
Route
login to session
Subject
noctcore/auth

Auth you can read.

The login path through the library, one module per attack. The app keeps its own routes; the flow returns a result.

  1. 01 reserve attempt stops brute force attempt budgets reserved before the hash runsthrottle
  2. 02 verify password stops enumeration the same answer for known and unknown addressesflows/login
  3. 03 epoch fence stops revoked token revocation a racing login cannot undosession
One config drives capture, frame and export through to README images. Running animations and half-drawn screens stop at capture, so each run produces the same pixels.animationshalf-drawn screen01capture02frame03exportconfigREADMEOne config drives capture, frame and export through to README images. Running animations and half-drawn screens stop at capture, so each run produces the same pixels.animationshalf-drawn screen010203configREADME
Sheet
05 of 06
Route
config to README
Subject
noctcore/showcase-kit

Same pixels, every run.

One config drives capture, frame and export through to the images in a README. Frame and export stop nothing, so they carry no label.

  1. 01 capture stops animations, half-drawn screen deterministic capture in Playwright@noctcore/showcase-kit
  2. 02 frame stops nothing six styleswindow, browser or terminal frame
  3. 03 export stops nothing hero banners, clips, iconsWebP or PNG, README snippet
add() passes the producer, the dedupe and the queue policy to a JobHost worker and ends completed. A hung request stops at the producer, a duplicate job at the dedupe and a retry storm at the policy.hung requestduplicate jobretry storm01producer02dedupe03policy04JobHostadd()completedadd() passes the producer, the dedupe and the queue policy to a JobHost worker and ends completed. A hung request stops at the producer, a duplicate job at the dedupe and a retry storm at the policy.hung requestduplicate jobretry storm01020304add()completed

Why it exists

Agents can write most of the code. They should not decide what ships.

Structure
The project's own rules, committed: lint plugins, lint-meta registries, structure locks.
Review
An independent reviewer and a merge you approve, never a merge on trust.
Safety
Security rules in the linter, pinned workflow linters, auth defaults written down with their reasons.

Coding agents are quick and tireless, and they optimise for done. Left alone they will skip the failing test, import across a layer or leave a secret where a CI job can read it. A rule that lives in a prompt is a suggestion.

noctcore builds the other half: the rules a repo commits, the checks that run them, and the gates a change has to pass before it lands. The gates are enforced, not requested, and a check that could not run counts as a failure, never a pass.

The tools are local-first and legible. There is no noctcore server and no account; the apps run on your machine and the libraries are small enough to read, with each rule naming the mistake it exists for.

Apps

Two desktop apps for running agents.

Nysia

In active development, v0.3

A terminal-first agentic development environment.

Every tab is an agent or a shell session over a headless nysiad daemon that owns the terminals and the orchestration state, so the window can close or crash without interrupting a running agent. Tasks come from GitHub Issues and start in branch-keyed worktrees.

Projects and tasks work today; the worktree manager is planned for v0.4. No binary release yet.

Milestone
v0.3, projects and tasks
Get it
Build from source (Rust, Node 22.18+, pnpm 10)
Built on
Tauri v2 and Rust, one binary that is both daemon and CLI

Nightcore

Maintenance mode since v0.5.0

A local-first desktop studio that runs Claude as an autonomous development team.

Describe work as cards on a board. Agents plan, build and test in parallel, each in its own git worktree, and nothing merges on trust: every change passes build, lint, typecheck, the project's own structure rules and an independent reviewer agent before it can reach your branch. Codex is an optional second provider.

Dependency and security updates and fixes to what exists, no new features.

Latest
v0.5.0, 2 October 2026
Get it
Installers for macOS (.dmg) and Windows (.exe, .msi)
Built on
Rust and Tauri, over a Bun provider sidecar

Libraries and SDKs / 25 packages

The index.

Every package is MIT licensed and published to npm under @noctcore with provenance, through npm trusted publishing. Versions as of 21 November 2026.

shippedactive developmentpreviewmaintenance

01

auth

Auth you can read.

Early development: 0.5 previews on npm, not for production yet

Authentication for TypeScript servers in the spirit of Lucia: sessions, Argon2id passwords, one-time tokens, throttling, CSRF and enumeration-safe flows over storage interfaces, one readable module per attack.

npm i @noctcore/auth @node-rs/argon2
  • @noctcore/auth0.5.0The framework-free core: sessions, passwords, one-time tokens, throttling and flows, with two-factor, membership and invitations as subpaths.
  • @noctcore/auth-redis0.5.0Session, counter, two-factor and membership stores on ioredis.
  • @noctcore/auth-prisma0.5.0Prisma 7 user, token, two-factor and membership stores, plus the schema to merge.
  • @noctcore/auth-nestjs0.5.0A closed-by-default session guard, CSRF middleware, decorators and trust-proxy setup.
  • @noctcore/auth-trpc0.5.0Session context, guarded procedures, CSRF on mutations and safe error mapping.

All five packages share one version.

02

harness

Hold a repo to its own rules.

0.6.0 on npm, zero runtime dependencies, no network

A check runner over a committed manifest, a lint-meta engine for whole-repo rules ESLint cannot reach, ready-made rules and zizmor, actionlint and gitleaks pinned to an exact version. Runs in any CI.

npx @noctcore/harness check
  • @noctcore/harness0.6.0harness check runs the manifest, harness lint-meta the whole-repo rules, harness catalog documents them.

Subpaths: /rules and /pinned-tools.

03

eslint-plugins

Catch bugs that compile.

Shipped: flat config, ESLint 9+, each plugin versioned on its own

Fifteen focused plugins, a shared utils package and a catalog of whole-repo lint-meta rules, for architecture, contract, data-integrity and safety problems generic linters cannot see.

npm i -D @noctcore/eslint-plugin-code-quality @typescript-eslint/parser
Show the other 11 packages

New here? Start with code-quality, async-safety and contracts.

04

showcase-kit

Same pixels, every run.

0.3.1 on npm

Capture, frame and export showcase images of desktop, web and terminal apps for READMEs and portfolios, from one config file. Playwright drives the app and captures the same pixels on every run.

npm i -D @noctcore/showcase-kit playwright
  • @noctcore/showcase-kit0.3.1The showcase CLI: raw captures, framed README images, portfolio images, hero banners, terminal clips and app icons.

Needs Node 22 and Playwright 1.50 or newer.

05

jobs

Jobs without the traps.

0.1.0 on npm, pre-1.0: pin an exact version

BullMQ 6 for NestJS with the safe choice made the default: typed queues with required retry and retention policies, a dedupe on every enqueue and producers that fail fast during a Redis outage. Sweeps run once per tick, and shutdown waits for running jobs.

npm i @noctcore/jobs bullmq ioredis
  • @noctcore/jobs0.1.0defineQueue, queue.add with a required dedupe, @Worker on JobHost, @Sweep, graceful shutdown and telemetry adapters.

Needs NestJS 11 or 12, BullMQ 6 and Redis with maxmemory-policy noeviction.

Principles

What every tool keeps to.

General notesApply to every sheet

  1. 01

    Local-first

    The tools run where your code already is. There is no noctcore server to send it to and no account to create.

    Where it holdsNightcore keeps per-project state in the project's .nightcore/; harness makes no network call.

  2. 02

    Legible

    You can always see what a tool did and why. Commands are printed, rules name their mistake.

    Where it holdsharness prints every command before it runs; each auth module opens with the attack it exists for.

  3. 03

    Governed

    Agents move fast inside rules you define, not around them. Gates are enforced state, not advice.

    Where it holdsNightcore's gates are machine-enforced transitions; a harness check that could not run fails.

  4. 04

    Zero runtime dependencies

    Where it can be done. Fewer things to trust, audit and pin.

    Where it holds@noctcore/harness and the @noctcore/auth core install with no runtime dependencies.