-
Notifications
You must be signed in to change notification settings - Fork 0
Init
clawd init sets up the ClawDE AFS (Agent File System) structure in your project root.
Running clawd init in a project directory creates:
.claw/
├── tasks/ ← task tracking (syncs with .claude/tasks/)
├── policies/
│ ├── tool-risk.json ← per-tool risk level config
│ └── mcp-trust.json ← MCP server trust policy
├── templates/ ← prompt templates for this project
├── evals/datasets/ ← eval datasets for automated quality checks
├── telemetry/ ← local session traces (gitignored)
├── worktrees/ ← managed git worktrees (gitignored)
├── README.md ← structure documentation
└── .gitignore ← ignores worktrees/ and telemetry/
It also seeds a .claude/ directory with:
-
CLAUDE.md— project instructions seeded for your detected stack -
memory/decisions.md— blank architecture decisions log -
tasks/active.md— blank sprint task file
# Auto-detect stack from current directory
clawd init
# Initialize a specific path
clawd init /path/to/myproject
# Force a specific stack template
clawd init --template rust-cli
clawd init --template nextjs
clawd init --template react-spa
clawd init --template flutter-app
clawd init --template nself-backend
clawd init --template genericClawDE detects your stack by looking for marker files:
| Marker | Stack |
|---|---|
pubspec.yaml |
Flutter App |
package.json + next.config.*
|
Next.js |
package.json + vite.config.*
|
React SPA |
.env.nself or nself.yml
|
nSelf Backend |
Cargo.toml |
Rust CLI |
| (none of the above) | Generic |
clawd init is safe to run multiple times. Existing files are never overwritten — it only creates what is missing.
The "Initialize Project" card appears in the ClawDE desktop app when your open project does not yet have a .claw/ directory. Click Initialize Project to run the equivalent of clawd init without opening a terminal.
Add .claw/worktrees/ and .claw/telemetry/ to your .gitignore. clawd init does this automatically.
The rest of .claw/ — tasks, policies, templates — should be committed so your team shares the same agent configuration.
After initializing:
- Edit
.claude/CLAUDE.mdto add project-specific rules - Open ClawDE and start a session — the daemon reads
.claude/automatically - Run
clawd doctorto verify the AFS structure is complete
See also: Configuration · Daemon-Doctor · Folder-Structure
ClawDE · GitHub · MIT License
ClawDE
Getting started
Reference
- Architecture
- Daemon-Reference
- Folder-Structure
- Providers
- Multi-Account
- Security
- Features
- Features/Daemon
- Features/Session-Manager
- Features/Mode-System
- Features/Repo-Intelligence
- Features/Projects
- Features/Remote-Access
- Features/Desktop-App
- Features/Provider-Knowledge
- Features/Coding-Standards
- Roadmap
Branding
Contributing