Skip to content

DotCraft Automations Reference

This page collects the configuration, task files, template variables, and tools for DotCraft native Automations. DotCraft native Automations covers local tasks only.

Configuration Fields

FieldDescriptionDefault
Automations.EnabledEnables the Automations orchestratortrue
Automations.LocalTasksRootLocal task root. Empty uses .craft/tasks/Empty
Automations.PollingIntervalPolling interval00:00:30
Automations.MaxConcurrentTasksMaximum concurrent local tasks3
Automations.TurnTimeoutSingle-turn timeout00:30:00
Automations.StallTimeoutStall timeout without response00:10:00
Automations.MaxRetriesMaximum retry count3
Automations.RetryInitialDelayInitial retry delay00:00:30
Automations.RetryMaxDelayMaximum retry delay00:10:00

Agent Tool

CompleteLocalTask

The local task completion tool. The Agent calls it after finishing the work so the task can record its summary and complete.

ParameterDescription
summaryShort completion summary

Workflow Template Variables

VariableDescription
task.idTask id
task.titleTask title
task.descriptiontask.md body
task.thread_idBound thread id

Directory Layout

text
<workspace>/
  .craft/
    tasks/
      <task-id>/
        task.md
        workflow.md
    automations/
      templates/
        <template-id>/
          template.md

Hooks Integration

Automations can run Hooks during the local task lifecycle, for example to check the environment before a task starts, send a notification after completion, or write failures to an external system. See Hooks Reference for event payloads and exit-code semantics.

Apache License 2.0