Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.
Repository Scripts: Repeatable local development automation
Scripts support existing build, generation, and verification entrypoints.
Common Commands
pnpm vitest run --no-file-parallelism scripts/<test-file>: run one script test.make check-scripts-fast: run the fast repository script gate with bounded parallelism.make check-computer-release: build and install the real Local Computer bundle.make check-scripts-heavy: run Local Computer install, package, and release tests.make check-scripts: run both script-test layers.
Structure
- Keep automation in small Bash or TypeScript modules with colocated tests.
- Script telemetry must be structured, bounded, and free of credentials or business payloads.
- Write transient logs and PIDs under
.linger-runtime/.
Important Conventions
- Scripts must be idempotent and safe to rerun.
check-scripts-fastruns fast-lane files that referencechild_processunderSCRIPT_TEST_PROCESS_TIMEOUT_MS; pure files keep the 5s Vitest default. New process-spawning tests need no per-test timeout for the shared Runner.- Do not introduce workflow gates when existing lint, typecheck, tests, or generation checks suffice.
- Never store secrets, generated database dumps, or long-lived state here.
- During ordinary
scripts/**iteration, run the focused test and thenmake check-scripts-fast. Changes to the Local Computer installer, uninstaller, installer fixtures, bundle or manifest generation, signatures, or release images must also runmake check-scripts-heavylocally. - Before delivery, run
make check BASE=<target-branch>, which runs the fast checks the change selects throughscripts/check-plan.mjs. Do not replace installer security failures, the complete install path, signature or rollback checks, or release integrity with pure unit coverage unless equivalent end-to-end coverage is identified and documented. - Installer tests may share only immutable source artifacts. Every concurrent
case must keep a private HOME, install root, state directory, and invocation
log; cleanup runs only after all concurrent cases settle. Use
SCRIPT_TEST_INSTALLER_CONCURRENCY=1when diagnosing a concurrency-sensitive failure. Do not add automatic retries. - Verify dependency-scope changes from a checkout without existing node_modules.
SCRIPT_ISOLATED_PROCESS_TESTSuses two workers andSCRIPT_FAST_PROCESS_TESTSone by default. New process tests must use private temp directories andlisten(0)ports, never shared paths, fixed ports or global Git config. Audit private filesystem/process/port ownership before adding a process suite, and compare the new suite with one and two workers.SCRIPT_TEST_PROCESS_TIMEOUT_MScontrols only the Vitest harness budget for process tests that create real Git, pnpm, apt, or process-tree fixtures. It is not a product deadline and must not replace their internal timeout and cleanup assertions.