For the complete documentation index, see llms.txt. Markdown variants are available by appending .md to any URL or sending an Accept: text/markdown header. An agent skill is available at /.well-known/agent-skills/site-skill.md.
319
Sponsor

Claw Autonomous Assistant

Operates a sandboxed workspace — read/write files and run shell commands — to finish multi-step tasks.

Output will stream here when you run the agent.

Summary

Claw is an autonomous assistant that operates a sandboxed workspace to finish multi-step tasks. It reads and writes files, runs shell commands scoped to a workspace directory, and follows reusable skills. Reach for it as a base for coding assistants, repo automation, or any agent that needs a real filesystem.

Installation

$ pnpm dlx shadcn@latest add @agentcn/mastra/claw

Composition

├── config.ts             # Agent definition (model + config)
├── instructions.md       # Autonomous, sandbox-safe instructions
├── lib/
│   └── workspace.ts      # Sandbox root + path guard
├── tools/
│   ├── read_file.ts      # Read a workspace file
│   ├── write_file.ts     # Write a workspace file
│   └── run_shell.ts      # Run a command in the workspace
└── skills/
    └── workspace/
        └── SKILL.md      # Plan / inspect / act / verify procedure

Customization

  • Harden the sandbox. Run run_shell inside a container or jail; the path guard only constrains file paths, not arbitrary commands.
  • Add web browsing. Pair with the Browser Agent tools for tasks that need the web.
  • Add skills. Drop more SKILL.md procedures under skills/.
  • Swap the model. Edit config.ts.