Set Up a Project Locally
A Sigroom project lives in your workspace. The project page shows its approved knowledge files; HACP Control copies those files into a local folder you choose.
1. Approve the Project Defaults
Open the project on sigroom.com, inspect the generated file previews, and select Approve defaults if the status is draft. HACP Control can fetch only approved defaults. Make sure hacp is installed on the computer that has your project files.
2. Find the Command Values
For a project page at https://sigroom.com/workspaces/w_example/projects/prj_example, use these values:
| Option | Value and where to find it |
|---|---|
| --workspace-id | w_example — the segment after /workspaces/ in the project page URL. |
| --project-id | prj_example — the segment after /projects/ in the project page URL. |
| --project-root | The existing folder on your computer where the project's .hacp files should be written. This is a filesystem path, not a web URL. |
| --api-url | https://api.sigroom.com for sigroom.com. Use your instance's API address if you are signed in to a different Sigroom instance. |
3. Use Your Signed-In Session
The command shown on the project page needs authentication added. In your browser's developer tools, open Application or Storage, then Cookies for sigroom.com, and copy the value of your own twk_session cookie. The command below reads that value without placing it in shell history. Run it only on a computer you trust: the cookie can still appear in the hacp process arguments while it runs. Do not share terminal recordings or command diagnostics containing it.
4. Create and Check the Local Files
Replace the example IDs and local path. Run these commands on the computer that contains the project folder:
- A successful init reports materialized and writes the approved files under <project-root>/.hacp/.
- If .hacp files already exist, init backs them up before writing the approved versions. Review any local edits first.
- Project status compares local files with the saved local manifest. A current result does not fetch or prove the latest remote defaults; inspect the project page and explicitly refresh approved files when needed.
cd /path/to/your/local/project
printf 'Paste your twk_session cookie value: '
IFS= read -r -s SIGROOM_SESSION
printf '
'
hacp project init \
--workspace-id w_example \
--project-id prj_example \
--project-root "$PWD" \
--api-url https://api.sigroom.com \
--api-cookie "twk_session=$SIGROOM_SESSION" \
--json
unset SIGROOM_SESSION
hacp project status --project-root "$PWD" --jsonIf Initialization Fails
- hacp: command not found: install HACP Control for your platform, then reopen your terminal.
- PROJECT_ROOT_NOT_FOUND: create or enter the local project folder first; the root must already exist.
- 401 or 403: sign in again, use your own current twk_session value, and confirm you can open the project in that workspace.
- PROJECT_DEFAULTS_NOT_APPROVED: return to the project page, inspect the defaults, and approve them.
- 404 or PROJECT_NOT_FOUND: copy both IDs from the same project page URL and check the API address.
- Review project changes — Choose team or single-user review after setting up the project.
- HACP Control setup — Find platform-specific setup and enrollment instructions.
Source Material
- apps/web/src/app/workspaces/[workspaceId]/projects/[projectId]/project-detail-client.tsx
- apps/web/README.md
- rust/crates/hacp-launcher/src/lib.rs
- apps/api/src/modules/projects/routes.ts