Skip to content

Latest commit

 

History

History
83 lines (62 loc) · 3.22 KB

File metadata and controls

83 lines (62 loc) · 3.22 KB

Guided Workplace Setup

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.

Commands

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-machine

Session files are written under:

<workplace-root>/setup-sessions/<session-id>/

Expected artifacts:

  • answers.yaml
  • proposal.yaml
  • proposal.md
  • review.md
  • apply-report.md
  • agent-instructions.md
  • next-steps.md

Dialogue Blocks

Ask one block at a time:

  1. Machine layout: ProcessForge root, workplace path, local docs path, project roots.
  2. Agent environment: agent tools, instruction targets, global AGENTS policy.
  3. Optional device discovery: whether to inspect existing AGENTS.md, skills, docs, platforms, toolchains, tools, MCP configuration, and project roots.
  4. Privacy and safety: local paths, public path_ref, secrets, update trust.
  5. Resources: knowledge roots, package roots, tools, MCP servers, templates.
  6. Platform contracts: neutral by default, real platforms only when explicitly defined.
  7. Coordination: Director capability, default project mode, and whether to initialize Director Office now.
  8. First project: optional immediate project onboarding plan, including project coordination mode.

Agent Snippet

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.