Skip to content

Import security

How Hlix scans project files, transfers credentials and prepares a Cloud Machine.

Import reads your project without running its setup commands on your machine. Setup and project commands run later in a Cloud Machine. Import also preserves protected configuration and can create project MCP connections, so review the scan and connection results before starting work.

When Reads repository files Runs repository commands Makes data active
hlix init yes no local binding only
hlix import --dry-run yes no nothing
hlix import yes no, locally Cloud project, source commit, encrypted protected data, environment plan and recognized project MCP connections
Cloud Machine setup the project snapshot and protected files yes, inside the project’s Cloud Machine the installed environment for that job
skill/agent/mcp import selected resource no local shell commands the explicitly selected project resource

The local scan:

  • resolves and stays inside the selected real directory;
  • preserves symbolic links as links, without reading or uploading their targets;
  • imports nested repository and submodule working files without their own Git metadata or history;
  • considers tracked files even if a new ignore rule would hide them;
  • applies .gitignore, .hlixignore, and conservative built-in ignores to untracked files;
  • checks file counts and upload sizes;
  • parses environment sources without running their commands;
  • hashes every included and protected file;
  • rechecks snapshot files after the scan to detect concurrent changes.

Files are validated against the import manifest before they are restored in the Cloud Machine.

hlix prefers explicit environment sources—including Cursor environment JSON and Dev Container configuration—then fills gaps from language and package-manager evidence. The result is a declarative plan containing:

  • runtime/toolchain versions;
  • install and build commands;
  • a start command and terminal processes;
  • private ports;
  • explicitly required secret key names and non-blocking source observations;
  • source evidence, confidence, and warnings.

Review the inferred commands in the project’s environment configuration. Setup runs inside the project’s Cloud Machine.

Imported instructions, skills and MCP connections

Section titled “Imported instructions, skills and MCP connections”

Agent instructions (AGENTS.md, CLAUDE.md, .cursorrules) import as ordinary project files, checked for secret-looking content like other files. Agents can read those instructions during work.

Skill files and raw MCP configuration are preserved as encrypted protected resources rather than committed to the project snapshot. Preserving those raw files does not itself activate a skill. Use hlix skill import … or hlix agent import … to select a resource explicitly.

Project import also reads recognized MCP configuration and creates project-scoped connections. It preserves supported enabled/disabled settings and reports each connection as imported, disabled or action_required. Review those results and complete any required authorization in the dashboard. An imported, enabled connection can be available on the next run.

The separate hlix mcp import … resource command has its own checks: remote endpoints require HTTPS, while stdio requires --allow-stdio and a direct executable without shell interpretation. See Skills, agents & MCP for that command’s review path.

The saved project binding names its API and Workspace. Import records, source commits, protected files and project access are scoped to that Workspace.

A Workspace is your organization. A Cloud Machine is an isolated container for one project job. Workspace access decides who can act; the Cloud Machine isolates each project’s work. Tenancy & isolation covers where that first boundary is enforced.

Imports and pushes save source as Git commits in HLIX Repos. Before pushing, the CLI compares the repository head with the commit it last synced. The push uses a lease on that head, so a concurrent update is refused rather than overwritten.

If the head has moved, pull or sync before pushing again. Keep local changes until you have confirmed the new commit in HLIX Repos. Protected files use a separate encrypted transfer path.

hlix sync handles only uncontested one-sided change. Divergence is surfaced to a person instead of being auto-merged.

Before the first cloud task:

Terminal window
hlix import . --dry-run --json > /tmp/hlix-import-report.json

Check the selected files and secret key names, resolve any scan blockers, then import:

Terminal window
hlix import .
hlix projects list
hlix sync

Expected result: the intended project appears in the intended Workspace, and sync reports no change after import.

  • A file is missing from the source snapshot. Check the dry-run report for protected-file handling and ignore rules.
  • A preserved skill is not influencing runs. Import stores its protected bytes; activate the selected resource with hlix skill import. Project instruction files such as AGENTS.md are ordinary files and can already influence agents.
  • scan_blocked on a repository you consider clean. Read the reported reason: missing required values and file or protected-file limits block import, and the message names the file or limit. Potential secrets in history, or an incomplete history scan, do not block it: the plan reports them and the history is uploaded. Rotate exposed credentials. If you want only the current files, use --history sanitize; this leaves local Git history unchanged.
  • A setup command in the import plan is unfamiliar. Review and correct the repository configuration before starting work. Setup runs in the Cloud Machine with access to the project credentials it needs.