Guided workplace setup is the default agent-first setup flow for a new machine
when a human operator is involved. The agent asks questions in blocks, updates
answers.yaml, creates a proposal before apply, applies the workplace through
existing initialization mechanics, runs doctor-workplace, and writes resource
authoring plus project onboarding next steps.
The CLI supports the dialogue artifacts; it is not a terminal-only wizard.
The order stays strict: workplace first, workplace resources second (knowledge, templates, tools, MCP, package roots, platform contracts), and project onboarding third.
The agent can be launched from any convenient directory. Launch location is not semantic: the current working directory is not automatically the workplace and is not automatically a project. Guided setup must record explicit paths for the installed ProcessForge distribution, the workplace root, optional global agent instruction roots, and real project roots.
Read-only device discovery is optional in guided mode. The agent may offer to
inspect accessible AGENTS.md, setup skills, local docs, platforms, toolchains,
tools, MCP configuration, and project roots when that would help turn existing
machine-local work into ProcessForge resources.
python bin/pf.py workplace-setup start --workplace <workplace-root> --session-id first-machine --apply
python bin/pf.py workplace-setup review --workplace <workplace-root> --session-id first-machine
python bin/pf.py workplace-setup apply --workplace <workplace-root> --session-id first-machine --apply
python bin/pf.py workplace-setup status --workplace <workplace-root> --session-id first-machineSession files are written under:
<workplace-root>/setup-sessions/<session-id>/
Expected artifacts:
answers.yamlproposal.yamlproposal.mdreview.mdapply-report.mdagent-instructions.mdnext-steps.md
Ask one block at a time:
- Machine layout: ProcessForge root, workplace path, local docs path, project roots.
- Agent environment: agent tools, instruction targets, global AGENTS policy.
- Optional device discovery: whether to inspect existing
AGENTS.md, skills, docs, platforms, toolchains, tools, MCP configuration, and project roots. - Privacy and safety: local paths, public
path_ref, secrets, update trust. - Resources: knowledge roots, package roots, tools, MCP servers, templates.
- Platform contracts: neutral by default, real platforms only when explicitly defined.
- Coordination: Director capability, default project mode, and whether to initialize Director Office now.
- First project: optional immediate project onboarding plan, including project coordination mode.
The apply step writes a short snippet:
ProcessForge is installed at <processforge-root>.
Workplace is <workplace-root>.
Do not copy ProcessForge into agent config folders or projects.
Do not treat the current working directory as a project root unless the operator
explicitly selected it for project onboarding.
Inside onboarded projects:
1. Read .pf/START_AGENT_HERE.md first.
2. Use python .pf/runtime/bin/pf.py from the project root.
Outside projects:
use python <processforge-root>/bin/pf.py.