@numairbaseer/scifcode
v0.5.0
Published
Scifcode: a coding CLI agent powered by Poolside Laguna.
Readme
Scifcode
Scifcode is the user-facing configuration wrapper for the Scifcode coding agent powered by Poolside Laguna.
It installs one global scifcode command, configures the Scifcode runtime to use Laguna, and launches the coding agent with Scifcode defaults.
Install
Scifcode requires Node.js >=22.19.0. It depends on @numairbaseer/scifcode-runtime,
which installs the compiled runtime for the current operating system and CPU.
Users do not need Bun or a source checkout.
npm install -g @numairbaseer/scifcodeSupported runtime packages cover:
- macOS: arm64 and x64
- Linux: arm64 and x64, with glibc and musl variants
- Windows: arm64 and x64
- baseline x64 builds for CPUs without AVX2
Offline install and update
Each v* GitHub release includes platform archives containing a standalone
scifcode launcher and its pinned scifcode-runtime. The target machine does
not need Node.js, Bun, npm, or network access.
Transfer the archive, the versioned offline SHA256SUMS file, and its
.sigstore.json bundle through the approved media process. Verify the signed
checksum manifest and the archive, then extract it and run the included
installer:
cosign verify-blob scifcode-0.5.0-offline-SHA256SUMS \
--bundle scifcode-0.5.0-offline-SHA256SUMS.sigstore.json \
--certificate-identity \
https://github.com/numairbaseer/scifcode/.github/workflows/release-cli.yml@refs/tags/v0.5.0 \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
sha256sum -c scifcode-0.5.0-offline-SHA256SUMS
tar -xzf scifcode-0.5.0-linux-x64-baseline.tar.gz
cd scifcode-0.5.0-linux-x64-baseline
./install.shOn Windows, extract the archive and run:
.\install.ps1Installing a newer archive performs an offline update. Versions are retained
under the installation root so an administrator can restore an earlier
version. Unix installs default to ~/.local/share/scifcode; Windows installs
default to %LOCALAPPDATA%\Programs\Scifcode.
The release workflow signs every offline archive and the release-level checksum manifest with a keyless Sigstore certificate tied to the tagged GitHub Actions workflow. It verifies every signature before publishing the release assets; no long-lived signing key is required.
Publish the runtime version pinned in package.json before tagging the CLI.
The CLI workflow downloads that exact platform runtime package, compiles the
launcher, and attaches the completed offline archives to the CLI release.
Log in
Authenticate once through the Scifcode control-plane portal. The CLI opens a short-lived authorization page and receives its own revocable session after you approve it:
scifcode loginThe session is stored at ~/.scifcode/session.json with owner-only permissions.
Scifcode uses it only to authenticate with the control plane; upstream model
URLs and credentials remain server-side.
The control plane defaults to http://localhost:8080 for local development.
Self-hosted customers pass their URL once with
scifcode login --control-plane https://scifcode.customer.example; the URL is
stored with the session and reused. Non-local control planes must use HTTPS.
Run
cd your-repo
scifcodeOne-shot prompt
scifcode -p "Review the current diff for correctness and missing tests."Scifcode automatically creates or updates:
~/.config/scifcode/scifcode.jsonThis happens before the runtime launches, so no separate initialization command is required.
When launched inside a Git worktree, Scifcode sends only the cumulative number of lines changed since the session began. It checkpoints that value every minute and once more during a normal or signal-driven shutdown; it never sends file names, source code, or diff contents. Deploy control-plane support for replacing an authenticated session checkpoint before rolling out this CLI behavior.
Environment variables
| Variable | Required | Default | Description |
| --- | ---: | --- | --- |
| SCIFCODE_CONTROL_PLANE_URL | no | http://localhost:8080 | Alternative to login --control-plane; useful for managed installation and automation |
| SCIFCODE_SESSION_TOKEN | no | stored login session | Ephemeral process override for the control-plane session |
| SCIFCODE_CODE_USAGE_REPORT_INTERVAL_MS | no | 60000 | Interval for cumulative code-usage checkpoints while a session is running; values below 1000 use the default |
| SCIFCODE_CONTEXT_WINDOW | no | 32768 | Context window reported for scifcoder-1.0 |
| SCIFCODE_MAX_TOKENS | no | 4096 | Maximum output tokens reported for scifcoder-1.0 |
| SCIFCODE_RUNTIME_BIN | no | installed platform package | Override path to a compiled Scifcode runtime binary |
| SCIFCODE_SOURCE_DIR | no | adjacent ../scifcode | Development-only path to the Scifcode source fork |
| SCIFCODE_BUN_BIN | no | auto-detected | Development-only Bun executable used to run the fork from source |
Scifcode also loads private env defaults from:
~/.scifcode/env
./.scifcode.envShell environment variables win over these files. Do not put session tokens in project env files or commit them to source control.
Troubleshooting
Scifcode requires a control-plane session
Log in through the browser. If you already have a portal session, you only need to approve the CLI. Otherwise, complete the portal's email verification first:
scifcode loginInspect or revoke the current session with:
scifcode whoami
scifcode logoutInvalid Scifcode config
Scifcode writes to:
~/.config/scifcode/scifcode.jsonIf this file contains invalid JSON, fix it or move it aside and rerun:
scifcodeSecurity
Scifcode never receives the upstream model credential. The control plane owns
the model endpoint, model-ID translation, and upstream authentication. The CLI
stores only a revocable user session token in an owner-readable file and injects
it into the runtime through SCIFCODE_SESSION_TOKEN.
Scifcode launches the installed platform runtime directly with argument arrays and does not use shell string execution. Bun/source execution remains available only as a local-development fallback.
For usage analytics, Scifcode snapshots the Git working tree when an agent session starts and reports the aggregate number of added and deleted lines when the session ends. The snapshot uses an isolated temporary Git index, so staged, unstaged, and untracked work that existed before the session is preserved and excluded from the count. Source code and file names are never sent to the control plane.
Third-party notices
Scifcode uses third-party open-source software internally. See THIRD_PARTY_NOTICES.md.
