# quentincody/interlinked-cli — AlpLab Radar Static Code Audit

- Ring: `trial`
- Category: `agents`
- Overall score: `3.6/5`
- Implementation check: `verified`
- Maturity: `active`
- Audited commit: `0d1d1fef90df` (read-only; nothing from the repository was executed)
- Reviewed at: 2026-12-02T10:57:24Z
- Repository: https://github.com/quentincody/interlinked-cli
- Radar entry: https://radar.alplab.co/#repo/quentincody/interlinked-cli
- License: `MIT`
- CI workflows: `.github/workflows`
- Tags: `ai-agents`, `cli`, `hooks`, `security`, `observability`, `typescript`

## Summary

A Node 22+ local CLI and Unix-socket harness that intercepts supported AI-agent hook events, applies deterministic guard rules, and records local activity.

## Implementation Check

README.md's local hook/daemon enforcement claim is implemented by src/hook-entry.ts `runHookEntry`, src/harness/evaluator/pre-tool.ts `evaluatePreToolUse`, and src/harness/server-socket-lifecycle.ts.

## When to Use

Use for a bounded pilot protecting Claude Code or Codex workflows that can tolerate hook installation and Node 22+. Do not treat logs as evidence for actions a runner never delivered to its hook integration.

## Sub-scores

| Dimension | Score |
|---|---|
| quality | 4.0/5 |
| usability | 3.5/5 |
| reliability | 3.0/5 |
| security | 3.5/5 |
| integration | 4.0/5 |

## Code Evidence

- src/index.ts dispatches the zero-argument wizard or Commander command tree through `buildProgram`.
- src/hook-entry.ts `runHookEntry` normalizes runner events, calls the Unix-socket daemon, and invokes deterministic cold gates on failure.
- src/harness/evaluator/pre-tool.ts `evaluatePreToolUse` orders package, destructive-command, repo-confinement, write-content, and taint checks.
- src/harness/evaluator/write-content-guards.ts blocks injection, unsafe paths, merge markers, and introduced registry or compiler findings before writes.
- src/harness/server-socket-lifecycle.ts `createSocketLifecycle` binds a local Unix socket and cancels client-scoped work on disconnect.
- package.json defines Node >=22, pinned runtime dependency `commander`, build scripts, Vitest suites, and TypeScript checks.

## Issues Found

- src/hook-entry.ts `encodeColdFallback` permits actions outside its inline gates when daemon evaluation is unavailable.
- package.json `prepare` runs build and Git-hook setup during dependency installation, increasing install-time side effects.

## Key Risks

- src/hook-entry.ts allows non-matching cold-fallback operations while reporting that the full evaluator was skipped.
- package.json supports only macOS and Linux and requires Node >=22.
- README.md limits supported runners to Claude Code and Codex; other adapters are experimental.
- CI uses 40 unpinned GitHub Actions versions according to supplied maturity signals.

## Reviewed Files

- `README.md`
- `package.json`
- `src/index.ts`
- `src/hook-entry.ts`
- `src/harness/evaluator.ts`
- `src/harness/server.ts`
- `src/cli-program.ts`
- `src/harness/evaluator/pre-tool.ts`
- `src/harness/server-socket-lifecycle.ts`
- `src/harness/evaluator/write-content-guards.ts`
