[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-107605":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":15,"stars30d":16,"stars90d":15,"forks30d":15,"starsTrendScore":15,"compositeScore":17,"rankGlobal":9,"rankLanguage":9,"license":18,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":19,"hasPages":19,"topics":21,"createdAt":9,"pushedAt":33,"updatedAt":34,"readmeContent":35,"aiSummary":36,"trendingCount":15,"starSnapshotCount":15,"syncStatus":37,"lastSyncTime":38,"discoverSource":39},107605,"kodeblue","Problem99-io\u002Fkodeblue","Problem99-io","SOC, incident response and SecOps for Linux servers in one agent: learns each host, watches it with zero-token sensors, triages with a small model, and contains attacks under a root-owned policy. Optional hub for fleets.",null,"Go",71,6,55,5,0,8,43.34,"Apache License 2.0",false,"main",[22,23,24,25,26,27,28,29,30,31,32],"ai-agents","blue-team","go","incident-response","intrusion-detection","linux","llm","secops","security","server-monitoring","soc","2026-11-23 10:49:01","2026-11-17 21:39:02","\u003Ch1 align=\"center\">\n  \u003Cpicture>\n    \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"docs\u002Fassets\u002Fkodeblue-logo-dark.svg\">\n    \u003Cimg src=\"docs\u002Fassets\u002Fkodeblue-logo-light.svg\" width=\"240\" alt=\"kodeblue\">\n  \u003C\u002Fpicture>\n\u003C\u002Fh1>\n\n[![CI](https:\u002F\u002Fgithub.com\u002FProblem99-io\u002Fkodeblue\u002Factions\u002Fworkflows\u002Fci.yml\u002Fbadge.svg?branch=main)](https:\u002F\u002Fgithub.com\u002FProblem99-io\u002Fkodeblue\u002Factions\u002Fworkflows\u002Fci.yml)\n[![Release](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fv\u002Frelease\u002FProblem99-io\u002Fkodeblue?sort=semver)](https:\u002F\u002Fgithub.com\u002FProblem99-io\u002Fkodeblue\u002Freleases\u002Flatest)\n[![License](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-Apache--2.0-blue)](LICENSE)\n\n> Hackers have agents that attack 24\u002F7. Now you have one that defends.\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fassets\u002Fkodeblue-hero.gif\" width=\"800\" alt=\"Simulation of five servers, each with a kodeblue agent, under attack from dozens of attack agents. Each server's agent contains the attacks (killing a reverse shell, disabling a planted SSH key, quarantining a web shell) and reports to the hub, while an incident log lists every action.\">\n\u003C\u002Fp>\n\u003Cp align=\"center\">\u003Csub>The simulation from \u003Ca href=\"https:\u002F\u002Fproblem99.io\u002Fkodeblue\">problem99.io\u002Fkodeblue\u003C\u002Fa>: one kodeblue per server, containing attacks as they land.\u003C\u002Fsub>\u003C\u002Fp>\n\n**An AI blue team for your Linux servers: SOC, incident response and SecOps in one.** One kodeblue per server, running as its own non-root `kodeblue` user. It does the work of all three, and never sleeps:\n- **SOC:** it learns what the server normally looks like and notices changes to its most sensitive files within seconds\n- **incident response:** it investigates anything suspicious in its own agent session, contains the attack when policy allows, and writes up what happened\n- **SecOps:** it finds each service's vulnerabilities and coverage gaps, tunes its own detections every day, and posts updates to Slack\n\nIt is built to run on a small, cheap model behind any OpenAI-compatible API: deterministic sensors and filters do the heavy lifting, so the model only sees what survives them. Without a model configured, sensors, detection and monitors still run.\n\n```\nfast watch (5s) ─► sensors (60s, 0 tokens) ─► deterministic filters (0 tokens) ─► triage (small model, batched)\n                                              + agent-written monitors (0 tokens)        │\n                                                                                         ▼\n              daily review session ◄─ reports\u002Fskills\u002Fmonitors ◄─ one agent session per incident ─► respond (policy) ─► Slack\n```\n\nAn optional **hub** (`kodeblue-hub`) gives a fleet one console: every server's incidents, reports, the agents' reasoning and tool calls (live), monitors, findings and pending approvals, and a way to message the agents. Servers only dial out to it, always over TLS (plain HTTP is allowed only to a hub on the same machine).\n\n## Quick start\n\nEach step is one command plus your model's API key, on Linux with systemd (amd64 or arm64; see [Requirements](#requirements)). The installers download the latest [release](https:\u002F\u002Fgithub.com\u002FProblem99-io\u002Fkodeblue\u002Freleases) for the server's architecture and check it against the release's `SHA256SUMS` before installing. To download and check the files yourself, or to build them, see [docs\u002Fdeploy.md](docs\u002Fdeploy.md#install-from-the-release-files) and [Build](#build).\n\n### A. One server, no hub\n\n```bash\ncurl -fsSL https:\u002F\u002Fgithub.com\u002FProblem99-io\u002Fkodeblue\u002Freleases\u002Flatest\u002Fdownload\u002Finstall.sh | sudo sh -s -- --inference-url https:\u002F\u002Fopenrouter.ai\u002Fapi --model \u003Cmodel>\n```\n\nUse any OpenAI-compatible endpoint, with or without `\u002Fv1` at the end. The installer asks for its API key, an optional Slack webhook, and optional Telegram bot credentials (secret input is not echoed), and starts kodeblue. kodeblue takes snapshots of the server for about 30 minutes. A learning session then explores the server and an assessment records its vulnerabilities (each can take up to 45 minutes), so expect it to start watching within one to two hours.\n\nWithout `--inference-url`, kodeblue starts watching after the snapshots, and the learning session and assessment wait until you set a model; they then run on their own. Set or change the model, and its key, with one command (it asks for the key and restarts kodeblue):\n\n```bash\nsudo kodeblue inference --url https:\u002F\u002Fopenrouter.ai\u002Fapi --model \u003Cmodel> --key-file -\n```\n\nTelegram notifications can be used alone or alongside Slack. Standalone servers\nconfigure them during installation; hub users configure **Settings → Telegram**.\nSee [Telegram setup](docs\u002Fhub.md#telegram) for bot and chat-ID instructions.\n\nThen review the policy (response mode, protected users, IPs and units, budget) with `sudoedit \u002Fetc\u002Fkodeblue\u002Fkodeblue.toml`, and follow along with `sudo journalctl -fu kodeblue`.\n\n### B. A hub and several servers\n\nOn the hub host, here with a self-signed certificate that servers pin:\n\n```bash\ncurl -fsSL https:\u002F\u002Fgithub.com\u002FProblem99-io\u002Fkodeblue\u002Freleases\u002Flatest\u002Fdownload\u002Finstall-hub.sh | sudo sh -s -- --public-url https:\u002F\u002Fhub.example.com:8443 --self-signed\n```\n\nOr run the hub image: `ghcr.io\u002Fproblem99-io\u002Fkodeblue-hub:latest` (see [docs\u002Fdeploy.md](docs\u002Fdeploy.md#with-docker)).\n\nThe installer asks for the first operator's password (twice) and starts the hub. Then:\n\n1. Sign in at the public URL. The browser warns once about the self-signed certificate.\n2. Open **Settings**, choose **Add connection** and paste your model's API key. The hub then asks which model every agent should use.\n3. Open **Servers**, choose **Add server**, and run the command it prints on the server, as root or as a user with sudo. Start the line with a space so the token stays out of your shell history (see [docs\u002Fdeploy.md](docs\u002Fdeploy.md#keep-the-token-out-of-your-shell-history)). The command looks like this:\n\n```bash\n f=$(mktemp) && r=$([ \"$(id -u)\" = 0 ] || echo sudo) && { curl -fsSL --proto =https --proto-redir =https -k --pinnedpubkey 'sha256\u002F\u002F…' -o \"$f\" https:\u002F\u002Fhub.example.com:8443\u002Finstall.sh && echo \"\u003Csha256>  $f\" | sha256sum -c - && printf '%s\\n' kbe_… | $r sh \"$f\" --hub https:\u002F\u002Fhub.example.com:8443 --pin 'sha256\u002F\u002F…' --token-file -; s=$?; rm -f \"$f\"; (exit \"$s\"); }\n```\n\nIt saves the installer, checks its hash before running it as root, and passes the single-use token on stdin so it never appears in a process's arguments. The server takes the hub's model and key at enrollment and asks nothing. A server that has no model yet watches with its deterministic detection, and the hub shows that its learning is waiting for one.\n\nFor a hub on the internet, we recommend putting it behind Cloudflare with a `cloudflared` tunnel: the hub host opens no port, servers verify Cloudflare's public certificate (no pin), and Cloudflare Access can guard the console. Cloudflare then sees the traffic between servers and the hub; see [docs\u002Fdeploy.md](docs\u002Fdeploy.md#behind-cloudflare) for the setup and the trade-off.\n\nTo hide the console from everyone but your office or VPN, add `--console-allow 203.0.113.7,10.66.0.0\u002F24` (servers can still enroll and sync). For a real certificate, a reverse proxy, Docker or WireGuard, see [docs\u002Fdeploy.md](docs\u002Fdeploy.md) and [docs\u002Fhardening.md](docs\u002Fhardening.md).\n\n## The problem\n\nScanning, brute forcing and exploiting used to take a person at a keyboard. Now it takes an agent loop and a list of IPs. The attacking side is automated; on most servers the defending side still waits for a human.\n\n- **They never log off.** Every public IP is scanned, brute forced and probed around the clock. Your team goes home; theirs doesn't.\n- **The real alert hides in the noise.** Most monitoring fires on every package upgrade and worker restart. A planted SSH key looks like one more line in the day's noise, and people learn to stop reading.\n- **Minutes for them, hours for you.** An intruder goes from a foothold to persistence in minutes. A human-only response starts when someone reads the alert, often the next morning.\n- **A 24\u002F7 security team is out of reach.** Round-the-clock SOC analysts, incident responders and security engineers cost more than most teams spend on their servers, so most servers have no one watching at all.\n\nkodeblue puts a security team on every server. It sits next to the processes, files and logs it protects, never logs off, and catches an attack within seconds.\n\n## How it works\n\nOne kodeblue per Linux server, running as its own non-root user. It can read every file and process on the host, but its sandbox lets it write only its own state, and containment goes through a separate root helper ([details](docs\u002Fkodeblue.md#running-as-its-own-user)). It does the work of a SOC analyst, an incident responder and a SecOps engineer, except it never sleeps and it already knows the machine. The examples below are illustrative.\n\n**1. Learn what normal looks like.** Repeated snapshots and an agent that explores the host. It writes a server profile, monitors and skills for this exact machine. Signs of compromise that are never legitimate (a uid 0 account, `ld.so.preload`, a deleted or in-memory executable, a package checksum mismatch, a shell connecting out) are still flagged while it learns, so an already-compromised server is not learned as normal.\n\n```\nserver profile · web-01\nrole     nginx + node api, postgres replica\nadmins   ram (ed25519 …9f2c), deploy (ci key)\nnormal   nightly unattended-upgrades, backup cron 02:00, workers restart on deploy\nexposed  22 from office \u002F24, 443\nrisk     postgres listening on 0.0.0.0:5432\n+ 6 monitors, 2 host skills written\n```\n\n**2. Notice change in seconds.** Keys, accounts, sudoers, cron, systemd, PAM and `ld.so.preload` are checked every 5 seconds, and a change starts a sweep at once. A critical change, such as a key planted for root, becomes an incident within seconds; other changes are confirmed on the next sweep, a minute or two later.\n\n**3. Filter first, model second.** Deterministic sensors and filters cost zero tokens and remove the noise. A small, cheap model only sees what survives them, which keeps false positives and spend low.\n\n```\nchanges seen today                                          1,284   0 tokens\nleft after baseline, package checksums, debounce               33   0 tokens\nmedium or high, sent to the small model                         4   ≈ $0.001\nsuspicious, opened as an incident                               1   one agent session\n```\n\n**4. Investigate like an incident responder.** Each incident gets its own agent session with read-only host tools. It gathers evidence, reasons about it, and reaches a verdict you can read step by step.\n\n```\nincident #41 · blue-responder session\nhost_read \u002Fhome\u002Fdeploy\u002F.ssh\u002Fauthorized_keys   key comment \"backup@ci\", not in the learned baseline\nhost_exec last -i deploy                      deploy login from a new \u002F24, 3 min before the change\nhost_exec ss -tnp                             outbound 185.220.x.x:4444 from \u002Ftmp\u002F.x\u002Fkworkerd (deleted)\nverdict   true_positive · confidence 0.94\n```\n\n**5. Contain it, reversibly where it can.** When policy allows, it blocks the IP, disables the key, quarantines the file, stops the unit, locks the account or kills the process through a root helper. In the default `recommend` mode each action waits for your approval; in `contain` mode it runs at once. An administrator's keys and account (root, uid 0 accounts, sudo\u002Fwheel\u002Fadmin members and `protected_users`) are never touched: for those it recommends, and you decide. Every action is rate-limited, journaled and posted to Slack. Blocks, disabled keys, quarantined files, stopped units and locked accounts can be undone; a killed process cannot, so its binary is kept for forensics first. Locking an account also kills its processes, and those do not come back on undo.\n\n```\ndisable_ssh_key   deploy · backup@ci            undo: sudo kodeblue respond undo act_3f9c2a71e0\nkill_process      pid 3312 · \u002Ftmp\u002F.x\u002Fkworkerd   binary preserved for forensics\nblock_ip          185.220.x.x                   undo: sudo kodeblue respond undo act_8b41d07c55\n```\n\n**6. Get sharper every day.** A daily review reads the outcomes, tunes noisy monitors, prunes stale rules and covers new blind spots, so the system adapts to the server instead of you adapting to it.\n\n```\ndaily review · blue-reviewer\ntuned monitor nginx-5xx: threshold 20 → 60 (7-day outcomes: 0 true)\npruned allow rule for old deploy key (expired)\nadded monitor: postgres must not listen on public interfaces\nupdated server profile with the new worker service\n```\n\nThe full pipeline, layer by layer, is in [docs\u002Fkodeblue.md](docs\u002Fkodeblue.md).\n\n## Learning from false positives\n\nAn alert nobody trusts gets ignored. kodeblue treats every benign verdict as something to learn, so the same harmless change does not alert twice, and it keeps checking that what it learned is still right.\n\n| Who decides it was benign | What kodeblue learns |\n|---|---|\n| **Triage** (small model), confident (≥ 0.85) | The item is absorbed into the baseline, and the model may add a narrow allow rule: it must match the item, have at least 8 literal characters, not start with `*`, and it expires after 90 days. |\n| **Responder** (incident session), verdict `false_positive` or `benign_change` | The items are absorbed, and the responder is told to leave a monitor, skill or allow rule so the next similar case is cheaper. |\n| **You**, `kodeblue ack \u003Cid> [--allow]` | The finding is closed as benign and its item absorbed into the baseline; `--allow` also adds an allow rule for that exact item. |\n| **You, ahead of time**, `kodeblue maintenance 2h \"deploy v42\"` | Changes that are not critical are absorbed during the window, protected ones included (a new key for a non-root user, a sudoers change); critical ones, such as a key for root, still alert. The window is posted to Slack. |\n\nEvery day the reviewer reads a 7-day outcome table per rule, then tunes or disables noisy monitors, prunes stale allow rules, and adds monitors for blind spots it found. Tomorrow's triage is cheaper and quieter than today's.\n\nWhat it never learns on a model's word:\n- **Protected detections** (such as new SSH keys, uid 0, sudoers, privileged groups, PAM, `ld.so.preload`, SUID files and checksum mismatches) are never allow-listed or absorbed by a model. A benign verdict on one asks a human.\n- **An attacker's first login** never makes its IP \"known\": after learning, a flagged login is learned only once it is judged benign. (Logins already in the auth log at install, or seen during the learning window, are learned as normal, so look over the learned login sources after setup.)\n- **Maintenance windows** never absorb an item that an open finding is about.\n- Every automatic decision is recorded, and the reviewer reads those records.\n\nThe full list of noise filters is in [Keeping false positives down](docs\u002Fkodeblue.md#keeping-false-positives-down-without-going-blind).\n\n## Why\n\n- **Cheap to run.** Sensors, baselines, package-checksum checks, debounce, dedupe and allow rules cost no tokens. A small model triages what is left, in batches. With a small model a real incident costs cents, and a daily budget caps spend.\n- **Few false positives.** Stable identities, multi-snapshot baselines, \u002F24 login sources, a low-severity digest, a triage feedback loop and a daily tuning review. See [docs\u002Fkodeblue.md](docs\u002Fkodeblue.md).\n- **Hard to talk out of an alert.** Protected detections (such as new SSH keys, uid 0, sudoers, privileged groups, PAM, `ld.so.preload`, SUID files and checksum mismatches) can never be waved through by a model. Host data is treated as untrusted input.\n- **Safe containment.** Agents have no shell, and their tools only read the host. Containment goes through a socket-activated root helper that reads a root-owned policy (`off`, `recommend` or `contain`). Every action is rate-limited, journaled and posted to Slack, and every action can be undone except killing processes (also those of a locked account). The hub can only tighten that policy, never loosen it.\n\n## Safe enough to let it act\n\nAn agent that can touch production has to be harder to fool than the attacker is clever. We run kodeblue every day on the services we operate, and several of these guard rails exist because a model tried to overreach.\n\n| Guard rail | What it means |\n|---|---|\n| Ask, then act | The response mode is `off`, `recommend` (the default) or `contain`. In `recommend`, containment requests wait for an operator: `sudo kodeblue respond approve act_…` (or Approve in the hub). |\n| Read-only by design | Agents have no shell. They get allowlisted read-only commands, and secret paths are refused. |\n| Policy outside the model's reach | Actions go through a socket-activated root helper that re-reads a root-owned policy, and refuses to run if anyone but root can write it. |\n| Some detections always need a human | New SSH keys, uid 0 accounts, sudoers, privileged groups, PAM, `ld.so.preload`, SUID files, checksum mismatches and more can never be waved through on a model's word. |\n| Host data is treated as hostile | Logs, files and process names are attacker-controlled. Instructions found inside them count as signs of compromise. No agent can browse or fetch. |\n| Standing answers only with approval | For attacks that keep coming back, an agent can propose a containment rule (\"block every address that brute-forces SSH\"). It does nothing until a person approves it on the hub or with `sudo kodeblue rules approve`; it is limited per hour, expires, and the root helper checks every action it takes. |\n| Undo where it is possible | Each action is journaled with its undo recipe, rate-limited and posted to Slack (once a hub or Slack webhook is set up). Blocked IPs, disabled keys, quarantined files, stopped units and locked accounts can be undone; a killed process cannot, so its binary is preserved first, and the processes killed when an account is locked do not come back. |\n\n## What it costs\n\nSensors and filters do the heavy lifting for free. The model only sees what survives them, and prompts are built for caching.\n\nWhat the model part costs depends on the model you choose. How many tokens kodeblue uses depends mostly on what happens on the server; what those tokens cost depends on the model's price per token, and the figures below are an example for a small model:\n\n| Stage | When | Cost with a small model |\n|---|---|---|\n| Sensors, detection, monitors | every minute | $0 |\n| Triage batch | only when findings survive the filters | ≈ $0.001 |\n| Incident investigation | per real incident | ≈ $0.01–0.05 |\n| Daily review | once a day | ≈ $0.01–0.03 |\n| Learning and vulnerability assessment | once, at install (and on a relearn) | the largest single spend; not capped by the daily budget |\n\nThese are estimates at about $0.20 per million input tokens, with prompt caching; without it, investigations and reviews can cost two to three times as much. A model that costs ten times as much per token costs about ten times as much here; a model you host yourself costs only its hardware. Whatever the model, `[budget] daily_usd` caps the daily spend: past it, triage stops, the daily review already stops at 80% of it, and only critical incidents still get an investigation, up to a hard stop at twice the cap; messages you send from the hub run up to 1.5 times the cap. The cap counts the cost your endpoint reports for each call; if it reports none, set your model's prices in `[budget]`, or the cap is not enforced.\n\n## Requirements\n\n- Linux with systemd, amd64 or arm64\n- `curl`, to install\n- an OpenAI-compatible model endpoint (a hosted API, OpenRouter, or your own vLLM, Ollama or LiteLLM; for a keyless endpoint give any placeholder as the key), or none: without one, kodeblue runs sensors, detection and monitors, and its learning waits until you add one\n- to build: Go (the version in `go.mod`)\n- for the hub: a small Linux host or a Docker host that your servers can reach over HTTPS\n\n## Documentation\n\n| Page | What |\n|---|---|\n| [docs\u002Fdeploy.md](docs\u002Fdeploy.md) | deploying the hub (systemd, Docker, reverse proxy, Cloudflare tunnel, self-signed), adding servers, upgrades, backups, uninstall, building |\n| [docs\u002Fhardening.md](docs\u002Fhardening.md) | what is encrypted, restricting network access, WireGuard, TLS and pins, operator accounts, per-server policy, model keys, monitoring kodeblue itself |\n| [docs\u002Fhub.md](docs\u002Fhub.md) | the hub: console, connection and security model, settings, CLI |\n| [docs\u002Fkodeblue.md](docs\u002Fkodeblue.md) | how detection, triage, incidents, containment and Slack work on a server |\n| [docs\u002Fengine.md](docs\u002Fengine.md) | the agent engine kodeblue runs as a child process |\n\n## Operate\n\nOn a server:\n\n```bash\nsudo kodeblue status                         # heartbeat, spend vs budget, open incidents, monitors\nsudo kodeblue incidents ; sudo kodeblue incident \u003Cid>\nsudo kodeblue findings --status needs_ack ; sudo kodeblue ack \u003Cid> [--allow]\nsudo kodeblue maintenance 2h \"deploy v42\"    # planned work: absorb non-critical changes\nsudo kodeblue respond list                   # then: respond approve|deny|undo \u003Cid>\nsudo kodeblue rules                          # containment rules; then: rules approve|reject|pause|delete \u003Cid>\nsudo kodeblue vulnerabilities                # every known vulnerability on this server\nsudo kodeblue inference                      # show the model endpoint (set it with --url, --model and --key-file -)\nsudo kodeblue upgrade v0.1.7                 # install a release (or Update on the hub); checked against its SHA256SUMS\n```\n\nOn the hub:\n\n```bash\nsudo -u kodeblue-hub kodeblue-hub user list --data \u002Fvar\u002Flib\u002Fkodeblue-hub    # also: user add|del \u003Cname>\nsudo -u kodeblue-hub kodeblue-hub fleet status --data \u002Fvar\u002Flib\u002Fkodeblue-hub\nsudo -u kodeblue-hub kodeblue-hub pin --data \u002Fvar\u002Flib\u002Fkodeblue-hub\n```\n\n## Releases\n\n| Channel | Where | When |\n|---|---|---|\n| stable | [Releases](https:\u002F\u002Fgithub.com\u002FProblem99-io\u002Fkodeblue\u002Freleases\u002Flatest) `vX.Y.Z`, image `ghcr.io\u002Fproblem99-io\u002Fkodeblue-hub:latest` \u002F `:vX.Y` \u002F `:vX.Y.Z` | when a maintainer tags a version |\n| nightly | the `nightly` pre-release, image `:nightly` | every night that `main` changed; for testing, not production |\n\nReleases are built by `.github\u002Fworkflows\u002Frelease.yml` after the full test suite, and the build is reproducible: the same commit gives byte-identical tarballs.\n\n## Build\n\n```bash\ndeploy\u002Fbuild-dist.sh dist        # dist\u002Fagent\u002F: install.sh + kodeblue-linux-{amd64,arm64}.tar.gz + SHA256SUMS\n                                 # dist\u002Fkodeblue-hub-linux-{amd64,arm64}.tar.gz: hub bundles\ndocker build -f deploy\u002Fhub\u002FDockerfile -t kodeblue-hub .   # hub image (serves the agent release itself)\n```\n\n`ARCHES=\"amd64\"` builds one architecture; `VERSION=…` stamps a version (default: `git describe`). Builds are reproducible with GNU tar (`SOURCE_DATE_EPOCH` defaults to the commit time).\n\n## Layout\n\n| Path | What |\n|---|---|\n| `cmd\u002Fkodeblue` | daemon, CLI, MCP tool server, root response helper |\n| `internal\u002Fblue\u002F` | sensors, detect, monitor, triage, store, runtime (agent engine child), mcpserver, respond, notify, daemon |\n| `blue\u002F` | **model instructions**: agent roles (`agents\u002F`), triage prompt, bundled skills |\n| `internal\u002Fagent\u002Fsysprompt\u002Fbase.md` | base system prompt for every kodeblue session |\n| `cmd\u002Fkodeblue-hub`, `internal\u002Fhub\u002F` | the hub: enrollment, agent API, operator console (`internal\u002Fhub\u002Fweb`) |\n| `internal\u002Fblue\u002Fhublink`, `internal\u002Fblue\u002Fhubproto` | the server side of the hub connection and the wire contract |\n| `deploy\u002F` | installer, release build, systemd units, example config, `hub\u002F` (hub unit, installer, Dockerfile), `e2e\u002F` test servers |\n| `cmd\u002Fkodeblue-engine`, other `internal\u002F` packages | the agent engine kodeblue runs as a child process (`kodeblue-engine`); see [docs\u002Fengine.md](docs\u002Fengine.md) |\n\n## Contributing and security\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) and [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md). Where we most need help: [integrations](CONTRIBUTING.md#where-we-need-help-integrations) that let kodeblue pull alerts and cases from SIEM, SOAR, EDR and threat-intelligence systems. Report vulnerabilities privately as described in [SECURITY.md](SECURITY.md), not in public issues.\n\n## License\n\nApache License 2.0. See [LICENSE](LICENSE) and [NOTICE](NOTICE).\n","kodeblue 是一个面向 Linux 服务器的轻量级安全运营（SecOps）智能代理，集安全运营中心（SOC）、入侵检测与响应（IR）功能于一体。它以非 root 用户运行，通过零令牌传感器实时监控主机状态，结合确定性规则过滤异常行为，并调用小型语言模型进行低开销事件研判；所有响应动作均受 root 拥有的策略控制。支持单机部署或可选 hub 集群管理，适用于中小规模 Linux 服务器环境的安全自动化值守、攻击遏制与日常合规巡检。",2,"2026-11-24 04:32:24","CREATED_QUERY"]