# Howler Documentation > Howler is an AI-powered engineering assistant platform. Describe the work, pick an agent mode, and Howler dispatches specialized agents to execute it - autonomously or interactively - with live thought streams, tool calls, and pull requests. This file contains the full text of the Howler documentation, generated from the Docs page. It is organized by category and page. --- # Getting Started ## Introduction Source: /docs#overview - Markdown: /llms/overview.md ## What is Howler Howler is an AI-powered engineering assistant platform. You describe the work, pick the right agent mode, and Howler dispatches specialized agents to execute it - autonomously or interactively - with live thought streams, tool calls, and pull requests. This guide covers everything from a 30-second quickstart to the full `howler.yaml` schema, CLI, and IronWire streaming protocol. ### Quickstart Connect a repository and dispatch your first job. No local setup required - agents run on Howler workers. - **Link GitHub** - Connect your GitHub account from Settings to enable repo-based operations. - **Pick a mode** - Code to build or fix, Chat to plan, advise or investigate, Orchestrator to split a big task into helper jobs. - **Dispatch** - Set repo, branch, objective, and model. Watch progress stream live. New to Howler? Open the Help page and click **Start Guided Tour** for an interactive walkthrough of every feature. ### How it works - **Describe the work** - State your objective in plain language and choose the agent mode that fits the task. - **Watch it execute** - Thoughts, tool calls, file edits, and command output stream into the job terminal in real time over IronWire. - **Review the result** - Agents open pull requests and surface summaries. Respond inline when a guided job waits for input. ## Best practices Source: /docs#best-practices - Markdown: /llms/best-practices.md ### Best practices A well-formed prompt and the right mode make the difference between a job that nails it in one pass and one that needs three rounds of steering. These practices come from patterns that consistently produce strong results. #### Writing effective prompts | Do | Avoid | | --- | --- | | Be specific about the outcome you want | Vague instructions like 'improve the code' | | Name the exact files, functions, or modules involved | Having the agent waste turns finding specific files | | Include acceptance criteria - how will you know it's done? | Open-ended requests with no clear finish line | | Mention constraints: frameworks, patterns, files to avoid | Leaving important constraints unstated | | Provide context: link a PR, paste an error, describe the bug | Expecting the agent to guess the problem from nothing | | For complex work, break it into focused steps | Asking for an entire system in one prompt | Tip. The clearest prompts produce the best results. If you'd give context to a new teammate before asking them to do the work, give that same context to Howler. #### Choosing the right mode | When you want to... | Use this mode | | --- | --- | | Build, fix, refactor, or write tests - anything that ends in a PR | Code (the standard mode; these docs also call it Command Center) | | Plan architecture, scope work, investigate, or get a design document before coding | Chat (the consultant mode) | | Coordinate a broad mission that needs multiple sub-jobs | Orchestrator | | Dispatch work to Devin using your Devin credits | Devin | | Run Claude Code on your own Claude account | Claude Code | Tip. Not sure? Start with Consultant to plan, then dispatch the plan to Command Center to execute. #### Pre-dispatch checklist - **Right repository?** - Confirm you've selected the correct repo and branch. - **Enough context?** - Attach relevant files, paste error logs, or link related PRs. - **Clear outcome?** - Can you describe what "done" looks like in one sentence? - **Right mode?** - Code changes → Code. Planning and investigation → Chat. A big task that splits into parts → Orchestrator. - **Guided or autonomous?** - Use guided for complex/ambiguous work, autonomous for well-scoped tasks. - **Model choice?** - Larger models handle harder tasks better; faster models are fine for routine work. #### Steering tips - **Redirect early** - If the agent starts down the wrong path, steer immediately. Don't wait for it to finish a wrong approach. - **Add constraints on the fly** - Remembered something important after dispatch? Just type it. "Don't touch the public API" works mid-run. - **Narrow scope** - "Just fix the failing test, skip the refactor" is a perfectly good steering message. - **Share new information** - Paste a log, an error, a link - anything the agent should factor in right now. - **Answer questions without waiting** - You don't have to wait for the agent to ask. Proactively share context whenever you have it. ## Use cases & workflows Source: /docs#use-cases - Markdown: /llms/use-cases.md ### Use cases Howler agents handle a wide range of engineering work. Here are the tasks and workflows where teams see the most value. #### Code & engineering tasks - **Bug fixes & debugging** - Describe the bug, paste the error or stack trace, and let the agent investigate, fix, and open a PR. Works best with clear reproduction steps. - **Test generation** - Point the agent at untested code and ask for unit or integration tests. Specify your testing framework and coverage expectations. - **Code migrations & modernization** - Framework upgrades (e.g. React class → hooks), language migrations (JS → TypeScript), dependency updates, and API version bumps. - **Refactoring & cleanup** - Extract shared code into utilities, rename for consistency, remove dead code, or restructure modules. Pair with a Consultant plan for large refactors. - **Documentation generation** - Generate or update READMEs, API docs, inline comments, or architecture guides from the codebase. - **PR review & improvements** - Use /howl on a pull request to have an agent review changes, suggest improvements, or fix issues found during review. - **Dependency updates & security patches** - Schedule recurring jobs via Cron to keep dependencies current and patch known vulnerabilities. - **CI/CD fixes** - Paste the failing CI log and let the agent fix linting errors, type errors, or broken tests. #### Planning & research - **Architecture planning** - Use Consultant with the Solutions Architect or Staff Engineer persona to produce architecture overviews and technical specifications before building. - **Technical investigation** - Use Chat (Consultant) to investigate a question across your codebase and the web, with cited sources. - **Patent portfolio generation** - Use Consultant with the Patent Strategist persona to refine, structure, and polish invention disclosures for clarity and readability. See the Dell AI Patent Policy for usage guidelines. - **Security assessment** - Use Consultant with the Penetration Tester persona to run automated security testing in an isolated container. #### Team workflows - **Morning triage** - Check My Work each morning. Handle waiting-for-input jobs, review completed PRs, dispatch new work from your task list. - **PR-driven development** - Comment /howl on any PR to have Howler fix issues, add tests, or implement reviewer feedback directly on the PR branch. - **Plan → Build** - Investigate and plan in Chat (Consultant), then send the plan to a Code job to execute. Chain modes for complex projects. - **Automated maintenance** - Set up Cron schedules for recurring tasks: nightly dependency audits, weekly documentation updates, or regular test suite health checks. - **Shared recipes** - Create Playbooks for common team patterns so everyone dispatches consistent, high-quality jobs. ## Recommended workflows Source: /docs#recommended-workflows - Markdown: /llms/recommended-workflows.md ### Recommended workflows The most effective teams don't just dispatch one-off jobs - they build Howler into their daily workflow. Here are proven patterns that teams use to get the most out of the platform. #### Morning triage - **Open My Work** - Check your personal queue for jobs that finished overnight or are waiting for input. - **Handle waiting jobs** - Respond to any guided jobs that paused for your input. A quick answer gets them moving again. - **Review completed PRs** - Check pull requests opened by agents. Approve, request changes, or dispatch a follow-up job. - **Dispatch new work** - Pick tasks from your backlog and dispatch them. Well-scoped morning dispatches often finish before lunch. #### PR-driven development - **Comment /howl on a PR** - Describe what you need: "add tests for the new auth middleware", "fix the lint errors", "address reviewer feedback". - **Agent works on the PR branch** - Howler reads the PR diff, understands the context, and pushes commits directly to the PR branch. - **Review the result** - The PR updates in place. Review the agent's commits alongside the original changes. - **Iterate if needed** - Comment /howl again with follow-up instructions. The agent picks up where it left off. To pick a mode or a model, or to start a fresh job, add a modifier after `/howl`. The full list is on the /howl PR command page. #### Plan → Build pipeline - **Consultant** - Investigate the problem space and plan. Use the Staff Engineer or Solutions Architect persona to produce a Technical Specification. - **Command Center** - Take the spec and dispatch implementation work. Use the Live Document's "Send to Command Center" button to pass context directly. - **Review & iterate** - Review the PR, steer if needed, and repeat for the next piece. Note. This pipeline works especially well for complex features where jumping straight to code would waste time. #### Automated maintenance - **Cron schedules** - Set up recurring jobs: nightly dependency audits, weekly documentation freshness checks, or monthly security scans. - **Playbooks** - Create reusable prompt recipes for common maintenance tasks. Share them with the team so anyone can dispatch consistent jobs. - **Service tokens** - Integrate Howler into CI/CD. Trigger jobs from GitHub Actions when certain events occur. - **Monitor in My Work** - Keep an eye on automated job outcomes. Failed maintenance jobs surface in your queue for attention. --- # Howler Desktop ## Overview Source: /docs#howler-desktop-overview - Markdown: /llms/howler-desktop-overview.md Howler Desktop ## Howler Desktop Howler Desktop is a standalone code editor with built-in AI agent integration. Download, install, sign in, and start dispatching coding jobs - everything you need is bundled in a single installer. #### What's included One installer, everything bundled: - **Code editor** - A full-featured VS Code-based editor with Howler's agent integration built directly in - chat, sessions, pulse stream, and inline diff review. - **Local worker** - A self-contained Howler worker so agents can run on your machine with access to your local toolchain and network. - **CLI** - Dispatch and stream jobs from the terminal - bundled alongside the IDE. #### Key capabilities - **Context-aware dispatch** - Auto-detects your git remote and branch - jobs target what you already have open. - **Live pulse stream** - Watch agent thoughts, tool calls, and results stream in real time. - **Inline diff review** - Review agent changes as native diffs with CodeLens accept/reject buttons - right in the editor. - **Terminal capture** - Terminal output is automatically captured as context for agent jobs. - **Selection widget** - Select code and send it to Howler with one click - fix, explain, test, or custom prompt. - **Multiple agent modes** - Standard for coding, Consultant for planning and investigation - pick the right mode for the task. #### System requirements | Requirement | Details | | --- | --- | | Operating system | Windows 10 / 11 (x64) | | Disk space | ~500 MB | | Network | Internet access for sign-in and cloud jobs | | Git | Git installed and on PATH for repository operations | ## Quick Start Source: /docs#hd-quickstart - Markdown: /llms/hd-quickstart.md ### Quick Start Go from zero to your first AI-powered coding job in minutes. Follow these steps to download, install, sign in, and launch your first job. #### Video walkthrough Watch the full flow - from launching Howler Desktop to dispatching your first job: #### Step-by-step #### Tips & next steps #### 🎯 Write clear prompts Be specific about what you want, which files are involved, and any constraints. The clearer the prompt, the better the result. #### 📎 Attach context Drag files, paste screenshots, or use the @-mention picker to reference specific files the agent should consider. #### 🔍 Review changes inline Use the CodeLens buttons (Accept / Reject) above highlighted changes, or the keyboard shortcuts Ctrl+Shift+Y / Ctrl+Shift+N. #### 💬 Steer the agent Send follow-up messages to redirect the agent mid-job. Switch between Guided mode (agent asks before acting) and Autonomous mode (agent works independently). Need help? Open the Help tab inside the Howler panel for an interactive guide, or visit the Howler web app for full documentation. ## Uninstall Source: /docs#hd-uninstall - Markdown: /llms/hd-uninstall.md ### Uninstalling Howler Desktop Remove Howler Desktop with **Howler Installer**, the same app that installs and updates it, or through Windows Settings. Both remove the editor, the bundled worker service, the CLI, shortcuts and PATH entries. #### With Howler Installer - **1** - Download HowlerInstaller.exe from Get Howler if you no longer have it. It is one small file and needs no installation. - **2** - Right-click HowlerInstaller.exe and choose Run as administrator. It lists Howler Desktop, the worker and the CLI with their installed versions. - **3** - Open the menu on the Howler Desktop card and choose Uninstall. - **4** - Confirm the plan it shows. Howler Installer stops the worker service and removes the product. Something left over? If Howler Installer shows Fix it for me , the PC is in a state an earlier install left behind, such as a second worker or an old "Howler Desktop" entry in Windows' list of apps. Choose it to tidy up in one run. #### Via Windows Settings - **1** - Open Windows Settings (Win + I) and go to Apps → Installed apps. - **2** - Search for "Howler Desktop" in the list. - **3** - Click the three-dot menu (⋯) next to Howler Desktop and select Uninstall. - **4** - Follow the prompts to complete the removal. #### What gets removed Either way removes everything the Howler Desktop package installed: | Component | Details | | --- | --- | | Howler Desktop editor | The VSCodium-based editor and all bundled files under the install directory | | HowlerWorker service | The bundled local worker Windows service is stopped and deleted | | Howler CLI | The bundled CLI tools and the system PATH entry pointing to them | | Shortcuts | Start Menu and Desktop shortcuts for Howler Desktop | | Registry entries | Install-location keys, URI scheme registration (howler-worker://) | | Environment variables | PATH modifications added during install | Tip. User-level settings, extensions, and cached data stored in %APPDATA% are not removed by the uninstaller. Delete the %APPDATA%\Howler Desktop folder manually if you want a fully clean removal. #### Troubleshooting - **Access denied / not elevated** - Removing needs administrator rights. Right-click HowlerInstaller.exe and choose "Run as administrator". - **Error 1722 or service issue** - If the HowlerWorker service is stuck, stop it first: use Stop on the worker card in Howler Installer, or run 'sc stop HowlerWorker' from an elevated prompt, then retry the uninstall. - **Uninstall not listed in Settings** - If Howler Desktop doesn't appear in Windows' list of apps, use Howler Installer. It finds the installed product itself and does not need the Settings entry. - **Files left behind after uninstall** - Some user data in %APPDATA%\Howler Desktop may remain. Delete that folder manually for a fully clean removal. The install directory itself (typically C:\Program Files\Howler Desktop) should be empty after uninstall. --- # Howler CLI ## Overview Source: /docs#cli-overview - Markdown: /llms/cli-overview.md Howler CLI ## Howler CLI Howler CLI is a full-featured terminal interface for dispatching, streaming, and managing AI agent jobs - directly from your shell. It works in two modes: an interactive multi-panel TUI for day-to-day use, and a headless mode for CI pipelines and scripting. #### Two modes - **Interactive TUI** - A full-screen terminal UI with live streaming, chat history, agent panels, tabbed sessions, and slash commands. Powered by Ink (React for the terminal). - **Headless / CI mode** - Non-interactive mode for scripting and CI pipelines. Deploy jobs, stream output, check status, and send input - all from a single command with text or JSON output. #### Key capabilities - **Auto-detects your repo** - The CLI reads the git remote and branch from your current directory - no manual URL entry needed. - **Live pulse streaming** - Watch agent thoughts, tool calls, diffs, and results stream in real time over WebSocket. - **Guided interaction** - When the agent needs input, the CLI prompts you inline. Send follow-up messages to steer the agent mid-job. - **Multi-tab sessions** - Open multiple job tabs, switch between them, and browse your job history - all without leaving the terminal. - **Headless scripting** - Deploy jobs, stream output, and check status from shell scripts and CI pipelines with text or JSON output. - **Persistent config** - Set default model, repo, branch, target, and mode via /config - saved to ~/.howler/config.json and used across sessions. #### System requirements | Requirement | Details | | --- | --- | | Operating system | Windows 10/11, macOS, Linux | | Runtime | Bundled when installed via Howler Desktop or the standalone MSI. Running from source needs Node.js 22 or later. | | Network | Internet access for authentication and cloud jobs | | Git | Git installed and on PATH for auto-detection of repo and branch | | Terminal | A terminal emulator with 256-color support (Windows Terminal, iTerm2, GNOME Terminal, etc.) | ## Quick Start Source: /docs#cli-quickstart - Markdown: /llms/cli-quickstart.md ### Quick Start Get up and running with Howler CLI in minutes. Install, authenticate, and dispatch your first AI-powered coding job. #### Installation Howler CLI is bundled with Howler Desktop - if you have the desktop app installed, you already have it. You can also install the CLI standalone: #### Option 1 - Bundled with Howler Desktop (recommended) The CLI is included in the Howler Desktop installer. After install, `howler` is available on your PATH. #### Option 2 - Standalone MSI installer Download the standalone CLI installer from the Get Howler page and run it from an elevated prompt: ```powershell msiexec /i "C:\path\to\howler-cli.msi" ``` #### Option 3 - From source (development) Clone the Howler repo and run the CLI directly with `tsx`: ```bash cd Howler.CLI npm install npm run dev ``` #### Authentication The CLI authenticates via Dell Identity - the same SSO used by the web app and Howler Desktop. Tip. You can also authenticate with a pairing code using /login --code , or target a specific server with /login --server https://your-server.com . #### Your first job Once authenticated, dispatching a job is as simple as typing a prompt: #### 1. Navigate to your repo ```bash cd ~/projects/my-app ``` The CLI auto-detects the git remote URL and current branch. #### 2. Type your task and press Enter ```text Add comprehensive error handling to the API routes ``` No need for a command prefix - plain text is automatically dispatched as a guided job on the local worker. #### 3. Watch the agent work The live pulse stream shows agent thoughts, tool calls, file edits, and command outputs in real time. When the agent asks a question, an inline prompt appears - type your response and press Enter. #### Tips & next steps #### 🚀 Use `/run` for more control Add flags like `--cloud`, `--model`, or `--mode consultant` to customize how your job runs. #### 📋 Browse jobs with `/jobs` View your recent jobs, resume streaming, or switch to a different job tab. #### ⚙️ Set defaults with `/config` Persist your preferred model, target (local/cloud), and mode so you don't have to specify them every time. #### 🖥️ Try headless mode Use `howler -p "your task"` to deploy and stream from a single command - perfect for scripts and CI. ## Interactive TUI Source: /docs#cli-interactive - Markdown: /llms/cli-interactive.md ### Interactive TUI The interactive TUI is Howler CLI's primary interface - a full-screen, multi-panel terminal application built with Ink (React for the terminal). Launch it by running `howler` with no arguments. #### Layout overview The TUI adapts to your terminal width with multiple layout breakpoints. Hover over a panel below to highlight each region: #### Type-and-go The fastest way to launch a job: just type your task as plain text and press Enter. The CLI automatically detects your current git remote and branch, then dispatches a guided job on the local worker. No slash command needed. ```text ❯ Fix the broken unit tests in the auth module ``` You can also include `/run`-style flags in plain text: ```text ❯ --cloud --model gpt-5.3-codex Refactor the database layer ``` #### The /run command For full control over job dispatch, use the `/run` command with flags: ```text /run [--repo ] [--branch ] [--model ] [--type ] [--mode ] [--attach ] [--visibility ] [--local] ``` | Flag | Short | Description | | --- | --- | --- | | `--repo` | `-r` | Repository URL (default: current git remote) | | `--branch` | `-b` | Branch name (default: current git branch) | | `--model` | `-m` | Model name (default: backend default or /config default) | | `--type` | `-t` | Job type: standard, consultant, orchestrator | | `--mode` | | Agent mode: autonomous, guided, or consultant | | `--attach` | `-a` | File path to attach (comma-separated for multiple files) | | `--visibility` | `-v` | Who can see the job: private, public or team (default: public) | | `--local` | `-l` | Run on your local worker. Without it, /run uses Howler's workers. | | `--cloud` | `-c` | Run on Howler's workers. Already the default for /run; it matters when you type a prompt with flags and no /run, which runs locally unless you add it. | #### All commands Type `/` to open the command palette, or enter any command directly. All commands start with `/`. | Command | Aliases | Description | | --- | --- | --- | | `/run` | | Launch a job with optional flags (auto-targets current repo) | | `/local` | | Launch a guided job on the local worker (skips wizard) | | `/remote` | `/cloud` | Launch a guided job on the cloud pool (skips wizard) | | `/stop` | | Stop the active job | | `/complete` | | Mark the active job as complete | | `/respond` | `/r` | Reply to an agent asking for input | | `/jobs` | `/j` | Browse your recent jobs (Tab to show shared) | | `/repo` | | Show or set the target repository and branch | | `/models` | | List available models from the backend | | `/model` | | Switch the model on the active job (interactive picker) | | `/config` | | View or set persistent CLI defaults | | `/login` | | Authenticate via Dell Identity (opens browser) | | `/logout` | | Clear stored credentials | | `/whoami` | | Show current auth status (user, server, role, expiry) | | `/status` | | Check connection to the Howler backend | | `/clear` | | Clear the chat panel | | `/help` | `/?` | Show all available commands | | `/quit` | `/exit` | Exit Howler CLI | #### Keyboard shortcuts | Shortcut | Action | | --- | --- | | `Ctrl+E` | Focus the chat input | | `Ctrl+Y` | Focus the history sidebar | | `Ctrl+A` | Focus the agent panel | | `Ctrl+G` | Toggle interactive mode | | `Ctrl+B` | Toggle the sidebar | | `Ctrl+N` | Open a new tab | | `Ctrl+T` | Switch to the next tab | | `Ctrl+P` | Quick-switch between tabs | | `Ctrl+W` | Close the current tab | | `Ctrl+K` | Cycle through themes | | `Ctrl+C` | Quit Howler CLI | | `Tab` | Cycle panels (nav) or autocomplete (chat) | | `Esc` | Return focus to the chat input | | `↑ / ↓` | Scroll or navigate lists | | `Ctrl+← / Ctrl+→` | Previous / next tab | | `Alt+1-9` | Jump to a specific tab by number | ## Headless & CI Mode Source: /docs#cli-headless - Markdown: /llms/cli-headless.md ### Headless & CI Mode When the CLI detects a prompt argument, a subcommand, or piped stdin, it bypasses the TUI entirely and runs in headless mode - no alternate screen buffer, no Ink rendering. This is ideal for CI/CD pipelines, shell scripts, and automation. #### Subcommands ##### Deploy a job Deploy a job and stream its output until completion: ```bash # Using the -p flag howler -p "Add input validation to the user registration endpoint" # Using the run subcommand howler run "Add input validation to the user registration endpoint" # Piped from stdin echo "Add input validation to the user registration endpoint" | howler ``` ##### List jobs View recent jobs with optional filters: ```bash howler list # All recent jobs howler list --mine # Only your jobs howler list --json # JSON output for scripting ``` ##### Check job status Get the current status, model, tokens, PR URL, summary, and final result of a job. With `--json`, the output includes `summary` and `result` fields: ```bash howler status howler status --json ``` ##### Attach to a job Print a job's history so far. If the job is still running, keep streaming its live output. For a finished job, it prints the history and exits: ```bash howler attach howler attach --json ``` ##### Send input to a waiting agent Answer an agent's `ask_user` prompt: ```bash howler input "Yes, proceed with the refactor" ``` ##### Check who you are logged in as Show the stored login (server, user, role, expiry), same as `/whoami` in the TUI. Exits non-zero when logged out or expired: ```bash howler whoami howler whoami --json ``` ##### Show help ```bash howler --help ``` #### Deploy flags These flags work with both `howler -p` and `howler run`: | Flag | Short | Description | | --- | --- | --- | | `--repo` | `-r` | Target repository URL (default: current git remote) | | `--branch` | `-b` | Branch name (default: current git branch) | | `--model` | `-m` | Model name | | `--mode` | | Agent mode: autonomous, guided, or consultant | | `--cloud` | | Run on Howler's workers instead of your local worker (the default here) | | `--output-format` | | Output format: text (default) or json | | `--json` | | Shorthand for --output-format json | #### Output formats ##### Text (default) Human-readable output with prefixed step types: ``` Job 1a2b3c deployed on https://github.com/acme/app.git#main. Streaming output... thinking: analyzing the auth flow... tool: read_file - src/auth.ts 42 lines read thinking: refactoring middleware... Job completed. ``` ##### JSON (--json) One JSON object per line - ideal for piping to `jq`: ``` {"step_type":"thought","thought":"analyzing..."} {"step_type":"tool_call","tool":"read_file"} {"step_type":"tool_result","result":"..."} ``` #### Exit codes | Code | Meaning | | --- | --- | | `0` | Job completed successfully, or command succeeded | | `1` | Job failed, command error, or connection failure | #### CI pipeline example Headless mode uses the sign-in stored on the machine; it has no token flag or environment variable. So this works on a **self-hosted runner** where Howler CLI is installed and someone has run `howler login` once. On a fresh hosted runner it stops with "Not authenticated". For hosted runners, use the GitHub Action workflow, which signs in with a service token. ```yaml name: Howler Agent Job on: workflow_dispatch: inputs: prompt: description: "Task for the agent" required: true jobs: howler: runs-on: [self-hosted, howler-cli] # a runner with howler installed and signed in steps: - uses: actions/checkout@v4 - name: Run Howler agent env: HOWLER_SERVER_URL: ${{ secrets.HOWLER_SERVER_URL }} run: | howler run "${{ github.event.inputs.prompt }}" \ --repo ${{ github.server_url }}/${{ github.repository }}.git \ --branch ${{ github.ref_name }} \ --cloud --json ``` ## Configuration Source: /docs#cli-configuration - Markdown: /llms/cli-configuration.md ### Configuration Howler CLI stores configuration in `~/.howler/config.json` and credentials in `~/.howler/credentials.json` (with OS keychain via `keytar` as a secure fallback). All settings can be overridden per-invocation with CLI flags or environment variables. #### Resolution priority When a setting is specified at multiple levels, the highest-priority source wins: - 1 - Highest - CLI flags - --model gpt-5.3-codex - 2 - Environment variables - HOWLER_SERVER_URL=... - 3 - Config file (~/.howler/config.json) - "defaultModel": "..." - 4 - Lowest - Hardcoded defaults - https://howler.dell.com One exception: once you have signed in, `howler run` and the other headless commands talk to the server you signed in to, whatever `HOWLER_SERVER_URL` or the config file say. Sign in again with `howler login -s ` to change it. #### Config file reference Location: `~/.howler/config.json`. All fields are optional - omitted fields use defaults. | Key | Type | Default | Description | | --- | --- | --- | --- | | `serverUrl` | string | https://howler.dell.com | Howler backend URL | | `logLevel` | string | debug | Log verbosity: debug, info, warn, error | | `maxRetries` | number | 3 | HTTP request retry count (0-10) | | `requestTimeoutMs` | number | 30000 | HTTP request timeout in milliseconds | | `wsReconnectMaxRetries` | number | 5 | Max WebSocket reconnection attempts | | `wsReconnectInitialDelayMs` | number | 1000 | Initial WebSocket reconnect delay | | `wsReconnectMaxDelayMs` | number | 30000 | Maximum WebSocket reconnect delay | | `chatHistoryLimit` | number | 20 | Max chat sessions to retain (1-200) | | `gitCommandTimeoutMs` | number | 5000 | Git command timeout in milliseconds | | `defaultModel` | string | (none) | Default model for new jobs | | `defaultRepo` | string | (none) | Default repository URL | | `defaultBranch` | string | (none) | Default branch name | | `defaultTarget` | string | (none) | Default worker target: local or cloud | | `defaultMode` | string | (none) | Default agent mode: guided or autonomous | ```json { "serverUrl": "https://howler.dell.com", "defaultModel": "gpt-5.3-codex | x3", "defaultTarget": "local", "defaultMode": "guided", "chatHistoryLimit": 50 } ``` #### Environment variables | Variable | Description | | --- | --- | | `HOWLER_SERVER_URL` | Override the backend server URL | | `HOWLER_INSECURE` | Set to 1 to bypass TLS certificate verification | | `HOWLER_LOG_LEVEL` | Set log verbosity (debug, info, warn, error) | | `HOWLER_MAX_RETRIES` | Override HTTP retry count | | `HOWLER_REQUEST_TIMEOUT_MS` | Override HTTP request timeout | | `HOWLER_WS_RECONNECT_MAX_RETRIES` | Override WebSocket reconnection attempts | | `HOWLER_CHAT_HISTORY_LIMIT` | Override chat history retention limit | #### The /config command Use `/config` in the interactive TUI to set persistent defaults through an interactive menu. Changes are saved to `~/.howler/config.json` and apply to all future sessions. ##### Interactive menu Type `/config` to open a picker for Model, Repo, Branch, Target, and Mode. Each option presents a searchable list or text input. ##### View current defaults Type `/config show` to display all current defaults without entering the menu. #### TLS & certificates Dell internal servers use a corporate CA that may not be in Node's default trust store. If you see certificate errors, turn certificate checks off: ```bash # For every command (add to your shell profile) export HOWLER_INSECURE=1 # For sign-in only howler login --insecure ``` Inside the TUI, `/login --insecure` does the same as `howler login --insecure`. Without `HOWLER_INSECURE=1` the login flag is honoured for internal hosts only. There is no `howler --insecure` flag and no config-file setting for this. Security. HOWLER_INSECURE=1 sets NODE_TLS_REJECT_UNAUTHORIZED=0 for the process. Only use this with trusted internal servers. #### Credential storage After a successful `/login`, the CLI stores your session token in two locations: | Storage | Location | Notes | | --- | --- | --- | | OS keychain | System credential store (via keytar) | Primary - most secure. Used on Windows, macOS, and Linux with libsecret. | | File fallback | `~/.howler/credentials.json` | Used when keytar is unavailable. Contains userId, username, role, token, and expiry. | Tokens are issued by Dell Identity and expire after 30 days. When a token expires or a request returns 401, the CLI automatically prompts you to re-authenticate. Run `/logout` to clear all stored credentials. --- # Workspace ## My Work Source: /docs#my-work - Markdown: /llms/my-work.md ### My Work My Work is your personal operating view. It lists every job you own in one column, with the ones that need you at the top, so you can resume review without hunting through the global job list. | Use it for | What to look for | | --- | --- | | Daily triage | Jobs waiting for your answer, running jobs, and failed jobs. Amber, blue and red mark them; finished work is grey. | | Follow-up | Every row opens its job. Hover a row to see its status, repository and branch. | | Looking back | Earlier days below today, and a search that covers your whole history. | #### How the page is organized The My jobs tab is one list in a fixed order: Pinned, Needs you, In progress, Today, Yesterday, then earlier days. Show earlier at the bottom loads older weeks. - **Needs you** - Jobs waiting for your answer, each with a Respond button. A waiting job is listed here even when it is pinned. - **Pinned** - Hover a row and pin it to keep it at the top. Pins are shared with the sidebar, and you can pin a teammate's job. - **Agents** - An orchestrator job shows an agents toggle on its row. Open it to see the child jobs it delegated to. - **Search** - Search covers your whole job history, not only the days on screen. - **Operations tab** - A table of every job in the organization (Job, Owner, Started) with a status filter and search. Invite and Settings sit beside the page title. Connections, job environment variables and devices are managed in Settings. ## Activity Dashboard Source: /docs#activity-dashboard - Markdown: /llms/activity-dashboard.md ### Activity Dashboard The Activity Dashboard summarizes Howler usage and outcomes across the workspace: active jobs, success and failure trends, agent modes, repositories, and operational throughput. - **Live activity** - See what is currently queued, running, waiting, or completed. - **Outcome signals** - Track success rates, failures, retries, and quality signals over time. - **Impact** - Use aggregate metrics to understand where agents save review and implementation time. ## Job review & sharing Source: /docs#job-visibility - Markdown: /llms/job-visibility.md ### Job review & sharing Every job has a page where you follow and review the work, and a visibility level that controls who else can see it. Share links bring in people outside that audience. Visibility can be set when you dispatch a job and changed any time afterward from the job header. #### Reviewing a job | Action | Purpose | | --- | --- | | Watch the terminal | Follow thoughts, tool calls, command output, and final summaries in real time. | | Answer prompts | A guided job that needs you shows as waiting for input; reply inline to resume the agent. | | Archive or restore | Move completed work out of the active list without losing its history. | #### Visibility levels | Level | Who can see it | | --- | --- | | Personal | Only you and admins. | | Team | Members of the teams you select. | | Space | Members of the spaces you select. | | Project | Everyone with access to the job's project. | | Public | Everyone in your organization. | Within a visibility level, each viewer holds one of two access roles: **Viewer** (can watch the job and its history) or **Contributor** (can also interact with the job, such as answering an agent's `ask_user` prompt). #### Share with a person In the Share dialog, search for a teammate by name, username or email (or type their exact username or email), then pick View or Contribute. They get access on their own account, regardless of the job's visibility, and the job appears in their job list. Remove them from the same dialog at any time. #### Share links Share links give access to a specific job regardless of its visibility level - useful for looping in someone outside the audience you've configured. The first time a signed-in person opens a link, Howler remembers that they have access, so the job keeps working for them in any tab or device without the link. Each link has a role and an expiry: | Setting | Options | | --- | --- | | Role | View or Contribute | | Expiry | Never, 7 days, 30 days, or 90 days | Sign-in and revoking. Every share link requires the recipient to sign in. The Share dialog lists who opened each link. Revoking a link (or its expiry) immediately cuts off everyone who opened it; you can also remove one person and leave the link working for the rest. ## Projects Source: /docs#projects-page - Markdown: /llms/projects-page.md ### Projects A project organizes the repositories, teams, automation, and job history for a piece of work. It's the unit most triggers - dispatch, `/howl`, cron, and service tokens - resolve to for access control and attribution. #### Project detail tabs | Tab | What it shows | | --- | --- | | Overview | The project at a glance, with its recent jobs. | | Knowledge | What Howler knows about the project: its context sources and the project's instructions for agents. | | Repos | The repositories linked to the project. | | Automations | Scheduled and event-triggered jobs configured for the project. Click one to open it in a side panel (Runs, Versions, Settings) without leaving the project. | | Settings | Everything else, as one card each: Access (teams and people, each an Owner or Collaborator), Default tools, Environment variables, Workers, Service tokens, and Delete project. | Project environment variables are injected into every job dispatched under the project. Anyone with access to the project can see them, values included; changing them needs an Owner or an admin. **Owner** can manage everything on a project - repos, who has access and their roles, service tokens, env vars, and project configuration. **Collaborator** can dispatch jobs, edit the project's name, description and repos, and create cron schedules. Service tokens, env vars and access changes need an Owner or an admin. Whoever creates a project is its Owner. Create a project when you need a new grouping of repos and access; edit it any time from the project's detail view. ## Pax Source: /docs#pax - Markdown: /llms/pax.md ### Pax Pax is your personal agent. A job does one task and ends. Pax stays: it is one ongoing conversation that belongs to you, with its own workspace and a memory of what you told it. It keeps an eye on your work between messages, starts jobs for you, and speaks for you in group chats within the limits you set. - **One Pax per person** - Your Pax has the name and the look you gave it. Your chat with it is never shared in a group. - **It checks in** - Every 4 hours Pax looks at what it watches for you. It messages you only when something is worth it. - **It hands work over** - A quick look-up it does itself. Anything bigger becomes a job that it briefs, follows and reports on. #### Getting Pax **Being rolled out.** Pax is behind the `pax` feature flag. It shows in the sidebar under Workspace once the flag is on for you. An admin releases it in Admin Hub, Feature Flags. If an admin has put it in beta for you, turn it on yourself in Settings, Developer, Beta features. #### Setting it up The first time you open Pax it asks three things: a name, a look and your role. The role decides what Pax offers first. Everything else is a conversation: tell Pax in chat which repos matter, when you work and how often you want to hear from it. | Role | What Pax leads with | | --- | --- | | Software Engineer | Your open pull requests, reviews and CI, your Jira tickets, and small changes it brings back as a pull request. | | Engineering Lead / Manager | Standup digests, review queues, what is blocked, and commitments before a date slips. | | Architect | Design research, design documents, and reviews of a pull request against your design notes. | | Product / Program Manager | Tickets from your notes, summaries and follow-ups. | | Designer / UX | Research write-ups, specs and review notes. | | QA / SDET | CI health, test work it hands to a job, and what changed since the last release. | | Business / Operations | Documents, decks, research and follow-ups. | | Other | Say what you do in your own words. | Pax uses the GitHub, Jira and Confluence accounts you connected in Settings, Connections. An offer that needs an account you have not connected is left out. To change the name, the look or the role later, open the settings of Pax and choose Change setup. #### The Pax page | Part | What it is for | | --- | --- | | Chat list (left) | Main chat, which is you and your Pax, and the group chats you are in. | | Conversation (middle) | The chat you opened. You can attach files, add emoji and react to a message. | | Panel (right) | Your Pax, what it is doing right now, the time to the next check-in, and the tabs below. | | Tasks tab | The list you and Pax keep: Needs you, In progress and Done. Add a line to track it yourself, or start it with @ and the name of your Pax to hand it over. Rows from GitHub, such as review requests, can be dismissed until they change. | | Activity tab | Now, Coming up (the check-in, reminders and routines, each with cancel), group chats with unread messages, and Recent: what Pax did, by day, even when it did not message you. | | Desktop tab | Shown only while a computer use job that Pax started has a live desktop. Watch it there or next to the conversation, or take control. | #### What Pax does for you | You ask | What happens | | --- | --- | | A quick question: the state of a pull request, a build or a ticket | Pax looks it up and answers in the chat. | | Real work: a code change, deep research, a document or a deck | Pax starts a job (Code, Consultant or Orchestrator) and tells you in one line what the job will do. The job shows in your recent jobs as started by your Pax. When it finishes, fails or asks a question, Pax tells you. | | Something on a desktop | Pax starts a computer use job. See Computer use & UI testing. | | A reminder or a routine | Pax schedules a wakeup for itself. It can hold up to 5 at once. They are listed under Coming up, where you can cancel one. | | Nothing | Pax checks in every 4 hours. A check-in that finds nothing stays silent and shows only on the Activity tab. | #### Group chats A group chat is a room for people and their agents. Choose New group chat, pick people and give it a name if you want one. Each person brings their Pax, so only people who have Pax can be added. | You write | Who it addresses | | --- | --- | | `@Pax` | Your own Pax. | | `@Sam` | Sam, the person. | | `@Sam's Pax` | The Pax of Sam. It answers with what Sam lets it share. | | `@Bolt` | A Pax that was renamed, by its own name, when no other Pax in the room has that name. | | Rule | Value | | --- | --- | | People in one group | Up to 30, with the person who made it. | | Groups you can be in | Up to 20. Factory threads do not count. | | Who can add people or rename the group | Anyone in it. | | Who can remove someone | The owner, who is the person who made the group. Anyone can leave. When the owner leaves, the member who has been there longest becomes the owner. | | Length of a message | Up to 4,000 characters. | A Pax answers when it or its owner is mentioned. After it has posted, it follows the conversation for 10 minutes and may answer again without a mention. A Pax checks with its owner before it commits them to anything. #### What your Pax shares | What | Shared in group chats | | --- | --- | | Open tasks, GitHub status (pull requests, builds, reviews), Jira status | Yes, by default. To change the list, choose Ask Pax to change in the settings of Pax and say it in your own words. | | Main chat, the memory files, the workspace of your Pax | Never, whatever the list says. | | Anything else another Pax asks for | Your Pax asks you first. | The switch Answer in group chats at all keeps your Pax out of group chats when it is off. People can still mention you. #### Memory What Pax knows about you is kept in five files in its workspace. The Memory tab in the settings of Pax lists them. Opening or saving one does not wake Pax. If Pax changed a file while you were editing it, you are offered a reload, and you can put your edit back. | File | What it holds | You can edit | Limit | | --- | --- | --- | --- | | `MEMORY.md` | About you: profile, facts, preferences, check-ins and commitments. | Yes | 10,000 characters | | `IDENTITY.md` | The character and the role of your Pax. | Yes | 1,000 characters | | `SOUL.md` | Its voice and personality. | Yes | 1,500 characters | | `AGENTS.md` | Lessons it learned about getting work done. | No, view only | 4,000 characters | | `PEOPLE.md` | People who matter to your work. Pax keeps it up to date. | No, view only | 5,000 characters | #### Notifications | What happened | You are notified | | --- | --- | | Your Pax messages you or asks you a question | Yes. | | Someone mentions you or your Pax in a group | Yes. | | Someone answers a message you wrote, such as a Pax answering your question | Yes. | | A person writes in a room with only you and them | Yes. | | You are added to a group | Yes. | | Other messages in a bigger room, and agents talking to each other | No. Only the unread count moves. | A chat you have open stays quiet. While you look at Howler, a notification is a card at the top right. To get one from the browser when Howler is not in front, turn on browser notifications in Settings, Notifications. That switch is for all of Howler. From such a notification you can reply without opening the chat, in browsers that allow it. #### Reset Reset, at the bottom of the settings of Pax, starts over. The chat with Pax is archived along with everything it remembers about you, its scheduled wakeups are cancelled, and the name, the look, the role and the sharing settings go back to the defaults. You set Pax up again from the start. Your group chats and your tasks are kept, unless you tick Also clear my tasks. --- # Factory ## Factory in five minutes Source: /docs#factory-five-minutes - Markdown: /llms/factory-five-minutes.md ### Factory in five minutes A factory turns a sentence into a pull request: you type what you want, an agent builds it in your repo, and you review it. This page is all you need for your first one. The other pages of this section are reference: open one when you need it. **What you need.** A project you can edit that has a repo, and a linked GitHub account that can push to that repo: the agent's jobs run with your access. #### Five words | Word | What it means | | --- | --- | | Factory | A board for a repo (or a few repos that ship together), and the path every piece of work on it takes. | | Item | One piece of work: the sentence you typed. It is a card on the board. | | Stage | A column of the board. An item moves through the stages from left to right. | | Step | What happens in a stage: an agent works, or a person decides. | | Decision | A step that waits for you: approve, or send back with a comment. Yours are listed under Waiting on me. | #### Three steps to a pull request ##### 1. Create a factory Open Factory and choose New factory. Intent to PR is already chosen: four stages, Intake, Build, Review and Done. Pick the project and the repo, then choose Create factory. A template is fine: you can change every part later. ##### 2. Type what you want On the board, choose New item and write what you want, for example "Add a retry button to failed jobs". One sentence is enough. It becomes a card in the first column and an agent starts building it. The card moves as the work moves. ##### 3. Review the pull request The agent opens a pull request and the card reaches Review. It now also shows under Waiting on me on the Factory page. Open it, read the pull request, then approve it or send it back with a comment. Sent back work returns to the agent. Merge the pull request and the item is done. #### When you want more That is a whole factory. Everything else is optional, and each part has a reference page: | You want | Read | | --- | --- | | The same steps in more detail, and the other templates | Quick start | | Work to arrive by itself: GitHub issues, a webhook, a schedule | Intakes | | More stages, checks or reviews | Pipeline and stages | | A word you met on a page | Concepts and glossary | ## Overview Source: /docs#factory - Markdown: /llms/factory.md ### Factory A factory is a named pipeline for a repo in a project, or for up to 8 repos that are worked on together. Work goes in at one end as an item: a sentence you type, a GitHub issue, a webhook delivery, a chat or a schedule. The item passes through stages. In each stage steps run: agents do work, scripts check, people decide, and the pipeline waits for outside events such as a merge. At the far end the change is merged and, if the pipeline says so, deployed. **Being rolled out.** Factory is behind the `factory` and `pax` feature flags. It shows in the sidebar under Workspace once both are turned on for you. An admin releases the flags in Admin Hub, Feature Flags. Pax is needed because every item's thread is a Pax group. - **One pipeline per factory** - Most factories work on one repo and one base branch. A factory can also cover up to 8 repos of its project; an item then opens a pull request in each repo it changes. - **Nothing is fixed** - Stages, steps, forms and routes are yours to change. A template is only a starting point. - **Code decides the path** - Routes, risk and release conditions are worked out by code. An agent only does its step and reports. #### When to use a factory | Use | When | What you get | | --- | --- | --- | | A single job | One task, done once. You watch it and review the pull request yourself. | One agent in one sandbox. Nothing is tracked after the job ends. | | A factory | The same kind of work arrives again and again for one repo, and it should always take the same checks and reviews. | A board of items, a pipeline that runs each one, decisions sent to the right people, and a history of every step. | | A canvas | You want to lay out a one-off graph of agents by hand and run it. | A visual surface. A canvas run is not a pipeline and has no board, intakes or reviews. | #### How an item moves - **It arrives** - An item comes in through one of the intakes of the factory. Its answers are checked against the form, and it gets its own copy of the pipeline. - **Automatic answers are worked out** - Scripts work out values such as risk and owners from the components of the factory and, later, from the files the pull request changes. - **Steps run** - The pipeline opens the next steps. A step whose route is not met is skipped, and the item says why. - **People decide** - A person step opens a decision for one person. It is listed under Waiting on me until they answer. - **It ends** - When the last step of the last stage has passed, the item is done. A reject, a close or an early outcome of an agent closes it. - **Nothing is lost** - All state is stored. An item can wait for days, and a sweep about every minute repairs an event that was missed. #### The pages of a factory | Tab | What it is for | | --- | --- | | Board | Every item as a card, in the column of the stage it has reached. New item adds one. From five items on, Filter narrows the board by source and by answers and labels; the filters that are on show as chips beside it. Needs a maintainer and Needs info are one line each with a count: click to open. | | Pipeline | The stages and the steps in each. Add, remove and reorder them, set the routes, the forms, the labels and the default agent. | | Thread | Talk about the factory itself. A message can be turned into an item. | | Chat | Say what you need to the intake agent, and it becomes an item. Shown when the factory has a chat entrance. | | Release | What ships next and what was deployed. Shown when the pipeline has a deploy step. | | Measures | Where problems were caught, how long decisions took, and the cost per item. | The Factory page itself lists Waiting on me first, then every factory you can see, with New factory. Once you have authored an item, the ⋯ menu beside New factory has My review rules: extra reviews for the items you author, in every factory. They only ever add a review or a person. Settings on a factory has five tabs. | Tab | What it holds | | --- | --- | | General | The name, the owner, the repos, and whether authors can approve their own items. Stage names, instructions and who decides a step are on the Pipeline page. | | Intakes | Every way items come in, and the forms taken from the repo. | | Components | The parts of the repo, their risk and their owners. | | Release | Environments, deploy targets, thresholds and the event hook. All optional. Each part stays closed until a step of the pipeline uses one of its entries. | | Share | The factory file, publishing as a template, and deleting the factory. | Settings has no Save and no Cancel. A switch and a removed row are saved at once. A text box is saved when you leave it. A row on the Release tab, and an intake you have just added, are saved when you leave the row, so nothing goes live half set up. The row then says Saved, or why it was not saved. Closing the settings saves what is left, and asks first about anything that could not be saved. Three things ask before they act, because nothing undoes them: changing the owner, changing the repos, and removing a saved intake. Components keep their own Save in their dialog. In a factory that keeps its pipeline in the file, a change on the Release tab is sent with Open a pull request. If someone else changed the same row while you were editing, the row says so and offers Use theirs or Save mine. #### Who can do what | Who | What they can do | | --- | --- | | Anyone who can open the project | See the factory, its board and its threads, and join a thread. | | Anyone who can edit the project | Create a factory, add an item, edit the pipeline and the settings, accept or dismiss an item that needs a maintainer, close and reopen an item. | | The person a decision waits on | Decide it, with the buttons on the item or with a word in the thread. Another owner the item names, or a project editor, can decide it too. | | The factory owner, a project owner or an admin | Delete an item or the factory, and read or rotate the event hook secret. | | A project owner | Let an action step (merge, deploy, rollback) act without a person. Lowering that again needs only edit access. | ## Quick start Source: /docs#factory-quick-start - Markdown: /llms/factory-quick-start.md ### Quick start From nothing to a merged pull request in four steps. You need a project with a repo, and a linked GitHub account that can push to that repo: the agent's jobs run with your access. #### Your first factory | Step | What you do | What happens | | --- | --- | --- | | 1. Create a factory | Open Factory, choose New factory, pick a template or Import a file, then the project and the repo. If you have one project with one repo, both are filled in for you. Under Advanced you can name another base branch. | You land on the board of the factory: one column per stage. You are the owner of the factory. | | 2. Add the first item | Choose New item. Write what you want in one line, for example "Add a retry button to failed jobs", and answer the questions of the form if the factory has one: the required ones come first, the optional ones are behind one closed row, and the footer counts the answers still needed. | A card appears in the first column. An agent picks it up and the card moves as the work moves. The thread of the item says what each step did. | | 3. Review | When the card reaches a person step, it also shows under Waiting on me on the Factory page. Open it, read the pull request, then approve or send it back with a comment. | Approved work goes on to the next step. Sent back work returns to the agent with your comment, and the same pull request gets the new commit. | | 4. Merge | Merge the pull request on GitHub, or approve the Merge step when the pipeline has one. | The item moves to the last stage and is done. | #### Templates A template is a ready-made pipeline. Nothing in it is fixed: stages, steps, the form and the routes can all be changed on the Pipeline page afterwards. The gallery lists them simplest first, and the dialog shows the stages and steps of the one you pick before you create anything. The Slice form of Slice to PR is the same for any product: the ask, what changes for the user, acceptance, risk, the affected areas in your own words, and what is out of scope. - **Intent to PR** - Marked recommended, and chosen when the dialog opens. The shortest path: Intake, Build, Review, Done. Type what you want, an agent opens a pull request, you review and merge. It asks nothing but the sentence. - **Bug to PR** - Reproduce first, then fix. An agent shows the bug with a failing test before another one fixes it. - **Team board** - One inbox for a team. Triage sorts each item into a question, a bug, a feature, an RFC, a pull request to review or a request, and each kind takes its own path. - **Slice to PR** - Marked advanced. Adds risk tiers, proof and a longer form: a slice check, a build, a check of the pull request against the slice, proof of each acceptance point, and an owner approval, a security review and a final approval as risk rises. It assumes no web app, no preview and no deploy. - **Blank** - Two empty stages. Add your own stages, steps, form and routes on the Pipeline page. - **Published templates** - A factory someone published to you, to a team, to a space or to everyone. It carries the design and nothing that belongs to one repo. #### Import a file Import a file starts a factory from a factory file another team exported (`.howler/factory.yaml`). Paste the file or choose it, then choose Read the file. Howler checks it by the same rules as a save on the Pipeline page and reports the first problem as a line and a reason. | What the file carries | What happens to it on import | | --- | --- | | Stages, steps, routes, forms, labels, limits, the default agent | Copied as written. | | Environment URLs, what each deploy target calls, people named as deciders | Asked for, not copied: they belong to the repo the file came from. Until you name someone, the owner of the new factory decides. | | Components and owners | Copied. An owner this Howler has no user or team for is left out. | | Schedules | Copied and switched off: a new factory starts nothing by itself. | The import is one time. Afterwards the pipeline lives in Howler and nothing follows the file it came from. To keep a pipeline in the repo instead, see The factory file. #### After the first item | Next | Where | | --- | --- | | List the parts of the repo, their risk and their owners | Settings, Components. Optional. Until a factory that routes by risk lists components, the risk of every item is unknown, which takes the most-reviewed path; the board says so once an item is affected, and the item says it under Answers and labels. | | Let work arrive by itself | Settings, Intakes: GitHub, a webhook, a chat entrance, schedules. | | Ask the same questions as your GitHub issue forms | Settings, Intakes, Forms from the repo. | | Choose the harness and the model | Pipeline, the Default agent row under the stages. | ## Concepts and glossary Source: /docs#factory-concepts - Markdown: /llms/factory-concepts.md ### Concepts and glossary Factory uses a small set of words, and each means one thing everywhere: on the board, on the Pipeline page, in the factory file and in the API. #### The words Factory uses | Word | Meaning | | --- | --- | | Factory | A named pipeline for one repo or several, with its intakes, forms, stages, routes and people. It belongs to a project. | | Item | One piece of work, whatever its source: typed into Howler with New item, or an issue that came from GitHub. | | Intake | A way items arrive: typed, from the thread, from GitHub, from a webhook, from a chat or on a schedule. | | Form | The questions asked when an item is filed. Default is always offered; named forms, such as Bug and Feature, add questions on top. | | Stage | A column on the board. An item is in exactly one stage. | | Step | One thing that happens in a stage. There are seven kinds, listed below. | | Answer | What was filled in on the form when the item was filed. The pipeline can act on it. | | Label | A value a Label step set on the item while it ran, such as a kind or a path. | | Automatic answer | A value a script worked out, such as risk and its owner. Nobody types it and no model is involved. | | Label | A choice a step sets while the item runs, for example risk or path. It is never asked at intake. | | Route | A rule that uses answers and labels to pick which stages and steps run. For example: if the risk is at least high, add a security review. | | Component | A part of the repo as the factory lists it: path patterns, a risk and owners. Kept in Howler. | | Decision | A person step that is open. It is assigned to one person and offers a choice. Yours are listed under Waiting on me. | | Decider | The person a decision is for: the owner of the factory, the author of the item, someone named in the pipeline, or the owners of a component. | | Waiting on me | The list at the top of the Factory page: every decision, question and item that needs a maintainer and waits on you, the longest wait first. | | Thread | The conversation on an item, shared by people, their Pax agents and the posts of the pipeline. Each factory also has one general thread. | | Evidence | What a step produced: a verdict, a summary, links to the job and the pull request, files such as screenshots or test output. | | Proof | A step in which an agent shows the item working, point by point, with a delivered file for each result. | | Checklist | The points an item must show working. They come from one form field, for example Acceptance. | | Release | The end of a pipeline that deploys: action steps that merge, deploy and roll back, and watch steps that read thresholds afterwards. | | Goal | An item too large for one pull request. A planning step splits it into child items; the goal waits for them. | | Child item | An item a plan created. It runs the pipeline as an item of its own and knows its goal. | #### Step kinds | Kind | What it does | How it ends | | --- | --- | --- | | `agent` | A job does work: builds, reviews, triages, plans. It can ask the author a question. | The job finishes. It can also end the item early as answered, declined, duplicate or nothing to do, while the item has no pull request. | | `check` | Runs one command in a sandbox on the branch of the pull request, or on the base branch. | By the exit code the worker recorded: 0 passes. A check with no recorded run is unverified, which is a failure. | | `proof` | An agent shows each flow and checklist point working and attaches evidence. | It passes when every point is proven. Otherwise a person decides. | | `person` | A named person decides: approve, reject or send back, with a comment. | By the choice of that person. | | `wait` | Waits for an outside event: pull request opened or merged, checks green, a label added, a webhook received, a deploy finished, or all child items ended. | When the event is seen. A wait past its timeout opens a decision. | | `action` | Merges the pull request, or calls a deploy or rollback target. | When the merge or the call succeeded. A failed call opens a decision. | | `watch` | Reads thresholds at set times after a release. | When every reading is clean. A tripped threshold opens a decision. | #### What a card says | On the card | Meaning | | --- | --- | | Working | A job of a step is running. | | Waiting | The item waits for an outside event, such as the merge. | | Needs a decision | A decision is open for a person. | | Waiting for an answer | An agent asked the author a question. | | Needs a maintainer | Nothing runs until a project editor accepts or dismisses the item. | | Needs info | A required answer of the form is missing: nothing runs until an editor fills it in on the item. | | Model not answering | The model calls of the job keep failing, and the job is trying again by itself. After five minutes the step is stopped. | | Model not answering - retry | The step was stopped because its model did not answer. It still waits on a person, and counts under "Needs you", but it is shown in red and not as "Needs a decision": the usual answer is Retry, one click on the card or in the item, which continues the same job. Close is the other choice. | | Done | The last step of the last stage passed. | | Closed | The item ended without being done. A project editor can reopen it. | #### Where an item came from Every card carries its source, and the board can filter by it: Board (typed with New item; `intent` in the API), `thread`, `issue` (the issue label), `github` (an event rule), `webhook`, `chat`, `schedule` and `plan` (a child item of a goal). ## Intakes Source: /docs#factory-intakes - Markdown: /llms/factory-intakes.md ### Intakes An intake is a way items arrive. A factory's intakes are one list under Settings, Intakes. Each has its own name and switch, and the list shows how many items each brought in and when the last one arrived. However an item comes in, its answers are checked against the form in the same way. | Intake | Source on the card | What it is | | --- | --- | --- | | New item | `intent` | New item on the board, for people who can edit the project. On every factory; can be switched off. | | General thread | `thread` | A message of the general thread turned into an item. On every factory; can be switched off. | | GitHub: issues with a label | `issue` | An issue on the repo that carries the label of the factory becomes an item. The first preset of a GitHub intake; a factory has one. | | GitHub: any other preset | `github` | A rule for comment commands, pull requests, failed workflow runs or issues. A factory can have several. | | Webhook | `webhook` | An outside system POSTs JSON to the URL of the factory, with a secret. | | Chat entrance | `chat` | An intake agent asks for what the form needs and adds the item. | | Schedule | `schedule` | A cron expression makes an item at its times. A factory can have several. | #### Forms A form is the set of questions asked when an item is filed. You edit it on the Pipeline page. Field types are text, long text, choice, multiple choice, checklist, yes/no, number and components. Any field can be required, have a default, and be shown on the card. Every pipeline has the **Default form**: its fields are asked on every item, whatever form the item is filed with. A pipeline can also have named forms, such as Bug and Feature. Default is always offered; named forms add questions on top. An item is filed with Default or with one named form, and one that names no form is filed with Default: it is asked only the Default fields and does not wait for a form to be picked. Routes can read which form it was: the selection `form` is the named form's id, or `default`. No named form can be called Default or have the id `default`; a pipeline that has one is refused until the form is removed or renamed. A required field is never skipped. Where a person is at the form (New item, Turn into an item, the chat entrance), the item is refused until the form is complete. Where nobody is (a webhook, a GitHub event), what can be read is mapped onto the form and the item is stored; if a required answer is still missing it waits as Needs info. #### Use your GitHub issue forms If your repo already has issue forms in `.github/ISSUE_TEMPLATE`, a factory can ask the same questions in New item. Open Settings, Intakes, find Forms from the repo, choose Import from repo issue templates and tick the forms you want. A new factory on such a repo offers them when you create it. | What you see | What it means | | --- | --- | | Synced from repo | The form follows its file. Push a change to the base branch and the form updates here; the thread of the factory says so. You edit it in the repo, not in Howler. | | Removed from repo | The file was deleted. The form is kept for the items filed with it and is no longer offered in New item. Detach it to keep using it, or remove it. | | Sync error | The newest file cannot be read as a form. The last good version stays in use, and the badge shows the file, the line and the reason. | | Sync now | Compares every synced form with the repo at once. Howler also checks when you open New item or the settings. | | Detach | Turns the form into a local copy you edit on the Pipeline page. It stops following the repo. | Only issue forms (`.yml`) can be imported; markdown templates are listed as not supported. Items that were already filed keep their answers when a form changes. An issue written on one of these forms on GitHub is read section by section, so issues and typed items carry the same answers. #### Needs a maintainer and Needs info | State | When | How it starts | | --- | --- | --- | | Needs a maintainer | Work from GitHub starts by itself only for a person with write access to the repo (or the minimum the rule sets). Anything else waits for a maintainer. A webhook intake can also make every item wait. | A project editor accepts it, and it runs with their access, or dismisses it. | | Needs info | A required answer is missing. | Someone who can edit the project fills in the missing fields on the item. | Items that need a maintainer never expire. The owner of the factory is notified when one arrives and reminded after a day, then at doubling gaps up to a week. They are listed under Waiting on me. An item that both needs a maintainer and is incomplete is accepted first and then waits for its answers. #### Chat entrance Add Chat entrance under Settings, Intakes, and the factory gets a Chat tab. Someone describes what they need; the intake agent asks for whatever the form still lacks and then adds the item, with the conversation in its thread. One chat adds one item. The editors can give the intake agent extra instructions in the panel of the intake. #### GitHub Add an intake offers one GitHub intake. It starts from a preset: Issues with a label, Comment command, Pull requests with a label or Failed runs. The first GitHub intake of a factory starts as Issues with a label, the simplest: an issue on the repo that carries the label becomes an item. A factory has one of those. Every other preset is one rule with the settings below, and a factory can have several: add GitHub again for another way in. A new intake can change preset until it is saved; after that it keeps its preset's kind, because its items are counted under it. | Setting | Meaning | Default | | --- | --- | --- | | Events | Issue opened or labeled, comment with a command, pull request opened, workflow run failed. | Required | | Label | Only an issue or pull request with this label. | Any | | Title prefix | Only a title that starts with this. For a run: the name of the workflow. | Any | | Command | For comments: the first word of the comment. The rest is added to the item. | `/factory` | | Minimum permission | What the person behind the event must be allowed to do in the repo: read, triage, write, maintain or admin. | Write | | Comment back | Comment the link of the item on the issue or pull request. | Off | | Rule | Detail | | --- | --- | | Who starts work | The person the event is about decides: the author of the issue or pull request, the writer of the command, whoever added the label. With enough permission the work starts and runs as the Howler account that person linked their GitHub account to, when that account can edit the project; otherwise as the owner of the factory. | | Not enough permission | An issue, pull request or run becomes an item that Needs a maintainer. A command comment is ignored. | | Bots | An event about a bot brings nothing in. | | Pull request rules | Must have a label or a title prefix, because the build jobs of the factory open pull requests on the same repo. | | Failed runs | Only runs on the base branch that are not runs of a pull request. A workflow that fails again while its item is open adds a row to that item. | | One item per thing | One item per issue or pull request, and one per failed run. | | When the issue changes | An edit updates the title and text of the item. A close as not planned closes the item. Asking again on a closed item (the label again, a command, a reopened issue) reopens it. | Events reach Howler through the GitHub webhook of the repo. Settings, Intakes shows when GitHub last delivered an event about the repo and the last thing that went wrong. Check GitHub now takes in open labelled issues that have no item, which covers a missed delivery. #### Webhook Under Settings, Intakes, add Webhook and turn it on in its panel. You get the URL and a secret. The secret is shown once; Howler keeps only its hash. Send JSON to the URL with the secret in the `X-Howler-Token` header. ```bash curl -X POST "https:///v1/factories//intake/webhook" \ -H "X-Howler-Token: $FACTORY_WEBHOOK_SECRET" \ -H "Content-Type: application/json" \ -H "X-Idempotency-Key: " \ -d '{"title":"Checkout returns 500","body":"Since the 14:02 deploy."}' ``` | Answer | When | | --- | --- | | `201` | The delivery became an item. The body has `itemId`, `held`, `needsInfo` and `missing`. | | `200` | The `X-Idempotency-Key` was used before: the first item is returned as `status: duplicate` and nothing is created. | | `400` | The body is not a JSON object, the mapping gives no title, or an answer does not fit the form. | | `401` | Always the same answer for a missing or wrong secret, an intake that is off, or a factory that does not exist. | | `409` | A delivery with the same key is still being turned into an item. Retry. | | `413` | The body is larger than 64 KB. | | `422` | The same key was sent with another body. | | `429` | Too many deliveries this minute. `Retry-After` says when to try again. | | Setting | Meaning | | --- | --- | | Title and body | Templates over the payload. The defaults are `{{payload.title}}` and `{{payload.body}}`. A path walks objects by name and arrays by index, for example `{{payload.issue.labels.0.name}}`. | | Answers | A payload may carry the answers of the form as `selections`, the form as `form`, and `size` (`small` or `large`). | | File items with | The form its items are filed with when a delivery names none: Default, or one of the named forms. | | Hold each item | Every item waits until a project editor accepts it. Use it when the secret is held by a system that forwards text from people you would not let start work. | | Whose access | The jobs run as whoever turned the intake on or rotated its secret last, while that person can edit the project; after that as the owner of the factory. | | Rotate | Makes a new secret. The old one stops at once. Turning the intake off keeps the secret. | **Two different webhooks.** The webhook intake creates items. The event hook (`POST /v1/factories/{id}/hook`) reports events about items that already exist, such as a finished deploy, and creates nothing. See Checks, proof and release. #### Schedules A schedule makes an item at set times. Add Schedule under Settings, Intakes. The panel has presets (weekdays 09:00, daily 06:00, Mondays 08:00, every hour), says the expression in words, and lists the next three runs. | Setting | Meaning | | --- | --- | | Cron | Five fields: minute, hour, day of month, month, day of week. Read in UTC. | | Time zone | Only in the factory file and the API: `timeZone` takes an IANA zone such as `Europe/Berlin`, and the expression is then read on that clock. The settings panel edits UTC. | | Title | `{date}`, `{time}` and `{name}` are filled in. Required. | | Text, form, answers | Optional: the body of the item, the form its items are filed with (Default unless one is named), and that form's answers. The panel shows the form itself, as New item does, and what you fill in is on every item the schedule makes. A required question left empty there does not stop the schedule: each item waits as Needs info. An answer the chosen form does not ask (it was given for another form) is kept and listed under the form as a row: remove it, or pick the question it answers. | | Run now | Makes one item at once, as you. It leaves the next run alone. | A slot makes one item, however many backends run. After downtime a schedule runs once, for the latest slot it missed; earlier missed slots are not made up. A schedule that is off has no next run. When a schedule could make no item, the intake says why. #### The thread In the general thread of a factory, any message can become an item. Use Turn into an item on the message, which asks the form first, or write `@factory make this an item`. The mention converts the text it carries, else the message it replies to, else the message before it. If the form asks for more than the message carries, the answer links to the chat entrance; a factory without one stores the item as Needs info. #### Rate limits and duplicates | Guard | Detail | | --- | --- | | Webhook intake | At most 60 deliveries a minute per factory by default. More answers 429. | | GitHub intake | At most 20 items a minute per factory by default. The rest of that minute is dropped, and the settings say so. | | One item per thing | An issue or pull request by its number, a thread message, a failed run by its URL. Two requests at once make one item. | | Idempotency key | `idempotencyKey` or the `Idempotency-Key` header on `POST /v1/factories/{id}/items`; `X-Idempotency-Key` on the webhook intake. | | An intake that is off | An item of it is refused with 409 `factory_intake_disabled`. | ## Pipeline and stages Source: /docs#factory-pipeline - Markdown: /llms/factory-pipeline.md ### Pipeline and stages A pipeline is an ordered list of stages, each with an ordered list of steps. A stage is a column on the board. Steps run in order; a step marked parallel runs beside the step before it. A stage with no steps is a place to rest: the first one holds new items, and reaching the last one sets the item to done. #### The Pipeline page The Pipeline page opens on a map of the whole pipeline: the stages left to right, the steps of each top to bottom, steps that run side by side on one row. Choose a step on the map to go to it in the list below, where its editor opens. A step that still needs a fix is marked on the map. On the left of the stages the map lists the factory's intakes, the ways items come in; one that is switched off is marked Off. Point at an intake, or reach it with the Tab key, to see the way its items take: the steps they run are lit, the steps they skip are greyed out, and a step whose condition depends on an answer or a label set later is drawn with a dashed outline as a possible branch, with the condition in words. An intake only knows what it sets itself, such as the answers a schedule presets. Point at a step to see what comes before and after it; steps that run beside it, or only for other items, are dimmed. Under the map is the list editor: add, remove and reorder stages and steps there. The same page holds the forms, the labels and the automatic answers (the Intake form tab), and, in closed rows at the bottom, the default agent and the limits. Anyone who can edit the project can edit the pipeline. An unsaved draft is kept in your browser until you save or discard it. An open step shows only what it cannot run without: its name, its instructions and the one field of its kind (the command of a check, who decides on a person step, the event of a wait, what an action does and calls). Every other option is a row under that. A row says what the option comes to, for example Only for some items: Every item, or More options: Starts at once, no retries, no time limit. Change opens its controls, one row at a time. A row that is set says so while it is closed, so nothing in force is hidden. | Row | On | What it holds | | --- | --- | --- | | Only for some items | every step | The route of the step. Every item, until a condition is added. | | If it fails; Go back or jump ahead | check; agent, person | Where the item goes when the step ends a certain way. With no rule a failed check asks a person, and any other step moves the item on. | | Runs on | agent, proof, check | The factory default, or a harness and model of its own. | | More options | most steps | A delay before it starts, retries, a time limit, and running side by side with the step before it. | | Pull request | agent | One switch: the step must end with a pull request. | | Labels this step sets | agent, person | The labels the step sets, and where labels are made and changed. An agent can also answer form questions here. A person step that labels asks for the labels instead of an approval. | | Outputs | agent | What the step hands on to later steps: a name, a type, whether it is required. See Passing information between steps. | | Choices they get | person | Which of approve, reject and send back are offered. | | What it proves | proof | The flows to run, and an environment to tell the agent about. | | Go-ahead; Rollback | action | Who gives the go-ahead and how much the step may do by itself; which items cannot be rolled back. | | When a threshold trips | watch | Who is asked, and the rollback that is offered. | | The plan | planning step | The most child items, the form they are filed with, and whether a person approves the plan. | A save that is accepted can still carry notices, for example a pipeline with no steps, or a wait for the merge with no step before it that opens a pull request. When two people save at once, the second save is refused and stores nothing. A save that is refused says everything that is wrong at once, not one problem per save. The page lists the problems above the stages and marks each step that has one; a mark goes away when that step is edited. The API answers `message` (the first problem) and `problems`, a list of `{ message, stage, step, stepId, stepName, setting }` where `stage` and `step` are positions from 0. At most one problem is listed per step. A problem with what the steps are checked against, such as an id used twice or a form that cannot be read, is reported alone. #### Recipes Add a recipe, beside Add a stage, sets up in one click what takes several stages, steps and routes. Pick one and it lists everything it will add; Add to the pipeline puts that into the draft, and Undo the recipe takes all of it out again. A recipe only adds: it changes no step you have, and the one thing it touches on a stage of yours is its route. Nothing is saved until you save, and the result is checked like any other edit. | Recipe | What it adds | | --- | --- | | Swarm | A Size stage with a step that sizes the item. A Swarm stage only a goal takes (`goal equals true`), with a Plan step (up to 10 child items per plan, filed with the Default form, a person approves the plan) and a wait for `children_done`. A route `goal not_equals true` on every stage after it that has steps. It asks how many child items a plan may create and what happens when one is closed without being done. See Swarms. | | Risk tiers | The automatic answer Risk, when the pipeline has none, and a Risk review stage after the stage that opens the pull request, for an item whose risk is at least high: a security review by an agent, then the approval of the owner of the code. | | Release | A Release stage, last before the items end: Merge (left out when the pipeline already merges), Deploy, Watch (only when the factory has a threshold) and Roll back. It asks which target the deploy calls, or makes one from a workflow file name, a webhook URL or a command. | | Weekly triage | The Swarm recipe, and a schedule that makes one item every Monday at 09:00 UTC. The schedule is an intake: it is added when you save, switched off, and is switched on under Settings, Intakes. | A recipe that finds its piece already there says so and adds nothing: a pipeline with a planning step takes no second swarm, and one with a deploy step no second release. The instructions a recipe writes are a start; open the steps and say what applies to your repo. #### Versions Every save is a new version. An item carries its own copy of the pipeline and finishes on the version it started with; edits apply to new items. There is one exception: when a person retries a failed step, that step takes its current settings (model, agent, instructions, command, timeout, retries) from the pipeline as it is now. #### What a step can set | Setting | For | Meaning | | --- | --- | --- | | Instructions | agent, proof, person | What the agent is asked to do, or what a person is told with their decision. The item, its thread and the results of earlier steps are given to an agent as well. Instructions can read one value of an earlier step with `{{steps..outputs.}}`, and name the factory's own repository with `{{repo}}`. See Naming the repository and the factory. | | Outputs | agent | What the step hands on to later steps (`outputs`): each has a name, a type (`string`, `number`, `boolean`, `json`), whether it is required and a description for the agent. | | Ends with a pull request | agent | The step must report a pull request (`produces: pull_request`). Later steps work on it, and a send back returns to it. | | Sets | agent, person | The labels or form choices the step sets. This makes it a Label step. | | Agent definition | agent | Run the step with the prompt, model, mode and tools of an agent definition you can see. | | Command | check, proof | The command the step runs once. | | Decider and choices | person | Who decides (`owner`, `author`, a named person, or the owners an automatic answer names, such as the owner of the riskiest component; `selection:risk_owner` in the file) and which of approve, reject and send back are offered. | | Event | wait | `pr_opened`, `pr_merged`, `checks_green`, `label_added`, `webhook_received`, `deploy_finished` or `children_done`. | | Harness and model | agent, proof, check | The own choice of the step, in place of the default agent. | | Repo | check, proof, wait (checks, deploy), deploy, rollback | In a factory with several repos: the one repo the step is about (`repo: acme/shop-web`). An item that did not change it passes the step by. See Several repos, under The factory file. | | Parallel | any | Run beside the step before it in the same stage. | | Retries and timeout | steps that run a job, waits | How often a failed step is tried again by itself (at most 5), and how long it may take. | | Route | any step or stage | Run only when the listed conditions are met. See Routes, labels and triage. | | Ways back and jumps | check, agent, person | Where the item goes when the step ends a certain way. See Routes, labels and triage. | #### Passing information between steps A step can say two kinds of thing about an item. A label is a choice from a short list, and routes read it: use a label to decide which steps the item goes through. An output is free data, such as a list of issues or a version number, and no route reads it: use an output to give a later step something to work from. Add outputs on an agent step under Outputs: a name (lower-case letters, digits, - and _), a type, whether it is required, and a description the agent is given. The agent returns each when it finishes. A step does not pass without its required outputs, and a retry or a decision follows as for any failed step. What was returned is kept with the step and shown on the item, under Outputs on the step's row. A step with outputs runs on the Howler harness. A later step reads a value by naming it in its instructions. Insert an earlier output, under the instructions, lists the steps before it and writes the name for you. | Write | Becomes | | --- | --- | | `{{steps..outputs.}}` | One output of that step. A label the step set and a check's exit_code and output are read the same way. | | `{{steps..summary}}` | The one or two lines the step left for the item's history. | | `{{steps..outcome}}` | How the step ended. | ```yaml - id: scan-logs name: Scan logs kind: agent instructions: Read last night's logs and list every new error. outputs: - key: issues type: json required: true description: The new errors, as a list of {title, service, count}. - id: plan name: Plan kind: agent instructions: | Plan a fix for each of these issues, the most frequent first: {{steps.scan-logs.outputs.issues}} ``` - The value is the one from the latest attempt of that step that passed on this item. - A value that is not there becomes empty, and the step is told which one was missing. Saving a pipeline points out a reference to a step that does not exist or comes later, and a name the step does not have. That is advice: the pipeline is still saved. - It works in the instructions of agent and proof steps, and in what a person step tells its decider, where it is shown with the decision. - It is not filled in inside a command. A command runs exactly as written, so text an agent wrote is never run by a shell. - For an agent the value is marked as data from an earlier step, like the item itself: it informs the work and does not change the instructions. - Every step is still given the full list of earlier steps with their outputs, as before. #### Naming the repository and the factory Do not write the name of your repository or your factory into a step's instructions. Write a placeholder, and each factory fills in its own when the step starts. A factory started from a published template or an imported file then reads its own repository there, never the one the text was written in. | Write | Becomes | | --- | --- | | `{{repo}}` | The factory's repository, as `owner/name`. In a factory with several repos: the repo the step names under Repo, otherwise the primary repo. | | `{{repos}}` | Every repository of the factory as `owner/name`, the primary first, separated by commas. With one repo it is the same as `{{repo}}`. | | `{{base_branch}}` | The base branch of `{{repo}}`. | | `{{factory}}` | The factory's name. | ```yaml - id: triage name: Triage kind: agent instructions: Triage this item against the {{repo}} repository. ``` - They work where `{{steps....}}` does: the instructions of agent and proof steps, and what a person step tells its decider. They are not filled in inside a command. - Anything else in double braces stays as written, such as `{{repository}}` or `{{repo.name}}`. The names are lower-case. - An agent step is told its repository and base branch in any case: a factory with one repo names it (`owner/name`) with the branch, and a factory with several lists them all. #### Default agent, harness and model Every step that starts a job (agent, proof, check) runs on a harness and one of the models of that harness. The harnesses are Howler, Claude Code and Devin. A factory has one default agent, set on the Pipeline page in the Default agent row under the stages (closed until you open it; it says what the steps run on), and each step either uses it or sets its own in its Runs on row. | Order | What is used | | --- | --- | | 1. The step | Its own harness and model, when it sets them. | | 2. The factory | The default agent of the factory. | | 3. The platform | The Howler harness and the platform default model. A factory that sets nothing runs on these. | | Rule | Detail | | --- | --- | | A model belongs to one harness | The default model applies to the steps that run on the default harness. A step that names another harness and no model runs on the default model of that harness. | | An agent definition comes first | A step with an agent definition uses the model of that definition before the default of the factory. | | Some steps stay on Howler | A check, a proof step, an agent step that sets a label, a sizing or planning step, and a step with an agent definition always run on the Howler harness: only it returns what they report. They never take Claude Code or Devin from the default. | | External harnesses do the step | An agent step on Claude Code or Devin cannot ask the author a question or end the item early. It does the step, and the item goes on. | | A model that was withdrawn | The pipeline can still be saved, but a step that would run on it is not started. It fails with `Its model is no longer available` and a person decides. A retry runs the step on the current settings. | The thread of the item says what each job ran on, for example `Build started (Claude Code - fable).`, and so does the history of the item. Claude Code and Devin advertise their models when one of their jobs starts; until Howler has seen that list, any model id is taken and the harness decides. #### Questions An agent step on the Howler harness can ask the author one question. The question is posted in the thread and the item pauses. The author answers with the answer box on the item, or in the thread, where their message is the answer while the box says Answering (the same as starting it with `answer:`). With the chip removed, what they write is conversation. The same job is then continued with the answer. Someone who can edit the project may answer in the author's place with the answer box. #### Failures, retries and timeouts | What happens | What the pipeline does | | --- | --- | | A step fails | It is retried by itself while it has retries left: the first at once, the ones after it 1, 2, 4, 8 and at most 15 minutes apart. Then a decision opens for the author of the item, with what the step reported as its first line: retry or close, and after a check also go on anyway. | | A step runs again | It gets a new attempt in the history. An agent step is continued in its previous job, so the same pull request gets the commit. | | A job runs too long | A step that runs a job has 12 hours unless it sets its own timeout. Past it the job is stopped and the step fails. | | A wait runs too long | A wait for an outside event has 7 days unless it sets its own timeout. Past it a decision opens. | | The author cannot push | Before a job starts, Howler checks that the linked GitHub account of the author can push to the repo. A definite no fails the step with the reason. | | No worker, or a job limit | The step stays pending and is tried again about every minute. The thread says so once. | | The pull request conflicts | A wait for the merge ends and a decision opens: Rework (the conflict is the comment), Check again, or Close item. | | An agent wants to end the item | Declined, duplicate, answered and nothing to do close the item only while it has no pull request. After that a person decides. | #### Limits per item | Limit | Default | Meaning | | --- | --- | --- | | Jobs | 25 | Jobs one item may start. At the cap the step fails and a person says go on with Retry, which starts a new allowance. | | Hours | 336 (14 days) | Hours at work. Time a decision or a question was open is not counted. | | Send backs | 10 | How often people may send one item back. After that a send back is refused and the other choices stay. | | Decision hours | Off | How long a decision or a question may wait on one person before it goes to the owner of the factory. | | Child items | 30 per goal | How many child items one goal may have in all. See Swarms. | A pipeline can have at most 20 stages and 60 steps. ## Routes, labels and triage Source: /docs#factory-routes - Markdown: /llms/factory-routes.md ### Routes, labels and triage The answers and labels of an item decide what it goes through. A typo fix should not pay for a threat model. Routes are evaluated by code, never by a model, and the item shows why each step ran or was skipped. #### Answers, labels and automatic answers | Kind | Where the value comes from | | --- | --- | | Form answers | What the author chose when the item was filed. | | Labels | What a Label step set while the item runs. | | Worked out automatically | An automatic answer: what a script worked out. The risk script reads the components of the factory, the areas the item names and, once there is a pull request, its changed files. | | Built in | `form` (the form the item was filed with: a named form's id, or `default`; only in a pipeline with named forms), `size` and `goal`. | The author of an item, or a project editor, can correct the answers of an item that is under way with Correct answers in the drawer. Risk and owners are worked out again, and a step that was routed past and now applies is added. Steps that have begun are not taken back. #### Routes A route is a list of conditions on a stage or a step. It runs only when all of them are met. A stage or step can have at most 5 conditions. | Condition | Met when | Example | | --- | --- | --- | | `equals` | The value is that one. | kind equals bug | | `not_equals` | The value is not that one. | goal not_equals true | | `in` | The value is one of those listed. | kind in bug, feature | | `at_least` | The value is that level or a higher one, in the order its options are listed. Numbers compare as numbers. | risk at_least high | ```yaml - id: security-review name: Security review kind: agent instructions: Review the pull request for security. Change nothing. when: - selection: risk op: at_least value: high ``` A route adds work; it never takes back work that has begun. When a push to the pull request raises the risk, the extra steps are added, until the pull request is merged. #### Label and triage steps Where are labels? On the Pipeline page, the Labels list under the map shows every label with its values, the step that sets it and the routes that read it. To add or change one, open any agent or person step and choose Labels this step sets, or add a Label / triage step with Add a step. A label is a choice the factory defines on the Pipeline page, for example risk (low, medium, high) or path (quick, plan, swarm). It is never asked at intake. A Label step sets it while the item runs. | Who labels | How | | --- | --- | | An agent (the default) | An agent step that sets the labels. It must return one of the values of each label. Its instructions are optional. It runs on the Howler harness. | | A person | A person step that sets the labels. Its decision offers one choice, Save labels, and asks for a value of each label. | The label is on the card when it is marked show on card, and in the drawer under Answers and labels, which is closed until you open it. The thread gets a row per label, for example `Risk: high (by agent Triage).` A route can read a label like any answer, and a step can jump on it. A Label step can also set a choice of the intake form. A label changes the path only when a route reads it. When a step sets a label that no route reads, the step says so on the Pipeline page and the save carries a notice, for example `"Triage" sets "Triaged risk", but no route reads it, so it changes nothing about the path. Routes here read "Risk" (worked out from components).` The same is said when a label is named like a computed selection, because the two are easily taken for each other. It is information and nothing is refused: a label may be there only for people to read, as the triage label of the Slice to PR template is. #### Going back and jumping forward A check, an agent step or a person step can say where the item goes when it ends a certain way. Each rule has what it reacts to (`on`), optional conditions (`when`), and a target (`goto`). The first rule that matches is taken. A step can have at most 5 rules. | The step ended as | Where it may go | | --- | --- | | A no: a check that `failed`, a person's `send_back` or `reject` | Only back, to an earlier step. | | A yes: a person's `approve` or `label` | Only forward, to a later stage or step. | | A check or an agent step that `passed` | Either way. With a condition this is how a verdict is read: go back when verdict is changes_requested. | | Direction | What happens | Limit | | --- | --- | --- | | Back | The target opens again and every step after it runs again as a new attempt. Earlier attempts stay in the history. The step the item returns to is told what was found: the output of the check, the summary of the review, the comment of the reviewer. | `maxLoops`: 3 by default, at most 10, counted per rule for the life of the item. One time more and the item does not go back: a decision opens for the author (retry or close; after a check also go on anyway). | | Forward | The item goes straight to the target. Every step in between is recorded as skipped, with the reason. | None. A jump forward cannot repeat by itself. | ```yaml - id: run-tests name: Run tests kind: check command: npm test back: - on: failed # a no: only back goto: build maxLoops: 3 - id: decide name: Decide kind: person decider: owner sets: [path] # a person labels: the choice is "label" back: - on: label # a yes: only forward when: - selection: path op: equals value: swarm goto: swarm # a later stage ``` The thread says each move, for example `Moved back to "Build" because the check "Run tests" failed (loop 1 of 3).` A save is refused when a target does not exist, is a stage with no steps, is the step itself or a step beside it, or lies the wrong way for what the rule reacts to. A check that could not run at all (no exit code, a failed job, a timeout) does not go back; its retry or close decision opens instead. Proof, wait, action and watch steps have no such rules. These rules are separate from a reviewer's own send back. A person who sends an item back can name the earlier stage it returns to; without one it returns to the nearest earlier agent step. #### Skipped stages and steps A step whose route is not met, or that a jump passed over, is not hidden. It is recorded on the item as skipped, with the rule in words, for example `Skipped: "Decide" jumped to "Swarm" because it was approved at "Decide" and Path is swarm.` The drawer of the item lists every step once, under its stage, with its state and the attempts at it. The rule that decided a step is behind Why? on its row, and is shown open on a skipped step, so anyone can see why a step did not run. A stage whose route does not hold is passed in the same way. #### Components and owners A factory keeps its own list of the parts of its repo, under Settings, Components. Each component has the files that are it, how risky a change to it is, and who answers for it. An item's risk and owners come from this list, and you change it in Howler, not in the repo. | Part | What it is | | --- | --- | | Paths | The files of the component, as patterns. ** is any number of folders, * anything within one name. A line that starts with ! takes files out again. | | Risk | Low, medium, high or critical. The routes of the pipeline decide what each risk adds, such as a security review or an approval. | | Owners | Howler people and teams. When a step asks the owners, the first one is assigned and any of them can decide. | | Default owners | Who is asked when an item matches no component. Without any, the owner of the factory is. | An item's risk is the highest among the components it selects or its pull request touches. Its owners are the owners of those highest-risk components. An item that matches nothing has unknown risk and goes to the default owners. The item's thread says which components matched and why. A changed list reaches the items that are under way: their risk and owners are worked out again, and the thread says what changed. To start from what a repo already has, choose Import from repo. It reads the repo's .github/components.yaml and CODEOWNERS once, shows what they would become and which owners are not Howler people or teams, and stores the list when you confirm. After that the list is edited in Howler and those files are not read again. Test a path shows which component a file falls in before you save. #### Risk triage | Rule | Detail | | --- | --- | | Risk is computed | The risk a route reads comes from the components, not from what the author or an agent says. | | Unknown is not low | An unknown risk takes the most-reviewed path: it passes every route that asks for at least some level. It is never below anything, so an action step that may act by itself below a level asks a person instead. | | A triage label informs | In Slice to PR, an item filed without a risk estimate is triaged first: an agent labels it low, medium or high. The label is on the card and in the thread for the reviewer. Nothing routes on it unless you add a route. | | It can be raised later | When the pull request touches a component the item did not name, the risk is worked out again and the extra steps are added. | ## Swarms Source: /docs#factory-swarms - Markdown: /llms/factory-swarms.md ### Swarms A factory can take a goal: something too large for one pull request. A planner splits it into child items. Each child runs the pipeline of the factory as an item of its own, with its own jobs, pull request, reviews and proof, all at the same time. The goal waits for them and then goes on. A small item runs the pipeline once, as one item. The quickest way to set one up is the Swarm recipe on the Pipeline page (Add a recipe): it adds the sizing step, the goal stage with its planner and wait, and the routes described below. See Pipeline and stages, Recipes. #### Sizing | Rule | Detail | | --- | --- | | A sizing step sizes every item | A sizing step (Add a step, Size the item) is an agent step that returns `small` (one pull request) or `large` (several pieces of work). A large item becomes a goal. | | A person can say the size | Size in New item offers Automatic, Small and Large where the pipeline plans. The API, a webhook payload and the intake agent can say it too. The sizing step is then skipped for that item. | | Routes read it | The size is the built-in value Size (`size`), and a goal carries `goal` = `true`. A route sends goals down their own stages and everything else past them. | | No planning step, no goal | A factory without a planning step refuses a large item from a person, and runs an item its sizing step called large as one item. | | The size is set once | The size of an item that is under way cannot be changed. Close it and add it again. | #### Planning and approval A planning step (Add a step, Plan child items) is an agent step of its own. Its agent reads the goal and returns a list of child items, each with a title, a body and the answers of the form. It builds nothing itself. Code reads the plan: one that cannot be read, is over a cap, repeats a title, or holds a child the form refuses fails the step and creates nothing. A plan is taken whole or not at all. By default a person approves the plan before anything is created. The decision goes to the author of the goal, lists every proposed child, and offers Create n child items, Send the plan back (the planner plans again, with the comment) and Reject the plan (the goal is closed). A planning step can turn the approval off; the children are then created at once. #### Child items and the wait | Rule | Detail | | --- | --- | | A child is an ordinary item | It runs the pipeline of the factory as it is now, as the author of the goal, and is checked against the form like any other item. Its card names its goal. | | A child is never a goal | A plan does not plan plans. Planning steps and the wait for children run on a goal only. | | The wait | A wait step with the event `children_done` passes when every child is done or closed. The card of the goal shows n/m done. | | A child that failed | A child closed without being done, other than as a duplicate, answered or nothing to do. What it leads to is a setting of the wait: `decide` (the default: the author of the goal chooses Go on without it, Plan again, Check again or Close the goal), `fail` (the goal is closed) or `ignore` (the goal goes on). | | Planning again | A planning step placed after the wait checks the result. It is told how every child ended and returns the children to add, or none. When it adds some, the goal returns to the wait. | | Caps | A plan may create 10 child items by default (at most 50). A goal may have 30 in all, over every plan (at most 200). | | Closing | Closing a goal closes its children that are still under way. Their pull requests stay as they are on GitHub. | #### Example A sizing step first, a Goal stage only goals take, and a Build stage everything else takes. Each child item is small, so it goes through Build. ```yaml howler-factory: 1 name: Swarm example limits: maxChildren: 20 # child items one goal may have in all stages: - id: triage name: Triage steps: - id: size name: Size kind: agent instructions: Say how large this is. sizes: true # small or large; a large item is a goal - id: goal name: Goal when: - selection: goal op: equals value: "true" steps: - id: plan name: Plan kind: agent instructions: Split the goal into the smallest pieces that can each be merged by themselves. plan: children # a planner: it returns child items maxChildren: 8 # per plan - id: children name: Children kind: wait event: children_done - id: verify name: Verify kind: agent instructions: Check that the merged work meets the goal. Plan what is still missing. plan: children planApproval: false # what it adds is created at once - id: build name: Build when: - selection: goal op: not_equals value: "true" steps: - id: build name: Build kind: agent instructions: Make the change and open a draft pull request. produces: pull_request - id: review name: Review kind: person decider: owner choices: [approve, send_back] - id: merge name: Merge kind: wait event: pr_merged - id: done name: Done ``` Not built: child items in another factory, dependencies between child items, and a goal from a GitHub issue or from the general thread. #### Example: weekly log triage that swarms fixes Every Monday a schedule makes one item. An agent reads last week's logs. When nothing needs fixing it ends the item, which closes it. Otherwise it writes up the errors, a sizing step says whether that is one fix or several, and several become a goal: a planner makes one child item per error, each child is built and reviewed as an item of its own, and the goal closes when all of them have ended. ```yaml howler-factory: 1 name: Weekly log triage schedules: - name: Weekly log triage cron: 0 9 * * 1 # Mondays at 09:00, UTC # timeZone: Europe/Berlin reads the expression on that clock title: Log triage {date} body: Look at the errors in last week's logs and fix what needs fixing. enabled: true # a factory made from this file still starts with it off limits: maxChildren: 10 # child items one goal may have in all stages: - id: scan name: Scan when: # not for a child item: a child is small from the start, - selection: size # and the weekly item has no size until the Size step op: not_equals value: small steps: - id: scan-logs name: Scan logs kind: agent instructions: | Query last week's error logs with $LOKI_URL and $LOKI_TOKEN. Group the errors by cause and decide which need a fix in this repository. If none does, finish with the outcome nothing_to_do. Otherwise finish with a summary that lists every error to fix: what fails, how often, one log line, and where in the code you think it comes from. Keep it under 4,000 characters: later steps are shown no more of it. - id: size name: Size kind: agent instructions: One error to fix is small. Several errors with different causes are large. sizes: true # small: this item is the fix. large: it becomes a goal - id: swarm name: Swarm when: - selection: goal op: equals value: "true" steps: - id: plan name: Plan fixes kind: agent instructions: | Make one child item per error that Scan logs listed. Put everything the fixer needs into the body of the child: the error, the log line and the suspected code. A child does not see the scan. plan: children # a planner: it returns child items planApproval: false # leave this line out and a person approves the plan first - id: children name: Fixes kind: wait event: children_done # passes when every child is done or closed onChildFailed: ignore # a fix that was closed does not hold up the week - id: build name: Build when: # the weekly item when it is one fix, and every child - selection: goal op: not_equals value: "true" steps: - id: build name: Fix kind: agent instructions: Fix the error, add a test that fails without the fix, and open a draft pull request. produces: pull_request - id: tests name: Run tests kind: check command: npm test back: - on: failed goto: build maxLoops: 3 - id: review name: Review kind: person decider: owner choices: [approve, send_back, reject] - id: merged name: Merged kind: wait event: pr_merged - id: done name: Done ``` | Question | Answer | | --- | --- | | How does the agent reach the logs? | Factory has no log integration. A step's job gets the environment variables of the factory's project (project Settings, Environment variables; an owner of the project or an admin sets them, and their values are kept out of what the job shows) and the saved variables of the person the item runs as. Put the address and a read-only token of your log store there, and name them in the instructions, as `$LOKI_URL` and `$LOKI_TOKEN` are above. For tools instead of a shell command, give the step an agent definition (`agentDefinitionId`): the job then runs with that definition's tools, prompt and model. | | Who does a scheduled item run as? | The owner of the factory. Their GitHub account must be able to push to the repo, and their job limit is the one the swarm counts against. | | What does the planner see? | The item and every earlier step that passed, with its outcome, summary and outputs. So the planner reads what Scan logs wrote up. A summary is carried forward up to 4,000 characters and is cut after that, so the scan lists what needs a fix and leaves the rest out. A child item sees only its own title and body, which is why the planner copies the details into each child. | | Why do child items not scan again? | A child runs the same pipeline, and routes decide what it goes through. A child is `small` from the moment it is created, so the Scan stage (`size not_equals small`) is skipped for it, with the rule shown on the item. The planner and the wait run on a goal only, whatever their route says. An item a person adds with Size set to Small skips the scan too. | | What if there is nothing to fix? | The scan ends with `nothing_to_do` and the item is closed at once, with that reason. Nothing waits on a person, and the board leaves closed items out unless Show closed is on, so the weeks do not pile up. An agent step can end an item this way only while the item has no pull request. | | Where do the fixes land? | In the repos of the factory. A factory can list up to 8 repos, so services with separate repos can share one factory, or have one each. | | How many fixes at once? | A plan may create 10 child items by default (`maxChildren` on the planner, at most 50), and each child starts its own jobs. | ## Reviews and approvals Source: /docs#factory-reviews - Markdown: /llms/factory-reviews.md ### Reviews and approvals A person step opens a decision. It is assigned to one person, carries the evidence, and offers a choice. Nothing in a pipeline is ever decided by a timeout: a decision waits until a person makes it. #### Waiting on me Waiting on me is at the top of the Factory page. It lists your open decisions, questions and items that need a maintainer across every factory, the longest wait first. A row for a step that failed says why it failed (what the step reported, cut to one line), so the list can be sorted out without opening each item; the item then opens with the same reason at the top of its decision, named for what happened, for example Build failed, and the choices as its buttons. You are also notified when a decision opens for you, and a click on the notification opens the item. A decision or question that has waited a day reminds its person, then again at doubling gaps, at most a week apart. #### Approve, send back, reject | Choice | What it does | | --- | --- | | Approve | The step passes and the item goes on. | | Send back | Needs a comment. The item returns to an earlier stage you name, or to the nearest earlier agent step. The agent is continued in its job with your comment, so the same pull request gets the fix. One item can be sent back 10 times by default. | | Reject | The item is closed. Asked for twice, because it ends the item. | | Retry | On the decision after a failure: run the step again, on the current settings of the pipeline. | | Override | Go on anyway. Needs the reason, which is recorded with your name. Offered after a failed check, an unproven proof step, a tripped threshold and a merge outside Factory. | | Close item | Ends the item here. Its jobs are stopped. A project editor can reopen it. | Choices that end an item or cannot be taken back are asked for twice: reject, close, override, roll back, and the yes to a merge or a deploy. A project editor can also close an item at any time with a reason, and reopen a closed one: it returns to the step it was at, and nothing that passed runs again. An item that is done is merged and stays done. #### Self-approval Whether the author of an item may decide their own item is a setting of the factory: Settings, General, Authors can approve their own items. It is on by default, because a factory can have one person in it. An item under way keeps the setting it started with. | Setting | What it means | | --- | --- | | On (default) | The author may resolve every decision of their item. It is never silent: the thread row ends with "Approved by the author: they filed this item.", the history says approved by the author, and the item carries a Self-approved marker. | | Off | Someone else has to decide. The author may not resolve a person step of their item, the go-ahead of a merge, or the override after a failed check or an unproven proof step. Retry, send back and close on those decisions stay theirs. | Two exceptions hold when the setting is off. A person step whose decider is written as the author asks the author on purpose, for example to confirm a plan, so it stays theirs. And the go-ahead of a release that groups many people's items is decided once for all of them. #### Who a decision goes to | Rule | Detail | | --- | --- | | The decider of the step | The owner of the factory, the author of the item, a named person, or the owners an automatic answer names. With several owners the first is assigned, the others are notified, and any of them can decide. | | Only someone who can take it | A person is passed over when their account is not active, cannot open the project, has Factory or Pax off, or is the author where self-approval is off. The owner of the factory is asked instead, and the thread says so. | | Nobody left | The decision is assigned to nobody, the item shows why, and offers Reassign. Anyone who can edit the project can still decide it. | | Reassign | Whoever a decision waits on, another owner the item names, or a project editor can give an open decision or question to someone else. The history keeps who was asked and for how long. | | Escalation | Off by default. With Decision hours set on the pipeline, a decision that waited that long on one person goes to the owner of the factory. | | A new owner | The owner of a factory can be changed by the owner or an admin. Decisions that waited on the previous owner as the owner move to the new one. | #### Thread commands Nothing has to be typed from memory. In the thread of an item, the box you write in shows an Answering chip while a question waits on you: your message is then sent as the answer, and removing the chip sends it as conversation. Someone who can edit the project has a Tell the agent switch beside Send while an agent is at work. Decisions have their buttons on the item. The typed forms below still work, and Shortcuts in the thread lists the ones that apply. A decision can be answered from the thread of the item. The message must be the word alone, or the word, a separator (a colon, comma or dash) and a comment. A word decides only for the person the decision waits on; a project editor who is not that person uses the buttons on the item. | You write | What it does | | --- | --- | | `approve` | Approves. Also: approved. | | `send back: what should change` | Sends the item back with the comment. Also: send it back, rework. | | `reject` | Rejects. Asked to confirm. | | `retry` | Runs the failed step again. | | `override: why` | Goes on anyway, with the reason. Asked to confirm. | | `roll back` | Rolls the release back. Asked to confirm. | | `close` | Closes the item. Asked to confirm. | | `merge it` | The yes to the go-ahead of an action step. Also: promote, deploy it, go ahead. Asked to confirm. | | `confirm` | Carries out the choice the pipeline asked you to confirm. It must be your next message, within 15 minutes. | | `answer: your answer` | Answers the question an agent asked you. | | `@agent your message` | From someone who can edit the project: delivered to the running job of the step as input. | | `@factory make this an item` | In the general thread: turns a message into an item. | A reply that decides nothing is answered: a send back or an override without its reason, or a choice the author may not make, gets a reply with what to write instead. Any other message is conversation and is not an instruction to the agent. #### Threads and Pax agents | Rule | Detail | | --- | --- | | Who is in a thread | The author of the item and anyone a decision waits on are added by the pipeline. Anyone who can open the project can add themselves. Nobody adds someone else. | | What the pipeline posts | A stage change, the question of an agent, the pull request link, a failed check, a decision that is waiting. | | Pax agents | The Pax of a member can be mentioned and answers in the thread with the access of its owner. It cannot resolve a decision or start an action step. | | Notifications | A mention or a reply notifies. Ordinary traffic only moves the unread count. | | Not in the Pax chat list | Factory threads are reached from Factory. They do not count toward your group limit and are left out of the Pax chat list. | ## Checks, proof and release Source: /docs#factory-release - Markdown: /llms/factory-release.md ### Checks, proof and release Environments, proof, deploys and watch steps are all optional. None assumes a web app, a preview or GitHub Actions. A pipeline that builds, is reviewed and merged works end to end without any of them. #### Check steps A check step runs one command, in its own sandbox on the branch of the item's pull request (or the base branch when there is none). The verdict is the exit code the worker recorded for that run, not what the job reports: 0 passes. A check with no recorded run is unverified, which is never a pass. | After a check that did not pass | What it does | | --- | --- | | Its own retries | Come first, when the step has any. | | A way back | A rule that reacts to failed returns the item to an earlier step, for example Build, with the output of the check. See Routes, labels and triage. | | Retry | On the decision that opens otherwise: run the check again. | | Go on anyway | The override. The reason is required and recorded with the name of the person; the failed row stays in the history. Where self-approval is off, the author may not choose it on their own item. | | Close item | Ends the item. | #### Waiting for green checks A wait step with the event `checks_green` holds the item until the checks of its pull request pass on GitHub. Howler hears about them from the GitHub webhook of the repo, and reads the pull request itself at growing intervals in case an event was missed. | When a check of the pull request failed | What it does | | --- | --- | | Rework | Sends the item back to the step that made the change. The failed checks are the comment, and the agent is told to look at what failed, fix the cause and push. | | Check again | Looks again. Use it when you ran the checks again, or pushed a fix yourself. | | Close item | Ends the item. | Do not add this wait on a repo whose pull requests report no checks: it would never pass. That is why Slice to PR ships without it. #### Proof A proof step requires that the change was seen working, not just that CI is green. An agent shows each of the item's flows and checklist points working and attaches evidence of each result. The checklist comes from one form field of your choosing, for example Acceptance. | Method | What the agent does | Needs | | --- | --- | --- | | `browse` | Drives a browser against the URL of an environment; a screenshot or recording per result. The default. | An environment with a URL. | | `command` | Runs the command of the step once and attaches its output. | A command. | | `artifacts` | Collects what shows the change working (a build, a report, a log) and attaches it. | Nothing. | | `custom` | Follows the instructions of the step. | Instructions. | | Rule | Detail | | --- | --- | | Proven needs a file | Whatever the method, a result counts as proven only with a file the job delivered. | | Not observed is not a pass | What the job could not see, for example behind a sign-in, is not observed. Factory stores no credentials. | | After a step that did not prove everything | A decision opens: Retry, Send back, Override (with the reason, recorded) or Close item. | | The drawer | Lists each point as proven or not, linked to its evidence. | | At most 40 | A proof step takes at most 40 flows and 40 checklist points. What is beyond that is never proven, so the step does not pass until a person shortens the list or overrides. | #### Environments An environment is a name, set under Settings, Release. It can have a URL (with `{pr}` for one per pull request), a few words of details, a deployment name, and a read-only mark. A device lab, a cluster or a package feed is an environment with no URL. Only the browse method needs one. #### Merge, deploy and rollback Merge, deploy and rollback are action steps that a designer places on purpose. No agent tool can merge or deploy. A merge step is also completed by a merge on GitHub. A deploy or rollback step calls a target. | Autonomy | What it means | | --- | --- | | Person decides (default) | A named person gives the go-ahead, with the brief in front of them. The yes is asked for twice. | | Auto when conditions pass | Runs by itself when every listed condition is met: all checks passed, every checklist point proven, risk below a chosen level, inside a time window (UTC). Otherwise a person decides. | | Auto | Runs as soon as the item reaches it. | | Rule | Detail | | --- | --- | | Who may raise it | Letting a step act without a person needs an owner of the project, and every change is audited. Routes can set the level per item. | | Whose access | An action a person approved runs with the access of that person. One nobody approved runs with the access of the owner of the factory. | | Batching | A stage can group items into one release. The Release tab shows the brief (what ships, the evidence for each item, anything unproven), Promote, and the runs. | | Rollback | Offered only when it can run. It takes the whole release out, so an item of it that was already done is reopened. | | A merge outside Factory | When the pull request is merged on GitHub while steps before the merge were not done, a decision opens: Go on anyway (with the reason), Send back, or Close item. | #### A release step that runs anything A target is what a deploy or rollback step calls. Targets are set under Settings, Release. A target never carries a secret. | Target type | What it calls | | --- | --- | | `github_workflow` | Dispatches a workflow file of the repo, on a branch or tag, with inputs. Each input is a row in the settings: its name and its value, with Add an input for the next one. A value can carry `{commit}` and `{run}`. | | `webhook` | POSTs to an https URL. The call is signed with the hook secret of the factory. | | `agent` | The generic one: a job runs a command, follows instructions, or both. It covers a script, a CLI or a tag push, for example `./deploy.sh production {commit}`. It succeeds on exit code 0 and runs on the Howler harness. | A failed call is not retried by itself: a decision opens. #### The event hook and deploy_finished Each factory has one event hook, where outside systems report events about items that already exist. The secret is the right to call it: send it in the `X-Howler-Token` header. The owner of the factory, a project owner or an admin can read and rotate it under Settings, Release; each reveal is audited. | Report | Body | What it does | | --- | --- | --- | | A deploy finished | `{ "event": "deploy_finished", "environment", "prNumber"?, "sha"?, "repo"? }` | Passes a wait step with the event `deploy_finished` for that environment. | | An action finished | `{ "event": "action_finished", "run" \| "target", "status", "url"? }` | Ends a deploy or rollback step whose target reports back. `status` is `success` or `failure`. | | A webhook a step waits for | `{ "itemId" \| "prNumber" \| "issueNumber", "name"? }` | Passes a wait step with the event `webhook_received` on that item. | ```bash curl -X POST "https:///v1/factories//hook" \ -H "X-Howler-Token: $FACTORY_HOOK_SECRET" \ -H "Content-Type: application/json" \ -d '{"event":"deploy_finished","environment":"staging","sha":""}' ``` The environment is named by its id or by its deployment name, such as `pr-123`. For an environment that exists once per pull request, a report that names its commit is compared with the head of the pull request: a deploy of an older build is passed over and the wait goes on. A deploy wait is also passed by a GitHub `deployment_status` event. Anything but the factory's own secret answers the same 401. #### Watch steps A watch step reads thresholds at set times after a release, for example after 15 minutes, an hour and a day. A threshold names its source: Loki (a LogQL query) or an https endpoint that answers one number. It has a highest value, or a highest ratio to the baseline before the release. Nothing is judged by a model. A tripped threshold opens a decision: Roll back, Keep the release (with the reason), Check again, or Close item. Closing after a watch closes that one item; its change stays in production. Every item of a release has its own watch step, and a decision made on one is made on all. ## The factory file (YAML) Source: /docs#factory-file - Markdown: /llms/factory-file.md ### The factory file The whole pipeline of a factory can be written as one YAML file, `.howler/factory.yaml`. The file and the Pipeline page are two ways of writing the same definition. Use the file to hand a factory to another team, or to keep the pipeline in the repo and change it by pull request. It holds no user id and no secret. #### Where the pipeline is kept | Mode | Source of truth | How you change the pipeline | | --- | --- | --- | | Kept in Howler (the default) | Howler. The repo is not read for the pipeline. | On the Pipeline page. Settings, Share, Factory file shows the current file to copy or download. | | Imported once | Howler. Import a file reads the file one time, when the factory is created. Nothing follows it afterwards. | On the Pipeline page. | | Kept in the repo | The file on the base branch, once it is there. | By pull request. A save on the Pipeline page opens one against the file. | #### Keeping the pipeline in the repo Under Settings, Share, Factory file, turn on Keep the pipeline in .howler/factory.yaml. Only one factory per repo and branch can keep its pipeline in the file. | State | What it means | | --- | --- | | The repo has the file | It is read at once. A file that cannot be used refuses the switch. | | Waiting for the file | The repo does not have the file yet, so a pull request adds it. Until that is merged the pipeline is still kept in Howler and can be changed there; the pull request follows those changes. Check now looks for the file. | | On | A change merged to the file on the base branch becomes the next pipeline version. Items under way keep the version they started with. | | A save on the Pipeline page | Stores nothing. It opens a pull request against the file with your GitHub access; a later save is added to the same open pull request. Merging it is the change. | | Read the file now | Reads the file without waiting for the push event. Howler also looks every 30 minutes for a push it missed. | | A file that fails validation | Is rejected. The settings show the line and the reason, the general thread says so once, and the pipeline that runs is unchanged. Fix the file and push again. | | A file that lets steps act without a person | Is taken only from an owner of the project. The settings show which steps it raises and ask you to read it first: taking it records the change as yours. | While the file is the source, which forms follow the repo is also the file's to say, so Import, Detach and Remove for synced forms are refused in the settings. Intakes other than schedules are never in the file. #### Top-level keys | Key | Meaning | | --- | --- | | `howler-factory` | The version of the format. Required. This Howler reads `1`. | | `name` | The name of the factory. At most 80 characters. | | `repos` | The repos the factory works on, the primary first: each `repo` (`owner/repo` or its address) and `branch`. Only for a factory with several; `repo` and `branch` at the top level are the short form for one. Left out: the factory keeps the repos it has. See Several repos, under The factory file. | | `defaults` | `agent`: the `harness` and `model` the steps run on unless a step sets its own. | | `allowSelfApproval` | `false`: an author cannot decide their own item. Absent or `true`: they can. | | `limits` | `maxJobs`, `maxHours`, `maxSendBacks`, `maxChildren`, `decisionHours`. | | `form` | The Default form. `fields`: what is asked on every item. A field has `id`, `label`, `type`, `options`, `required`, `help`, `showOnCard`, `default`, `min`, `max`. | | `forms` | Named forms, which add questions on top of the Default form (`form`, always offered), each with `id`, `name`, `description` and its own `fields`. None may be named Default or have the id `default`. A form that follows an issue form of the repo is written as `fromRepo` with the path of the file. | | `labels` | The labels a Label step sets: `id`, `label`, `options`, `help`, `showOnCard`. | | `computed` | Automatic answers, each worked out by a script: `id`, `script`, `from`. | | `checklist` | The form field whose answer is the checklist of the item. | | `environments` | `id`, `name`, and optionally `url`, `details`, `deployment`, `readOnly`. | | `targets` | What a deploy or rollback calls: `id`, `name`, `type` and the settings of that type. | | `thresholds` | What a watch step reads: `id`, `name`, `source`, `query`, `max`, `maxRatio`, `floor`. | | `components` | The component list: `id`, `name`, `group`, `description`, `paths`, `risk`, `owners`. | | `defaultOwners` | Who owns what no component matches: a list of `@username` and `team:Name`. | | `schedules` | The schedule intakes: `name`, `cron`, `timeZone`, `title`, `body`, `selections`, `form`, `enabled`. | | `stages` | The stages in order: `id`, `name`, `when` (a route), `batch`, `steps`. | A file without `components`, `defaultOwners` or `schedules` says nothing about them: the factory keeps what it has. Only a list that is written out replaces them, and an empty list removes them. A setting that is off is left out when Howler writes the file. The file and the API write `selection` (and `selections`) for what the pages call an answer, a label or an automatic answer, and name it by its `id`. The pages always show the name: a route written `selection: risk-estimate` reads "Risk Estimate" on the Pipeline page and on the item. #### A complete example A factory with a form, a triage label that lets quick items jump over planning, a build with a test loop, proof, a risk route, green checks, a merge and a deploy. Every key is one the reader accepts. ```yaml howler-factory: 1 # the format version; required name: Checkout factory defaults: agent: harness: howler # howler, claude_code or devin; howler when left out # model: left out, so the platform default model allowSelfApproval: true # false: an author cannot approve their own item limits: maxJobs: 25 # jobs one item may start before a person says go on maxHours: 336 # hours at work per item maxSendBacks: 10 # how often people may send one item back decisionHours: 48 # then an open decision goes to the factory's owner form: # the Default form: asked on every item fields: - id: kind label: Kind type: choice options: [bug, feature, chore] required: true showOnCard: true - id: acceptance label: Acceptance type: long_text help: One point per line. Each is shown working before review. - id: areas label: Affected areas type: components # offers the components listed below checklist: acceptance # the field whose lines are the item's checklist labels: # set by a Label step, never asked at intake - id: path label: Path options: [quick, plan] showOnCard: true computed: # worked out by a script, not by a model - id: risk script: component_risk from: [areas] defaultOwners: - '@olga' components: - id: checkout.payments name: Payments group: Checkout paths: - src/payments/** - '!src/payments/docs/**' # a path that starts with ! takes files out risk: high owners: - team:Payments - id: docs name: Docs paths: - docs/** risk: low environments: - id: production name: Production url: https://shop.example.com targets: # what a deploy or rollback step calls - id: deploy name: Deploy type: agent # github_workflow, webhook or agent command: ./deploy.sh production {commit} schedules: - name: Weekly dependency check cron: 0 8 * * 1 # five fields timeZone: Europe/Berlin # optional; UTC when left out title: Dependency updates {date} body: Update the dependencies that have a new minor version. selections: kind: chore enabled: false stages: - id: intake name: Intake steps: - id: triage name: Triage kind: agent # a Label step: an agent step with sets instructions: Label the path. quick for a small, clear change; plan for anything else. sets: [path] back: - on: passed # a yes may jump forward when: - selection: path op: equals value: quick goto: build # a later stage: Plan is skipped - id: plan name: Plan steps: - id: outline name: Outline kind: agent instructions: Write a short plan in the thread. Change nothing in the repository. - id: plan-approval name: Plan approval kind: person decider: author # owner, author, '@username' or selection:_owner choices: [approve, send_back] - id: build name: Build steps: - id: build name: Build kind: agent instructions: Make the change, add tests, open a draft pull request and report its URL. produces: pull_request harness: claude_code # this step's own harness retries: 1 timeoutMinutes: 240 - id: tests name: Run tests kind: check command: npm test back: - on: failed # a no only goes back goto: build maxLoops: 3 - id: review name: Review steps: - id: prove name: Prove kind: proof method: command # browse, command, artifacts or custom command: npm run test:e2e - id: owner-approval name: Owner approval kind: person decider: selection:risk_owner choices: [approve, reject] when: # a route: only at high risk or above - selection: risk op: at_least value: high - id: review name: Review kind: person decider: owner choices: [approve, send_back, reject] - id: checks name: Checks kind: wait event: checks_green - id: merge name: Merge kind: action action: merge autonomy: person # person, conditional or auto - id: release name: Release steps: - id: deploy name: Deploy kind: action action: deploy target: deploy - id: deployed name: Deployed kind: wait event: deploy_finished # reported to the factory's event hook environment: production timeoutMinutes: 60 - id: done name: Done ``` #### Several repos A factory can work on several repos of its project, and one item can change several of them. Add repos when you create the factory or in its settings, under Repos; reorder them there too. The first repo is the **primary**: the factory file, the GitHub issue forms, the components and GitHub intake are that repo's. A factory with one repo works as it always did. | What | How it works | | --- | --- | | The job sees every repo | Each step's job has all the repos checked out, each in a directory named after it. The agent is told which repos there are and to change only what the item needs. | | The agent decides the repos | It opens a pull request only in the repos it changed and reports them all (`pull_request` takes several URLs). Howler checks each one on GitHub and takes one per repo. A pull request in a repo that is not one of the factory's is refused, and the thread says so. | | Send back | The rework can add a repo. A pull request the agent leaves out of its report is dropped: Howler closes it on GitHub with a comment and says so in the thread. | | One card, every pull request | The card, the item and Waiting on me list each pull request with its repo, whether it is merged or closed, and what its checks say. | | Checks | A wait for green checks passes when every pull request is green. One failed check ends the wait and names the repo. | | Review together | A person step decides the item as a whole. Approve, send back and reject apply to all of its pull requests. | | Merge together | The merge step first looks at every pull request. If one conflicts, was closed or has a failed check, nothing is merged and a decision opens. Otherwise it merges them in the order of the factory's repos. If a later merge fails after an earlier one went through, it stops, the thread says which were merged and which were not, and a decision offers Retry (merges the rest) or Close. | | Done | The item is merged when every pull request is merged. A pull request closed without a merge opens a decision instead of closing the item. | | `repo` on a step | A check, a proof step, a wait for checks or for a deploy, a deploy and a rollback can name one repo (`repo: acme/shop-web`). The step is then about the item's pull request in that repo, and an item that did not change that repo passes the step by. A deploy that names no repo is of the primary. | | Routes on `repos` | Every item carries `repos`, the `owner/repo` of each repo it changed. A route can use it: `repos equals acme/shop-web` runs a step only for items that changed the web repo. | In the file, a factory with several repos lists them under `repos`, the primary first. A factory with one repo needs no key; `repo` (with `branch`) is the short form for one. A file that is kept in the repo and lists `repos` sets the factory's repos, and its first repo must stay the one the file is in. ```yaml howler-factory: 1 name: Shop factory repos: # the first is the primary: this file lives there - repo: acme/shop-api branch: main - repo: acme/shop-web branch: develop stages: - id: build name: Build steps: - id: build name: Build kind: agent produces: pull_request # one pull request per repo the agent changed instructions: | Make the change the item asks for. Change only the repos it needs. - id: verify name: Verify steps: - id: api-tests name: API tests kind: check repo: acme/shop-api # passed by for an item that did not change the API command: dotnet test - id: web-tests name: Web tests kind: check repo: acme/shop-web command: npm test parallel: true - id: ci name: CI kind: wait event: checks_green # every pull request of the item must be green - id: review name: Review steps: - id: design name: Design review kind: person decider: owner choices: [approve, send_back] when: # only for items that changed the web repo - selection: repos op: equals value: acme/shop-web - id: review name: Review kind: person decider: owner choices: [approve, send_back, reject] - id: merge name: Merge kind: action action: merge # every pull request, in the order of "repos", or none - id: done name: Done ``` #### Validation | Rule | Detail | | --- | --- | | Same rules as a save | A file is checked like a save on the Pipeline page. The first thing that is wrong is reported as Line N: reason. | | Nothing half taken | A file that cannot be used changes nothing. The pipeline that runs is the one from before. | | Unknown keys are refused | For example `"autoMerge" is not a setting of a step`. | | Also refused | A file with no `howler-factory`, YAML anchors and aliases, a key written twice in one mapping, a name longer than 80 characters, and a file over 400 kB. | | People are written by name | A decider is `@username`, never a user id. An owner must be a Howler user or team. | | Harness and model | A harness that is none, or a model the harness of the step does not offer, is refused with the line of that setting. | #### Export and publish Settings, Share, Factory file has Show the file, Copy and Download factory.yaml. Another team imports that file with Import a file in New factory. A factory can also be published as a template: to yourself, a team, a space, or everyone. A published template is a copy of the design. It carries no components, URLs, deploy targets, threshold queries or private agent definitions, and nothing follows the factory it came from. ## API Source: /docs#factory-api - Markdown: /llms/factory-api.md ### Factory API Everything the Factory pages do goes through `/v1/factories`. The routes take your signed-in Howler session, or a service token of yours sent as `Authorization: Bearer hwl_...`, and follow the access of the project: view to read, edit to change. With the `factory` flag off for you every route answers 404; with `pax` off it answers 403. A factory you cannot see answers 404. The tables below list the main routes. A **project service token** reaches the factories of its own project only, on these routes: `GET /v1/factories`, `GET /v1/factories/{id}`, `GET /v1/factories/{id}/items` and `GET /v1/factories/items/{itemId}` with `factories:read`; `POST /v1/factories/{id}/items` (send `Idempotency-Key`: a retry returns the first item) and `POST /v1/factories/items/{itemId}/close` with `factories:items`. A factory of another project answers 403 `project_token_other_project`; a route not listed, or a missing permission, answers 403 as for any project token. A token has no flags: it is held to the factory owner's `factory` flag. An item a token adds has no person as author. Its source is `project_token` (the token's name and id), and its jobs run with the Howler GitHub App installation token, so they push and open pull requests as `howler[bot]`, with commits by `howler ` carrying the `Howler-Job:` trailer. Its decisions and questions go to the deciders the pipeline names, otherwise to the factory's owner, who is never treated as its author. The webhook intake (`POST /v1/factories/{id}/intake/webhook`) is not refused when a project token comes along with its secret; the secret still decides. #### Factories | Route | What it does | | --- | --- | | `GET /v1/factories` | The factories you can see. | | `POST /v1/factories` | Creates a factory from a template: `{ name, projectId, repoUrl, baseBranch?, template? }`. You become its owner. | | `GET /v1/factories/templates` | The template gallery. | | `GET /v1/factories/{id}` | One factory with its pipeline. | | `PATCH /v1/factories/{id}` | The quick edit: `name`, `stageNames`, `allowSelfApproval` and a few step fields. | | `PUT /v1/factories/{id}/pipeline` | Saves the pipeline as the next version. Send `expectedVersion`; a pipeline that moved on answers 409 `factory_changed`. | | `PUT /v1/factories/{id}/owner` | Changes the owner: `{ userId \| username }`. | | `DELETE /v1/factories/{id}?confirm={name}` | Deletes the factory. The name must match. There is no restore. | | `GET /v1/factories/agents` | The harnesses and models offered now, and the platform default model. | | `GET /v1/factories/{id}/components` | The component list. `PUT` stores it; `POST .../components/resolve` tests paths against it. | | `GET /v1/factories/{id}/releases` | What ships next and the runs. | | `GET /v1/factories/{id}/measures` | The measures of the factory. | #### Items | Route | What it does | | --- | --- | | `GET /v1/factories/{id}/items` | The items of the board. | | `POST /v1/factories/{id}/items` | Adds an item: `{ title, body?, form?, selections?, size?, goal?, idempotencyKey? }`. The pipeline starts it right away. | | `GET /v1/factories/items/{itemId}` | One item with its steps, decisions, answers and labels (`selections`) and history. | | `PUT /v1/factories/items/{itemId}/answers` | Fills in or corrects the answers: `{ form?, selections }`. | | `POST /v1/factories/items/{itemId}/accept` | Accepts an item that needs a maintainer. `.../dismiss` dismisses it. | | `POST /v1/factories/items/{itemId}/close` | Closes the item: `{ reason }`. `.../reopen` reopens a closed one. | | `DELETE /v1/factories/items/{itemId}` | Deletes the item. | | `POST /v1/factories/{id}/items/from-message` | Turns a message of the general thread into an item: `{ messageId, title?, form?, selections? }`. | ```bash curl -X POST "https:///v1/factories//items" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: retry-button-1" \ -H "Authorization: Bearer $HOWLER_SERVICE_TOKEN" \ -d '{"title":"Add a retry button to failed jobs","selections":{"kind":["feature"]}}' ``` An answer that does not fit the form is a 400 `factory_item_selections` whose `fields` list every wrong field with a message. The same idempotency key returns the first item and creates nothing. #### Decisions and questions | Route | What it does | | --- | --- | | `GET /v1/factories/decisions?mine=true` | Waiting on me: your open decisions across factories. | | `POST /v1/factories/items/{itemId}/decisions/{stepStateId}` | Resolves a decision: `{ choice, comment?, stageId?, labels? }`. `stageId` is where a send back returns to; `labels` are the values of a Label step. | | `POST .../decisions/{stepStateId}/reassign` | Gives a decision or question to someone else: `{ userId \| username }`. | | `POST /v1/factories/items/{itemId}/questions/{stepStateId}/answer` | Answers the question of an agent: `{ text }`. | | `POST /v1/factories/items/{itemId}/thread/members` | Adds you to the thread of the item. | The choices are `approve`, `reject`, `send_back`, `retry`, `override`, `rollback`, `close` and `label`; a decision offers only some of them. The route does not ask twice: a caller has made an explicit request. Where self-approval is off, an author who decides their own item gets 403 `factory_author_cannot_decide`. #### Intakes and forms | Route | What it does | | --- | --- | | `GET /v1/factories/{id}/intakes` | The intakes with their counts and last arrival. `PUT` saves the list; send `expectedRevision`. | | `POST /v1/factories/{id}/intakes/{intakeId}/run` | Run now for a schedule. | | `POST /v1/factories/schedule-preview` | Says whether a cron expression is valid, and its next three runs. | | `POST /v1/factories/{id}/intakes/github/catch-up` | Check GitHub now: takes in open labelled issues that have no item. | | `GET /v1/factories/{id}/intake/webhook` | The webhook intake and its recent deliveries. `PUT` changes it; `POST .../intake/webhook/secret` rotates the secret. | | `GET /v1/factories/{id}/intake/chat` | The chat entrance. `PUT` changes it; `POST /v1/factories/{id}/chat` starts a chat. | | `GET /v1/factories/{id}/intake-forms` | The forms, each with its JSON Schema. `POST .../intake-forms/validate` checks answers without creating an item. | | `POST /v1/factories/{id}/intake-forms/import` | Imports issue forms of the repo. `.../sync` is Sync now, `.../{formId}/detach` detaches one. | #### File, import and templates | Route | What it does | | --- | --- | | `GET /v1/factories/{id}/file` | The current pipeline as the factory file. | | `PUT /v1/factories/{id}/file/sync` | Makes the file the source, or stops: `{ on }`. | | `POST /v1/factories/{id}/file/sync` | Read the file now. | | `POST /v1/factories/import/preview` | Reads a file or a published template: `{ yaml \| templateId }`. Returns the pipeline and what must be said before a factory can be made. Nothing is created. | | `POST /v1/factories/import` | Creates the factory: `{ yaml \| templateId, name, projectId, repoUrl, values }`. | | `POST /v1/factories/{id}/publish` | Publishes the factory as a template: `{ name, description, visibility, teamIds \| spaceIds }`. | | `GET /v1/factories/published` | The published templates you can see. | #### Routes that take a secret Two routes have no session. Each checks its own secret in the `X-Howler-Token` header and answers the same 401 for anything else. | Route | Secret | What it does | | --- | --- | --- | | `POST /v1/factories/{id}/intake/webhook` | The secret of the webhook intake. | A delivery that becomes an item. See Intakes. | | `POST /v1/factories/{id}/hook` | The hook secret of the factory. | Reports an event about an existing item: a finished deploy, the result of an action, a webhook a step waits for. See Checks, proof and release. | The hook secret is read with `POST /v1/factories/{id}/hook/secret/reveal` and rotated with `.../hook/secret/rotate`, by the owner of the factory, a project owner or an admin. The older `POST /v1/factories/hooks/{token}`, with the secret in the URL, is deprecated. #### Errors An error body is `{ message, code }`, with `fields` for wrong answers of a form and `line` for a factory file. | Status and code | Meaning | | --- | --- | | `401 sign_in_required` | The request carried no Howler session. | | `409 factory_changed` | What is stored moved on since you read it. Nothing was stored. | | `409 factory_name_taken` | Another factory of the project has that name. | | `409 factory_intake_disabled` | The intake of the item is switched off. | | `409 factory_file_synced` | The file is the source, so this is changed in the file. | | `409 factory_item_not_closed` | Only a closed item can be reopened. | | `400 factory_item_selections` | An answer does not fit the form. | | `400 factory_no_plan_step` | A goal was asked for, and the pipeline has no planning step. | | `400 factory_person_ineligible` | That person cannot take the decision; the message says what is missing. | | `400 factory_delete_unconfirmed` | The name in confirm does not match. | ## Troubleshooting and FAQ Source: /docs#factory-faq - Markdown: /llms/factory-faq.md ### Troubleshooting and FAQ The thread of an item is the first place to look: the pipeline says there what each step did, why a step was skipped, and what it waits for and on whom. #### Factory is not there | What you see | Why, and what to do | | --- | --- | | No Factory in the sidebar | Factory is being rolled out behind the factory and pax feature flags. Ask an admin to turn both on for you in Admin Hub, Feature Flags. | | "Factory needs Pax" | The factory flag is on and Pax is off. Turn Pax on in your settings. | | A factory link opens nothing | You cannot open its project. Ask for access to the project. | #### An item does not move | What you see | Why, and what to do | | --- | --- | | Needs info | A required answer of the form is missing. Open the item and fill in the listed fields. | | Needs a maintainer | The person behind it may not start work on the repo. A project editor accepts or dismisses it. | | "Build could not start yet" | The job was refused for now, for example no worker or a job limit. It is tried again about every minute. | | A step failed before it started | The linked GitHub account of the author cannot push to the repo. Link the account, or get write access, then choose Retry. | | Model not answering | The model calls of the job keep failing. After five minutes the step is stopped and the card says "Model not answering - retry". Choose Retry on the card or in the item, or choose another model on the Pipeline page first: a retry takes the current settings. | | The item stopped with a limit | It reached the cap on jobs or hours. Retry on that decision is the go on: it starts a new allowance. | | A decision waits on nobody | Nobody the step names can take it. Use Reassign on the item, or decide it as a project editor. | | Merged, but not Done yet | Without a GitHub webhook for the repo, a merge is seen by the sweep a few minutes later. | | The pull request cannot be merged | It conflicts with the base branch. Choose Rework on the decision and the agent brings the branch up to date. | | A wait for green checks never ends | The pull requests of the repo report no checks. Remove the wait, or add CI. | | Every item gets every review | The factory lists no components, so the risk is unknown, which takes the most-reviewed path. List components under Settings, Components. | | A send back is refused | The item was sent back as often as the pipeline allows (10 by default). The other choices stay. | #### Nothing arrives | What you see | Why, and what to do | | --- | --- | | A labelled issue made no item | GitHub events may not reach Howler. Settings, Intakes shows the last delivery. Check GitHub now takes in what was missed. | | A command comment did nothing | The writer does not meet the minimum permission of the rule, or the comment does not start with the command. | | The webhook answers 401 | A missing or wrong secret, an intake that is off, or a wrong factory id. The answer is the same for all of them. Rotate the secret if it is lost: it is shown once. | | The webhook answers 429 | More deliveries than the factory takes in a minute. Wait for Retry-After. | | A schedule did not run | It is switched off (an imported factory gets its schedules switched off), or the factory has no stages. The intake says why. After downtime only the latest missed slot is made up. | | A schedule runs at the wrong hour | The settings panel reads the expression in UTC. A time zone can be set only in the factory file or through the API. | #### Pipeline and file | What you see | Why, and what to do | | --- | --- | | My edit did not change a running item | An item finishes on the version it started with. Edits apply to new items; only a retried step takes its current settings. | | A save opened a pull request | The factory keeps its pipeline in the repo. Merge the pull request and the change is the next version. | | Waiting for the file | The pull request that adds .howler/factory.yaml is not merged yet. Until then the pipeline is still kept in Howler. | | File error | The newest file was rejected. The settings show the line and the reason; the pipeline that runs is unchanged. Fix the file and push again. | | "factory_changed" on save | Someone saved while you edited. Your draft is kept; choose which to keep. | | A step runs on Howler, not on my default | A check, a proof step, a Label step, a sizing or planning step and a step with an agent definition stay on the Howler harness. | #### Questions | Question | Answer | | --- | --- | | Can one factory cover several repos? | Yes, up to 8 repos of its project, each with its base branch. Add them when you create the factory or under Settings, Repos. See Several repos, under The factory file. Two factories may also share a repo. | | Can an agent merge or deploy? | Not by a tool. Merge, deploy and rollback are action steps a designer places, and each asks a person unless a project owner lets it act by itself. | | Can my Pax agent approve for me? | No. A Pax agent takes part in threads with your access, and cannot resolve a decision. | | Can I approve my own item? | Yes by default, and it is marked as approved by the author. A factory can turn that off under Settings, General. | | Can a deleted factory be restored? | No. Deleting closes what is under way and removes the factory and its items from every list. | | Where did Workflows go? | Factory replaces the standalone Workflows tab, and Agent Builder was removed with it. Saved workflows were not converted. Canvas stays as the visual surface. | | Does Factory write to my repo? | Only through the jobs of its steps, which open and update pull requests with the access of a person, and through a pull request against the factory file when you keep the pipeline in the repo. | --- # Agents ## Command Center Source: /docs#command-center-agent - Markdown: /llms/command-center-agent.md ### Command Center Command Center is the default place to dispatch repository work: bug fixes, tests, refactors, migrations, dependency updates, and review tasks that should end in a branch or pull request. | Input | Why it matters | | --- | --- | | Repository and branch | Defines the workspace the worker clones and the base branch for changes. | | Prompt | Tell the agent the outcome you want, constraints, and verification expectations. | | Mode and model | Select standard coding behavior and the model best suited for the job. | | Guided toggle | Use guided mode when you want the agent to stop at decision points. | | File attachments | Drag-and-drop, paste, or use the file picker to attach context files and screenshots. | | Voice input | Use the mic button to dictate your prompt instead of typing. | | Visibility | Set who can see the job before you dispatch - personal, team, or public. You can share it more widely afterwards. | #### Command bar The Command Bar *is* Command Center. Press `Ctrl+N` (`Cmd+N` on Mac) or click the **+ New job** button in the sidebar to open it. `Ctrl+K` opens the search palette instead - jobs, projects, playbooks, consultants, settings - and pressing Enter there on an empty search also lands you here, so the old habit still works. #### Dispatch target **Where should it run?** controls where the agent runs: | Target | When to use | | --- | --- | | Container | Default. The agent runs in its own fresh container (Linux, Windows, or either). Good isolation for every job. | | Howler cloud | A shared, managed Howler worker. Offered only to people who have been given access to it. | | My computer | Run the agent on a worker on your own machine. Useful for projects that need access to local services or hardware. | See How jobs run for what each choice means. Picking one specific worker by hand is a super-admin tool and is not shown to other users. #### Skills Attach reusable skills to a job using the Skills search input. Skills follow the `skills.sh` or `owner/repo` format and provide additional capabilities the agent can use during execution - think of them as plug-in modules that extend what the agent can do. ## Consultant Source: /docs#consultant-agent - Markdown: /llms/consultant-agent.md ### Consultant Consultant is for thinking before building. Use it for architecture plans, implementation strategies, design reviews, project scoping, and specialized advisory personas that each bring their own focus and default deliverable. - **Plan first** - Explore trade-offs and produce an implementation plan before dispatching coding work. - **Persona-driven** - Pick a consulting persona when the deliverable needs a specific lens or format. #### Personas Each persona tunes the agent's focus and defaults to a deliverable type suited to that lens. | Persona | Icon | Focus | Default deliverable | | --- | --- | --- | --- | | Product Manager | 📊 | User value, business goals, prioritization | Product Requirements Doc | | Presentation Builder | 🖥️ | Visual design, PowerPoint decks, HTML pages, color theory, typography, layout composition | Visual Deliverable | | Staff Engineer | 🏗️ | Technical design, scalability, tradeoffs | Technical Specification | | Solutions Architect | ☁️ | System components, integration, infrastructure | Architecture Overview | | Hardware Architect | 🔧 | Component selection, schematic review, PCB signal integrity | CAD | | UI/UX Designer | ✏️ | User experience, interface design, accessibility | Design Guidelines | | Security Engineer | 🛡️ | Threat modeling, security architecture, vulnerabilities | Threat Model | | Penetration Tester | 🎯 | Contained offensive testing in an isolated security container | Penetration Test Report | | SRE Agent | 🛰️ | Chaos testing and reliability engineering in an isolated container | Reliability Report | | Patent Strategist | ⚗️ | Disclosure writing, formatting, and organization - Dell AI Patent Policy | Patent Portfolio | | Howler Consultant | 🐺 | General Howler expert - jobs, modes, playbooks, triggers, projects, Project Brain, factories, Pax, the API and howler.yaml. Reads the deployment docs (/llms.txt) and calls the Howler API as you | Howler YAML | Deliverable types you may see across personas: - Product Requirements Doc - Technical Specification - Architecture Overview - API Design Document - Migration Plan - Threat Model - CAD - Design Guidelines - Penetration Test Report - Reliability Report - Patent Portfolio - Visual Deliverable - Howler YAML #### Penetration Tester The Penetration Tester persona runs contained, offensive security testing in a dedicated, isolated security container - never against your production environment or external hosts. The app under test is built and run entirely inside the sandbox. | Platform | Available tools | | --- | --- | | Linux | Nmap, OWASP ZAP, sqlmap, Nikto, Nuclei, Metasploit, Hydra | | Windows | Nmap, OWASP ZAP, sqlmap, Nikto, Nuclei, Hydra (no Metasploit) | Authorization required. You must confirm you're authorized to test the target before a Penetration Tester job launches. Findings are compiled into a Penetration Test Report. #### SRE Agent The SRE Agent persona builds and runs your application in a dedicated, isolated container, then stress-tests it with chaos experiments - injecting faults, overloading resources, and disrupting network paths - to surface reliability failure modes before your users hit them. | Platform | Available tools | | --- | --- | | Linux | k6, hey, wrk, stress-ng, tc/netem, iperf3, iptables | | Windows | k6, hey, wrk, curl, jq | Same isolation model. Like the Penetration Tester, the SRE Agent runs entirely inside an isolated container - your production environment is never touched. Findings are compiled into a Reliability Report. ## Orchestrator Source: /docs#orchestrator-agent - Markdown: /llms/orchestrator-agent.md ### Orchestrator Orchestrator is a persistent meta-agent for multi-step missions. It breaks a broad goal into threads, delegates sub-jobs, tracks outcomes, and summarizes progress across runs. | Concept | Meaning | | --- | --- | | Mission | The larger goal Orchestrator is coordinating. | | Thread | A focused line of work or investigation inside the mission. | | Sub-job | A delegated Howler job spawned to execute part of the plan. | | Mission board | The progress view that ties threads, summaries, and outcomes together. | #### The Orchestrator UI Orchestrator is laid out like a chat workspace with two panes plus a mission overlay: | Area | Purpose | | --- | --- | | Thread list (left) | Organizes separate conversations, each with its own persistent config - model, repo, branch, mode, and env vars. | | Conversation pane (right) | The chat interface for a thread. Any message you send can spawn a background job - a 'mission' - without blocking the conversation. | | Mission board overlay | A compact view showing the running/waiting job count and the 5 most recent missions. | | All Missions view | A full dashboard of every mission across every thread. | #### Missions A mission is a background job spawned from a thread message. Missions open in new tabs so the conversation you're having stays uninterrupted while the work runs - you can keep chatting in a thread while several missions execute in parallel, then check back on progress from the mission board or the All Missions view. --- # Concepts ## Agent modes Source: /docs#agent-modes - Markdown: /llms/agent-modes.md ### Agent modes Each job runs in a `mode` that selects a tuned system prompt and tool set. Modes map to the values accepted by the deploy API. ## Agent steering Source: /docs#agent-steering - Markdown: /llms/agent-steering.md ### Full agent steering Howler lets you talk to a running agent **at any moment** - and your message is injected into the agent's reasoning loop **immediately**. You never have to wait for the agent to "finish a step" or reach a convenient stopping point. Type, send, and the next thing the agent thinks about is what you just said. Why this is different. Most agentic tools queue your input and only read it once the current tool call or turn completes - so a long-running step ignores you until it's done. Howler treats your message as a live interrupt: it lands in the loop on the very next iteration, letting you redirect, correct, or add context while the work is still in motion. #### How it works - **Send anytime** - Drop a message into the job terminal while the agent is mid-thought, mid-tool-call, or mid-edit. No need to pause or wait for a prompt. - **Injected immediately** - Your steering message is pushed into the agent's context for the very next loop iteration - not parked in a queue until the current step finishes. - **Redirect in flight** - Change priorities, add a constraint, point at the right file, or course-correct a wrong assumption without cancelling and restarting the job. #### When to steer - The agent is heading down the wrong path - redirect it before it wastes a tool call. - You remembered an important constraint ("don't touch the public API") after dispatch. - You want to narrow scope mid-run ("just fix the failing test, skip the refactor"). - You have new information - a log, an error, a link - the agent should factor in right now. - You simply want to answer a question the agent raised without halting its momentum. Works in every mode. Steering applies to autonomous and guided jobs alike. In guided mode the agent will also proactively pause to ask - but even then you don't have to wait for a prompt to chime in. ## Guided vs autonomous Source: /docs#guided-vs-autonomous - Markdown: /llms/guided-vs-autonomous.md ### Guided vs autonomous Every job runs in one of two interaction styles. Both stream their work live and both accept **full agent steering** - the difference is how often the agent stops to check in. #### Autonomous Runs end-to-end without stopping, opening a PR when done. Best for well-scoped, low-ambiguity tasks. You can still jump in and steer at any time. #### Guided Pauses at key decision points to ask for your input before continuing. Best for high-stakes or exploratory work where you want a checkpoint. A guided job surfaces a `WaitingForInput` status when it pauses; respond inline to resume it. Regardless of mode, anything you type is delivered to the agent immediately. Switch mid-job. You can toggle between guided and autonomous mode while a job is running - use the mode switcher in the job terminal header. The change takes effect on the agent's next loop iteration. ## File uploads & vision Source: /docs#file-uploads-vision - Markdown: /llms/file-uploads-vision.md ### File uploads & vision Every mode in the composer accepts file attachments as context for a job. Add files by dragging and dropping them onto the composer, pasting them (e.g. a screenshot from your clipboard), or using the file picker. | File type | Behavior | | --- | --- | | PNG, JPG/JPEG, WEBP, GIF | Accepted as vision images. Vision-capable models can "see" and reason about the attached image. | | Other image formats | Accepted as general context documents (not sent as vision images). | | All other files | Accepted as general context documents for the agent to read. Any file type can be uploaded. | Attach a screenshot of a bug, a design mockup, or a diagram, and a vision-capable model will factor it into its response alongside your prompt and any other context. ## Voice input Source: /docs#voice-input - Markdown: /llms/voice-input.md ### Voice input A microphone button is available in the composer, whichever mode is selected, and in the job chat and question cards. Click it, speak, and click it again: your recording is transcribed by Dell-hosted Whisper (`whisper-large-v3-turbo` on the AIA gateway) and the text is added to the field. | Behavior | Details | | --- | --- | | Browser support | Works in every modern browser that can record audio, including Chrome, Edge, Safari, and Firefox. Your browser asks for microphone permission the first time. | | Talk, then stop | Speak as long as you like, pauses included. When you stop, the mic shows a spinner while Whisper works, usually a second or two. Recordings stop automatically after 10 minutes. | | Knows Howler words | Whisper is told to expect terms like Howler, GitHub, PR, Jira, and Kubernetes, so they come out spelled correctly. | | Appends to text | Transcribed speech is appended to whatever is in the field when it arrives, including anything you typed while it was transcribing. | | Privacy | Audio goes only to Howler and Dell's AIA gateway. It is not stored; only the text ends up in your prompt. | | Errors | If nothing was heard, or transcription is unavailable, the mic turns red. Hover it to see why. | ## Secrets & environment variables Source: /docs#user-env-vars - Markdown: /llms/user-env-vars.md ### Secrets & environment variables Set persistent key/value environment variables from **Settings → Environment variables**. They are automatically injected into every job you dispatch, so you don't need to repeat them per run. | Detail | Behavior | | --- | --- | | Masking | Values are masked by default in the Settings UI; use the eye icon to reveal one when you need to double-check it. | | Uniqueness | Keys must be unique, ignoring case. The editor will not save while two rows have the same key. | | Scoping | Only you can see and manage your env vars - they are scoped to your account. | #### Common use cases - **API keys for external services** - OpenAI, AWS, Stripe, or any third-party API key the agent needs during execution. - **Database connection strings** - Connection URIs for databases the agent needs to query or migrate. - **Service credentials & tokens** - Internal auth tokens, service account passwords, or OAuth client secrets. - **Feature flags** - Toggle experimental behavior in your jobs without changing prompts. - **Custom endpoint URLs** - Point jobs at staging, internal, or non-default service endpoints. Example. If your jobs need to call an internal API, set INTERNAL_API_KEY as an env var once, and every job you dispatch will have access to it automatically. Security. Values are masked by default in the Settings UI. Only you can see and manage your env vars - they're scoped to your account. #### Project-scoped env vars In addition to user-scoped env vars, projects can have their own set of environment variables. Manage them from the **Env Vars** tab on any project's detail page. Project env vars are injected into every job dispatched under that project, so shared credentials or configuration only need to be set once per project. | Detail | Behavior | | --- | --- | | Scoping | Scoped to a single project - every job dispatched under that project receives them. | | Access | Anyone with access to the project can view its env vars, values included. Only project owners and admins can change them. Do not store a secret here that some project members should not see. | | Masking | Values are masked in the UI, just like user-scoped env vars. | #### Precedence order When the same key appears at multiple levels, the most specific scope wins: | Precedence | Source | Description | | --- | --- | --- | | 1 (highest) | Per-job env vars | Set at dispatch time via the deploy API or ACP _meta.env. | | 2 | User-scoped env vars | Configured in Settings → Environment variables. Injected into every job you dispatch. | | 3 (lowest) | Project-scoped env vars | Configured on the project's Env Vars tab. Injected into every job under that project. | No overwrites. A lower-precedence source only fills keys that are not already set by a higher-precedence source. If you set API_KEY at both the user and project level, the user-scoped value is used. ## Computer use & UI testing Source: /docs#computer-use - Markdown: /llms/computer-use.md ### Computer use & UI testing Howler lets you build a system where agents can test your application the same way your users do. By hooking up the right tools via `howler.yaml`, you give agents the ability to see screens, click buttons, fill forms, and verify visual output - making them dramatically more powerful. - **Visual verification** - Hook up screenshot tools so agents can capture and verify that UI changes look correct. - **UI testing** - Give agents tools to navigate, click, type, and interact with your app - just like a real user. - **Bug reproduction** - Share a screenshot of a bug and let the agent reproduce, diagnose, and fix it using the same UI your customers see. #### How it works Computer use is powered by custom tools defined in your `howler.yaml`. You choose how agents interact with your application by wiring up the right automation for your stack: | Application type | Approach | | --- | --- | | Web / Electron apps | Use Chrome DevTools Protocol (CDP) to drive a browser. Tools like `capture_screenshot` and `ui_drive` connect over CDP to navigate pages, click elements, type into fields, and capture screenshots. | | Windows desktop apps | Use Windows UI automation (e.g. PowerShell with `UIAutomation`, `AutoIt`, or similar) to interact with native windows, dialogs, and controls. | Tip. The more faithfully your tools replicate how a real user interacts with your app, the more reliable your agent's testing and verification will be. #### Configuring for your project Define custom tools in your `howler.yaml` to give agents the ability to interact with your UI. See the Custom Tools page for the full reference on `cmd`, `http`, and `mcp` tool types. ```howler.yaml tools: - name: capture_ui description: Capture a screenshot of the running application. inputs: type: object properties: url: { type: string, description: "URL to capture" } execution: type: cmd command: "node scripts/capture-screenshot.js" timeout_seconds: 30 outputs: native_content: true content_types: [image] - name: click_element description: Click an element in the running application by CSS selector. inputs: type: object properties: selector: { type: string } required: [selector] execution: type: cmd command: "node scripts/ui-click.js" timeout_seconds: 15 instructions: | This project has a web UI. To test it: 1. Run 'npm run dev' to start the dev server on port 5173 2. Use capture_ui to verify UI changes visually 3. Use click_element to interact with the UI The app runs at http://localhost:5173 when started. ``` Tip. Attaching a screenshot of the desired outcome or the current bug to your job prompt gives the agent a visual reference to work toward. #### Computer use mode (Pax) When a task needs a real desktop, such as clicking through a web app, a native Linux GUI, or a login flow, **Pax** can delegate it to a `computer_use` job. Each job boots a fresh Ubuntu 24.04 desktop VM (Xfce, Chrome, 1440×900). Pax's `/workspace` is mounted inside the VM, so files move in both directions without copying. The agent drives the desktop with a browser tool (CDP), an accessibility-tree desktop tool, and a pixel-level fallback (screenshots, mouse, keyboard). - **Live Desktop tab** - The job page gets a Desktop tab that streams the VM screen live. Viewing is watch-only, so your input never reaches the VM by accident. - **Take control** - Users who can manage the job can take control. The agent pauses after its current action. Click Give back to resume it; the agent re-checks the screen before continuing. - **Artifacts in Pax's workspace** - Every action is logged with screenshots and a session recording under /workspace/.howler/computer-use//. | Detail | Behavior | | --- | --- | | Who can start it | Pax only. The mode is not in the mode picker; ask Pax to do something "on a desktop" and it delegates the job. | | Artifacts | `actions.jsonl` (audit log, typed secrets redacted), `shots/*.png`, and `session.mp4` in the job's computer-use folder. | | Concurrency | Up to 2 running computer-use jobs per Pax and 4 desktops per worker node. Extra jobs wait in the queue with a reason ("Waiting for a desktop slot"). | | Lifetime | The VM is kept warm for 30 minutes after the job finishes, so follow-ups reuse it, and is always removed after 12 hours. | | Human control | Control is released automatically after 15 minutes without input, or when you close the Desktop tab. | | Model | Requires a vision-capable model. The job fails fast otherwise. | Availability. There are two ways it runs. The desktop VM described on this page needs Kubernetes workers that have KubeVirt installed. Pax can also drive your own Windows PC through its Howler Desktop worker: no VM is started, it acts on your real desktop while you are signed in, and one PC runs at most 3 such jobs at once. Where neither is available, Pax reports that computer use is unavailable. ## Keyboard shortcuts Source: /docs#keyboard-shortcuts - Markdown: /llms/keyboard-shortcuts.md ### Keyboard shortcuts Web shortcuts: | Shortcut | Action | | --- | --- | | `Ctrl+K` | Search Howler (`Cmd+K` on Mac) - jobs across all history, projects, playbooks, consultants, settings sections and actions. Press Enter on an empty search to start a new job. | | `Ctrl+N` | New job (`Cmd+N` on Mac). Same as clicking **+ New job** in the sidebar. | | `Ctrl+J` | Go to My Work. | | `Ctrl+/` | Open Help. | Howler Desktop includes additional shortcuts for reviewing agent changes inline - see Quick Start. ## Settings & account Source: /docs#settings-account - Markdown: /llms/settings-account.md ### Settings & account Settings is where you manage your personal preferences and connected accounts. | Setting | Details | | --- | --- | | Theme | Auto, Light, or Dark. | | Interface size | Auto, 80%, 90% or 100%. Auto is the default: it makes Howler smaller on laptop-sized screens and leaves large monitors at 100%. A size you pick is remembered for the screen you picked it on, so a window moved between a laptop and a monitor resizes itself. It combines with the zoom of the browser itself, so if you had zoomed the browser out for Howler, set the browser back to 100%. Canvases keep their own size. | | GitHub | Supports connecting multiple GitHub Enterprise instances. | | GitLab | Connect your GitLab account for repository search, branch selection, and repo-based jobs on GitLab-hosted repositories. | | Jira | Connect by approving access on your Jira instance, or with a Server/DC personal access token. | | Confluence | Connect the same way as Jira: approve access, or use a personal access token. | | Devin | Connect with a Devin sign-in code or an API key, here or from Howler Desktop. | | Environment variables | Managed here - see Secrets & environment variables. | | Mobile app pairing | Pair the Howler mobile app to your account for lightweight monitoring and notifications. | #### Peek settings **Settings → Appearance & job view** has three switches that control what job timelines show: | Switch | What it shows | | --- | --- | | Show the agent's thinking | The agent's reasoning steps. | | Show warnings | System warnings and non-critical alerts. | | Show raw model calls | Raw LLM requests and responses. For debugging: it makes job updates larger and can slow down slower connections. | These filters let you focus the terminal on the signal you care about - hide noise during review or show everything during debugging. ## Spaces, teams & projects Source: /docs#spaces-teams-projects - Markdown: /llms/spaces-teams-projects.md ### Spaces, teams & projects Howler organizes work into a simple hierarchy so access, attribution, and spend stay clean as teams grow. #### The hierarchy | Concept | What it is | | --- | --- | | `Space` | The largest grouping, typically an organization or a business unit. A space holds teams and projects. People reach a space through the teams they are in. | | `Team` | A group of users. A team can belong to more than one space. Teams make it easy to share projects and playbooks with the right people. | | `Project` | Maps to one or more repositories. Projects are the unit of dispatch, model access, RBAC, and spend tracking. | | `Job` | A single agent run. Always attributed to a user and (for repo work) a project. | Why projects matter. Triggers like /howl , cron schedules, and service tokens all resolve to a project so the platform can apply the right model access and access control. ## Roles & access Source: /docs#roles-access - Markdown: /llms/roles-access.md ### Roles & access Access in Howler is role-based. Your role determines what you can see and manage at the platform and project level. | Role | Can do | | --- | --- | | `SuperAdmin` | Everything an Admin can do, plus changing people's roles and impersonating, deleting and merging users. | | `Admin` | Manage every project, space and team on the platform, and the admin tooling. Not limited to one space. | | `User` | The role everyone starts with. Dispatch jobs and use projects they can access; manage their own personal tokens. | On top of the platform role, each project gives a person one of two access levels: **Owner** (manages the project's tokens, env vars, access and settings; creating a project makes you its owner) or **Collaborator**. Within a team a person is a member of that team; "Member" is not a platform role. Project tokens, changes to project env vars and access changes require project owner or admin. Cron schedules can be created by anyone with access to the project. ## Why teams choose Howler Source: /docs#why-howler - Markdown: /llms/why-howler.md ### Why teams choose Howler - **Glass-box transparency** - Every thought, tool call, and edit is visible in real time - no black boxes. - **Works with your stack** - Native GitHub, Jira, and Confluence integrations plug into existing workflows. - **Autonomous or guided** - Let agents run end-to-end, or stay in the loop with guided mode for high-stakes work. - **Built for teams** - Spaces, teams, role-based access, and shared playbooks keep everyone aligned. - **Benchmarked quality** - Agent quality is continuously measured against industry and internal benchmarks - so improvements are real, not anecdotal. - **Meets you where you work** - Dispatch and steer jobs from the web, the CLI, or Howler Desktop - all backed by the same agents. #### Benchmarked, not anecdotal Howler's agents are continuously evaluated against public coding benchmarks and an internal, Dell-specific task suite. That means quality claims are backed by repeatable, comparable runs - and every model or prompt change is measured before it ships. - **SWE-bench** - The industry-standard benchmark for resolving real GitHub issues end-to-end - used to track how often agents ship a correct fix. - **Terminal-Bench** - Measures how reliably agents complete real terminal-driven engineering tasks across diverse environments. - **Dell-Bench** - An internal task suite grounded in real Dell engineering workflows, so quality reflects the work teams actually do here. Why it matters. Benchmarking turns "the agent feels better" into a number you can trust. Regressions are caught before release, and improvements are proven against the same tasks every time - on both open benchmarks and Dell's own workloads. --- # Evaluations ## DellBench overview Source: /docs#dellbench-overview - Markdown: /llms/dellbench-overview.md ### DellBench overview Most agent benchmarks - SWE-bench, Terminal-Bench, and the rest - test agents on generic or open-source problems. They are useful, and Howler performs well on them, but they were never designed to answer the question that actually matters: **how well does an autonomous agent perform on the real, domain-specific work that runs inside Dell every day?** DellBench is a suite of enterprise evals built around Dell's own workflows to answer exactly that. What DellBench answers. Does the agent work on the work we depend on? What does it cost to run at scale? Can we prove it rather than take it on faith? Because every agent runs under identical conditions on workflows Dell genuinely cares about, the results are reproducible and comparable across any agent evaluated. #### Task domains DellBench spans broad foundational tasks and goes deep into Dell-specific domains no public benchmark touches. - **Security** - Command injection, IDOR, XXE parsing, zip-slip, STRIDE analysis, hardcoded-key detection, and false-positive auditing. - **AI & ML infrastructure** - Model-serving OOM failures, training padding, TRT optimization, and agentic RAG chunking. - **Firmware & BIOS** - BIOS and EDK2 firmware tasks that exercise low-level, Dell-specific engineering domains. - **Dell internal repos** - Tasks built from real Dell repositories like Agora and Howler - reflecting the actual code teams work on. #### Design philosophy Every eval is a self-contained task with a verifiable outcome so that scoring is objective and repeatable. The evals look like Dell's work, not someone else's - and each one can be re-run on demand with results you can trust every time. - **Focused on real work** - Tasks are drawn from genuine Dell workflows - security reviews, firmware builds, internal tooling - not synthetic puzzles. - **Verifiable outcomes** - Each task has an objective pass/fail condition. No subjective grading, no hand-wavy scoring. - **Repeatable on demand** - Any eval can be re-run at any time to confirm results, catch regressions, or validate improvements. ## Harbor harness Source: /docs#harbor-harness - Markdown: /llms/harbor-harness.md ### Harbor harness DellBench is executed through **Harbor**, the evaluation harness originally developed for Terminal-Bench. Harbor is agent-agnostic - it can run Howler, Devin, or any third-party agent under identical conditions, which is what makes comparisons fair and the bench trustworthy as a recurring source of truth. #### How it works - **Container provisioning** - Harbor provisions custom containers that mirror the real task environment - each agent gets the same starting point. - **Agent attachment** - The harness attaches any agent (Howler, Devin, or third-party) and runs the eval autonomously - no manual steps. - **Telemetry capture** - Every run records the outcome along with token usage, cost, and per-turn telemetry for granular analysis. - **Model spread** - Howler is tested across a spread of models - from lower-tier swe-1.6 up to frontier Opus 4.8 - and benchmarked against other agents on the same tasks. Agent-agnostic by design. Because the harness controls the environment and the measurement, switching agents is as simple as plugging in a different adapter. Dell is never locked in and never guessing about what comes next. ## Benchmark results Source: /docs#benchmark-results - Markdown: /llms/benchmark-results.md ### Benchmark results Howler is continuously benchmarked against other agents on both Dell's internal task suite and public industry benchmarks. These are the headline results. The bottom line. Howler is tested against other coding agents on standardized task sets - called evals - so the results are comparable and repeatable. A test harness sets up each task, runs the agent, and grades the result automatically. This page shows how Howler performs on three benchmarks: Dell's own internal tasks (DellBench), a public engineering benchmark ( Terminal-Bench ), and a deep software engineering benchmark ( DeepSWE ). The numbers cover success rate, speed, token usage, and cost. How Howler stacks up. Across all three benchmarks Howler scores higher, finishes faster, and costs less than every agent tested - including the leading external competitor. On DellBench Howler leads 92.5% to 67.1% . On Terminal-Bench it leads 72.4% to 60.9% . On DeepSWE it leads 36.3% to 25.7% while using 4.4× fewer tokens. #### DellBench scores Aggregated across the models the agents share, Howler scores **92.5%** on DellBench - well ahead of the leading external agent at **67.1%**. Toggle between views to explore aggregate scores, per-task breakdowns, and efficiency metrics. #### Terminal-Bench scores On Terminal-Bench, Howler leads across model versions. Select a model and metric to explore scores, cost, and token usage. #### DeepSWE scores DeepSWE is a benchmark of complex software engineering tasks that require deep reasoning and multi-step problem solving. Aggregated across models, Howler completes **36.3%** of tasks (41/113) compared to Devin's **25.7%** (29/113) - a 10-point lead on the hardest public engineering benchmark available. Toggle between score and token usage to see both sides of the story. #### Model robustness A good agent harness should hold up regardless of the model underneath it. DellBench surfaces exactly how much an agent depends on its model. Some agents swing widely - strong on certain models and collapsing on others - which is a clear sign of harness fragility. The lesson: the harness, not just the model, is where a lot of the real value lives. ## Why it matters Source: /docs#why-evals-matter - Markdown: /llms/why-evals-matter.md ### Why it matters The benchmark results are a snapshot, but the repeatable system behind them is the durable asset. As agents take on more autonomous work - running across tens or hundreds of turns at a time - asking whether they finished is no longer enough. - **Does it work?** - Is this agent good enough for the work we depend on? DellBench answers with reproducible evidence. - **What does it cost?** - Token usage, cost-per-task, and efficiency ratios - measured, not estimated. - **How do options compare?** - Agent-agnostic evaluation means every option is tested under identical conditions. #### The feedback loop Every run produces telemetry granular enough to point at the weak spots - whether that is a system prompt, a tool call, or a planning loop. Every improvement is measured against the workflows Dell actually cares about before it ships. - **Identify weak spots** - Per-turn telemetry reveals exactly where an agent struggles - a specific tool call, a planning loop, or a prompt gap. - **Fix and measure** - Each fix is validated against the same DellBench tasks before shipping, ensuring the improvement is real. - **Widen the advantage** - The cost advantage Howler already has can keep growing because every gain is visible and every regression is caught. #### What comes next Autonomous agents run long, and many turns in a run are easy while only a few are genuinely hard. Routing each turn - not just each prompt - to the right-tier model is a significant way to cut cost further without sacrificing correctness. DellBench gives us the measurement foundation to design and validate that routing safely. No lock-in. Because Harbor is agent-agnostic, the same bench lets Dell test, judge, and review any agent - which means Dell is never locked in and never guessing about what comes next. ## Routing Source: /docs#routing - Markdown: /llms/routing.md ### Routing Experimental. Call routing is under active development. Early results are promising - approximately 2× cheaper than Howler with a frontier model, and ~3× cheaper than Devin - while still scoring 5 points higher than Devin on DellBench. The system is still being refined. While running DellBench evals with increasingly capable models, a pattern became obvious: top-tier models like Opus completed every task, but lower-tier models still cleared roughly 75% of them. Most turns in a long autonomous run are straightforward - only a handful are genuinely hard. If the agent could use a cheaper model most of the time and escalate to a frontier model only when the task demands it, costs would drop dramatically without hurting the success rate. That insight is what led to **call routing**. #### How it works Routing is a fine-tuned **DeBERTa-v3** classification model. The base model is taken before its final classification layer and retrained via transfer learning on real Howler job data so it can judge how difficult the immediate next turn is and route it to the right model tier. - **Context windows** - Job data is broken into windows capped at 1,400 characters. Each window is built in priority order: the most recent user prompt first, then the last three turns - including the LLM response and every tool call in each turn. This gives the router enough signal to assess what comes next. - **Labeling with LLM-as-a-judge** - Each window is scored on a two-axis rubric - task difficulty and effect of failure - by an LLM acting as a judge. The rubric produces labeled training data that captures both how hard a turn is and how much damage a wrong answer would cause. - **Transfer learning on DeBERTa-v3** - The labeled windows are used to fine-tune the base DeBERTa-v3 model. The final classification layer is replaced and trained to output a tier recommendation, turning a general-purpose language encoder into a lightweight, fast routing classifier. - **Per-turn routing** - At inference time every turn is classified before dispatch. Easy turns go to a cheaper model; hard or high-stakes turns escalate to a frontier model. The decision happens in milliseconds and is invisible to the user. #### Early results The first version of routing was tested against DellBench. Because the router sends most turns to cheaper models, the per-eval cost drops sharply while the overall success rate stays in range. Toggle between score and cost to see the trade-off. Cost at a glance. With routing enabled, Howler costs $4.03 - roughly 2× cheaper than running every turn on a frontier model ( $7.87 ) and ~3× cheaper than Devin ( $12.65 ). The routed configuration still scores 76.3% - 5 points ahead of Devin's 71.3% . As the routing model improves, we expect task success to climb further while costs stay low. --- # Triggers & Tokens ## Ways to trigger jobs Source: /docs#triggers-overview - Markdown: /llms/triggers-overview.md ### Ways to trigger jobs Beyond dispatching from the web UI, Howler can start jobs from inside GitHub, on a schedule, or from any external system. Each path attributes the job to a real Howler user or project so access control, attribution, and auditing stay consistent. - **/howl on a PR** - Comment /howl on a pull request to launch an agent that works directly on that PR's branch. - **Cron schedules** - Run recurring jobs against a project on a cron expression - nightly audits, dependency bumps, reports. - **GitHub event triggers** - Automatically dispatch jobs when GitHub events occur - pushes, PRs, issues, releases, and more. - **Custom inbound webhooks** - Give any external system - Jira, Jenkins, Datadog, a plain curl - its own URL to start a job. - **Service tokens** - Mint a token to trigger jobs from CI, scripts, or any HTTP client via the REST API. - **Reusable GitHub Action** - Drop the howler-trigger reusable workflow into any repo to fire jobs from your CI pipeline. #### Which one to use | Need | Use | | --- | --- | | Run the same job on a schedule | Cron | | React to repository events (pushes, PRs, issues, releases) | GitHub event triggers | | Start a job from Jira, Jenkins, an alert or any system that can send HTTP | Custom inbound webhooks | | Trigger jobs from CI, scripts, or another service | Service tokens or the reusable GitHub Action | | Share a repeatable prompt with teammates | Playbooks | | Coordinate a broad mission with delegated sub-jobs | Orchestrator | #### Video walkthrough See cron schedules and playbooks in action: #### Custom inbound webhooks A custom webhook gives one automation its own callable URL, so any external system that can send an HTTP request - Jira, Jenkins, Datadog, an alertmanager, or a plain `curl` - can start a Howler job. Unlike GitHub event triggers, the payload is entirely yours: whatever JSON you post becomes template variables the prompt can read. Where to find it. On the Automation page, create or edit an automation and set the trigger to On a webhook (the new-automation dialog calls it "When another tool calls it"). On save Howler generates a unique webhook URL and a secret token, both shown in the editor - copy the token then, and store it in your calling system. Call the automation by POSTing to its URL with the secret in the `X-Howler-Token` header. The body is optional. **Audience access (Viewer / Contributor).** The jobs an automation starts can be read by whoever its **Visibility** names, and by default only read. With visibility **Project members**, set **Audience access to Contributor** (API: `audienceAccess: "contributor"` on the automation) and the project's members can also send messages to those jobs and continue them. This works for every trigger. Jobs of an "Only me" automation stay their author's, and jobs every Howler user can see stay read-only. ```bash # The secret lives in an env var - never paste it into a script or a repo. curl -X POST https://howler.dell.com/v1/webhooks/custom/YOUR_WEBHOOK_ID \ -H "X-Howler-Token: $HOWLER_WEBHOOK_SECRET" \ -H "Content-Type: application/json" \ -d '{"issue":{"key":"PROJ-123","summary":"Checkout 500s on retry"}}' ``` Turning the payload into prompt variables A JSON body is flattened into dot-path placeholders your prompt can reference with the same mustache syntax as `{{event.*}}`. The body above would make `{{webhook.issue.key}}` resolve to PROJ-123, so a prompt such as `Investigate {{webhook.issue.key}}: {{webhook.issue.summary}}` reaches the agent fully resolved. These are always present: | Variable | Description | | --- | --- | | `webhook.` | Any field of a JSON body, flattened to its dot path - e.g. webhook.build.status. Array items are indexed, e.g. webhook.commits.0.id. | | `webhook.body` | The raw request body, exactly as received. | | `webhook.received_at` | UTC timestamp (ISO 8601) of when the call arrived. | | `webhook.source_ip` | IP address the request came from, when available. | Flattening limits. Nesting is followed to 6 levels , up to 200 keys , and each string value is truncated at 2,000 characters . A non-JSON body (plain text, form data) is still accepted - you simply get {{webhook.body}} with no flattened fields. Responses | Status | When | | --- | --- | | `200` | Accepted. A job was dispatched - or, if the automation is paused, the call is acknowledged and nothing is dispatched. | | `401` | The X-Howler-Token header is missing or does not match the automation secret. | | `404` | No automation exists for that webhook ID. | Treat the token like an API key. It is the only thing authenticating the call, so keep it in a secret store rather than in source. You can Regenerate it from the automation editor at any time, which invalidates the previous token immediately. The secret is only ever returned to users who can manage the automation; everyone else sees the automation without it, and someone who opens a link to an automation they can only view is not sent the webhook URL either. The webhook ID itself is not sensitive - it is just the path, and is useless without the token. ## /howl PR command Source: /docs#howl - Markdown: /llms/howl.md ### /howl PR command Mention `/howl` in a pull request comment to dispatch an agent that operates on that PR's head branch. The agent reads the PR's diff and context, makes the requested changes, and pushes commits back to the same branch - keeping the conversation and the work in one place. ```PR comment /howl please add unit tests for the new auth middleware and fix the failing CI lint step ``` #### Slash-command modifiers Combine optional modifiers after `/howl` in any order. Unrecognised tokens are treated as part of your instruction. | Modifier | Effect | | --- | --- | | `/code` | Code mode (Command Center) - build, fix & refactor. This is the default. | | `/auto` | Autonomous mode - the agent works independently without pausing. Same as /code (default). | | `/chat` | Chat mode (Consultant) - plan & advise; changes code only when you ask. | | `/consultant` | Alias for /chat - advisory mode with a named persona; changes code only when you ask. | | `/orch` | Orchestrator - coordinate a multi-agent mission. | | `/guided` | Guided mode - the agent pauses for your input at key decision points. | | `/new` | Force a brand-new job instead of routing to an existing one. | | `/` | Select a model, e.g. /claude, /gpt-5. | Examples. /howl /chat explain the auth architecture - advisory chat; it changes code only if you ask. /howl /consultant review this design - same as /chat, consultant mode. /howl /orch /claude coordinate the refactoring - orchestrator job using Claude. /howl /code /guided /new fix the lint errors - fresh guided code job. /howl /auto fix the bug - autonomous code mode (the default). /howl fix the bug - unchanged default behavior (Code mode). Works on Issues too. You can comment /howl on a GitHub Issue (not just a PR). The agent creates a job targeting the repo's default branch with the issue context. /howler is also accepted as a trigger alias. ## Cron jobs Source: /docs#cron-jobs - Markdown: /llms/cron-jobs.md ### Cron jobs Cron schedules run a fixed prompt on a recurring cadence using a standard cron expression, usually against a repository. A schedule shared with others belongs to a **project**, which decides who can manage it and supplies its environment variables. A schedule that is only yours needs no project. Use them for nightly audits, scheduled dependency bumps, recurring reports, or any repeatable task. | Field | Meaning | | --- | --- | | `cron` | Standard 5-field cron expression (min hour dom mon dow), evaluated in UTC. | | `project` | The project the schedule and its jobs belong to. Required when the schedule is visible to project members or everyone; optional for "Only me". | | `repo + branch` | The repository and branch the recurring job targets. Optional: a schedule can run with a prompt alone. | | `prompt` | The instruction sent to the agent on each run. | | `enabled` | Toggle a schedule on or off without deleting it. | Who can manage a schedule. Anyone with access to a project, owner or collaborator, can create, edit, run, toggle and delete that project's schedules. An "Only me" schedule can be managed only by the person who created it. Admins can manage all. Schedules are on the Automation page. Opening, editing and sharing one automation. Click an automation, on the Automation page or in a project's Automations tab, to open it in a side panel over the list. The panel has three tabs: Runs (the latest run and the ones before it), Versions (every saved change, with Rollback) and Settings (the editor). In the ⋯ menu, Edit opens the panel on Settings, Run history on Runs and Version history on Versions. If you close the panel with unsaved edits, it asks before discarding them. Open full page moves to the automation's own page at /automation/ {id} and takes your unsaved edits with it. That page is the automation's link. Copy link (on every row, in the ⋯ menu, in the panel and under Share on the page) always copies it. It opens on Runs; add ?tab=versions or ?tab=settings for another tab. Share also says who can open the link. A new automation is Only me , so change who can see it before you send the link to someone else. | Who opens the link | What they see | | --- | --- | | Someone who can manage the automation | The full page: Runs, Versions and Settings. | | Someone who can see it but not manage it (it is shared with everyone and they are outside its project) | Its settings, read-only. No runs, versions, Run now or on/off switch, and no webhook details. | | Someone it is not shared with | A page that says they do not have access. It does not name the automation or its owner. | | Someone who is signed out | The sign-in page, then the automation. | Event-based triggers too. Automation schedules also support a GitHub Event trigger type. Instead of firing on a cron expression, these schedules dispatch a job whenever a matching GitHub webhook event (e.g. push, pull_request, issues) arrives. See the GitHub event triggers page for details. ## GitHub event triggers Source: /docs#github-event-triggers - Markdown: /llms/github-event-triggers.md ### GitHub event triggers GitHub event triggers let you dispatch Howler jobs automatically whenever specific events happen in a repository - a push to a branch, a pull request opened, a new issue filed, or a release published. Instead of running on a time-based cron schedule, these automations react to real repository activity in real time. Where to find it. GitHub event triggers are created on the Automation page. When creating or editing an automation, choose On a GitHub event instead of On a schedule , then select the events you want to react to. #### Supported events Select one or more of the following GitHub webhook events. When any selected event fires for the configured repository, Howler automatically dispatches a job with the schedule's prompt. | Event | Fires when | | --- | --- | | `push` | A git push is made to any branch in the repository. | | `pull_request` | A pull request is opened, closed, merged, or has review requested. | | `pull_request_review` | A PR review is submitted, edited, or dismissed. | | `pull_request_review_comment` | A diff-level comment is created or edited on a PR review. | | `issues` | An issue is opened, edited, closed, assigned, or labeled. | | `issue_comment` | A comment is created, edited, or deleted on an issue or PR. | | `release` | A release is created or published. | | `create` | A branch or tag is created. | | `delete` | A branch or tag is deleted. | #### Filtering by action By default, selecting an event triggers the automation for **every** action of that event - e.g. selecting `issues` fires on opened, edited, closed, assigned, labeled, and every other issue action. For events that support it (all except `push`, `create`, and `delete`, which have no action sub-types), an optional action selector appears once you pick the event, letting you narrow the trigger down to specific actions only - for example, firing only when an issue is `opened`, not when it's closed or labeled. API format. Under the hood, action filters are encoded directly in the schedule's event list using a colon and pipe-delimited actions: event_type:action1|action2 . For example, issues:opened|edited matches only issue-opened and issue-edited events, while pull_request:opened,issues:opened|closed combines a filtered PR trigger with a filtered issues trigger. Omitting the action suffix (plain issues ) always means "all actions" and remains fully backward compatible with existing automations. #### How it works - **Create an automation** - Open the Automation page, click New automation, and choose On a GitHub event. - **Select events** - Pick one or more events to react to - e.g. push and pull_request. Set the target repo, branch, and prompt. - **Webhook fires** - When a matching event occurs in GitHub, the Howler GitHub App sends it to Howler. The system matches the event type and repo URL against your schedules. - **Job dispatches** - A Howler job is automatically created and dispatched with the configured prompt, targeting the specified repo and branch. #### Getting the Howler GitHub App installed GitHub events reach Howler through the **Howler GitHub App**. The app and its webhook are already set up on the Howler side, so you don't need to configure a webhook yourself. The only requirement is that the app is installed in the GitHub organization that owns your repository. Need the app in your org? Contact Jonathan Samuel over email ( jonathan.samuel@dell.com ) or chat with him on Microsoft Teams to get the Howler GitHub App installed in your GitHub organization. Until it is installed, GitHub event automations for repositories in that org will not fire. Can't wait for the app? Make it "Only me". Shared automations clone with Howler's service credential (the GitHub App), so they can't reach a repository in an org the app isn't installed on. An automation set to Only me runs with your linked GitHub account instead. Scheduled and custom-webhook automations work right away; GitHub event triggers still need the app, because that is how the events reach Howler. GitLab repositories. Howler has no shared GitLab service account yet, so automations on GitLab must be Only me and run with your linked GitLab account (link it under Settings → Connections). To share a GitLab automation with a team, contact Jonathan Samuel as above. Repo matching. Howler matches incoming webhooks to your automation schedules by comparing the repository URL in the webhook payload against the target repo URL configured on each schedule. The match is based on the owner/repo path - differences in scheme, hostname (e.g. github.com vs. GitHub Enterprise), or .git suffix are ignored. Bot loop protection. Webhooks sent by bot accounts (sender type Bot or login ending in [bot] ) are automatically ignored to prevent infinite dispatch loops. #### Event template variables When a GitHub event triggers an automation, Howler automatically extracts structured context from the webhook payload and makes it available as `{{ event.* }}` mustache-style template variables. Use them in your playbook prompt templates or raw schedule prompts to make jobs context-aware - the agent receives the resolved values instead of raw placeholders. Works everywhere. Event template variables are resolved in both playbook prompt templates (via hydration) and raw schedule prompts (direct substitution). Whitespace inside the braces is tolerated - {{ event.type }} and {{event.type}} both work. Common variables | Variable | Description | Example value | | --- | --- | --- | | `event.type` | The GitHub event type (from the webhook header). | push | | `event.action` | The action sub-type (opened, closed, created, etc.). | opened | | `event.sender` | GitHub login of the user who triggered the event. | alice | | `event.repo_name` | Repository name (without owner). | web-app | | `event.repo_owner` | Repository owner or organization. | acme | | `event.repo_full_name` | Full repository identifier. | acme/web-app | | `event.repo_url` | Repository HTML URL. | https://github.com/acme/web-app | | `event.default_branch` | Default branch of the repository. | main | | `event.job_id` | The unique ID of the job this trigger creates. Injected by Howler at dispatch time - available in both GitHub-event and plain cron triggers. | 3f9c1a2b-7d4e-4c8a-9b12-6e0f5a1d2c34 | Push events | Variable | Description | Example value | | --- | --- | --- | | `event.ref` | The full git ref that was pushed. | refs/heads/main | | `event.branch` | Branch name extracted from the ref. | main | | `event.commit_sha` | SHA of the head commit (falls back to the "after" field). | abc123def456 | | `event.commit_message` | Commit message of the head commit. | Fix the login bug | | `event.commit_author` | Author username (or name) of the head commit. | alice | Pull request events | Variable | Description | Example value | | --- | --- | --- | | `event.pr_number` | Pull request number. | 42 | | `event.pr_title` | Pull request title. | Add login page | | `event.pr_url` | Pull request HTML URL. | https://github.com/acme/web-app/pull/42 | | `event.pr_state` | PR state as GitHub reports it: open or closed (a merged PR is closed). | open | | `event.pr_author` | GitHub login of the PR author. | bob | | `event.pr_head_branch` | Head branch of the PR. | feature/login | | `event.pr_head_sha` | SHA of the PR head commit. | deadbeef | | `event.pr_base_branch` | Base branch the PR targets. | main | Issue events | Variable | Description | Example value | | --- | --- | --- | | `event.issue_number` | Issue number. | 15 | | `event.issue_title` | Issue title. | Login broken | | `event.issue_url` | Issue HTML URL. | https://github.com/acme/web-app/issues/15 | | `event.issue_state` | Issue state (open, closed). | open | | `event.issue_author` | GitHub login of the issue author. | carol | | `event.issue_body` | Body text of the issue. | Login page returns 500 error | Comment events | Variable | Description | Example value | | --- | --- | --- | | `event.comment_body` | Body text of the comment. | I agree, this would be great! | | `event.comment_author` | GitHub login of the comment author. | dave | | `event.comment_url` | Comment HTML URL. | https://github.com/acme/web-app/issues/7#issuecomment-123 | Release events | Variable | Description | Example value | | --- | --- | --- | | `event.release_tag` | Release tag name. | v2.1.0 | | `event.release_name` | Release display name. | Version 2.1.0 | | `event.release_url` | Release HTML URL. | https://github.com/acme/lib/releases/tag/v2.1.0 | Meta | Variable | Description | | --- | --- | | `event.payload_summary` | A compact JSON summary of the event with the most important fields (type, action, sender, repo, plus event-specific fields like pr_number or branch). Useful as a catch-all context variable. | Usage examples Reference any variable in your prompt using double-brace syntax. Here are a few real-world examples: ```Playbook prompt template Review PR #{{event.pr_number}} ({{event.pr_title}}) on {{event.repo_full_name}}. The PR was opened by {{event.sender}} targeting the {{event.pr_base_branch}} branch. Focus on code quality, test coverage, and security concerns. ``` ```Raw schedule prompt A {{event.type}} event occurred on {{event.repo_full_name}} by {{event.sender}}. Branch: {{event.branch}} Commit: {{event.commit_message}} Run the full test suite and report any regressions. ``` ```Issue triage prompt Triage issue #{{event.issue_number}}: "{{event.issue_title}}" Opened by {{event.issue_author}} on {{event.repo_full_name}}. Issue body: {{event.issue_body}} Analyze the issue, suggest labels, and draft an initial response. ``` Missing variables. If a variable key is present in the event context but its value is null , it is replaced with an empty string. If a variable key is not present at all (e.g. using {{event.pr_number}} in a push-triggered prompt), the placeholder is left as-is so you can see which variables weren't resolved. #### Example use cases - **Auto-review new PRs** - Trigger on pull_request to automatically review code changes, run checks, or suggest improvements whenever a PR is opened. - **Post-push validation** - Trigger on push to run tests, lint checks, or security scans every time code is pushed to a branch. - **Triage new issues** - Trigger on issues to automatically analyze, label, or investigate new bug reports and feature requests. - **Release notes & docs** - Trigger on release to generate release notes, update documentation, or run post-release verification. - **Branch cleanup** - Trigger on create or delete to manage branch lifecycle - run setup on new branches or clean up after merged ones. - **Review comment follow-up** - Trigger on pull_request_review_comment to automatically address review feedback or fix issues raised in diff comments. ## Service tokens Source: /docs#service-tokens - Markdown: /llms/service-tokens.md ### Service tokens Service tokens let external systems trigger Howler jobs over the REST API, and now authenticate directly against the standard job endpoints. Send the token in either the `X-Howler-Service-Token` header (original, still supported) or as `Authorization: Bearer hwl_...` (works everywhere a session would). The `hwl_` prefix on the token is what unambiguously tells Howler it's a service token rather than a session id, so the same Bearer header works across the whole API. Tokens are hashed at rest - the raw secret is shown **exactly once** at creation, so copy it then. #### Project token (recommended for CI and webhooks) Owned by the project, not a person: it keeps working when people leave, reaches only that project and its repositories, never acts as a user and is never an admin. It carries only the permissions chosen when it was created and must expire (90 days by default, at most a year). Project owners create, rotate and revoke them from the project's **Settings → Service tokens**. #### Personal token Acts as you across every project you can access, and stops working if your account is suspended. Anyone can create one for themselves under Settings → Developer. #### Project token permissions | Permission | Allows | | --- | --- | | `project:read` | Read the project's details and repositories. | | `jobs:read` | List the project's jobs and read their status and conversation. | | `jobs:run` | Start, continue, answer, stop and complete jobs (includes jobs:read). | | `results:read` | Download job output files (includes jobs:read). | | `playbooks:read` | List and view playbooks owned by, shared with, or global to the project. | | `playbooks:run` | Run those playbooks against the project's repositories. | | `playbooks:write` | Create, edit and delete playbooks owned by the project. | | `automations:read` | List and view the project's (non-private) automations. | | `automations:trigger` | Run an automation now, including custom webhooks. | | `automations:write` | Create, edit, enable/disable and delete the project's automations. | | `factories:read` | List the project's factories and read their items and status. | | `factories:items` | Add items to the project's factories and close them (includes factories:read). Their jobs run as the Howler GitHub App. | Everything else is refused with `403` and `code: project_token_endpoint_not_allowed` or `project_token_permission_missing`: managing teams or members, creating tokens, deleting the project, admin pages, other projects and repositories outside the project. On jobs that also covers archive, restore, delete, visibility, share links, switching the model or mode, and the WebSocket stream; use a personal token for those. Every change a project token makes is recorded in the project's token activity with the token as the actor. | Endpoint | Use | | --- | --- | | `POST /v1/jobs/deploy` | Create/trigger a job (preferred over the deprecated /v1/service/jobs). | | `GET /v1/jobs` | List the jobs your token can see. | | `GET /v1/jobs/{id}` | Get job details, or poll status until terminal. | | `POST /v1/playbooks/{id}/execute` | Run a playbook (project token: playbooks:run). | | `POST /v1/cron/{id}/run` | Run an automation now; an optional JSON body becomes {{ event.* }}. | | `POST /v1/webhooks/custom/{webhookId}` | Trigger a webhook automation with a project token instead of its X-Howler-Token secret. | | `POST /v1/factories/{id}/items` | Add an item to a factory of the project (factories:items). Send Idempotency-Key so a retry returns the first item. Its jobs run as the Howler GitHub App, not as a person. | | `GET /v1/service/health` | Validate that a token is active and see its project and permissions. | Trigger a job with a Bearer token: ```bash curl -k -X POST https://howler.dell.com/v1/jobs/deploy \ -H "Authorization: Bearer $HOWLER_SERVICE_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "repo_url": "https://github.com/org/repo.git", "branch_name": "main", "user_prompt": "Update dependencies and open a PR", "mode": "standard" }' ``` Poll for completion: ```bash curl -k https://howler.dell.com/v1/jobs/JOB_ID \ -H "Authorization: Bearer $HOWLER_SERVICE_TOKEN" # => { "job": { "job_id": "...", ... }, "status": "Completed", ... } # Done when "status" is Completed or Failed. ``` The original header still works exactly the same way, against the same endpoints: ```bash curl -k https://howler.dell.com/v1/jobs \ -H "X-Howler-Service-Token: $HOWLER_SERVICE_TOKEN" ``` Deprecated. POST /v1/service/jobs and GET /v1/service/jobs/ {id} are deprecated. Existing integrations keep working, but new and updated integrations should migrate to /v1/jobs/deploy and /v1/jobs/ {id} . GET /v1/service/health is not deprecated and remains the token-validity probe. Lifecycle. Tokens show last-used time and can be revoked at any time; revoking immediately stops anything using it. Project tokens must expire and can be rotated : a new secret with the same permissions is issued and the old one keeps working for a grace period you choose (up to 7 days), so CI can switch over without downtime. Admins can view and revoke every token from the global view. ## GitHub Action workflow Source: /docs#reusable-workflow - Markdown: /llms/reusable-workflow.md ### GitHub Action workflow Howler ships a reusable workflow so any repository can trigger a job as a CI step. Reference it with `workflow_call`, pass your inputs, and provide a service token as a secret. Store the token as an encrypted Actions secret (e.g. `HOWLER_SERVICE_TOKEN`) - never inline it. ```.github/workflows/ci.yml jobs: howl: uses: CSG-Client-Enablement-Software/howler/.github/workflows/howler-trigger.yml@main with: repo_url: ${{ github.event.repository.clone_url }} branch: ${{ github.ref_name }} prompt: "Review the latest changes and open a PR with improvements." mode: standard # optional wait: true # optional: poll until the job finishes timeout_seconds: 1800 # optional secrets: howler_service_token: ${{ secrets.HOWLER_SERVICE_TOKEN }} ``` | Input | Required | Description | | --- | --- | --- | | `repo_url` | yes | Clone URL of the repo Howler should work on. | | `prompt` | yes | Instruction for the agent. | | `branch` | no | Branch to base work on. Defaults to the repository's default branch. | | `mode` | no | Job mode: standard (default), consultant or orchestrator. | | `model` | no | Model for the job. Defaults to Howler's default model. | | `wait` | no | If true, poll until the job reaches a terminal state. | | `timeout_seconds` | no | How long to wait when wait is true (default 1800). | | `poll_interval_seconds` | no | Seconds between status checks when wait is true (default 15). | The workflow exposes `job_id` and `status` as outputs. With `wait: false` (the default) it fires the job and returns immediately; with `wait: true` it polls and fails the step if the job ends in a non-success terminal state. ## Playbooks Source: /docs#playbooks - Markdown: /llms/playbooks.md ### Playbooks Playbooks are reusable helpers for work you do often. Explain the outcome in everyday language, choose what people should answer before each run, and share it with the right audience. | Step | What happens | | --- | --- | | Describe it | Give the playbook a name and explain what a successful result should look like. | | Add questions | Choose the information people should provide each time, such as a topic, audience, or document. | | Review and share | Preview what runners will see and choose who can use it. | | Run | Answer the questions, add optional instructions, and start the work. | #### Library & Marketplace The Playbooks page has two tabs: - **Library** - Playbooks you've created or that have been shared with you. Toggle between Cards and List view. - **Marketplace** - Browse community and organization playbooks. Find proven recipes and add them to your collection. Use the Run Playbook panel to fill in run-specific fields and dispatch without leaving the Playbooks page. #### Adding Tools to Playbooks Playbooks can attach tools from the **Tools** library. When a user dispatches the playbook, attached tools are automatically injected into the agent's available tool list alongside any tools defined in `howler.yaml`. | Step | Action | | --- | --- | | 1 | Open the playbook editor and scroll to the Tools section. | | 2 | Search or browse the tools you can see in the registry. | | 3 | Click to attach. The agent will have access to the tool at runtime. | --- # Configuration ## Teach Howler your codebase Source: /docs#teaching-howler - Markdown: /llms/teaching-howler.md ### Teach Howler your codebase Every repository is different - and the more Howler knows about yours, the better it performs. The `howler.yaml` file at the root of your repository is your project's instruction manual for AI agents. Think of it as onboarding documentation that helps a new teammate understand your codebase, conventions, and workflows. #### Starter template Copy this minimal template into a `howler.yaml` file at your repo root and fill in the blanks. Every section is optional - start with just `instructions` and add more as needed. ```howler.yaml version: 1 # Tell the agent about your project (most impactful section). instructions: | # TODO: Describe your project, where key code lives, and how to run tests. # Structured rules and guidance. prompt: constraints: [] # hard rules - things the agent must never do requirements: [] # things the agent must always do notes: [] # softer context and hints # One-time setup before the agent runs. environment: setup_script: | # string or {windows: ..., linux: ...} # e.g. npm ci, pip install -r requirements.txt # Dependencies and prerequisites. dependencies: summary: [] # e.g. "Node.js 20+", "Postgres 16 required" # Custom tools (optional - see Custom tools docs). # tools: [] ``` Start small. A howler.yaml with just 3-4 lines of instructions is already a big improvement over no config. You can always add constraints, tools, and environment setup later as you learn what the agent needs. #### What to include | Section | What to put here | Why it matters | | --- | --- | --- | | `instructions` | Free-form guidance: where important code lives, how to run tests, coding conventions, architectural patterns | Injected directly into the agent's system prompt - this is the most impactful section | | `prompt.constraints` | Hard rules: files not to edit, patterns to avoid, APIs not to call | Prevents the agent from making changes you'd always reject | | `prompt.requirements` | Things the agent must do: run tests, follow naming conventions, add error handling | Ensures consistent quality across every job | | `prompt.notes` | Softer context: deprecated modules, upcoming migrations, known quirks | Helps the agent make better decisions without being a hard rule | | `dependencies.summary` | Environment prerequisites: database versions, required services, language runtimes | Prevents 'works on my machine' failures | | `environment.setup_script` | One-time setup commands: install dependencies, build steps, seed data. Supports platform-specific scripts (windows/linux) | Runs before the agent starts so tools are ready | | `tools` | Custom commands or APIs the agent can call | Gives the agent access to your internal systems | #### Writing good instructions | Do | Avoid | | --- | --- | | Tell the agent WHERE things are: "API routes are in src/api/, database models in src/models/" | Assume the agent will figure out your project structure | | Mention HOW to verify: "Run npm test to check, npm run lint for style" | Skip verification steps - the agent can't verify if it doesn't know how | | Call out GOTCHAS: "The legacy auth module uses a non-standard pattern - don't refactor it" | Leave undocumented quirks for the agent to discover the hard way | | Keep it current: update when your project evolves | Write it once and forget it - stale instructions cause stale results | Tip. Think of instructions as what you'd tell a skilled engineer on their first day working on your repo. #### Examples A web application configuration: ```howler.yaml version: 1 instructions: | This is a Next.js 14 app with App Router. API routes live in src/app/api/. Database models use Prisma - schema is in prisma/schema.prisma. Always run 'npm test' before completing a job. Use server components by default; only use 'use client' when interactivity is needed. prompt: constraints: - "Never edit files under src/legacy/ - it's being deprecated" - "Don't modify the authentication middleware" requirements: - "All new API routes need integration tests" - "Follow the existing error handling pattern in src/lib/errors.ts" environment: setup_script: | npm ci npx prisma generate ``` A monorepo with a custom tool: ```howler.yaml version: 1 instructions: | Monorepo using Turborepo. Packages are in packages/. The main app is packages/web, shared utilities in packages/common. Use 'turbo run test --filter=' to test a specific package. prompt: constraints: - "Changes to packages/common require tests in every consuming package" notes: - "We're migrating from Jest to Vitest - new tests should use Vitest" tools: - name: run_package_tests description: Run tests for a specific package in the monorepo. inputs: type: object properties: package: { type: string } required: [package] execution: type: cmd command: "turbo run test --filter" timeout_seconds: 120 dependencies: summary: - "Node.js 20+ required" - "Docker must be running for integration tests" ``` A project with an MCP tool: ```howler.yaml version: 1 instructions: | Use the knowledge base tool to look up internal documentation before writing code. tools: - name: search_docs description: Search the internal knowledge base for relevant documentation. inputs: type: object properties: query: { type: string } required: [query] execution: type: mcp url: https://mcp.internal/mcp tool: search headers: Authorization: "Bearer $DOCS_TOKEN" timeout_seconds: 30 ``` ## howler.yaml Source: /docs#howler-yaml - Markdown: /llms/howler-yaml.md ### howler.yaml Drop a `howler.yaml` file at the root of a repository to customize how agents execute against it. The backend reads it on dispatch (and on resume), validates it, and injects the relevant pieces into the agent system prompt. Unknown keys are ignored; invalid files produce *warnings* rather than failing the job. Version. version: 1 supports the worker , prompt , dependencies , tools , instructions , and environment keys. If omitted, version defaults to 1 . ```howler.yaml version: 1 # Route this repo's jobs to specific worker pools. worker: labels: - default # required worker labels fallback: default # default: may use another worker if none has the labels # none: wait for a worker with the labels, never another # Free-form instructions injected verbatim into the system prompt # (). Max 10,000 chars. instructions: | Most work should happen in the api/ and web/ directories. Always run 'make test' before completing a job. # Structured guidance - rendered as . prompt: constraints: # hard rules (the agent sees the first 12 items, 220 chars each) - "Never edit files under vendor/" requirements: # things the agent must do - "All new endpoints need integration tests" notes: # softer context / hints - "The legacy module is being deprecated" # Rendered as (max 10 items, 180 chars each). dependencies: summary: - "Postgres 16 is required for the test suite" # Optional one-time environment setup before the agent runs. environment: setup_script: | # max 4,000 chars npm ci clone_submodules: false ``` #### Top-level keys | Key | Type | Description | | --- | --- | --- | | `version` | number | Schema version. Defaults to 1. | | `worker` | object | `labels` (list) and `fallback` for worker routing. | | `instructions` | string | Verbatim prompt injection. Truncated at 10,000 chars. | | `prompt` | object | `constraints`, `requirements`, `notes` - each a list. The agent sees the first 12 items of each, cut to 220 characters. | | `dependencies` | object | `summary` list of environment notes (max 10, 180 chars). | | `environment` | object | `setup_script` (string or object with `windows`/`linux` keys; max 4,000 chars) and `clone_submodules` (bool). | | `tools` | list | Custom tools the agent can call. Deduplicated by name (first wins). See Custom tools. Tools from the **Tools** library (attached via playbooks or agent definitions) are *merged* with these YAML tools. On a name clash the YAML tool is used. | | `agents` | list | Agent definitions for this repository. See Agent Definitions docs. | #### Full schema reference Every available field in `howler.yaml`. All sections are optional - include only what you need. ```howler.yaml version: 1 # ── Worker routing ───────────────────────────────────── worker: labels: [default] # required worker pool labels fallback: default # default (may use another worker) | none (labels are strict) # ── Free-form instructions ───────────────────────────── # Injected verbatim into the agent system prompt. # Max 10,000 characters. instructions: | Describe your project here. # ── Structured prompt guidance ───────────────────────── prompt: constraints: # hard rules (max 20, 400 chars each) - "Never edit files under vendor/" requirements: # must-do items - "Run tests before completing" notes: # softer hints - "Legacy auth is being replaced" # ── Dependencies / environment notes ─────────────────── dependencies: summary: # max 10 items, 180 chars each - "Postgres 16 required" # ── Environment setup ───────────────────────────────── environment: setup_script: | # runs once before agent loop (max 4,000 chars) npm ci # OR platform-specific (object form): # setup_script: # windows: | # used on Windows workers # choco install imagemagick -y # npm ci # linux: | # used on Linux workers # sudo apt-get install -y imagemagick # npm ci clone_submodules: false # init git submodules (default: false) # ── Custom tools ─────────────────────────────────────── tools: - name: my_tool # unique name (required) description: "..." # shown to the agent (required) inputs: # JSON Schema for tool parameters type: object properties: arg1: { type: string } required: [arg1] execution: type: cmd # cmd | http | mcp # ── cmd fields ── command: "./run.sh" # shell command (use {{arg1}} for interpolation) command_windows: "..." # optional Windows-specific override command_linux: "..." # optional Linux-specific override timeout_seconds: 120 # ── http fields ── # url: https://api.example.com # method: POST # defaults to POST # headers: # Authorization: "Bearer xxx" # ── mcp fields ── # url: https://mcp.example.com/mcp # tool: tool_name # MCP tool name (required) # headers: # Authorization: "Bearer xxx" outputs: # optional - for rich content native_content: true content_types: [text, image] ``` ## Prompt guidance Source: /docs#prompt-guidance - Markdown: /llms/prompt-guidance.md ### Prompt guidance The `instructions`, `prompt`, and `dependencies` keys are composed into distinct XML-tagged blocks appended to the agent's system prompt. They are treated as repository policy - but never override platform-level safety rules. | howler.yaml key | Injected block | | --- | --- | | `instructions` | `` | | `prompt.constraints` / `requirements` / `notes` | `` | | `dependencies.summary` | `` | ## Custom tools Source: /docs#custom-tools - Markdown: /llms/custom-tools.md ### Custom tools Expose repo-specific capabilities to the agent via the `tools` list. Each tool needs a unique `name`, a `description`, an `inputs` JSON schema, and an `execution` block. Three execution types are supported: `cmd`, `http`, and `mcp`. MCP tools start on plain JSON-RPC and switch to Streamable HTTP by themselves when the server needs it. ```howler.yaml tools: - name: run_migration description: Apply a database migration by name. inputs: type: object properties: name: { type: string } required: [name] execution: type: cmd # cmd | http | mcp command: "./scripts/migrate.sh" timeout_seconds: 120 - name: lookup_ticket description: Fetch a ticket from an internal API. inputs: type: object properties: id: { type: string } execution: type: http url: https://tickets.internal/api method: POST # defaults to POST headers: Authorization: "Bearer xxx" outputs: native_content: true content_types: [text, image] ``` | execution.type | Required fields | | --- | --- | | `cmd` | `command` (`command_windows`, `command_linux` optional) | | `http` | `url` (`method`, `headers` optional) | | `mcp` | `url` and `tool` (`headers` optional) | Tools missing a name, duplicates, or with an unsupported type are skipped with a warning. `method` defaults to `POST`. #### Secrets in headers and URLs Keep credentials out of `howler.yaml`: store them as environment variables and reference them. In `headers` of `http` and `mcp` tools, `$NAME` and `${NAME}` are replaced with the variable's value before the request is sent. In `url` only `${NAME}` is replaced, because a bare `$name` is ordinary URL text (OData's `$filter`). Write `$$` for a literal dollar sign in a header. Values come from the job environment, the same variables a `cmd` tool sees: per-job `env_vars`, then your environment variables (Settings), then the project's environment variables. If a referenced variable is not set, the tool call fails with an error that names it, and nothing is sent. #### Platform-specific commands For `cmd` tools that need to run on both Windows and Linux workers, use `command_windows` and `command_linux` to provide platform-specific scripts. They take precedence over `command` on matching platforms, so you can provide a universal fallback alongside platform overrides. ```howler.yaml tools: - name: run_tests description: Run the test suite. inputs: type: object properties: suite: { type: string } execution: type: cmd command: "./scripts/test.sh" # fallback / Linux default command_windows: "scripts\test.ps1" # used on Windows workers command_linux: "./scripts/test.sh" # explicit Linux override timeout_seconds: 120 ``` | Field | When used | | --- | --- | | `command` | Always, unless a platform-specific override matches. | | `command_windows` | On Windows workers (windows_container, Windows host). | | `command_linux` | On Linux workers (linux_container, Linux host). | #### MCP transports An MCP tool talks to its server in one of three ways. A tool defined in `howler.yaml` always uses `auto`: a `transport` key there is ignored. To pin one of the other two, create the tool in the registry (Build → Tools) and set **Connection type**. | Transport | Behavior | | --- | --- | | `auto` | Default, and the only mode for `howler.yaml` tools. Starts on plain JSON-RPC and transparently upgrades to Streamable HTTP if the server rejects it - for example with `HTTP 406 Not Acceptable: Client must accept both application/json and text/event-stream`. The upgrade is remembered, so only the first call pays the extra round-trip. | | `json-rpc` | Sends a single JSON-RPC POST and reads a plain JSON response. No handshake or session management, and **never** auto-upgrades - use this to pin legacy self-hosted servers. | | `streamable-http` | Follows the MCP Streamable HTTP spec. Performs an `initialize` handshake on first use, caches the `Mcp-Session-Id` header for subsequent calls, and parses SSE (`text/event-stream`) responses. Falls back gracefully to plain JSON when the server responds with `application/json`. Required by most hosted MCP servers (Tavily, Figma, GitHub). | **Seeing HTTP 406?** An error reading `Client must accept both application/json and text/event-stream` means the server is Streamable-HTTP only. On `auto` Howler detects this and retries over Streamable HTTP automatically. If a registry tool is pinned to `json-rpc`, switch its Connection type to `auto` or `streamable-http`. ```howler.yaml tools: - name: query_knowledge description: Query the knowledge base over MCP. inputs: type: object properties: question: { type: string } required: [question] execution: type: mcp url: https://mcp.internal/mcp # auto: upgrades to Streamable HTTP if the server needs it tool: search headers: Authorization: "Bearer $MCP_TOKEN" ``` `json-rpc` keeps the single-POST behavior with no auto-upgrade. `streamable-http` handles the three-step handshake (initialize → notifications/initialized → tools/call) and reuses the session across repeated invocations of the same tool. ### Returning native content (text & images) Add an optional `outputs` block to declare that a tool returns rich content instead of plain text. Set `native_content: true` and list the `content_types` the tool can emit (e.g. `[text, image]`). This lets a tool hand an actual image back to the agent - for example a screenshot, a rendered chart, or a captured camera frame - so the model can *see* it rather than receive a file path. To send native content, the tool must print (`cmd` → stdout), respond with (`http` → response body), or return (`mcp` → tool result payload) a JSON object containing a `content` array. Each array item is either a text block or an image block: ```json { "content": [ { "type": "text", "text": "Captured the dashboard after login." }, { "type": "image", "base64_data": "iVBORw0KGgoAAAANSUhEUgAA...", "mime_type": "image/png", "file_name": "dashboard.png" } ] } ``` | Field | Applies to | Notes | | --- | --- | --- | | `type` | all items | Either `text` or `image` (`image_url` is also accepted). Required. | | `text` | `text` | The message text. Required for text items; empty values are dropped. | | `base64_data` / `data` | `image` | Base64-encoded image bytes. Required for image items; invalid base64 is dropped. | | `mime_type` | `image` | Optional. Defaults to `image/png`. | | `file_name` | `image` | Optional display name for the image. | The envelope may also carry a top-level `text` string, which is preserved. If the output is not a JSON object with a valid `content` array - or every item is dropped - the agent falls back to the tool's raw output, so plain-text tools keep working unchanged. ## Environment setup Source: /docs#environment - Markdown: /llms/environment.md ### Environment setup The `environment` block runs once during workspace build, before the agent loop begins. | Key | Type | Description | | --- | --- | --- | | `setup_script` | `string` or `object` | Shell script run after clone (e.g. install deps). Truncated at 4,000 chars. Can be a plain string or an object with `windows` and `linux` keys for platform-specific scripts. | | `clone_submodules` | bool | Defaults false. When true, submodules are best-effort initialized if .gitmodules exists. | #### Platform-specific setup scripts If your project needs different setup commands on Windows vs Linux workers, provide `setup_script` as a mapping instead of a string. The worker selects the matching platform script at runtime, falling back to the universal script if no platform match is found. ```howler.yaml # Plain string (works everywhere - existing behavior) environment: setup_script: | npm ci # Platform-specific mapping (new) environment: setup_script: windows: | choco install imagemagick -y npm ci linux: | sudo apt-get update && sudo apt-get install -y imagemagick npm ci ``` | Form | Behavior | | --- | --- | | Plain string | Runs as written wherever the job runs: with `bash` in Linux job containers, `cmd.exe` on Windows hosts and PowerShell in Windows containers. A script written for the other OS is handled as described below. | | Object with `windows` / `linux` | The worker picks the key for the OS of the job's workspace (the container's OS for container jobs, not the worker's). If neither matches, falls back to the universal `setup_script` if one is also provided. | Resolution at runtime: `effectiveScript = (workspaceIsWindows ? windows : linux) ?? setup_script` If the effective script would fail because it was written for the other OS, the worker doesn't let the shell fail on it. That is when its last line is clearly for the other OS (for example a `.cmd`/`.bat` file, `call` or `powershell` in a Linux workspace, or a `.sh` file, `bash` or `export` in a Windows workspace), or when a line can't be parsed by the workspace's shell (a cmd `if exist` or `for /f` in Linux, a POSIX `if ...; then` in Windows). It tries these in order: | Step | What happens | | --- | --- | | 1 | If the script only calls an interpreter the workspace has (`bash` from Git for Windows on a Windows host, `pwsh` on Linux), it runs as written. | | 2 | If the script is a single call of a script file with no arguments, and the repo has a file with the same name for the workspace's OS next to it, that file runs instead: `scripts/setup.cmd` → `scripts/setup.sh` or `scripts/setup` on Linux; `scripts/setup.sh` → `scripts/setup.ps1`, `.cmd` or `.bat` on Windows. | | 3 | A `.ps1` file in a Linux workspace runs with `pwsh` when it is installed. The default Linux job image doesn't include it. | | 4 | Otherwise the script is skipped. The job log shows a warning naming the script and the OS mismatch, and the job continues without that setup. | Earlier lines for the other OS don't count: the shell goes on past a line that fails, and the script's exit code comes from its last line, so such a script runs as written, as before. Scripts that use both OSes' syntax (for example ones that branch on the OS themselves) and scripts the worker can't place also run as written. To set up both kinds of workspace, use the `windows`/`linux` form. #### Multi-repo configuration When a job references additional repositories, Howler loads each repo's `howler.yaml` after cloning and merges certain sections: | Section | Merge behavior | | --- | --- | | `tools` | Merged from all repos. Primary repo tools come first. Deduplicated by name (first wins, case-insensitive). Tools from additional repos have their working directory set to that repo's clone path. | | `environment.setup_script` | Each repo's setup script runs in **that repo's cloned directory** as the working directory. Platform-specific scripts are supported per-repo. | | Instructions, constraints, labels | Primary repo only - not merged from additional repos. | Tool deduplication. When the same tool name appears in multiple repos (or matches a built-in tool), the first occurrence wins. This prevents duplicate tool schemas from being sent to the LLM. --- # Tools ## Overview Source: /docs#tools-registry - Markdown: /llms/tools-registry.md ## Tools Tools is a platform-managed library of reusable tools - scripts and MCP server endpoints - that agents and playbooks can use. Instead of re-defining tools in every `howler.yaml` file, teams can publish, share, and version tools centrally. #### Who can create tools **Every signed-in user can create tools.** Find them under `Build -> Tools` in the sidebar. You automatically own anything you create and can edit or delete it at any time. | Action | Who can do it | | --- | --- | | Create a tool | Any signed-in user. | | Edit or delete a tool | The author, team members (for team-visible tools), and admins. | | Share Private / Team / Space / Project | The author. | | Approve a Global tool | Admins only. | The single exception is `Global` visibility: because it exposes a tool to the whole workspace, an admin must approve it before anyone else sees it. Every other visibility takes effect immediately. #### Tool types Every tool in the registry has an **execution type** that determines how the agent invokes it: | Type | Description | Example | | --- | --- | --- | | `cmd` | A bash, Python, or PowerShell script that runs in the agent's workspace. | Run a migration script, capture a screenshot, lint files. | | `mcp` | A remote MCP (Model Context Protocol) server endpoint the agent calls over HTTP. | Query a GitHub MCP server, search a knowledge base. | #### Lifecycle Tools follow a review lifecycle to ensure quality and security before they become available to other users: - Created but not yet submitted. Only visible to the author. - Submitted for review. Admins can approve or reject. - Reviewed and cleared. Available per visibility rules. - Returned with feedback. Author can revise and resubmit. #### Visibility & ACLs Tools use the same access-control model as playbooks: | Visibility | Who can see / use | | --- | --- | | `Private` | Only the author. | | `Team` | Members of the assigned teams. | | `Space` | Members of the assigned spaces (groups of teams). | | `Global` | All authenticated Howler users. | ## CMD Tools Source: /docs#tools-cmd - Markdown: /llms/tools-cmd.md ### Creating a CMD Tool CMD tools wrap a script (bash, Python, PowerShell) that runs inside the agent's workspace container. When the agent invokes the tool, Howler writes your script to the workspace, runs the command template, and hands whatever the script prints to stdout back to the agent. #### Quickstart: your first tool The smallest tool that actually works. Create it from `Tools -> New Tool`, fill in these four fields, and save: | Field | Value | | --- | --- | | Name | Word Count | | Script file name | word_count.py | | Command | python word_count.py --text {{text}} | | Inputs | One string input with key text | ```python #!/usr/bin/env python3 """Counts words in the supplied text.""" import argparse, os parser = argparse.ArgumentParser() parser.add_argument("--text", default=os.environ.get("HOWLER_TOOL_ARG_TEXT", "")) args = parser.parse_args() print(f"{len(args.text.split())} words") ``` That is the whole contract: **inputs come in** as CLI arguments and/or environment variables, and **stdout goes back** to the agent. Everything else is optional. #### Form sections The tool form has five sections, plus More options: | Section | Purpose | | --- | --- | | About | Name and description. The agent reads the description to decide when to use the tool. | | Inputs | What the agent passes in each time it runs the tool. Each input gets a key, a type, and optionally a default value and allowed values. | | What it runs | The script file name, the script, and the command. Howler writes the script into the workspace before each run. Use {{input}} placeholders in the command. | | Secrets and settings | Encrypted credentials or settings the tool needs (e.g. an API token), set only while the tool runs. See Tool environment variables below. | | Who can use it | Visibility: who can see and attach the tool. | | More options | Identifier (the kebab-case name agents and YAML files use), tags, and the time limit in seconds. | #### How the script and command fit together These two fields are easy to get wrong because they must agree. Before every run, Howler writes **Script** to a file named **Script file name** at the **root of the workspace**, then executes **Command** from that same directory. | If Script file name is... | Then Command should be... | | --- | --- | | report.py | python report.py | | check.sh | bash check.sh | | scan.ps1 | pwsh -File scan.ps1 | Reference the script by its **bare filename**. A path like `python tools/report.py` fails with "No such file or directory", because Howler never creates a `tools/` directory. There is also no `{{script_file}}` placeholder - only your own input keys are interpolated. #### Passing inputs Every input parameter reaches your script **two ways**, and you can use whichever you prefer: | Mechanism | How it works | When to use it | | --- | --- | --- | | {{placeholders}} | Substituted into the command template, shell-escaped. A parameter with key camera becomes {{camera}}. | Scripts that already parse CLI flags, or wrapping an existing binary. | | HOWLER_TOOL_ARG_* | Always set, whether or not you use the placeholder. Key camera becomes HOWLER_TOOL_ARG_CAMERA (uppercased, dashes become underscores). | Avoiding quoting issues, or many optional inputs. | ```bash # Reading inputs from the environment (no placeholders needed): CAMERA="$HOWLER_TOOL_ARG_CAMERA" RES="$HOWLER_TOOL_ARG_RESOLUTION" echo "capturing from $CAMERA at $RES" ``` Pick one mechanism per input and stay consistent. Passing `--camera {{camera}}` in the command while the script only ever reads `HOWLER_TOOL_ARG_CAMERA` works, but the flag is silently ignored - which is confusing to debug later. #### Tool environment variables (credentials) A tool that calls an authenticated API can carry its own credentials. In the tool editor, add them under **Environment variables** (for example `ALATION_API_TOKEN`). They are stored encrypted and set **only while that tool runs**, for every user of the tool, so nobody has to add the token to their own environment variables. | Tool type | How the variables are used | | --- | --- | | cmd | Set in the script's process environment, e.g. os.environ["ALATION_API_TOKEN"]. They override job env vars of the same name for that tool only. | | mcp / http | Expanded in headers as $NAME or ${NAME}, e.g. Authorization: Bearer ${MY_TOKEN}. In the URL only the ${NAME} form is expanded. | Values are write-only: after saving, the editor shows only the names, and a blank value keeps the saved secret. Copying or exporting a tool drops them, and any value a tool prints is redacted from job output. Names use letters, digits and underscores, and the `HOWLER_` prefix is reserved. Note that these are shared credentials for the tool, not secrets hidden from the agent: the agent runs in the same workspace, so only attach credentials whose access you are happy for the tool's users to have. #### Example: camera-capture A complete CMD tool that captures an image and returns it as a native image result. Note how `scriptFileName` and `commandTemplate` agree, and how the script parses the very flags the template passes: ```yaml name: camera-capture displayName: Camera Capture description: Captures a frame from a network camera and returns the image. executionType: cmd scriptFileName: camera_capture.py commandTemplate: python camera_capture.py --camera {{camera}} --resolution {{resolution}} timeoutSeconds: 30 inputParameters: - key: camera type: string label: Camera ID required: true - key: resolution type: string label: Resolution required: false defaultValue: "1080p" outputs: native_content: true content_types: [image] script: | import argparse, base64, json, os from camera_sdk import capture_frame parser = argparse.ArgumentParser() parser.add_argument("--camera", default=os.environ.get("HOWLER_TOOL_ARG_CAMERA")) parser.add_argument("--resolution", default=os.environ.get("HOWLER_TOOL_ARG_RESOLUTION", "1080p")) args = parser.parse_args() frame = capture_frame(args.camera, args.resolution) # Emitting this JSON shape returns a real image instead of plain text. print(json.dumps({ "content": [{ "type": "image", "base64_data": base64.b64encode(frame).decode(), "mime_type": "image/png", "file_name": f"{args.camera}_capture.png" }] })) ``` #### Common mistakes | Symptom | Cause | Fix | | --- | --- | --- | | "No such file or directory" | The command template points at a path like tools/my_tool.py. | Use the bare filename - the script is written to the workspace root. | | Inputs are empty or default | The script reads a different name than the parameter key. | HOWLER_TOOL_ARG_ + the key, uppercased, with dashes as underscores. Key api-key becomes HOWLER_TOOL_ARG_API_KEY. | | Flags appear to be ignored | The command passes {{param}} but the script only reads env vars. | Parse the flags, or drop them from the template and rely on the env vars. | | Tool returns nothing | The script wrote to a file but never printed. | The agent only sees stdout - print a result or summary. | | Tool is killed mid-run | The work exceeds the configured timeout. | Raise Time limit (seconds) under More options; it defaults to 30. | | Other users cannot see it | A Global tool is still awaiting review. | Global tools appear for everyone only after an admin approves them. | ## MCP Tools Source: /docs#tools-mcp - Markdown: /llms/tools-mcp.md ### Creating an MCP Tool #### What is MCP The **Model Context Protocol (MCP)** is an open standard for connecting AI models to external tools and data sources. An MCP server exposes a set of tools via a JSON-RPC or Streamable HTTP interface. Howler's MCP tool type lets you connect to any MCP-compatible server and make its tools available to agents. #### Configuration An MCP tool requires two pieces of configuration: | Field | Description | | --- | --- | | `Server URL` | The HTTP endpoint of the MCP server (e.g. https://mcp.example.com/mcp). | | `API Key` | Optional authentication token sent as a Bearer header. | When the agent calls an MCP tool, it provides the `tool_name` (the name of the tool as exposed by the MCP server) and an `arguments` object matching the tool's input schema. #### Test Connection The **Test Connection** button sends a discovery request to the MCP server and lists all available tools - *without saving the tool first*. This lets you verify the server URL and API key before committing. Tip. Use Test Connection to explore what tools an MCP server provides. The discovered tool names are shown in a list - pick the one you want and Howler will set the tool name automatically. #### Example: GitHub MCP server ```yaml name: github-mcp displayName: GitHub MCP description: Interact with GitHub repositories via MCP. executionType: mcp mcpServerUrl: https://githubcsg.cec.delllabs.net/mcp apiKey: ghp_xxxxxxxxxxxx # The agent calls this tool with: # tool_name: "get_file_contents" # arguments: { owner: "myorg", repo: "myrepo", path: "README.md" } ``` ## Tools in Playbooks Source: /docs#tools-in-playbooks - Markdown: /llms/tools-in-playbooks.md ### Using Tools in Playbooks When you create or edit a playbook, the **Tools** section lets you attach one or more tools from the Tools library. When a user dispatches the playbook, those tools are automatically injected into the agent's available tool list alongside any tools defined in `howler.yaml`. | Step | Action | | --- | --- | | 1 | Open the playbook editor and scroll to the Tools section. | | 2 | Search for tools by name or browse the tools you can see. | | 3 | Click a tool to attach it. Attached tools show a checkmark. | | 4 | Save the playbook. Attached tools are persisted with the playbook. | Note. You can attach any tool you are able to see, whatever its review status. Approval only matters for making a tool visible to everyone (Global). ## Tools in Agents Source: /docs#tools-in-agents - Markdown: /llms/tools-in-agents.md ### Using Tools in Agent Definitions Agent definitions can reference tools from the Tools library. When you create or edit an agent definition, use the **Tools** section of the form to attach tools. These tools are injected into *every job* the agent creates. | Scenario | Tool resolution | | --- | --- | | Standalone execution | Agent definition tools + howler.yaml tools (if repo is set). | | Playbook dispatch | Playbook tools + agent definition tools + howler.yaml tools. | Tools are deduplicated by name (first wins). The order is: howler.yaml tools, then tools attached by the playbook or agent definition, then the project's default tools. So a tool in the repo's howler.yaml wins over an attached tool with the same name. ## Tools in howler.yaml Source: /docs#tools-yaml - Markdown: /llms/tools-yaml.md ### Tools in howler.yaml Tools defined in `howler.yaml` continue to work exactly as before. The Tools library is **additive** - registry tools are *merged* with YAML tools, never replacing them. ```yaml # howler.yaml -- these tools still work tools: - name: run_tests description: Run the project test suite. inputs: type: object properties: suite: { type: string } execution: type: cmd command: "./scripts/test.sh {{suite}}" timeout_seconds: 120 - name: search_docs description: Search internal docs via MCP. inputs: type: object properties: query: { type: string } execution: type: mcp url: https://mcp.internal/mcp tool: search headers: Authorization: "Bearer $DOCS_TOKEN" ``` #### Merge behavior | Source | When applied | Priority | | --- | --- | --- | | `howler.yaml` | Every job against this repo | Highest (wins on a name clash) | | Tools (via agent/playbook) | When the agent or playbook attaches them | Added unless howler.yaml already has that name | | Project default tools | Every job in the project | Added last, unless the name is already taken | If a registry tool and a YAML tool share the same `name`, the YAML tool is used and the registry tool is left out. Otherwise both are available to the agent. Give them different names if you need both. --- # Agent Definitions ## Overview Source: /docs#agent-definitions - Markdown: /llms/agent-definitions.md ## Agent Definitions An Agent Definition is a reusable, parameterized template for an AI agent. Think of it as a "saved agent recipe" - it captures the system prompt, model, mode, input/output parameters, and attached tools so the agent can be executed again and again. Who can use it. In the web app the Agents page is shown to admins only. Agent definitions can also be created and run through the API, and a repo can define agents in its howler.yaml . #### Components | Component | Description | | --- | --- | | `name` | Unique kebab-case identifier (e.g. code-reviewer). | | `displayName` | Human-readable name shown in the UI. | | `systemPrompt` | The prompt template. Supports {{parameter}} placeholders. | | `model` | Target LLM (e.g. claude-sonnet-4, gpt-4.1). | | `mode` | Agent mode: standard or consultant. | | `inputParameters` | Typed inputs the caller must (or may) supply at execution time. | | `outputParameters` | Declared outputs the agent produces. | | `tools` | Tools attached to this agent. | | `visibility` | Private, Team, Space, or Global. Same ACL model as playbooks. | | `requiresRepo` | Set to false for repo-less agents (research, data processing). | ## Creating an Agent Source: /docs#agents-creating - Markdown: /llms/agents-creating.md ### Creating an Agent Definition Create an agent definition from the **Agents** page, which the web app shows to admins only. Everything is on one form. | Step | Field | Details | | --- | --- | --- | | 1 | Name & Display Name | A unique kebab-case name and a human-readable display name. | | 2 | Description | A short summary of what the agent does. | | 3 | System Prompt | The core prompt. Use {{parameter}} placeholders for template variables. | | 4 | Model & Mode | Choose the LLM and agent mode (Standard or Consultant). | | 5 | Input Parameters | Define each input: key, type, label, description, required, default value. | | 6 | Output Parameters | Declare outputs: key, type, label, description. | | 7 | Tools | Attach tools from the Tools library. | | 8 | Visibility | Set access: Private, Team, Space, or Global. | #### Prompt templates Use `{{parameter}}` syntax in the system prompt to inject values at execution time. When a user executes the agent, they fill in the parameter values, and Howler replaces placeholders before sending the prompt to the LLM. ```yaml systemPrompt: | You are a senior code reviewer. Analyze the repository at {{repo_url}} on branch {{branch}}. Focus on: {{focus_areas}}. Produce your output as JSON: { "findings": [...], "risk_level": "low|medium|high", "summary": "..." } ``` #### Parameters Each parameter has a typed definition: | Field | Type | Description | | --- | --- | --- | | `key` | string | Unique identifier used in {{key}} placeholders. | | `type` | string | One of: string, number, boolean, json. | | `label` | string | Human-readable label shown in the UI. | | `description` | string | Help text shown below the input field. | | `isRequired` | boolean | Whether the parameter must be supplied. | | `defaultValue` | string | Default value if not supplied by the caller. | ## Example Agent Source: /docs#agents-example - Markdown: /llms/agents-example.md ### Example Agent Definition A complete agent definition in YAML format - this is the format used by Import/Export: ```yaml agents: - name: code-reviewer display_name: Code Review Agent description: Reviews code changes and produces structured findings system_prompt: | You are a senior code reviewer. Analyze the repository at {{repo_url}} on branch {{branch}}. Focus on: {{focus_areas}}. Produce your output as JSON: { "findings": [...], "risk_level": "low|medium|high", "summary": "..." } model: claude-sonnet-5 mode: standard requires_repo: true visibility: team input_parameters: - key: repo_url type: string label: Repository URL is_required: true - key: branch type: string label: Branch is_required: false default_value: main - key: focus_areas type: string label: Focus Areas is_required: false default_value: "security, performance, code quality" output_parameters: - key: findings type: json label: Findings description: Array of code review findings - key: risk_level type: string label: Risk Level - key: summary type: string label: Summary tools: - github-mcp # the tool's identifier in the Tools registry ``` Keys are snake_case and the agents sit in an `agents:` list, exactly as Export writes them. A tool is named by its registry identifier; import reports an error for a name the registry does not have, so create the tool first. ## Executing an Agent Source: /docs#agents-executing - Markdown: /llms/agents-executing.md ### Executing an Agent #### Via the UI From the **Agents** page, click the **Execute** button on any agent. A panel opens where you fill in the input parameters, repository URL, and branch. Howler creates a regular job with the agent's system prompt, model, tools, and parameters injected. Tip. The repository fields are always shown. For an agent that does not need a codebase ( requiresRepo: false ), leave them empty. #### Via the API `POST /v1/agent-definitions/{'{id}'}/execute` - Execute an agent definition, creating a new job. ```json { "userPrompt": "Review the authentication module for security issues.", "repoUrl": "https://github.com/myorg/myrepo", "branch": "feature/auth-refactor", "model": "claude-sonnet-4", "parameters": { "focus_areas": "security, input validation" } } ``` Response includes the `jobId` which you can use to poll status or stream IronWire updates. ## Agent Connections Source: /docs#agents-connections - Markdown: /llms/agents-connections.md ### Agent Connections Connections link agents into chains. A connection defines a **source** agent, a **target** agent, and a **trigger event** that determines when the target executes. #### Trigger events | Trigger | When target runs | | --- | --- | | `complete` | Source finished successfully. | | `error` | Source finished with an error. | | `always` | Source finished regardless of outcome. | #### Data mapping Data mappings pipe output from the source agent into input parameters of the target agent. Each mapping has three fields: | Field | Description | | --- | --- | | `sourceOutput` | The output key from the source agent. | | `targetInput` | The input parameter key on the target agent. | | `transform` | Stored with the mapping, but not applied when one agent hands over to the next: the value is passed as it is. | With no mappings, the target receives the source's whole output as `previous_output`. In YAML (a repo's `howler.yaml`, and Import/Export) a connection carries only its target and trigger; data mappings are not read from YAML. ```yaml connections: - target: summarizer on: complete ``` --- # Workers & Containers ## How jobs run Source: /docs#workers-runtime - Markdown: /llms/workers-runtime.md ### How jobs run Every job runs on a **worker**: a program that takes the job, clones the repository, runs the agent's commands and sends the live activity back to Howler. Howler has shared workers ready, so you need nothing on this page to run a job. Read on when you want to know where a job ran, or when you want jobs to run on machines and environments of your own. #### Where a job can run When you dispatch a job, **Where should it run?** offers these choices: | Choice | What it means | | --- | --- | | Container (default) | An isolated environment created for this one job. Pick Linux, Windows or Both; Both takes whichever is free first. | | My computer | Your own machine, through the worker that comes with Howler Desktop or one you installed. The job uses your tools, files and network. | | Howler cloud | The shared cloud worker pool. Shown only where it is turned on. | | Project pool | Only the project's own pool workers, never a shared container worker. Shown when the job's project has pool workers; without a project or pool the composer uses Container. | #### How a worker is chosen For a container job, Howler looks for a worker in this order: | Order | Worker | When | | --- | --- | --- | | 1 | A worker of the job's project | The project has workers of its own and the OS is left on Both. | | 2 | A shared container worker | No project worker can take the job. With Linux or Windows chosen, only container workers of that OS are tried. | **Labels** narrow the choice. A worker carries labels such as `default` or `gpu`, and a repository can ask for them in its `howler.yaml`: ```yaml worker: labels: - gpu # only workers that carry every label listed here fallback: none # none = wait for such a worker; default = any other worker may take it ``` Among the workers that qualify, the one with the most free CPU and memory gets the job. #### When a job waits If no container worker can take the job, it stays `Pending` and its page shows **Waiting for a container worker**. It starts by itself as soon as one is free. If you chose one OS, the message names it; stop the job and send it again with Both to let either OS take it. #### After a job ends The job's container stays ready for about 30 minutes, so a follow-up message continues at once. After that the container is released, but the workspace is kept for up to 72 hours: a later follow-up picks up the same files without cloning again. Then the workspace is deleted. These are the defaults; an admin can change them. #### Making it your own - **Run your own worker** - Run jobs on your machine or a server you control. - **Worker pools** - Give a project several workers of its own. - **Custom environments** - Add the tools a job needs, or bring your own image. ## Run your own worker Source: /docs#own-worker - Markdown: /llms/own-worker.md ### Run your own worker A worker of your own runs jobs on a machine you choose: your PC, a build server, a VM inside a private network. You install it with one command, and it connects out to Howler; nothing has to reach in. #### When you need one | You want | Use | | --- | --- | | Jobs to use the tools and files on your own Windows PC | Howler Desktop. It includes a worker; choose My computer when you dispatch. | | The same on a Linux machine, or on a PC without Howler Desktop | A personal worker, set up below with Local (user). | | Jobs of a project to run on servers your team controls | A project worker, set up below with that project. | #### Set it up Any signed-in user can set up a personal worker. A project worker needs edit rights on that project. | Step | What to do | | --- | --- | | 1 | Open **Worker Provisioning**. A project's Settings also link there from the Workers card (Set up a worker). | | 2 | Under **Project**, keep **Local (user)** for a personal worker that runs only your jobs, or pick the project the worker is for. | | 3 | Set **Labels** if jobs should be able to ask for this worker by label. The default is `local` for a personal worker and `default` for a project worker. | | 4 | Click **Generate Provisioning Link**, choose the tab for your system, and run the command it shows on the machine that will be the worker. | A link works once, for 10 minutes Generate a new link for each machine. The installer trades the link for a token that belongs to that worker. The token renews by itself while the worker keeps connecting; a worker that stays offline for 90 days has to be set up again. The Worker Provisioning page lists your worker tokens, and **Revoke** cuts a worker off at once. #### Install commands The page fills in the link and the worker type for you. The commands look like this: ```bash # Linux: installs the worker as a systemd service curl -fsSL 'https://howler.dell.com/v1/install/linux-worker' | sudo bash -s -- \ --provision-link 'howler-worker://provision?token=pt_xxx&apiBase=...' \ --worker-type 'local' # Linux, with the Howler CLI as well curl -fsSL 'https://howler.dell.com/v1/install/linux-cli' | sudo bash -s -- \ --provision-link 'howler-worker://provision?token=pt_xxx&apiBase=...' \ --worker-type 'local' ``` On **Windows**, the command only bootstraps: it downloads the Dell-signed **Howler Installer** from the same server, checks its signature and opens it with the link. The installer installs the worker if the PC has none and links it; it asks Windows for Administrator rights itself, so no elevated shell is needed. The worker type comes from the link's provisioning session. ```powershell # Windows (PowerShell): & ([scriptblock]::Create((irm 'https://howler.dell.com/v1/install/windows-worker'))) ` -ProvisionLink 'howler-worker://provision?token=pt_xxx&apiBase=https://howler.dell.com' ``` Worker tokens do not authenticate the CLI A provisioning link sets up the **worker**. The token it mints is Worker-scoped and is deliberately rejected by the REST API, so it cannot be used to sign in to the Howler CLI. After installing the CLI, run `howler` once and use `/login` to authenticate interactively. #### Video walkthrough Setting up a Linux worker and dispatching to it from the CLI, start to finish: #### Worker types The provisioning link sets the type for you. You only pass it yourself with `--worker-type`: | Type | Value | Which jobs it runs | | --- | --- | --- | | Personal worker | `local` | Only your own jobs, when you choose My computer. | | Project worker | `project_pool` | Jobs of the project it was set up for. Several of them form a pool. | | Shared worker | `connected_pool` | Shared capacity that is not tied to one project. Run by the people who operate Howler. | #### Installer options Add these to the Linux command, after `--`, to change the defaults: | Option | What it sets | | --- | --- | | `--labels` | Comma-separated labels, when you want others than the ones in the link. | | `--worker-id` | The name the worker shows under (default `linux-`). | | `--worker-dir` | Where the worker is installed (default `/opt/howler-worker`). | | `--workspace-path` | Where job workspaces are kept (default `/var/lib/howler/workspaces`). | Run from a script with no terminal, the installer asks nothing: it needs the link (or a type and a token) on the command line and stops with `Missing required settings` if they are absent. #### Settings the installer writes The installer writes the worker's configuration and credentials into an environment file at `/etc/howler-worker/worker.env` (mode 600, restricted to root). The launcher at `/opt/howler-worker/run.sh` contains no embedded secrets. Edit settings in `/etc/howler-worker/worker.env` and run `sudo systemctl restart howler-worker` to apply changes. | Variable | Description | | --- | --- | | `WorkerSettings__BackendUrl` | WebSocket URL to the backend (e.g. wss://howler.dell.com/v1/worker/connect) | | `WorkerSettings__WorkerId` | Unique worker identifier (default: linux-) | | `WorkerSettings__WorkerType` | Worker type: local, project_pool, or connected_pool | | `WorkerSettings__WorkspacePath` | Directory for job workspaces (default: /var/lib/howler/workspaces) | | `WorkerSettings__ProjectIds__0` | Project ID for project_pool workers (indexed array) | | `WorkerSettings__Labels__0` | Worker labels (indexed: Labels__0, Labels__1, etc.) | | `HOWLER_WORKER_BEARER_TOKEN` | Bearer token for worker authentication | ## Worker pools Source: /docs#worker-pools - Markdown: /llms/worker-pools.md ### Worker pools A worker pool is several workers set up for the same project. The project's jobs run on those machines first, so a team gets capacity of its own, on its own network, with its own tools installed. #### Build a pool | Step | What to do | | --- | --- | | 1 | On **Worker Provisioning**, pick the project under **Project**. You need edit rights on it. | | 2 | Generate a provisioning link and run its command on the first machine. See Run your own worker. | | 3 | Repeat for each further machine. A link works once, so generate a new one every time. | There is nothing else to create: every worker set up for the project is part of its pool, and the pool grows or shrinks as workers connect and disconnect. #### Which jobs it takes | Job | What happens | | --- | --- | | A job of the project, sent to Container with Both | Runs on a pool worker. With several connected, the one with the most free CPU and memory takes it. | | The same job while no pool worker is connected | Runs on a shared container worker instead. | | A job sent with Linux or Windows chosen | Skips the pool and runs on a container worker of that OS. | | An automation whose target is Project pool | Runs only on the pool. With no pool worker connected it fails with `No project pool workers are connected for this project.` | A pool worker runs the job directly on its machine, so the job sees what is installed there. #### Split a pool with labels Give some workers an extra label when you set them up (the **Labels** field, for example `default, gpu`). A repository then asks for those workers in its `howler.yaml`: ```yaml worker: labels: - gpu fallback: none # wait for a gpu worker instead of running somewhere else ``` Leave `fallback` out (or set `default`) to let another worker take the job when no labelled one is connected. #### See and remove workers A project's Settings list its workers on the Workers card. To remove a worker, revoke its token on Worker Provisioning; it disconnects and takes no more jobs. Admins see every worker under Worker Fleet. ## Custom environments Source: /docs#custom-containers - Markdown: /llms/custom-containers.md ### Custom environments A container job starts in Howler's standard image. When a job needs more than that, there are three ways to give it, from the least work to the most. #### What the standard container has | Part | Standard Linux image | | --- | --- | | System | Ubuntu 24.04 | | Languages | Python with pip, .NET, Node.js with npm | | Tools | git, bash, curl, jq, gcc, make, gh, glab | | User | A regular user, `runner` (uid 1000), not root | | Workspace | The repository is cloned into `/workspace` | Installs that need no root work during a job: `pip install`, `npm install -g`, `dotnet tool install -g`. Where containers run without root, `apt-get` and `sudo` do not; put such tools into an image instead. #### 1. A setup script, for one repository Add a setup script to the repository's `howler.yaml`. It runs once after the clone, before the agent starts, on every job for that repository. Nothing has to be built or published. See Environment setup. ```yaml environment: setup_script: | npm ci pip install -r requirements.txt ``` #### 2. Your own image, for one job A job started through the API can name the image its container is made from, with the `image` field of Deploy a job. The job dialog in the web app has no image field, and a repository's `howler.yaml` cannot choose one. ```bash curl -X POST https://howler.dell.com/v1/jobs/deploy \ -H "X-Howler-Service-Token: $HOWLER_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "repo_url": "https://github.example.com/org/repo", "branch_name": "main", "user_prompt": "Run the hardware-in-the-loop tests and fix what fails", "mode": "standard", "image": "registry.example.com/team/hil-runtime:1.4" }' ``` The image has to meet these conditions: | Condition | Why | | --- | --- | | The worker can pull it | Use a registry the workers are allowed to pull from. A name without a registry is looked up in the workers' own registry. If the pull fails, the job fails. | | It has git and a shell | The worker clones the repository and runs commands inside the container (bash on Linux, PowerShell on Windows). | | It runs as a regular user with uid 1000 | Workers on Kubernetes refuse root containers, and that user has to be able to write `/workspace`. | The simplest way to meet all three is to build on the standard image and add your tools as root before switching back to the regular user. Ask your Howler admin for its registry path. ```dockerfile FROM /howler-worker-runtime-linux:latest USER root RUN apt-get update \ && apt-get install -y --no-install-recommends imagemagick \ && rm -rf /var/lib/apt/lists/* USER 1000 ``` A job with its own image starts a little slower: it gets a fresh container instead of one that was kept ready. #### 3. Your own machines, for a project When the environment is a machine rather than an image (licensed tools, attached hardware, a private network), install a worker on it. Jobs then run on that machine with everything it has. See Run your own worker and Worker pools. ## Container pools (admins) Source: /docs#container-pools-runtime - Markdown: /llms/container-pools-runtime.md ### Container pools Container Pools is an admin page. A pool describes one shape of container and how many of it to keep; the page shows, per pool, how many containers are available, in use, being created or failed. To give a project capacity of its own, use a worker pool instead. | Field | Meaning | | --- | --- | | Name | What the pool is called. | | Base image | The image the containers start from. | | Runtimes, Toolchains | What the containers must have. Together with the base image they make up the flavor of the pool. | | Min size, Max size | How many containers the pool keeps, at least and at most. | | Max age (hours) | How long a container may live before it is replaced. | | Enabled | Turns the pool on or off without deleting it. | --- # Reference ## Downloads & install matrix Source: /docs#downloads-install - Markdown: /llms/downloads-install.md ### Downloads & install matrix Most users can run jobs from the web with no local install. Add local tools when you want Howler closer to your terminal, editor, or workstation runtime. | Tool | Install when | Where to start | | --- | --- | --- | | Web app | You want hosted dispatch, review, and steering with no setup. | Open Command Center. | | Howler Desktop (recommended) | You want the full bundle - IDE, worker, and CLI in one install. | Download from Get Howler. | | Worker | Jobs need local/private dependencies or more team capacity. | Use Get Howler / worker provisioning. | | CLI | You prefer terminal dispatch and streaming. | Install the CLI and run howler login. | | Mobile | You need lightweight monitoring, prompts, or notifications on the go. | Install the mobile app when available for your environment. | ## Job statuses Source: /docs#job-statuses - Markdown: /llms/job-statuses.md ### Job statuses A job moves through a small set of statuses over its lifetime. | Status | Meaning | | --- | --- | | `Pending` | Queued, awaiting a worker. | | `Assigned` | Picked up by a worker, preparing to run. | | `Running` | Agent loop is active. | | `Disconnected` | The worker running the job lost its connection. Howler continues the job when it can. | | `Resuming` | The job is being picked up again after a disconnect or a continue. | | `WaitingForInput` | Guided job paused for a user response. | | `Completed` | Finished successfully. | | `Failed` | Ended with an error. | | `Archived` | Removed from the active list. | ## Integrations overview Source: /docs#integrations - Markdown: /llms/integrations.md ### Integrations overview Integrations bring repository, work item, documentation, and client context into one agent workflow. Link accounts from Settings before using protected sources in jobs. #### GitHub GitHub is required for repo-based jobs on GitHub-hosted repositories. Howler uses linked GitHub identity to search repositories, select branches, clone code, push commits, and open pull requests. #### GitLab GitLab works alongside GitHub for teams that host repositories on GitLab. Link your GitLab account from Settings to search GitLab repositories, select branches, and dispatch repo-based jobs - the same workflow as GitHub. #### Jira & Confluence - **Jira** - Attach ticket context to planning and implementation jobs so the agent sees requirements and acceptance criteria. - **Confluence** - Use pages and spaces as source context for your jobs. #### Clients & tools - **CLI** - Dispatch and stream jobs from a terminal. - **Mobile** - Use the mobile app for lightweight job monitoring, prompts, and notifications when available. #### Setting up GitHub - **Open Settings** - Open Settings from the sidebar. - **Open Connections** - In Settings → Connections you may see one or more GitHub instances (for GitHub Enterprise environments). - **Click Connect** - Click Connect next to the instance you want to connect. - **Complete OAuth** - Complete the browser-based OAuth flow. - **Confirm connection** - Once connected, you'll see a green "Connected" status. You can now search repositories, select branches, and dispatch repo-based jobs. Note. A linked GitHub or GitLab account is required for any job that targets a repository on that platform. Without either, you can still use Consultant for non-repo work. Multiple instances. If your organization uses multiple GitHub Enterprise instances, you can connect each one independently from Settings. #### Setting up GitLab - **Open Settings** - Open Settings from the sidebar. - **Find the GitLab row** - It is in Settings → Connections, with the other accounts. - **Click Connect** - Click Connect on the GitLab row to begin the OAuth flow. - **Complete OAuth** - Sign in to your GitLab account and authorize Howler. - **Confirm connection** - Once connected, you'll see a green "Connected" status with your GitLab username. You can now search GitLab repositories, select branches, and dispatch repo-based jobs. Note. GitLab is used for repositories hosted on GitLab. If your team uses both GitHub and GitLab, you can link both accounts and Howler will use the correct provider based on the repository URL. #### Setting up Jira - **Open Settings** - Open Settings from the sidebar. - **Find the Jira row** - It is in Settings → Connections. A row that reads "Not available" cannot be connected on this Howler. - **Click Connect** - Click Connect on the Jira row and pick your Jira instance. - **Approve access** - You are sent to Jira to approve access, then brought back to Howler. Or choose "Use a personal access token instead" and enter the Jira URL and a Server/DC personal access token. - **Use ticket context** - Once connected, your jobs can read Jira tickets as context. Note. Jira context gives agents access to ticket descriptions, acceptance criteria, and comments - so they understand the requirements behind the work. #### Setting up Confluence - **Open Settings** - Open Settings from the sidebar. - **Find the Confluence row** - It is in Settings → Connections, next to Jira. - **Click Connect** - Click Connect on the Confluence row and pick your Confluence instance. - **Approve access** - Approve access in Confluence, or choose "Use a personal access token instead" and enter the Confluence URL and a Server/DC personal access token. No email is needed. - **Use pages as context** - Once connected, your jobs can read Confluence pages as context. Note. Confluence is especially useful for research and planning - point the agent at your design docs, runbooks, or architecture pages to ground its investigation in your team's existing documentation. #### What each integration enables | Integration | Required for | Enables | | --- | --- | --- | | GitHub | All GitHub repo-based jobs | Repository search, branch selection, code cloning, commit pushing, PR creation, /howl PR commands | | GitLab | All GitLab repo-based jobs | Repository search, branch selection, code cloning, commit pushing, and merge request creation on GitLab-hosted repos | | Jira | Optional | Ticket context in Consultant and Command Center - requirements, acceptance criteria, comments | | Confluence | Optional | Page and space context for jobs | | Mobile App | Optional | Lightweight job monitoring, push notifications, and prompt responses on the go | ## Glossary Source: /docs#glossary - Markdown: /llms/glossary.md ### Glossary Key terms you'll encounter across Howler. | Term | Definition | | --- | --- | | `Agent` | The AI worker that executes a job in a given mode using a tuned system prompt and tools. | | `Mode` | The behavior profile for a job - e.g. standard, consultant, orchestrator. | | `Pulse` | A single streamed event from the agent (a thought, tool call, result, etc.) carried over IronWire. | | `IronWire` | Howler's WebSocket protocol for streaming live job activity to clients. | | `Steering` | Sending a message to a running agent that is injected into its loop immediately. | | `Playbook` | A saved, reusable prompt recipe the team can dispatch consistently. | | `Worker` | The runtime that picks up queued jobs and runs the agent loop. | ## FAQ Source: /docs#faq - Markdown: /llms/faq.md ### Frequently asked questions - **Do I need to install anything to run a job?** - No. Agents run on Howler workers. Howler Desktop and the CLI are optional conveniences for dispatching and streaming from your own environment. - **Can I talk to the agent while it's working?** - Yes - anytime. Howler injects your message into the agent loop immediately, so you can redirect or add context without waiting for it to reach a stopping point. See Full agent steering. - **What is the difference between Playbooks and Cron?** - Playbooks are reusable prompt recipes you trigger on demand; Cron schedules tie a fixed prompt to a recurring time-based trigger. - **How do I trigger a job from CI?** - Mint a service token and call the REST API, or drop in the reusable GitHub Action workflow. See Triggers & Tokens. - **Who can use /howl on a PR?** - Any registered, active Howler user whose GitHub account is linked. The repo does not have to belong to a Howler project; when it does, the job is attributed to that project. ## Troubleshooting Source: /docs#troubleshooting - Markdown: /llms/troubleshooting.md ### Troubleshooting | Symptom | Likely cause & fix | | --- | --- | | /howl does nothing on my PR | Your GitHub account may not be linked, or your Howler account is not active yet. Howler usually replies on the PR explaining what to fix. | | Service token returns 401 | The token is missing, revoked, or expired. Mint a fresh one and send it in the X-Howler-Service-Token header. | | Job stuck in Pending | No worker is available for the requested labels. Check worker fleet status, or confirm howler.yaml worker labels are reachable. | | howler.yaml changes ignored | Invalid YAML produces warnings, not failures. Check the job log for parse warnings and confirm the file is at the repo root. | | Agent didn't see my message | Steering is immediate, but the message must be sent to the active job. Confirm you're in the running job's terminal. | ## Next steps Source: /docs#next-steps - Markdown: /llms/next-steps.md ### Next steps - **Help Center** - FAQs, troubleshooting, and a guided tour of every feature. - **Get Howler** - Download Howler Desktop - everything in one install. Worker and CLI also available individually. - **Blog** - Platform updates, engineering tips, and best practices. --- # API ## Overview Source: /docs#api-overview - Markdown: /llms/api-overview.md ## Howler API The Howler REST API lets you programmatically dispatch coding agent jobs, monitor progress in real time, send follow-up input, and manage the full job lifecycle. All endpoints live under the `/v1/jobs` prefix and accept/return JSON. #### Base URL ``` https://howler.dell.com ``` All examples in this reference use the production base URL. #### Quick reference Every endpoint at a glance. Click any row to jump to the detailed documentation. Method Endpoint Description - Create and dispatch a new job - List jobs (paginated) - Get job details + pulse history - Batch status check - Send input to a running job - Continue a completed/stopped job - Stop a running job - Mark job as completed - Switch LLM model mid-job - Toggle guided/autonomous or switch agent mode - Upload files to an active job - Permanently delete a job - Archive a job - Restore an archived job - Update job visibility - List share links - Create a share link - Revoke a share link - List playbooks - Dispatch a job from a playbook - List automation schedules - Create a cron or GitHub-event automation - Trigger a schedule immediately #### Conventions ##### snake_case JSON Jobs and pulses use `snake_case` field names. Some wrappers and request bodies use camelCase instead: the list envelope (`totalCount`, `createdAt`), visibility and share requests, playbooks and schedules. Each page shows the names as they are on the wire. ##### Content-Type All request bodies must be `application/json` unless noted otherwise (file uploads use `multipart/form-data`). ##### Pagination List endpoints use `limit` and `offset` query parameters. Default limit is 50. ##### Authentication Every request requires authentication via service token, bearer session, or session cookie. #### Rate limits | Limit | Value | Description | | --- | --- | --- | | Active job cap | Per-user | Maximum number of concurrently running jobs. Exceeding this returns 429. | | Deploy burst | Per-user per-minute | Rapid-fire deploy requests are throttled to prevent runaway automation. | | Input burst | Per-job | Inputs sent faster than the agent can process are queued, not rejected. | When rate-limited, the API returns `429 Too Many Requests` with a descriptive error body. ## Authentication Source: /docs#api-auth - Markdown: /llms/api-auth.md ### Authentication The Jobs API supports three authentication methods. At least one must be provided with every request. #### Service token (CI / automation) The recommended method for CI/CD pipelines, scripts, and programmatic access. Create tokens in **Settings → Developer**. Tokens use the `hwl_` prefix. ```http POST /v1/jobs/deploy HTTP/1.1 Host: howler.dell.com X-Howler-Service-Token: hwl_your_service_token_here Content-Type: application/json ``` ```http POST /v1/jobs/deploy HTTP/1.1 Host: howler.dell.com Authorization: Bearer hwl_your_service_token_here Content-Type: application/json ``` ```bash curl -k -X POST https://howler.dell.com/v1/jobs/deploy \ -H "Content-Type: application/json" \ -H "X-Howler-Service-Token: hwl_your_token" \ -d '{"user_prompt": "Fix the tests"}' ``` #### Bearer session token (web / mobile) Pass a Howler session token (obtained via Dell Identity OAuth) as a Bearer token: ```http POST /v1/jobs/deploy HTTP/1.1 Host: howler.dell.com Authorization: Bearer Content-Type: application/json ``` #### Session cookie (browser) Browser clients automatically include the `howler_gh_session` cookie. No explicit header needed. #### GitHub access for repo-bound jobs Jobs with `repo_url` or `additional_repos` also require GitHub access. This is resolved automatically based on your auth method: | Auth method | GitHub resolution | | --- | --- | | Service token | GitHub App installation token resolved from the repo's org | | Session token | User's linked GitHub OAuth token | No GitHub token? If no token can be resolved for a repo-bound job, the API returns 401 with a descriptive code field. ## Deploy a job Source: /docs#api-deploy - Markdown: /llms/api-deploy.md ### Deploy a job `POST /v1/jobs/deploy` - Creates and dispatches a new coding agent job. Also available at POST /deploy (root-level alias). #### Example requests ```bash curl -k -X POST https://howler.dell.com/v1/jobs/deploy \ -H "Content-Type: application/json" \ -H "X-Howler-Service-Token: hwl_your_token" \ -d '{ "repo_url": "https://github.example.com/org/repo", "branch_name": "main", "user_prompt": "Add unit tests for the UserService class", "mode": "standard" }' ``` ```python import requests response = requests.post( "https://howler.dell.com/v1/jobs/deploy", headers={ "Content-Type": "application/json", "X-Howler-Service-Token": "hwl_your_token", }, json={ "repo_url": "https://github.example.com/org/repo", "branch_name": "main", "user_prompt": "Add unit tests for the UserService class", "mode": "standard", }, ) print(response.json()) # {"job_id": "a1b2c3d4-...", "assigned_to": "worker-01"} ``` ```typescript const response = await fetch( "https://howler.dell.com/v1/jobs/deploy", { method: "POST", headers: { "Content-Type": "application/json", "X-Howler-Service-Token": "hwl_your_token", }, body: JSON.stringify({ repo_url: "https://github.example.com/org/repo", branch_name: "main", user_prompt: "Add unit tests for the UserService class", mode: "standard", }), } ); const data = await response.json(); console.log(data); // { job_id: "a1b2c3d4-...", assigned_to: "worker-01" } ``` Full request body (with optional fields) ```json { "repo_url": "https://github.example.com/org/repo", "branch_name": "feature/my-branch", "user_prompt": "Review this PR for correctness and security issues", "mode": "standard", "model": "claude-sonnet-4-20250514", "pr_number": 123, "pr_url": "https://github.example.com/org/repo/pull/123", "env_vars": { "NODE_ENV": "test", "CUSTOM_FLAG": "true" }, "additional_repos": [ { "url": "https://github.example.com/org/shared-lib", "branch": "main" } ], "visibility": "team", "audience_access": "contributor", "worker_target_mode": "container", "howler_config": { "tool_ids": ["3f1c...", "9ab2..."], "prompt": { "constraints": ["Never modify files under /generated"] }, "instructions": "Prefer small, reviewable commits." } } ``` #### Core fields | Parameter | Type | Description | | --- | --- | --- | | `repo_url` | `string` | Default: `""`. Repository URL to clone. Required for repo-bound jobs. | | `branch_name` | `string` | Default: `""`. Branch to check out. | | `user_prompt` (required) | `string` | The prompt / instructions for the coding agent. | | `mode` | `string` | Default: `"standard"`. Job mode - see Mode values below. | | `model` | `string` | Default: `Server default`. LLM model override. | | `provider` | `string` | LLM provider override. | #### Pull request & issue context | Parameter | Type | Description | | --- | --- | --- | | `pr_number` | `int` | Pull request number. | | `pr_url` | `string` | Pull request URL. | | `pr_repo_owner` | `string` | PR repository owner/org. | | `pr_repo_name` | `string` | PR repository name. | | `issue_number` | `int` | Issue number. | | `issue_url` | `string` | Issue URL. | | `issue_repo_owner` | `string` | Issue repository owner/org. | | `issue_repo_name` | `string` | Issue repository name. | #### Environment & repos | Parameter | Type | Description | | --- | --- | --- | | `env_vars` | `object` | Default: `{}`. Key-value map of environment variables to inject. | | `additional_repos` | `RepoDefinition[]` | Default: `[]`. Additional repositories to clone alongside the primary repo. Each entry: `{"url": "...", "branch": "..."}` | | `image` | `string` | Direct Docker image reference (e.g. `ubuntu:22.04`). Takes precedence over container_spec_id. | | `container_spec_id` | `string` | ID of a predefined container spec to use. | #### Worker routing | Parameter | Type | Description | | --- | --- | --- | | `worker_target_mode` | `string` | Worker selection: `"local"`, `"container"`, or null (pool). | | `container_os` | `string` | Container mode only: `"linux"` or `"windows"` runs the job only on container workers of that OS, never on project pool workers. With none connected, the job waits as Pending. Omit for either OS. | | `target_worker_ids` | `string[]` | Default: `[]`. Explicit worker IDs to target (admin only for pool/container). | | `execution_mode` | `string` | Agent execution: `"native"` (default) or `"acp"`. | #### Visibility & sharing | Parameter | Type | Description | | --- | --- | --- | | `visibility` | `string` | Default: `"personal"`. Scope: `"personal"`, `"team"`, `"space"`, `"project"`, `"public"`. | | `audience_access` | `string` | Default: `"viewer"`. Default role for the audience: `"viewer"` or `"contributor"`. | | `share_teams` | `JobScopeGrant[]` | Default: `[]`. Team grants. Each: `{"id": "...", "role": "viewer"}` | | `share_spaces` | `JobScopeGrant[]` | Default: `[]`. Space grants. Each: `{"id": "...", "role": "viewer"}` | | `project_id` | `string` | Project ID to associate the job with. | #### Mode-specific fields | Parameter | Type | Description | | --- | --- | --- | | `consultant_persona` | `string` | Persona for consultant mode. | | `deliverable_type` | `string` | Deliverable type for consultant mode. | | `is_guided` | `bool` | Enable guided / interactive mode. | | `experimental` | `bool` | Enable experimental features. | **Mode values:** | Mode | Description | | --- | --- | | `"standard"` | Default coding agent mode | | `"consultant"` | Advisory mode with configurable persona | | `"orchestrator"` | Meta-agent that delegates sub-jobs | #### Advanced fields | Parameter | Type | Description | | --- | --- | --- | | `enable_jira` | `bool` | Ignored. Jira is available to a job when the user it runs as has connected Jira in Settings. | | `enable_confluence` | `bool` | Ignored. Confluence is available when the user has connected Confluence in Settings. | | `skills` | `string[]` | Skill tags for the job. | | `prompt_template_id` | `string` | Prompt template ID from Prompt Kit. | | `prompt_version` | `string` | Prompt template version. | | `acp_config` | `string | object` | ACP config options. | | `source_type` | `string` | Job source type (auto-set if omitted). | | `source_id` | `string` | Source identifier. | | `source_label` | `string` | Human-readable source label. | | `howler_config` | `object` | Inline howler.yaml-equivalent config (tools, prompt guidance, instructions) applied to this dispatch - see `howler_config` below. | | `output_parameters` | `AgentParameterDefinition[]` | Default: `[]`. Declares a typed `outputs` schema for this job's `task_complete` tool - see `output_parameters` below. | #### Inline howler.yaml config (`howler_config`) Repos normally configure agent behaviour by committing a `howler.yaml` file. `howler_config` lets an API caller supply the same kind of configuration inline, per dispatch - useful when you do not own the target repo, or when a single automation needs different tools and guardrails per run. **Merge behaviour:** if the target repo also ships a `howler.yaml`, the two are merged and **the API payload wins on conflicts**. List fields (prompt constraints/requirements/notes) are unioned - repo entries first, then yours, de-duplicated case-insensitively. Scalar fields (`instructions`) are overridden outright. Anything the API does not set is left exactly as the repo defined it. Every override is recorded in the job's config warnings so the merge is auditable. ```json { "repo_url": "https://github.example.com/org/repo", "user_prompt": "Harden the auth middleware", "howler_config": { "tool_ids": ["3f1c...", "9ab2..."], "prompt": { "constraints": ["Never modify files under /generated"], "requirements": ["Add unit tests for every new branch"], "notes": ["The integration suite is flaky on Windows runners"] }, "instructions": "Prefer small, reviewable commits. Run ./scripts/lint.ps1 before finishing." } } ``` | Parameter | Type | Description | | --- | --- | --- | | `howler_config.tool_ids` | `string[]` | Default: `[]`. Registry tool IDs to attach to this job, equivalent to the `tools:` section of howler.yaml. IDs are resolved against the tool registry and access-checked against the caller - an unknown or inaccessible ID fails the request with `403`. Maximum 20. | | `howler_config.prompt.constraints` | `string[]` | Default: `[]`. Hard limits the agent must respect. Unioned with the repo's constraints. | | `howler_config.prompt.requirements` | `string[]` | Default: `[]`. Things the agent must do. Unioned with the repo's requirements. | | `howler_config.prompt.notes` | `string[]` | Default: `[]`. Background context for the agent. Unioned with the repo's notes. | | `howler_config.instructions` | `string` | Free-form instruction block, equivalent to `instructions:` in howler.yaml. Replaces the repo's instructions when both are present. Truncated at 10,000 characters. | **Limits:** each list accepts at most 20 entries and each entry is truncated to 400 characters - identical to the caps applied to YAML-sourced config. Over-limit input is trimmed rather than rejected, and a warning is attached to the job. **Note:** `repo_execution_config` is not accepted on the request body. It is an internal, server-populated representation; use `howler_config` instead so your input is validated, access-checked, and merged predictably. #### Declaring structured outputs (`output_parameters`) Normally a job's structured-output schema comes from the agent definition it was launched from (see `outputParameters` on Agent Definitions). `output_parameters` lets a deploy caller declare that same schema **directly on the job**, with no agent definition involved - useful for one-off automation and CI jobs that need typed, machine-readable results back instead of parsing prose out of the summary. When `output_parameters` is non-empty, the worker's `task_complete` tool gains a typed `outputs` argument - one property per declared key - and the **output gate** blocks completion until every `is_required` key has been supplied (up to a repair budget of 3 attempts, after which the job is allowed to complete anyway). Produced values are returned on the job as the top-level `outputs` field - see Structured outputs on the List & get jobs page for the full lifecycle. Jobs that omit `output_parameters` are unaffected - `task_complete` stays `summary`-only. Each entry is an `AgentParameterDefinition`: | Parameter | Type | Description | | --- | --- | --- | | `key` (required) | `string` | Machine key used as the property name in the tool schema and in the `outputs` object. | | `type` | `string` | Default: `"string"`. Declared logical type: `"string"`, `"number"`, `"boolean"`, or `"json"`. | | `label` | `string` | Optional human-friendly label. | | `description` | `string` | Optional description shown to the model to guide what value to supply. | | `is_required` | `bool` | Default: `false`. When true, the output gate blocks `task_complete` until this key is present (non-null, non-whitespace). | | `default_value` | `string` | Optional default value (as a string). | Example ```json { "repo_url": "https://github.example.com/org/repo", "user_prompt": "Review this PR for correctness and security issues", "output_parameters": [ { "key": "verdict", "type": "string", "description": "approve | request_changes | comment", "is_required": true }, { "key": "risk_level", "type": "string", "description": "low | medium | high", "is_required": true }, { "key": "issues_found", "type": "number", "description": "Count of issues flagged", "is_required": false } ] } ``` On completion, the job's `outputs` field would then contain, e.g.: ```json { "verdict": "request_changes", "risk_level": "medium", "issues_found": 3 } ``` #### Success response ```json { "job_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "assigned_to": "worker-linux-01" } ``` | Parameter | Type | Description | | --- | --- | --- | | `job_id` | `string` | Unique identifier for the created job. | | `assigned_to` | `string` | ID of the worker the job was dispatched to. | #### Error responses | Status | Code | Description | | --- | --- | --- | | 401 | `howler_auth_required` | No valid authentication provided | | 401 | `github_oauth_session_invalid` | Bearer/cookie session is expired or invalid | | 401 | `github_token_missing_for_host` | Authenticated but no linked GitHub token for the repo host | | 401 | `github_oauth_required` | GitHub OAuth required for repo-bound jobs | | 400 | - | More than 20 entries in `howler_config.tool_ids` | | 403 | - | A tool in `howler_config.tool_ids` does not exist or is not accessible to the caller | | 403 | - | Model not allowed for user's team, or project access denied | | 429 | - | Active job limit or burst rate limit exceeded | | 503 | - | No available workers | ## List & get jobs Source: /docs#api-jobs-list - Markdown: /llms/api-jobs-list.md ### List & get jobs `GET /v1/jobs` - Returns a paginated list of jobs visible to the authenticated user. Does not include pulse history. | Parameter | Type | Description | | --- | --- | --- | | `limit` | `int` | Default: `50`. Maximum number of jobs to return. | | `offset` | `int` | Default: `0`. Number of jobs to skip (pagination). | | `status` | `string` | Comma-separated status filter (e.g. `Running,Completed`). | ```bash curl -k https://howler.dell.com/v1/jobs?limit=10&status=Running,Completed \ -H "X-Howler-Service-Token: hwl_your_token" ``` ```python import requests response = requests.get( "https://howler.dell.com/v1/jobs", headers={"X-Howler-Service-Token": "hwl_your_token"}, params={"limit": 10, "status": "Running,Completed"}, ) data = response.json() for job in data["jobs"]: print(f"{job['job_id']} - {job['status']}") ``` ```typescript const params = new URLSearchParams({ limit: "10", status: "Running,Completed", }); const response = await fetch( `https://howler.dell.com/v1/jobs?${params}`, { headers: { "X-Howler-Service-Token": "hwl_your_token" } } ); const data = await response.json(); data.jobs.forEach((j: any) => console.log(j.job_id, j.status)); ``` Response shape ```json { "jobs": [ { "job": { "job_id": "a1b2c3d4-...", "repo_url": "https://github.example.com/org/repo", "user_prompt": "Add unit tests...", "mode": "standard", "model": "claude-sonnet-4-20250514", "short_summary": "Added 12 unit tests for UserService.", "outputs": { "pr_url": "https://github.example.com/org/repo/pull/42", "tests_added": 12 } }, "status": "Completed", "createdAt": "2025-01-15T10:30:00Z", "completedAt": "2025-01-15T10:45:00Z", "workerId": "worker-linux-01", "owner": "jdoe" } ], "totalCount": 142, "totalTimeSaved": 3600 } ``` `job.outputs` is a structured object of the values the agent produced (see **Structured outputs** below). It sits alongside `job.short_summary`, is always present, and serializes as `{}` - never `null` - for jobs whose agent declared no outputs. #### GET /v1/jobs/{id} `GET /v1/jobs/{id}` - Returns full job details including the pulse history. Sensitive environment variable values are automatically masked. | Parameter | Type | Description | | --- | --- | --- | | `include` | `string` | Set to `llm_context` to include full LLM conversation context (large payload). | ```bash curl -k https://howler.dell.com/v1/jobs/a1b2c3d4-e5f6-7890 \ -H "X-Howler-Service-Token: hwl_your_token" ``` ```python response = requests.get( "https://howler.dell.com/v1/jobs/a1b2c3d4-e5f6-7890", headers={"X-Howler-Service-Token": "hwl_your_token"}, ) job = response.json() print(f"Status: {job['status']}") print(f"Pulses: {len(job['history'])}") ``` ```typescript const response = await fetch( "https://howler.dell.com/v1/jobs/a1b2c3d4-e5f6-7890", { headers: { "X-Howler-Service-Token": "hwl_your_token" } } ); const job = await response.json(); console.log(`Status: ${job.status}`); console.log(`Pulses: ${job.history.length}`); ``` Response includes | Parameter | Type | Description | | --- | --- | --- | | `job` | `object` | Full job object with all fields. | | `status` | `string` | Current job status. | | `createdAt` | `datetime` | Job creation timestamp. | | `completedAt` | `datetime` | Job completion timestamp (null if active). | | `workerId` | `string` | Assigned worker ID. | | `owner` | `string` | Job owner username. | | `my_access` | `string` | Your access role for this job. | | `job.short_summary` | `string` | One-line summary the agent wrote on completion. | | `job.outputs` | `object` | Structured values the agent produced, sitting next to `job.short_summary`. Reflects the latest successful completion. Always present; `{}` when the agent declared no outputs. | | `history` | `Pulse[]` | Array of pulse (history) entries. | #### Structured outputs An agent can produce **structured outputs** - typed, machine-readable values - instead of forcing consumers to scrape prose out of the summary. Outputs are opt-in per agent and are returned inline on the same job DTO as `short_summary`, so they inherit the exact same access control: you see them wherever you already see the summary. **Two places outputs appear - and they are not equivalent.** `job.outputs` is the **canonical durable result**: one object per job, always present, and the field you should read programmatically. `history[].data.outputs` is **attempt-level audit evidence**: what each individual completion produced. Prefer the canonical field unless you specifically need per-attempt forensics - pulse history is evicted from memory by cold-history sweeping on idle terminal jobs and is only rehydrated on demand, whereas `job.outputs` is deliberately never evicted. **Continued jobs.** `job.outputs` always reflects the *latest successful completion*. Continuing a job and completing it again with new values **replaces** `job.outputs` wholesale - it is a replacement, not a merge, so a key present only in an earlier completion disappears from the canonical object (while remaining in that attempt's history entry). Completing again *without* producing outputs leaves the previous values intact rather than blanking them. Either way, every individual completion keeps its own outputs on its terminal `job_completed` pulse in `history`. | Step | What happens | | --- | --- | | 1 | Declare the output schema - either `outputParameters` on the agent definition, or `output_parameters` directly on the deploy request body (key, type, label, description, required). | | 2 | When the job runs, its `task_complete` tool gains a typed `outputs` argument - one property per declared key. | | 3 | The **output gate** blocks `task_complete` if a required key is missing (absent, null, or whitespace) and tells the agent which keys to supply. | | 4 | Produced values are persisted on the job and surfaced as `job.outputs` on both `GET /v1/jobs` and `GET /v1/jobs/{id}`. | **Agents that declare no outputs are unchanged.** Their `task_complete` stays `summary`-only with no `outputs` property at all, and the job's `job.outputs` field serializes as `{}`, never `null`. The output gate has a repair budget of **3** blocked attempts. After that the job is allowed to complete even if a required output is still missing, so a stubborn model cannot get stuck in an infinite loop. Only required-key *presence* is enforced - there is no type coercion or value validation. Example `outputs` ```json { "pr_url": "https://github.example.com/org/repo/pull/42", "tests_added": 12, "risk_level": "low" } ``` **Typed values.** `string`, `number` and `boolean` outputs round-trip as their native JSON types. An output declared as `json` is stored as its **raw JSON text** - it arrives as a *string containing JSON*, not as a nested object, so consumers must parse it themselves. #### Output size limits Howler currently applies **no application-enforced size limit** to structured outputs. There is no cap on the length of an individual value, no cap on the total serialized size of the `outputs` object, and no cap on the number of keys. Nothing in the pipeline truncates, samples, or rejects an output because it is large. **Note.** "No enforced limit" is not the same as "unlimited". Because no limit is declared, there is also **no supported maximum** to quote. The practical ceiling is whichever incidental boundary you hit first - the model's own output token budget, agent and backend process memory, WebSocket transport, or JSON serialization cost. In practice the model's output budget binds long before any storage boundary. Do not treat the underlying database column's capacity as a size you can design against. | Layer | Enforced limit? | Behavior | | --- | --- | --- | | `task_complete` tool | None (deliberate) | Every key the model returns is copied verbatim. No length check, no key count check. | | Output gate | None (deliberate) | Validates only that required keys are *present* and non-blank. No size or type validation. | | Worker → backend pulse | None (incidental) | Outputs ride the terminal pulse untruncated; multi-frame WebSocket messages are reassembled without a max-message cap. | | Persistence | None (incidental) | Serialized to a text column. Bounded only by the storage engine, which is an incidental boundary - not a supported maximum. | | API projections | None (incidental) | List, detail and mobile DTOs emit the whole object; large outputs inflate those responses. | | Web UI | None (incidental) | Rendered as-is. Very large values will degrade the job detail view before anything rejects them. | Treat outputs as a **result summary, not a data channel**. For large artifacts, emit a reference (an object-store URL, PR link, or artifact ID) and keep the payload itself out of `outputs`. #### Output retention | Event | What happens to outputs | | --- | --- | | Backend restart | `job.outputs` is reloaded from the database and served unchanged. | | Cold-history sweep | Idle terminal jobs have pulse history and other heavy fields evicted from memory. `job.outputs` is **deliberately retained**. `history[].data.outputs` is rehydrated from the database on the next detail read. | | Continuation (new outputs) | `job.outputs` is replaced wholesale with the new values. | | Continuation (no outputs) | Previous values are retained. There is currently no way for an agent to explicitly clear outputs. | | Archive / restore | A status change only. Archived jobs keep `job.outputs` and continue to serve it. | | Job deletion | Outputs live on the job row and are removed with the job. No separate retention or TTL applies to them. | **Undeclared keys pass through.** The declared schema acts as a *required-key floor*, not an allow-list: if an agent returns a key that was never declared in `output_parameters`, it is persisted and surfaced on `job.outputs` alongside the declared ones. Consumers should read the keys they expect by name rather than assuming the object contains only declared keys. #### POST /v1/jobs/batch-status `POST /v1/jobs/batch-status` - Returns the status of multiple jobs in a single request. ```json { "ids": ["a1b2c3d4-...", "e5f6a7b8-..."] } ``` ## Job lifecycle Source: /docs#api-lifecycle - Markdown: /llms/api-lifecycle.md ### Job lifecycle endpoints These endpoints let you interact with a job after dispatch - send follow-up messages, control execution, switch models, upload files, and manage the job's lifecycle. #### Send input `POST /v1/jobs/{id}/input` - Sends user input to a running or waiting job. Routed through the continue flow if the job is in a terminal state. ```bash curl -k -X POST https://howler.dell.com/v1/jobs/JOB_ID/input \ -H "Content-Type: application/json" \ -H "X-Howler-Service-Token: hwl_your_token" \ -d '{"input": "Yes, please also add integration tests"}' ``` ```python requests.post( "https://howler.dell.com/v1/jobs/JOB_ID/input", headers={"X-Howler-Service-Token": "hwl_your_token"}, json={"input": "Yes, please also add integration tests"}, ) ``` ```typescript await fetch("https://howler.dell.com/v1/jobs/JOB_ID/input", { method: "POST", headers: { "Content-Type": "application/json", "X-Howler-Service-Token": "hwl_your_token", }, body: JSON.stringify({ input: "Yes, please also add integration tests", }), }); ``` #### Continue / resume `POST /v1/jobs/{id}/continue` - Continues or resumes a completed/stopped job with an optional new message. Reconstructs history and redispatches. ```json { "message": "Now refactor the tests to use a shared fixture" } ``` Response: `{"job_id": "...", "worker_id": "...", "status": "resumed"}`. `status` says how the job was continued: `resumed` (same worker and workspace), `redispatched` (placed on a worker again), `resumed_waiting` (it was waiting for input and no message was sent), `acp_input_forwarded` or `skipped_recent_system_continue`. **Repository access.** A job started by a service token, an automation or a webhook works in its repository as the Howler GitHub App, whose tokens last one hour. Continuing such a job with a service token gives it a fresh one, so it stays the same job on the same credential however long it sat idle. A signed-in person who continues it lends the job their linked GitHub account instead; with none linked it stays on the App. #### Stop `POST /v1/jobs/{id}/stop` - Stops a running job. Sets status to Failed and broadcasts a cancel signal. Response: `{"job_id": "...", "status": "stopped"}` #### Complete `POST /v1/jobs/{id}/complete` - Manually marks a running or waiting job as completed. Response: `{"job_id": "...", "status": "completed"}` #### Switch model `POST /v1/jobs/{id}/switch-model` - Switches the LLM model for an active job. ```json { "model": "claude-sonnet-4-20250514" } ``` #### Switch mode `POST /v1/jobs/{id}/switch-mode` - Switches a running job's interaction mode (guided/autonomous) or agent mode (standard/consultant/orchestrator). The change is injected immediately. Provide **either** `mode` (guided/autonomous toggle) **or** `agent_mode` (agent behavior switch), not both. ```json // Toggle guided/autonomous: { "mode": "guided" } // Switch agent mode: { "agent_mode": "consultant" } ``` | Parameter | Type | Description | | --- | --- | --- | | `mode` | `string` | The target interaction mode: `"auto"` or `"guided"`. | | `agent_mode` | `string` | The target agent mode: `"standard"`, `"consultant"`, or `"orchestrator"`. Switches the agent's system prompt, tool set, and behavior mid-job. | #### Delete / archive / restore `DELETE /v1/jobs/{id}` - Permanently deletes a job. Admins only: other callers get 403 and should archive instead. `POST /v1/jobs/{id}/archive` - Archive a completed/failed job. `POST /v1/jobs/{id}/restore` - Restore an archived job. #### Upload files `POST /v1/jobs/{id}/upload` - Uploads files (images, documents) to an active job. Limit: 1 GB per file and 2 GB per request. Content-Type: `multipart/form-data`. Uploaded images are sent to the agent as inline vision payloads; other files are stored and their URLs injected into the agent context. ```bash curl -k -X POST https://howler.dell.com/v1/jobs/JOB_ID/upload \ -H "X-Howler-Service-Token: hwl_your_token" \ -F "files=@screenshot.png" \ -F "files=@spec.pdf" ``` ## Visibility & shares Source: /docs#api-visibility - Markdown: /llms/api-visibility.md ### Visibility & shares #### Update visibility `PUT /v1/jobs/{id}/visibility` - Changes who can see and interact with a job. ```json { "visibility": "team", "audienceAccess": "contributor", "teams": [ { "id": "team-frontend", "role": "contributor" } ], "spaces": [] } ``` These two request bodies use camelCase (`audienceAccess`, `teams`, `spaces`, `expiresInDays`), unlike the deploy body. A snake_case key here is ignored without an error. #### List shares `GET /v1/jobs/{id}/shares` - Lists all active share links for a job. #### Create share `POST /v1/jobs/{id}/shares` - Creates a tokenized share link with a role and optional expiry. ```json { "role": "viewer", "expiresInDays": 30 } ``` #### Revoke share `DELETE /v1/jobs/{id}/shares/{shareId}` - Immediately revokes a share link. ## WebSocket streaming Source: /docs#api-websocket - Markdown: /llms/api-websocket.md ### WebSocket streaming Howler streams real-time job progress over WebSocket using the **IronWire** protocol. Connect to the WebSocket endpoint to receive live pulses - thoughts, tool calls, results, status changes, and agent messages - as they happen. #### Connecting `GET /v1/client/connect` - Upgrade to WebSocket. The handshake must be authenticated, then you subscribe to the jobs you want. | Step | What to do | | --- | --- | | 1. Authenticate the handshake | A script sends a personal service token in the `X-Howler-Service-Token` header. A page in the Howler web app is covered by its session cookie. A handshake with no credential gets `401`. Project service tokens cannot open the stream; poll `GET /v1/jobs/{id}` instead. | | 2. Subscribe | Send `{"Type":"SUBSCRIBE","Payload":{"jobIds":[""]}}`. You receive nothing for a job until you subscribe to it, and only for jobs you are allowed to view. `UNSUBSCRIBE` takes the same payload. | | 3. Read messages | Every message is an envelope: `{"Type": "...", "Payload": {...}}`. Job progress arrives as `Type` = `PULSE_UPDATE` with the pulse in `Payload`. Ignore types you do not handle. | ```javascript import WebSocket from "ws"; const jobId = process.env.JOB_ID; const ws = new WebSocket("wss://howler.dell.com/v1/client/connect", { headers: { "X-Howler-Service-Token": process.env.HOWLER_SERVICE_TOKEN }, }); ws.on("open", () => { ws.send(JSON.stringify({ Type: "SUBSCRIBE", Payload: { jobIds: [jobId] } })); }); ws.on("message", (raw) => { const packet = JSON.parse(raw.toString()); if (packet.Type !== "PULSE_UPDATE") return; const pulse = packet.Payload; console.log(`[${pulse.status}] ${pulse.data?.step_type ?? ""}`); }); ``` ```python import asyncio, json, os import websockets async def stream_job(job_id: str): headers = {"X-Howler-Service-Token": os.environ["HOWLER_SERVICE_TOKEN"]} async with websockets.connect( "wss://howler.dell.com/v1/client/connect", additional_headers=headers, # extra_headers on websockets < 14 ) as ws: await ws.send(json.dumps({"Type": "SUBSCRIBE", "Payload": {"jobIds": [job_id]}})) async for message in ws: packet = json.loads(message) if packet.get("Type") != "PULSE_UPDATE": continue pulse = packet["Payload"] print(f"[{pulse['status']}] {(pulse.get('data') or {}).get('step_type', '')}") asyncio.run(stream_job(os.environ["JOB_ID"])) ``` #### Event types (pulse data) The `Payload` of a `PULSE_UPDATE` is a pulse. Its `data.step_type` field says what kind of event it is. The common ones: | step_type | Description | Key fields | | --- | --- | --- | | `thought` | Agent reasoning / internal monologue | `data.thought` | | `tool_call` | Agent invoked a tool | `data.tool`, `data.args` | | `tool_result` | Tool returned a result | `data.tool`, `data.result` | | `user_input` | User sent a message | `data.thought` | | `error` | An error occurred | `data.thought` | | `waiting_for_input` | The agent is waiting for an answer | `status` | | `job_completed` | The job finished | `status` | | `llm_request` | LLM API call metadata | `data.model`, `data.input_tokens`, `data.output_tokens` | There are more step types than these (container start-up, clone progress, streaming chunks and others), so treat an unknown one as informational. The job's state is the pulse's top-level `status`, which every pulse carries. A git diff, when present, is the `data.diff_snapshot` field of a tool pulse, not a step type of its own. #### Example message ```json { "Type": "PULSE_UPDATE", "Payload": { "job_id": "a1b2c3d4-e5f6-7890", "pulse_id": 42, "timestamp": "2025-01-15T10:31:05Z", "status": "Running", "data": { "step_type": "tool_call", "tool": "apply_diff", "args": { "path": "src/services/UserService.ts", "search_block": "...", "replace_block": "..." }, "model": "claude-sonnet-4-20250514", "input_tokens": 12450, "output_tokens": 890 } } } ``` ## Errors & status codes Source: /docs#api-errors - Markdown: /llms/api-errors.md ### Errors & status codes When a request fails, the API returns an HTTP status code, usually with a JSON error body. #### Error response shape ```json { "message": "Descriptive error message", "code": "error_code_identifier" } ``` `message` is the text to show. `code` is present only for the errors listed below. Some refusals, such as a 403 on a job you cannot view, have no body at all, so branch on the status code first. #### HTTP status codes | Status | Meaning | When it happens | | --- | --- | --- | | 200 | OK | Request succeeded, including a job being deployed or input being queued. | | 400 | Bad Request | Invalid request body, missing required fields, or malformed JSON. | | 401 | Unauthorized | No valid authentication. Token missing, expired, or invalid. | | 403 | Forbidden | Authenticated but lacking permission: a job you cannot view, a model or a project you have no access to. | | 404 | Not Found | Job ID does not exist. | | 429 | Too Many Requests | Rate limit exceeded - active job cap or deploy burst limit. | | 503 | Service Unavailable | No workers available to accept the job. | #### Error code reference | Code | HTTP | Description | Solution | | --- | --- | --- | --- | | `howler_auth_required` | 401 | No authentication provided | Include a service token header or bearer token. | | `github_oauth_required` | 401 | GitHub OAuth needed for repo-bound jobs | Link your GitHub account in Settings or use a service token. | | `github_oauth_session_invalid` | 401 | Session expired or invalidated | Re-authenticate via Dell Identity. | | `github_token_missing_for_host` | 401 | No GitHub token for this repo host | Link a GitHub account with access to this repository host. | A model you may not use returns 403 with a `message` and no code. A project you cannot access returns 403 with no body. ## Models & enums Source: /docs#api-models - Markdown: /llms/api-models.md ### Models & enums #### JobStatus enum Possible values for the `status` field on job responses. Value Description Terminal? - Job created, waiting for worker assignment - Assigned to a worker, starting up - Actively executing - Paused, waiting for user input - Finished successfully - Failed or stopped by user - Worker lost connection - Being resumed on a new worker - Archived (hidden from default views) #### Pulse schema Each entry in the `history` array of a job detail response. | Parameter | Type | Description | | --- | --- | --- | | `job_id` | `string` | Job ID. | | `pulse_id` | `int` | Sequential pulse ID within the job. | | `timestamp` | `datetime` | When the pulse was recorded. | | `status` | `string` | Job status at time of pulse. | | `data.step_type` | `string` | Pulse type: `thought`, `tool_call`, `tool_result`, `error`, `user_input`. | | `data.thought` | `string` | Agent reasoning / thought text. | | `data.tool` | `string` | Tool name (for tool_call / tool_result). | | `data.args` | `object` | Tool arguments (for tool_call). | | `data.result` | `string` | Tool result text. | | `data.model` | `string` | LLM model used. | | `data.input_tokens` | `int` | Input tokens for this step. | | `data.output_tokens` | `int` | Output tokens for this step. | | `data.diff_snapshot` | `string` | Git diff snapshot at this point. | #### RepoDefinition Used in `additional_repos` arrays. ```json { "url": "https://github.example.com/org/shared-lib", "branch": "main" } ``` | Parameter | Type | Description | | --- | --- | --- | | `url` (required) | `string` | Repository URL. | | `branch` | `string` | Branch to check out (defaults to repo default branch). | #### JobScopeGrant Used in `share_teams` and `share_spaces` arrays. ```json { "id": "team-frontend", "role": "viewer" } ``` | Parameter | Type | Description | | --- | --- | --- | | `id` (required) | `string` | Team or space identifier. | | `role` | `string` | Access role: `"viewer"` or `"contributor"`. Defaults to `"viewer"`. | ## Playbooks & Automation Source: /docs#api-playbooks-automation - Markdown: /llms/api-playbooks-automation.md ### Playbooks & Automation Playbooks and Automation schedules are how most external systems interface with Howler - rather than constructing a raw prompt on every call, you save the prompt once as a **Playbook** and then either dispatch it directly via the API or attach it to a **cron / GitHub-event schedule** so it runs on its own. Both resource types are managed via the standard job-API authentication methods described on the **Authentication** page (service token, bearer session, or session cookie). Conceptual docs. For a feature tour of Playbooks and Automation in the UI, see the Playbooks and Cron jobs pages in the Triggers & Tokens section. This page is the REST API reference for the same features. #### Which automation API should I use? Playbooks and schedules both bind to a project and are authenticated the same way as the job API, but their JSON bodies use **camelCase** field names (ASP.NET Core's default model binding), unlike `/v1/jobs/deploy` which uses snake_case. Field names below reflect the actual wire format for these two endpoint groups. | Goal | Use | | --- | --- | | Dispatch a one-off job from a saved, parameterized prompt | `POST /v1/playbooks/{id}/execute` | | Run the same job on a recurring cron cadence | `POST /v1/cron` with `triggerType: "cron"` | | Run a job automatically when a GitHub event fires | `POST /v1/cron` with `triggerType: "github_event"` | | Run a job when ANY external system (Jira, Jenkins, Datadog, curl) calls a URL | `POST /v1/cron` with `triggerType: "webhook"`, then call the generated `POST /v1/webhooks/custom/{webhookId}` | | Run a playbook on a schedule instead of a raw prompt | `POST /v1/cron` with `playbookId` set | #### Playbooks endpoints All endpoints are under `/v1/playbooks` and require authentication. Create, update, and delete require being the playbook's author (or an admin); dispatching (`/execute`) only requires visibility access to the playbook. #### Executing a playbook #### Parameters & prompt hydration A playbook's `promptTemplate` can reference parameters with `{{ key }}` placeholders. At execute time, values supplied in `parameters` are substituted in; any parameter marked required that has no value (and no default) causes a `400` with the list of missing keys. #### Automation (cron) endpoints Automation schedules - cron-based or GitHub-event-based - live under `/v1/cron`. Every schedule belongs to a project, which supplies RBAC and environment variables at dispatch time. #### Schedule fields Body accepted by `POST /v1/cron` and `PUT /v1/cron/{id}`: #### Linking a schedule to a playbook To run a playbook on a schedule instead of maintaining a duplicate raw prompt, set `playbookId` and (optionally) `playbookParameterValuesJson` on the schedule and omit `prompt`. This works for both cron and GitHub-event triggers, so a playbook can fire nightly or in response to repository activity without any code change. ```json { "name": "Nightly dependency audit", "projectId": "proj_backend", "triggerType": "cron", "cron": "0 2 * * *", "repoUrl": "https://github.example.com/org/repo", "branch": "main", "playbookId": "pb_dependency_audit", "playbookParameterValuesJson": "{\"severity\":\"high\"}", "visibility": "team" } ``` #### Custom webhook triggers A `webhook` trigger lets any external system dispatch a Howler job by calling a per-automation URL. When you create a schedule with `triggerType: "webhook"`, the backend generates a unique `webhookId` (URL path token) and a `webhookSecret` (shared secret). The calling system must send the secret in the `X-Howler-Token` header. The `webhookSecret` is only returned to users authorized to manage the automation; in list responses it is redacted to `null` - use `GET /v1/cron/{id}` or the Automation tab to retrieve it. JSON body fields are flattened into `{{webhook.*}}` template variables that your prompt or playbook can reference - e.g. `{{webhook.issue.key}}`, `{{webhook.build.status}}`. `{{webhook.body}}` always contains the raw request body, and `{{webhook.received_at}}` and `{{webhook.source_ip}}` provide metadata. ```bash # Create a webhook-triggered automation curl -X POST https://howler.dell.com/v1/cron \ -H "X-Howler-Service-Token: $HOWLER_SERVICE_TOKEN" \ -H "Content-Type: application/json" \ -d '{"name":"Jira issue bot","projectId":"proj_backend","triggerType":"webhook","repoUrl":"https://github.example.com/org/repo","prompt":"A Jira issue was created: {{webhook.issue.key}} - {{webhook.issue.summary}}. Investigate and fix."}' # The response includes webhookId and webhookSecret. # Then, from your external system (Jira, Jenkins, etc.): curl -X POST https://howler.dell.com/v1/webhooks/custom/YOUR_WEBHOOK_ID \ -H "X-Howler-Token: $HOWLER_WEBHOOK_SECRET" \ -H "Content-Type: application/json" \ -d '{"issue":{"key":"PROJ-123","summary":"Build failing on main"}}' ``` Security note. The webhook endpoint is unauthenticated except for the shared secret token - treat it like an API key. You can regenerate the secret at any time via POST /v1/cron/ {id} /regenerate-secret , which immediately invalidates the old token. #### Code samples List playbooks and dispatch one: ```python import requests TOKEN = "hwl_your_token" headers = {"X-Howler-Service-Token": TOKEN, "Content-Type": "application/json"} playbooks = requests.get("https://howler.dell.com/v1/playbooks", headers=headers, timeout=30).json() target = next(p for p in playbooks if p["title"] == "Dependency Audit") res = requests.post( f"https://howler.dell.com/v1/playbooks/{target['id']}/execute", headers=headers, json={"repoUrl": "https://github.example.com/org/repo", "branchName": "main", "parameters": {"severity": "high"}}, timeout=30, ) res.raise_for_status() print(res.json()) ``` ```typescript const token = String(process.env.HOWLER_SERVICE_TOKEN); const headers = { "X-Howler-Service-Token": token, "Content-Type": "application/json" }; const playbooks = await (await fetch("https://howler.dell.com/v1/playbooks", { headers })).json(); const target = playbooks.find((p: { title: string }) => p.title === "Dependency Audit"); const res = await fetch(`https://howler.dell.com/v1/playbooks/${target.id}/execute`, { method: "POST", headers, body: JSON.stringify({ repoUrl: "https://github.example.com/org/repo", branchName: "main", parameters: { severity: "high" } }), }); if (!res.ok) throw new Error(await res.text()); console.log(await res.json()); ``` Create a GitHub-event-triggered schedule that runs a playbook: ```python import requests headers = {"X-Howler-Service-Token": "hwl_your_token", "Content-Type": "application/json"} payload = { "name": "Review new PRs with playbook", "projectId": "proj_backend", "triggerType": "github_event", "githubEvents": "pull_request:opened", "repoUrl": "https://github.example.com/org/repo", "playbookId": "pb_pr_review", "visibility": "team", } res = requests.post("https://howler.dell.com/v1/cron", headers=headers, json=payload, timeout=30) res.raise_for_status() print(res.json()) ``` ## Integration Guide Source: /docs#api-integration-guide - Markdown: /llms/api-integration-guide.md ### Integration Guide #### Overview This guide provides end-to-end patterns to integrate Howler into scripts, services, and pipelines: token setup, deploy plus polling workflows, WebSocket streaming, interactive controls, CI/CD orchestration, cron and playbook automation, dashboard aggregation, and resilient retry behavior. #### Step 1: Create a Service Token The easiest way is from the project: open it, go to **Settings → Service tokens → New token**, pick what the token may do and how long it lives, and copy the secret (shown once). Project owners can also create (and rotate) project tokens programmatically while signed in. A token can never create another token. ```python import requests res = requests.post( "https://howler.dell.com/v1/projects/proj_backend/service-tokens", headers={"Authorization": "Bearer " + "", "Content-Type": "application/json"}, json={"name": "ci-bot", "permissions": ["jobs:run", "results:read"], "expiresInDays": 90}, timeout=30, ) res.raise_for_status() print(res.json()["token"]) # shown exactly once ``` ```typescript const res = await fetch("https://howler.dell.com/v1/projects/proj_backend/service-tokens", { method: "POST", headers: {"Authorization": "Bearer " + String(process.env.HOWLER_SESSION_TOKEN), "Content-Type": "application/json"}, body: JSON.stringify({ name: "ci-bot", permissions: ["jobs:run", "results:read"], expiresInDays: 90 }), }); if (!res.ok) throw new Error(await res.text()); console.log((await res.json()).token); // shown exactly once ``` ```powershell Invoke-RestMethod -Method Post -Uri "https://howler.dell.com/v1/projects/proj_backend/service-tokens" -Headers @{ Authorization = "Bearer $env:HOWLER_SESSION_TOKEN" } -ContentType "application/json" -Body (@{ name="ci-bot"; permissions=@("jobs:run","results:read"); expiresInDays=90 } | ConvertTo-Json) ``` ```bash curl -k -X POST https://howler.dell.com/v1/projects/proj_backend/service-tokens \ -H "Authorization: Bearer $HOWLER_SESSION_TOKEN" \ -H "Content-Type: application/json" \ -d '{"name":"ci-bot","permissions":["jobs:run","results:read"],"expiresInDays":90}' # Rotate before it expires; the old secret keeps working for graceHours curl -k -X POST https://howler.dell.com/v1/projects/proj_backend/service-tokens/TOKEN_ID/rotate \ -H "Authorization: Bearer $HOWLER_SESSION_TOKEN" \ -H "Content-Type: application/json" -d '{"graceHours":24}' ``` #### Step 2: Deploy & Monitor ```python import time, requests TOKEN = "hwl_your_token" TERMINAL = {"Completed", "Failed", "Archived"} deploy = requests.post("https://howler.dell.com/v1/jobs/deploy", headers={"X-Howler-Service-Token": TOKEN, "Content-Type": "application/json"}, json={"repo_url":"https://github.example.com/org/repo","branch_name":"main","user_prompt":"Run tests and summarize","mode":"standard"}, timeout=30) deploy.raise_for_status() job_id = deploy.json()["job_id"] while True: detail = requests.get("https://howler.dell.com/v1/jobs/" + job_id, headers={"X-Howler-Service-Token": TOKEN}, timeout=30) detail.raise_for_status() status = detail.json()["status"] print(status) if status in TERMINAL: break time.sleep(5) ``` ```typescript const token = String(process.env.HOWLER_SERVICE_TOKEN); const deploy = await fetch("https://howler.dell.com/v1/jobs/deploy", { method: "POST", headers: {"X-Howler-Service-Token": token, "Content-Type": "application/json"}, body: JSON.stringify({ repo_url: "https://github.example.com/org/repo", branch_name: "main", user_prompt: "Run tests and summarize", mode: "standard" }) }); if (!deploy.ok) throw new Error(await deploy.text()); const jobId = (await deploy.json()).job_id as string; ``` ```csharp using System.Text; using System.Text.Json; using var http = new HttpClient(); http.DefaultRequestHeaders.Add("X-Howler-Service-Token", Environment.GetEnvironmentVariable("HOWLER_SERVICE_TOKEN")); var deployPayload = new { repo_url = "https://github.example.com/org/repo", branch_name = "main", user_prompt = "Run tests and summarize", mode = "standard" }; using var body = new StringContent(JsonSerializer.Serialize(deployPayload), Encoding.UTF8, "application/json"); using var deployRes = await http.PostAsync("https://howler.dell.com/v1/jobs/deploy", body); deployRes.EnsureSuccessStatusCode(); using var deployDoc = JsonDocument.Parse(await deployRes.Content.ReadAsStringAsync()); var jobId = deployDoc.RootElement.GetProperty("job_id").GetString()!; while (true) { using var detailRes = await http.GetAsync("https://howler.dell.com/v1/jobs/" + jobId); detailRes.EnsureSuccessStatusCode(); using var detailDoc = JsonDocument.Parse(await detailRes.Content.ReadAsStringAsync()); var status = detailDoc.RootElement.GetProperty("status").GetString(); if (status is "Completed" or "Failed" or "Archived") break; await Task.Delay(5000); } ``` ```powershell # Deploy with Invoke-RestMethod POST /v1/jobs/deploy then loop GET /v1/jobs/$jobId until terminal. ``` ```bash job_id=$(curl -s -X POST https://howler.dell.com/v1/jobs/deploy -H "X-Howler-Service-Token: $HOWLER_SERVICE_TOKEN" -H "Content-Type: application/json" -d '{"repo_url":"https://github.example.com/org/repo","branch_name":"main","user_prompt":"Run tests and summarize","mode":"standard"}' | jq -r '.job_id') ``` #### Step 3: Real-time Streaming ```python import asyncio, json, websockets async def run(job_id: str, token: str): headers = {"X-Howler-Service-Token": token} # additional_headers is extra_headers on websockets < 14 async with websockets.connect("wss://howler.dell.com/v1/client/connect", additional_headers=headers) as ws: await ws.send(json.dumps({"Type": "SUBSCRIBE", "Payload": {"jobIds": [job_id]}})) async for m in ws: packet = json.loads(m) if packet.get("Type") != "PULSE_UPDATE": continue p = packet["Payload"] print(p.get("status"), (p.get("data") or {}).get("step_type", "")) asyncio.run(run("replace-with-job-id", "hwl_...")) ``` ```typescript import WebSocket from "ws"; const targetJobId = String(process.env.JOB_ID); const ws = new WebSocket("wss://howler.dell.com/v1/client/connect", { headers: { "X-Howler-Service-Token": String(process.env.HOWLER_SERVICE_TOKEN) }, }); ws.on("open", () => ws.send(JSON.stringify({ Type: "SUBSCRIBE", Payload: { jobIds: [targetJobId] } }))); ws.on("message", (raw) => { const packet = JSON.parse(raw.toString()); if (packet.Type !== "PULSE_UPDATE") return; const p = packet.Payload; console.log(p.status, p.data?.step_type ?? ""); }); ``` ```csharp using System.Net.WebSockets; using System.Text; using System.Text.Json; var targetJobId = Environment.GetEnvironmentVariable("JOB_ID")!; using var ws = new ClientWebSocket(); ws.Options.SetRequestHeader("X-Howler-Service-Token", Environment.GetEnvironmentVariable("HOWLER_SERVICE_TOKEN")!); await ws.ConnectAsync(new Uri("wss://howler.dell.com/v1/client/connect"), CancellationToken.None); var subscribe = JsonSerializer.Serialize(new { Type = "SUBSCRIBE", Payload = new { jobIds = new[] { targetJobId } } }); await ws.SendAsync(Encoding.UTF8.GetBytes(subscribe), WebSocketMessageType.Text, true, CancellationToken.None); var buffer = new byte[64 * 1024]; var message = new MemoryStream(); while (ws.State == WebSocketState.Open) { var result = await ws.ReceiveAsync(buffer, CancellationToken.None); if (result.MessageType == WebSocketMessageType.Close) break; message.Write(buffer, 0, result.Count); if (!result.EndOfMessage) continue; // a pulse can span several frames using var doc = JsonDocument.Parse(message.ToArray()); message.SetLength(0); if (doc.RootElement.GetProperty("Type").GetString() != "PULSE_UPDATE") continue; Console.WriteLine(doc.RootElement.GetProperty("Payload").GetProperty("status").GetString()); } ``` ```powershell # Use .NET ClientWebSocket in PowerShell: connect to /v1/client/connect with the # X-Howler-Service-Token header, send the SUBSCRIBE packet, read PULSE_UPDATE messages. ``` ```bash # curl does not support full-duplex websocket sessions. Use wscat/websocat. ``` #### Step 4: Interactive Jobs ```python import requests token = "hwl_your_token" job_id = "replace-with-job-id" headers = {"X-Howler-Service-Token": token, "Content-Type": "application/json"} requests.post("https://howler.dell.com/v1/jobs/" + job_id + "/input", headers=headers, json={"input":"Please include integration tests."}, timeout=30).raise_for_status() requests.post("https://howler.dell.com/v1/jobs/" + job_id + "/continue", headers=headers, json={"message":"Continue with that plan"}, timeout=30).raise_for_status() ``` ```typescript // POST /v1/jobs/{id}/input on WaitingForInput, then POST /v1/jobs/{id}/continue. ``` ```csharp using System.Text; using System.Text.Json; var token = Environment.GetEnvironmentVariable("HOWLER_SERVICE_TOKEN")!; var jobId = Environment.GetEnvironmentVariable("JOB_ID")!; using var http = new HttpClient(); http.DefaultRequestHeaders.Add("X-Howler-Service-Token", token); var inputBody = new StringContent(JsonSerializer.Serialize(new { input = "Please include integration tests." }), Encoding.UTF8, "application/json"); using var inputRes = await http.PostAsync("https://howler.dell.com/v1/jobs/" + jobId + "/input", inputBody); inputRes.EnsureSuccessStatusCode(); var continueBody = new StringContent(JsonSerializer.Serialize(new { message = "Continue with that plan" }), Encoding.UTF8, "application/json"); using var continueRes = await http.PostAsync("https://howler.dell.com/v1/jobs/" + jobId + "/continue", continueBody); continueRes.EnsureSuccessStatusCode(); ``` ```powershell # Invoke-RestMethod POST /v1/jobs/$jobId/input then /continue in guided workflows. ``` ```bash curl -k -X POST https://howler.dell.com/v1/jobs/$JOB_ID/input -H "X-Howler-Service-Token: $HOWLER_SERVICE_TOKEN" -H "Content-Type: application/json" -d '{"input":"Please include integration tests."}' ``` #### CI/CD Pipeline Integration ```yaml name: howler-pr-review on: pull_request: types: [opened, synchronize, reopened] jobs: howler: runs-on: [isg-ocp-x86-small] steps: - name: Deploy job run: | echo "POST /v1/jobs/deploy with service token" - name: Poll status run: | echo "GET /v1/jobs/{id} until terminal" ``` ```python # CI pattern: deploy -> poll -> publish summary -> fail pipeline on Failed/Archived. ``` ```typescript // Node.js CI helper follows deploy/poll/report pattern for PR automation. ``` ```csharp using System.Text; using System.Text.Json; var token = Environment.GetEnvironmentVariable("HOWLER_SERVICE_TOKEN")!; using var http = new HttpClient(); http.DefaultRequestHeaders.Add("X-Howler-Service-Token", token); using var deployBody = new StringContent(JsonSerializer.Serialize(new { repo_url = "https://github.example.com/org/repo", branch_name = "main", user_prompt = "CI validation", mode = "standard" }), Encoding.UTF8, "application/json"); using var deployRes = await http.PostAsync("https://howler.dell.com/v1/jobs/deploy", deployBody); deployRes.EnsureSuccessStatusCode(); var jobId = JsonDocument.Parse(await deployRes.Content.ReadAsStringAsync()).RootElement.GetProperty("job_id").GetString()!; while (true) { var detail = JsonDocument.Parse(await (await http.GetAsync("https://howler.dell.com/v1/jobs/" + jobId)).Content.ReadAsStringAsync()); var status = detail.RootElement.GetProperty("status").GetString(); if (status is "Completed") return; if (status is "Failed" or "Archived") Environment.Exit(1); await Task.Delay(10000); } ``` ```powershell # Pipeline gate script for Jenkins/Azure DevOps using Invoke-RestMethod. ``` ```bash # Shell CI gate with curl + jq to monitor Howler job status. ``` #### Automation Patterns ```python # POST /v1/cron for scheduled runs; set triggerType to github_event for event-driven runs. # Schedule fields are camelCase (name, cron, repoUrl, projectId, triggerType). # POST /v1/playbooks/{id}/execute for reusable automation workflows. ``` ```typescript // Create/update/toggle/run cron schedules and execute playbooks from integration service code. ``` ```csharp using System.Text; using System.Text.Json; var token = Environment.GetEnvironmentVariable("HOWLER_SERVICE_TOKEN")!; using var http = new HttpClient(); http.DefaultRequestHeaders.Add("X-Howler-Service-Token", token); var cronPayload = new { name = "Nightly quality check", cron = "0 2 * * *", // 5 fields, UTC repoUrl = "https://github.example.com/org/repo", branch = "main", prompt = "Nightly quality check", mode = "standard", projectId = "proj_backend", triggerType = "cron" }; using var cronBody = new StringContent(JsonSerializer.Serialize(cronPayload), Encoding.UTF8, "application/json"); using var cronRes = await http.PostAsync("https://howler.dell.com/v1/cron", cronBody); cronRes.EnsureSuccessStatusCode(); ``` ```powershell # Invoke-RestMethod wrappers for /v1/cron and /v1/playbooks/{id}/execute. ``` ```bash curl -X POST https://howler.dell.com/v1/cron -H "X-Howler-Service-Token: $HOWLER_SERVICE_TOKEN" -H "Content-Type: application/json" -d '{"name":"Nightly quality check","cron":"0 2 * * *","repoUrl":"https://github.example.com/org/repo","branch":"main","prompt":"Nightly quality check","mode":"standard","projectId":"proj_backend","triggerType":"cron"}' ``` #### Build a Dashboard ```python from collections import Counter import requests jobs = requests.get("https://howler.dell.com/v1/jobs?limit=100", headers={"X-Howler-Service-Token": "hwl_your_token"}, timeout=30).json()["jobs"] print(Counter(j.get("status", "Unknown") for j in jobs)) ``` ```typescript // Poll GET /v1/jobs and compute status counts, completion latency, and failure rate. ``` ```csharp using System.Text.Json; var token = Environment.GetEnvironmentVariable("HOWLER_SERVICE_TOKEN")!; using var http = new HttpClient(); http.DefaultRequestHeaders.Add("X-Howler-Service-Token", token); using var res = await http.GetAsync("https://howler.dell.com/v1/jobs?limit=100"); res.EnsureSuccessStatusCode(); using var doc = JsonDocument.Parse(await res.Content.ReadAsStringAsync()); var counts = new Dictionary(StringComparer.OrdinalIgnoreCase); foreach (var job in doc.RootElement.GetProperty("jobs").EnumerateArray()) { var status = job.GetProperty("status").GetString() ?? "Unknown"; counts[status] = counts.TryGetValue(status, out var current) ? current + 1 : 1; } Console.WriteLine(JsonSerializer.Serialize(counts)); ``` ```powershell # Group /v1/jobs by status and export metrics for dashboards. ``` ```bash curl -ks https://howler.dell.com/v1/jobs?limit=100 -H "X-Howler-Service-Token: $HOWLER_SERVICE_TOKEN" | jq '[.jobs[].status] | group_by(.) | map({status: .[0], count: length})' ``` #### Error Handling & Retry ##### Wrapper class / SDK pattern Wrap repeated concerns (auth headers, deploy, polling, interactive input, and retries) in a small client class or module. ```python import time import requests class HowlerClient: def __init__(self, token: str, base_url: str = "https://howler.dell.com"): self.base_url = base_url.rstrip("/") self.session = requests.Session() self.session.headers.update({"X-Howler-Service-Token": token, "Content-Type": "application/json"}) def deploy(self, payload: dict) -> str: res = self.session.post(self.base_url + "/v1/jobs/deploy", json=payload, timeout=30) res.raise_for_status() return res.json()["job_id"] def wait(self, job_id: str, poll_seconds: int = 5): terminal = {"Completed", "Failed", "Archived"} while True: res = self.session.get(self.base_url + "/v1/jobs/" + job_id, timeout=30) res.raise_for_status() job = res.json() if job.get("status") in terminal: return job time.sleep(poll_seconds) def send_input(self, job_id: str, text: str): self.session.post(self.base_url + "/v1/jobs/" + job_id + "/input", json={"input": text}, timeout=30).raise_for_status() self.session.post(self.base_url + "/v1/jobs/" + job_id + "/continue", json={"message": "Continue"}, timeout=30).raise_for_status() ``` ```typescript type DeployPayload = Record; class HowlerClient { constructor(private token: string, private baseUrl = "https://howler.dell.com") {} private async req(path: string, init: RequestInit = {}) { const res = await fetch(this.baseUrl + path, { ...init, headers: { "X-Howler-Service-Token": this.token, "Content-Type": "application/json", ...(init.headers || {}), }, }); if (!res.ok) throw new Error(await res.text()); return res; } async deploy(payload: DeployPayload): Promise { const res = await this.req("/v1/jobs/deploy", { method: "POST", body: JSON.stringify(payload) }); return (await res.json()).job_id as string; } async wait(jobId: string, pollMs = 5000) { const terminal = new Set(["Completed", "Failed", "Archived"]); while (true) { const detail = await (await this.req("/v1/jobs/" + jobId)).json(); if (terminal.has(detail.status)) return detail; await new Promise((r) => setTimeout(r, pollMs)); } } } ``` ```csharp using System.Text; using System.Text.Json; public sealed class HowlerClient { private readonly HttpClient _http; public HowlerClient(string token, HttpClient? http = null) { _http = http ?? new HttpClient(); _http.DefaultRequestHeaders.Add("X-Howler-Service-Token", token); } public async Task DeployAsync(object payload) { using var body = new StringContent(JsonSerializer.Serialize(payload), Encoding.UTF8, "application/json"); using var res = await _http.PostAsync("https://howler.dell.com/v1/jobs/deploy", body); res.EnsureSuccessStatusCode(); using var doc = JsonDocument.Parse(await res.Content.ReadAsStringAsync()); return doc.RootElement.GetProperty("job_id").GetString()!; } public async Task WaitAsync(string jobId, TimeSpan interval) { while (true) { using var res = await _http.GetAsync("https://howler.dell.com/v1/jobs/" + jobId); res.EnsureSuccessStatusCode(); var doc = JsonDocument.Parse(await res.Content.ReadAsStringAsync()); var status = doc.RootElement.GetProperty("status").GetString(); if (status is "Completed" or "Failed" or "Archived") return doc; await Task.Delay(interval); } } } ``` ```powershell function New-HowlerClient { param([string]$Token, [string]$BaseUrl = "https://howler.dell.com") $headers = @{ "X-Howler-Service-Token" = $Token; "Content-Type" = "application/json" } return [pscustomobject]@{ Deploy = { param($Payload) $response = Invoke-RestMethod -Method Post -Uri "$BaseUrl/v1/jobs/deploy" -Headers $headers -Body ($Payload | ConvertTo-Json -Depth 10) return $response.job_id } Wait = { param([string]$JobId, [int]$PollSeconds = 5) while ($true) { $detail = Invoke-RestMethod -Method Get -Uri "$BaseUrl/v1/jobs/$JobId" -Headers $headers if (@("Completed","Failed","Archived") -contains $detail.status) { return $detail } Start-Sleep -Seconds $PollSeconds } } } } ``` | Condition | Handling strategy | | --- | --- | | 401 Unauthorized | Rotate/refresh token and verify auth header format. | | 403 Forbidden | Verify project and model access permissions. | | 429 Too Many Requests | Apply exponential backoff with jitter and lower poll frequency. | | 5xx or network timeout | Retry transient failures and reconcile state via GET /v1/jobs/{id} before repeating writes. | | Disconnected/Resuming | Treat as transitional and continue monitoring within timeout budget. | ```python import random, time def retry(op, attempts=5): for i in range(1, attempts + 1): try: return op() except Exception: if i == attempts: raise time.sleep(min(30, (2 ** i) + random.random())) ``` ```typescript async function retry(op: () => Promise, max = 5): Promise { for (let i = 1; i <= max; i++) { try { return await op(); } catch (err) { if (i === max) throw err; const wait = Math.min(30000, Math.pow(2, i) * 1000 + Math.random() * 250); await new Promise((r) => setTimeout(r, wait)); } } throw new Error("retry exhausted"); } ``` ```csharp static async Task RetryAsync(Func> op, int maxAttempts = 5) { var rand = new Random(); for (var attempt = 1; attempt <= maxAttempts; attempt++) { try { return await op(); } catch when (attempt < maxAttempts) { var delayMs = Math.Min(30000, (int)Math.Pow(2, attempt) * 1000 + rand.Next(100, 500)); await Task.Delay(delayMs); } } throw new InvalidOperationException("Retry attempts exhausted"); } ``` ```powershell function Invoke-WithRetry { param([scriptblock]$Action, [int]$MaxAttempts = 5) for ($attempt = 1; $attempt -le $MaxAttempts; $attempt++) { try { return & $Action } catch { if ($attempt -eq $MaxAttempts) { throw } $delay = [Math]::Min(30, [Math]::Pow(2, $attempt) + (Get-Random -Minimum 0 -Maximum 1)) Start-Sleep -Seconds $delay } } } ``` ```bash attempt=1 max=5 while [ $attempt -le $max ]; do code=$(curl -s -o /tmp/howler.json -w "%{http_code}" https://howler.dell.com/v1/jobs/$JOB_ID -H "X-Howler-Service-Token: $HOWLER_SERVICE_TOKEN") if [ "$code" -lt 500 ] && [ "$code" -ne 429 ]; then break; fi sleep $((attempt * 2)) attempt=$((attempt + 1)) done ``` --- # ACP Server ## Overview Source: /docs#acp-overview - Markdown: /llms/acp-overview.md ### ACP Server Agent Client Protocol Howler implements the **Agent Client Protocol (ACP)** as a server, allowing external editors, IDE extensions, and custom tooling to connect and use Howler as a coding agent over the network via JSON-RPC 2.0 messages. Learn more in the ACP introduction guide. #### Howler's ACP roles | Role | Description | Used By | | --- | --- | --- | | **ACP Client** (Consumer) | Howler drives an external ACP agent (e.g. Devin) via stdin/stdout | `Howler.Worker → AcpClient` | | **ACP Server** (Producer) | External ACP clients connect to Howler and use it as a coding agent | `Howler.Backend → ACP endpoints` | #### Two transport profiles | Transport | Endpoint | Protocol | Use Case | | --- | --- | --- | --- | | **WebSocket** | `wss://howler.dell.com/v1/acp/session` | Full duplex JSON-RPC over WS frames | Recommended - lowest latency, bidirectional streaming | | **SSE + HTTP** | `GET/POST/DELETE /v1/acp/session` | Server-Sent Events + HTTP POST for requests | Fallback when WebSocket is unavailable (proxies, firewalls) | Tip. Both transports use the same JSON-RPC 2.0 message format and support the same set of ACP methods. Choose WebSocket when possible; use SSE as a fallback. ## Authentication Source: /docs#acp-auth - Markdown: /llms/acp-auth.md ### Authentication All ACP connections must be authenticated. Three authentication methods are supported. #### Service token (recommended for programmatic access) Service tokens are the recommended method for IDE extensions, CI pipelines, and custom tooling. Create one via **Settings → Developer** or via `POST /v1/service-tokens`. Tokens have the format `hwl_...` and inherit the creating user's role and permissions. ```http # Option 1: Dedicated header (preferred) X-Howler-Service-Token: hwl_abc123... # Option 2: Authorization header Authorization: Bearer hwl_abc123... ``` #### Session cookie (browser-based clients) Browser-based clients that authenticate via Dell Identity OIDC can use the existing session cookie. The cookie is automatically sent with same-origin requests. #### Bearer session ID (Desktop IDE / mobile) The Howler Desktop IDE and mobile app use session-based authentication. The session GUID is obtained through the pairing flow (`POST /v1/auth/exchange`). ```http Authorization: Bearer ``` ## WebSocket transport Source: /docs#acp-websocket - Markdown: /llms/acp-websocket.md ### WebSocket Transport (Recommended) The WebSocket transport provides full-duplex communication over a single persistent connection. All JSON-RPC messages are exchanged as WebSocket text frames. #### 1. Connect Open a WebSocket connection to the ACP endpoint with your authentication header: ```text wss://howler.dell.com/v1/acp/session Headers: Authorization: Bearer hwl_your_token_here ``` #### 2. Initialize (handshake) Send the `initialize` request to negotiate protocol version and discover server capabilities: ```json { "jsonrpc": "2.0", "method": "initialize", "id": 1, "params": { "protocolVersion": 1, "clientName": "MyIDE", "clientVersion": "1.0.0" } } ``` Server responds: ```json { "jsonrpc": "2.0", "result": { "protocolVersion": 1, "serverName": "Howler", "serverVersion": "1.0.0", "capabilities": { "session": { "load": true, "cancel": true, "set_mode": true, "set_config_option": true }, "streaming": true } }, "id": 1 } ``` #### 3. Create a session Create a new coding session bound to a working directory. This creates a Howler job under the hood: ```json { "jsonrpc": "2.0", "method": "session/new", "id": 2, "params": { "cwd": "/path/to/repo" } } ``` Server responds with a session ID (which is the Howler job ID): ```json { "jsonrpc": "2.0", "result": { "sessionId": "job-uuid-here" }, "id": 2 } ``` #### 4. Send a prompt Send a coding prompt to the session. The server streams `session/update` notifications as the agent works, then returns the final result: ```json { "jsonrpc": "2.0", "method": "session/prompt", "id": 3, "params": { "sessionId": "job-uuid-here", "prompt": [ { "type": "text", "text": "Fix the login bug in auth.ts" } ] } } ``` Streaming `session/update` notifications arrive as the agent works: ```json // Thought {"jsonrpc":"2.0","method":"session/update","params":{"sessionId":"job-uuid-here","content":[{"type":"thought","text":"Analyzing auth.ts..."}]}} // Tool call {"jsonrpc":"2.0","method":"session/update","params":{"sessionId":"job-uuid-here","content":[{"type":"tool_call","name":"read_file","callId":"tc-001","data":{"path":"src/auth.ts"}}]}} // Tool result {"jsonrpc":"2.0","method":"session/update","params":{"sessionId":"job-uuid-here","content":[{"type":"tool_result","name":"read_file","callId":"tc-001","text":"export function login(...) {...}"}]}} ``` Final response when the agent completes: ```json { "jsonrpc": "2.0", "result": { "stopReason": "end_turn" }, "id": 3 } ``` #### 5. Close the session ```json { "jsonrpc": "2.0", "method": "session/close", "id": 4, "params": { "sessionId": "job-uuid-here" } } ``` #### websocat example websocat is a command-line WebSocket client useful for testing: ```bash # Connect with a service token websocat -H "Authorization: Bearer hwl_your_token" wss://howler.dell.com/v1/acp/session # Then paste JSON-RPC messages into stdin: {"jsonrpc":"2.0","method":"initialize","id":1,"params":{"protocolVersion":1,"clientName":"websocat"}} ``` ## SSE transport Source: /docs#acp-sse - Markdown: /llms/acp-sse.md ### SSE Streamable HTTP Transport (Fallback) The SSE transport uses three HTTP methods on the same endpoint: | Method | Purpose | | --- | --- | | **GET** | Opens a Server-Sent Events stream for receiving responses and notifications | | **POST** | Sends JSON-RPC requests to the server | | **DELETE** | Closes the SSE connection and cleans up | #### 1. Open the SSE stream (Terminal 1) Start listening for server-sent events. The server returns a `connectionId` in the first event: ```bash curl -kN \ -H "Accept: text/event-stream" \ -H "Authorization: Bearer hwl_your_token" \ https://howler.dell.com/v1/acp/session ``` The server sends an initial `endpoint` event: ```text event: endpoint data: /v1/acp/session?connectionId=conn-uuid-here ``` #### 2. Send requests via POST (Terminal 2) Use the `connectionId` from step 1 to send JSON-RPC requests: ```bash # Initialize curl -k -X POST "https://howler.dell.com/v1/acp/session?connectionId=conn-uuid-here" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer hwl_your_token" \ -d '{"jsonrpc":"2.0","method":"initialize","id":1,"params":{"protocolVersion":1}}' # Returns: 202 Accepted # Create session curl -k -X POST "https://howler.dell.com/v1/acp/session?connectionId=conn-uuid-here" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer hwl_your_token" \ -d '{"jsonrpc":"2.0","method":"session/new","id":2,"params":{"cwd":"/path/to/repo"}}' # Send prompt curl -k -X POST "https://howler.dell.com/v1/acp/session?connectionId=conn-uuid-here" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer hwl_your_token" \ -d '{"jsonrpc":"2.0","method":"session/prompt","id":3,"params":{"sessionId":"job-uuid","prompt":[{"type":"text","text":"Fix the login bug"}]}}' ``` Responses and streaming `session/update` notifications arrive on the SSE stream in Terminal 1. #### 3. Cleanup Close the SSE connection and release server resources: ```bash curl -k -X DELETE "https://howler.dell.com/v1/acp/session?connectionId=conn-uuid-here" \ -H "Authorization: Bearer hwl_your_token" ``` ## Methods reference Source: /docs#acp-methods - Markdown: /llms/acp-methods.md ### ACP Methods Reference All methods use JSON-RPC 2.0 framing. Requests (with `id`) expect a response; notifications (no `id`) are fire-and-forget. #### Client → Server methods | Method | Key Params | Response | Description | | --- | --- | --- | --- | | `initialize` | protocolVersion, clientName? | protocolVersion, serverName, serverVersion, capabilities | Protocol handshake - must be the first message sent | | `session/new` | cwd, mcpServers?, _meta? | sessionId | Create a new coding session (backs onto a Howler job) | | `session/load` | sessionId, cwd?, _meta? | sessionId, loaded | Resume an existing session by ID | | `session/prompt` | sessionId, prompt:[{type,text}] | stopReason | Send a prompt - streams `session/update` until complete | | `session/cancel` | sessionId | ok | Cancel the currently running prompt | | `session/set_mode` | sessionId, modeId | modeId, ok | Switch agent mode (see modes table below) | | `session/set_config_option` | sessionId, configId, value | ok | Set a configuration option on the session | | `session/close` | sessionId | ok | Close the session bound to this connection and release resources | #### Server → Client notifications | Method | Params | Description | | --- | --- | --- | | `session/update` | sessionId, content:[...] | Streaming progress updates during prompt execution | #### Lifecycle sequence ```text initialize │ ▼ session/new ──or── session/load │ ▼ session/prompt ◄──► session/update (streaming) │ │ │ session/cancel ──────┘ (optional: cancel in-flight) │ │ session/set_mode ────── (optional: switch mode) │ session/set_config_option (optional: change config) │ ▼ session/close ``` ## Howler _meta extensions Source: /docs#acp-meta-extensions - Markdown: /llms/acp-meta-extensions.md ### Howler _meta Extensions Following the ACP extensibility model, Howler uses the `_meta` field on `session/new` and `session/load` params to pass vendor-specific data without conflicting with the core ACP spec. Non-Howler ACP agents will silently ignore these fields. #### `_meta.repos` - pre-clone repositories Specify repositories that Howler should clone into the agent workspace before the session starts. The first repo becomes the primary `RepoUrl` on the Howler job; additional repos are added to `AdditionalRepos`. If `cwd` is itself an http(s) repository URL, that is the primary repo and every entry here is an additional one. On `session/load` only `_meta.repos` is read; `_meta.env` applies to `session/new`. ```json { "method": "session/new", "params": { "cwd": "/workspace", "_meta": { "repos": [ { "url": "https://github.com/org/main-repo.git", "branch": "feature-x" }, { "url": "https://github.com/org/shared-lib.git", "branch": "main" } ] } } } ``` #### `_meta.env` - per-session environment variables Inject environment variables into the agent container for this session. These have the **highest precedence** - they override saved user env vars (from Howler UI → Settings) and project-level env vars. ```json { "method": "session/new", "params": { "cwd": "/workspace", "_meta": { "env": { "SDD_TOKEN": "ghp_xxxxxxxxxxxx", "CUSTOM_API_KEY": "sk-xxxxxxx" } } } } ``` | Precedence | Source | Description | | --- | --- | --- | | 1 (highest) | `_meta.env` | Per-session, explicit from the ACP client | | 2 | Saved user env vars | Configured in Howler UI → Settings → Environment variables | | 3 (lowest) | Project env vars | Configured per-project in Howler | Tip. Both repos and env can be combined in a single _meta object. The sdd-kit CLI does this automatically when connecting to Howler - it detects git repos and passes SDD_TOKEN via _meta.env . ## Updates, modes & errors Source: /docs#acp-updates-modes - Markdown: /llms/acp-updates-modes.md ### Session Updates, Modes & Error Handling #### Content block types The `session/update` notification carries an array of content blocks. Each block has a `type` and type-specific fields: | Type | Key Fields | Description | | --- | --- | --- | | `thought` | text, callId?, data? | Agent reasoning / internal monologue | | `text` | text, role?, callId? | Assistant message (role is typically "assistant") | | `tool_call` | name, callId, data? | Tool invocation - name is the tool, data contains arguments | | `tool_call_update` | name, callId, text? | Streaming output from a running tool | | `tool_result` | name, callId, text | Tool completion - text contains the result output | #### Full prompt lifecycle example A typical `session/prompt` produces this sequence of `session/update` notifications: ```text 1. thought → "Let me look at the auth.ts file..." 2. tool_call → name: "read_file", data: {path: "src/auth.ts"} 3. tool_result → name: "read_file", text: "" 4. thought → "I see the issue - == instead of ===" 5. tool_call → name: "apply_diff", data: {path: "src/auth.ts", ...} 6. tool_result → name: "apply_diff", text: "Diff applied successfully" 7. text → "Fixed the login bug by changing..." Final response: {"stopReason": "end_turn"} ``` #### Mode mapping The `session/set_mode` method accepts a `modeId` string that maps to a Howler agent mode: | ACP Mode ID | Howler Mode | Description | | --- | --- | --- | | `standard` | Standard | Default coding agent - reads, writes, runs commands | | `code` | Standard | Alias for `standard` | | `consultant` | Consultant | Advisory mode - analyzes and recommends; lands changes only when you ask | #### Limits | Limit | Value | Description | | --- | --- | --- | | Idle session timeout | 30 minutes | Sessions with no activity are automatically closed | The ACP server sets no per-user cap of its own on concurrent sessions or on how fast sessions are created. #### Error codes Standard JSON-RPC 2.0 error codes used by the ACP server: | Code | Name | Meaning | | --- | --- | --- | | `-32700` | Parse Error | Malformed JSON - could not parse the request body | | `-32600` | Invalid Request | Valid JSON but not a valid JSON-RPC 2.0 request | | `-32601` | Method Not Found | The requested method does not exist | | `-32602` | Invalid Params | Method exists but the parameters are invalid or missing | | `-32603` | Internal Error | Unexpected server-side error | | `-32000` | Server Error | Application-level error (session not found, request cancelled) | The `-32000` messages: | Scenario | Message | | --- | --- | | The session id is unknown, or the session was closed after 30 idle minutes | `"Session not found"` | | The request was cancelled | `"Request cancelled"` | A request with no valid credential is refused before JSON-RPC: the endpoint answers a plain HTTP `401`, not a JSON-RPC error. #### Admin stats endpoint Administrators can monitor ACP server health: GET /api/v1/admin/acp/stats ```json { "activeSessions": 3, "totalSessionsCreated": 147, "totalPromptsProcessed": 892, "activeWebSocketSessions": 2, "activeSseSessions": 1, "totalSessionsCleaned": 42, "totalRateLimitHits": 0 } ``` --- # MCP Server ## Overview Source: /docs#mcp-overview - Markdown: /llms/mcp-overview.md ### MCP Server Howler exposes a **Model Context Protocol (MCP)** server, allowing AI assistants like **Devin**, **Claude Desktop**, and **Cursor** to connect to Howler and use its capabilities as tools. Deploy jobs, monitor progress, send input, and manage the full job lifecycle - all from inside your AI assistant. What is MCP? The Model Context Protocol is an open standard for connecting AI assistants to external tools and data sources. It uses JSON-RPC 2.0 over HTTP (Streamable HTTP / SSE transport) to discover and invoke tools. #### MCP vs ACP - when to use which | | MCP Server | ACP Server | | --- | --- | --- | | **Protocol** | Model Context Protocol | Agent Client Protocol | | **Purpose** | Expose Howler operations as discrete tools | Drive Howler as a full coding agent (sessions, prompts, streaming) | | **Use case** | Add Howler tools to Devin, Claude Desktop, Cursor, etc. | Build a custom IDE or editor that uses Howler as its agent backend | | **Endpoint** | `/v1/mcp` | `/v1/acp/session` | | **Key methods** | `tools/list`, `tools/call` | `session/new`, `session/prompt`, `session/update` | #### How it works - **Connect** - Your AI assistant connects to Howler's MCP endpoint and performs a handshake. - **Discover tools** - The assistant calls tools/list to see available Howler tools (deploy, list, get, input, stop, etc.). - **Call tools** - When the assistant decides to use Howler, it calls tools/call with the tool name and arguments. - **Get results** - Howler executes the operation and returns the result as structured text. #### Available tools | Tool | Description | | --- | --- | | `howler_deploy_job` | Create and dispatch a new coding agent job | | `howler_list_jobs` | List your Howler jobs with optional filtering | | `howler_get_job` | Get detailed job info including pulses and output | | `howler_get_job_status` | Quick status check for a job | | `howler_send_input` | Send text input to a running job | | `howler_stop_job` | Stop a running job | | `howler_continue_job` | Continue a completed or stopped job | | `howler_complete_job` | Mark a job as completed | | `howler_list_models` | List available LLM models | ## Connection guide Source: /docs#mcp-connect - Markdown: /llms/mcp-connect.md ### Connection Guide Connect your favorite AI assistant to Howler's MCP server. You'll need a Howler **service token** - create one via **Settings → Developer**. #### Devin Add Howler as an MCP server in your Devin configuration: ```json { "mcpServers": { "howler": { "url": "https://howler.dell.com/v1/mcp", "headers": { "Authorization": "Bearer hwl_your_service_token" } } } } ``` Once configured, Devin can deploy Howler jobs, check status, send input, and manage the full job lifecycle. #### Claude Desktop Add the following to your `claude_desktop_config.json`: ```json { "mcpServers": { "howler": { "url": "https://howler.dell.com/v1/mcp", "headers": { "Authorization": "Bearer hwl_your_service_token" } } } } ``` #### Cursor In Cursor, go to **Settings → MCP** and add a new server: ```json { "mcpServers": { "howler": { "url": "https://howler.dell.com/v1/mcp", "headers": { "Authorization": "Bearer hwl_your_service_token" } } } } ``` #### Generic MCP client Any MCP-compatible client can connect. The key details: | Setting | Value | | --- | --- | | Server URL | `https://howler.dell.com/v1/mcp` | | Transport | Streamable HTTP (SSE + POST) | | Auth header | `Authorization: Bearer hwl_...` | | Alt auth header | `X-Howler-Service-Token: hwl_...` | | Protocol | MCP (JSON-RPC 2.0) | ## Tools reference Source: /docs#mcp-tools - Markdown: /llms/mcp-tools.md ### Tools Reference Howler's MCP server exposes 9 tools. Your AI assistant discovers these via `tools/list` and invokes them via `tools/call`. #### howler_deploy_job Create and dispatch a new coding agent job. | Parameter | Type | Description | | --- | --- | --- | | `user_prompt` (required) | `string` | The task description for the agent. | | `repo_url` | `string` | Git repository URL. | | `branch_name` | `string` | Default: `main`. Branch to work on. | | `mode` | `string` | Default: `standard`. Agent mode: `standard`, `consultant`, `orchestrator`. | | `model` | `string` | LLM model override. | | `guided` | `boolean` | Default: `false`. If true, agent pauses for approval at key steps. | Example: ```json { "name": "howler_deploy_job", "arguments": { "user_prompt": "Add unit tests for the auth module", "repo_url": "https://github.com/org/repo", "branch_name": "main", "mode": "standard" } } ``` Response: ```json { "job_id": "a1b2c3d4-...", "assigned_to": "worker-01", "status": "dispatched", "message": "Job 'a1b2c3d4-...' has been created and dispatched." } ``` #### howler_list_jobs List your Howler jobs with optional filtering. | Parameter | Type | Description | | --- | --- | --- | | `limit` | `integer` | Default: `20`. Max results (max 50). | | `offset` | `integer` | Default: `0`. Pagination offset. | | `status` | `string` | Filter: `Pending`, `Running`, `Completed`, `Failed`, `Archived`. | | `mode` | `string` | Filter by agent mode. | #### howler_get_job Get detailed information about a job including recent pulses, PR URL, and output. | Parameter | Type | Description | | --- | --- | --- | | `job_id` (required) | `string` | The job ID to retrieve. | #### howler_get_job_status Quick status check - lighter than `howler_get_job`. | Parameter | Type | Description | | --- | --- | --- | | `job_id` (required) | `string` | The job ID to check. | #### howler_send_input Send text input to a running job (answer questions, provide clarification, give guidance). | Parameter | Type | Description | | --- | --- | --- | | `job_id` (required) | `string` | The job ID. | | `input` (required) | `string` | The text input to send. | #### howler_stop_job Stop a running job. | Parameter | Type | Description | | --- | --- | --- | | `job_id` (required) | `string` | The job ID to stop. | #### howler_continue_job Continue a completed or failed job with an optional follow-up prompt. | Parameter | Type | Description | | --- | --- | --- | | `job_id` (required) | `string` | The job ID to continue. | | `prompt` | `string` | Optional follow-up instructions. | #### howler_complete_job Mark a job as completed. | Parameter | Type | Description | | --- | --- | --- | | `job_id` (required) | `string` | The job ID to mark complete. | #### howler_list_models List available LLM models that can be used with `howler_deploy_job`. Returns every model Howler has configured, not only the ones you may use; a model you have no access to is refused when you deploy with it. Parameters: none. Example response: ```json ["claude-sonnet-5", "gpt-5.6-terra", "auto"] ``` ## Protocol details Source: /docs#mcp-protocol - Markdown: /llms/mcp-protocol.md ### Protocol Details The MCP server uses **JSON-RPC 2.0** over HTTP. Most MCP clients handle the protocol automatically - this section is for debugging or building custom integrations. #### 1. Initialize (handshake) Send an `initialize` request to negotiate the protocol version: ```json // Request { "jsonrpc": "2.0", "method": "initialize", "id": 1, "params": { "protocolVersion": "2025-03-26", "clientInfo": { "name": "MyClient", "version": "1.0" }, "capabilities": {} } } // Response { "jsonrpc": "2.0", "id": 1, "result": { "protocolVersion": "2025-03-26", "serverInfo": { "name": "Howler", "version": "1.0.0" }, "capabilities": { "tools": { "listChanged": false } } } } ``` After receiving the response, send `notifications/initialized` (no response expected). #### 2. tools/list Discover available tools: ```json // Request {"jsonrpc":"2.0","method":"tools/list","id":2,"params":{}} // Response { "jsonrpc": "2.0", "id": 2, "result": { "tools": [ { "name": "howler_deploy_job", "description": "Create and dispatch a new Howler coding agent job...", "inputSchema": { "type": "object", "properties": { "user_prompt": { ... }, "repo_url": { ... }, ... }, "required": ["user_prompt"] } }, ... ] } } ``` #### 3. tools/call Invoke a tool: ```json // Request { "jsonrpc": "2.0", "method": "tools/call", "id": 3, "params": { "name": "howler_deploy_job", "arguments": { "user_prompt": "Fix the login bug in auth.ts", "repo_url": "https://github.com/org/repo" } } } // Response { "jsonrpc": "2.0", "id": 3, "result": { "content": [{ "type": "text", "text": "{"job_id":"abc-123","status":"dispatched",...}" }] } } ``` #### SSE transport (optional) For long-lived connections, open an SSE stream on `GET /v1/mcp` with `Accept: text/event-stream`. The server sends an `endpoint` event with a `connectionId`. Subsequent POST requests include `?connectionId=xxx` and responses arrive on the SSE stream instead of the POST response body. Most MCP clients (Devin, Claude Desktop, Cursor) handle this automatically. For simple tool calls, a direct POST to `/v1/mcp` without SSE works fine - the response is returned inline. #### Error codes | Code | Name | Meaning | | --- | --- | --- | | `-32700` | Parse Error | Invalid JSON in request body | | `-32600` | Invalid Request | Missing method or malformed JSON-RPC | | `-32601` | Method Not Found | Unknown method name | | `-32602` | Invalid Params | `tools/call` sent without `params` or without a tool name | A tool that fails, including on a missing or invalid argument such as `job_id`, is not a JSON-RPC error. It comes back as a normal result with `isError: true` and the reason in the text content, so check that flag on every `tools/call` result. #### Testing with curl Test the MCP server directly: ```bash # Initialize curl -k -X POST https://howler.dell.com/v1/mcp \ -H "Content-Type: application/json" \ -H "Authorization: Bearer hwl_your_token" \ -d '{"jsonrpc":"2.0","method":"initialize","id":1,"params":{"protocolVersion":"2025-03-26"}}' # List tools curl -k -X POST https://howler.dell.com/v1/mcp \ -H "Content-Type: application/json" \ -H "Authorization: Bearer hwl_your_token" \ -d '{"jsonrpc":"2.0","method":"tools/list","id":2,"params":{}}' # Deploy a job curl -k -X POST https://howler.dell.com/v1/mcp \ -H "Content-Type: application/json" \ -H "Authorization: Bearer hwl_your_token" \ -d '{"jsonrpc":"2.0","method":"tools/call","id":3,"params":{"name":"howler_deploy_job","arguments":{"user_prompt":"Fix the tests"}}}' ``` --- # A2A Protocol ## Overview Source: /docs#a2a-overview - Markdown: /llms/a2a-overview.md ### A2A Protocol Howler speaks the **Agent2Agent (A2A) protocol**, version `0.3.0`. Where MCP gives a model access to *tools* and ACP connects an *editor* to a coding agent, A2A connects **two autonomous agents** as peers: one delegates a unit of work to the other, then observes it through a shared, stateful `Task` until it reaches a terminal state. Read the A2A specification for the normative definitions. #### Howler's A2A roles | Role | Description | Implemented by | | --- | --- | --- | | **A2A Server** (Producer) | Remote agents discover Howler via its Agent Card and delegate work to it. Each inbound message creates a real Howler job. | `Howler.Backend → A2A endpoints` | | **A2A Client** (Consumer) | Howler discovers a remote A2A agent, sends it messages, and consumes its task and artifact stream. | `Howler.A2A → A2AClient` | #### Core objects Every A2A interaction is JSON-RPC 2.0 over HTTP(S) against a single endpoint the agent advertises in its Agent Card. Three object types carry all the state: - **Message** - One turn of communication, carrying ordered parts (text, file, or structured data). Ephemeral - not a durable output. - **Task** - The stateful unit of work: an id, a contextId, a status.state, plus accumulated artifacts and history. Mirrors a Howler job. - **Artifact** - A durable output the agent produced - a pull request link, a generated file, a summary. #### A2A vs MCP vs ACP Howler implements all three. They are complementary, not alternatives - they differ in who the peer is and what a unit of work looks like. | | A2A | MCP | ACP | | --- | --- | --- | --- | | **Peer** | Another autonomous agent | An LLM host (Claude Desktop, Cursor, Devin) | An editor or IDE extension | | **Transport** | HTTP JSON-RPC + SSE | Streamable HTTP | WebSocket or SSE | | **Unit of work** | Task | Tool call | Session + prompt | | **Howler role** | Client and server | Server | Client and server | Version pinning. The protocol version lives in one place - A2AProtocolConstants.ProtocolVersion in Howler.A2A - and is the protocolVersion emitted on every Agent Card Howler serves. ## Agent Card & discovery Source: /docs#a2a-agent-card - Markdown: /llms/a2a-agent-card.md ### Agent Card & Discovery An A2A agent publishes a self-describing manifest - the **Agent Card** - at a well-known path. A client fetches the card first, then uses the card's `url` field as the JSON-RPC endpoint for every subsequent call. Never hard-code the RPC path. The card is the source of truth for the endpoint, the transport, the capabilities, and the accepted auth schemes. Read it at startup and honour what it says. #### Discovery flow ```text GET https:///.well-known/agent-card.json │ ▼ AgentCard { url, preferredTransport, capabilities, securitySchemes, skills } │ ▼ POST # every JSON-RPC method goes here ``` The well-known path is fixed by the specification and exposed as `A2AProtocolConstants.AgentCardWellKnownPath`: ```bash curl https://howler.dell.com/.well-known/agent-card.json ``` #### Card schema | Field | Type | Required | Description | | --- | --- | --- | --- | | `protocolVersion` | string | Yes | A2A version the agent speaks. Howler emits `0.3.0`. | | `name` | string | Yes | Human-readable agent name. | | `description` | string | Yes | What the agent does - used by other agents to decide whether to delegate. | | `url` | string | Yes | Preferred RPC endpoint. Must support preferredTransport. | | `preferredTransport` | string | No | `JSONRPC`, `GRPC`, or `HTTP+JSON`. Howler serves `JSONRPC`. | | `additionalInterfaces` | AgentInterface[] | No | Extra `{ url, transport }` pairs. | | `provider` | AgentProvider | No | `{ organization, url }`. | | `version` | string | Yes | The agent's own version (provider-defined format). | | `documentationUrl` | string | No | Link to human-readable docs. | | `capabilities` | AgentCapabilities | Yes | `streaming`, `pushNotifications`, `stateTransitionHistory`, `extensions`. | | `securitySchemes` | map | No | OpenAPI 3.0 security scheme objects, keyed by name. | | `security` | array of maps | No | Requirements applied to all interactions - an OR of ANDs. | | `defaultInputModes` | string[] | Yes | Default accepted input media types. | | `defaultOutputModes` | string[] | Yes | Default produced output media types. | | `skills` | AgentSkill[] | Yes | Distinct capabilities the agent offers. | | `supportsAuthenticatedExtendedCard` | boolean | No | True if a richer card is served to authenticated callers. | | `signatures` | AgentCardSignature[] | No | JWS signatures (RFC 7515 JSON serialization) over the card. | #### Skills A skill is a discrete capability another agent can route work to. Descriptions and `tags` matter - a delegating agent reads them to decide whether this agent is the right destination. ```json { "id": "code-change", "name": "Implement a code change", "description": "Clone a repository, implement a requested change, run the tests, and open a pull request.", "tags": ["coding", "refactor", "pull-request"], "examples": ["Fix the null-reference crash in AuthService.Login"], "inputModes": ["text/plain"], "outputModes": ["text/plain", "application/json"] } ``` #### Authenticated extended card When the public card sets `supportsAuthenticatedExtendedCard: true`, an authenticated client may call `agent/getAuthenticatedExtendedCard` for a card that includes skills or detail withheld from anonymous callers. If no extended card is configured the agent returns error `-32007`. Read the live card. The exact skills, security schemes, and endpoint URL Howler advertises are set by the deployment serving the card. Fetch /.well-known/agent-card.json from your instance rather than assuming the values shown here. ## Connect a client Source: /docs#a2a-connect - Markdown: /llms/a2a-connect.md ### Connect an A2A Client Four steps take an external agent from cold start to a running Howler job: authenticate, discover, send, observe. #### 1. Authenticate A2A does not define its own auth scheme - an agent declares what it accepts in the card's `securitySchemes` map using OpenAPI 3.0 security scheme objects. `Howler.A2A` models all five spec types: | type | Key fields | Notes | | --- | --- | --- | | `apiKey` | `name`, `in` (header / query / cookie) | Simple token in a named header. | | `http` | `scheme` (bearer, basic), `bearerFormat` | Standard `Authorization` header. | | `oauth2` | `flows` (authorizationCode, clientCredentials, implicit, password) | Scope-based. | | `openIdConnect` | `openIdConnectUrl` | Discovery-document driven. | | `mutualTLS` | - | Client-certificate authentication. | The `security` array is an **OR of ANDs**: satisfy every scheme inside one entry, and any one entry is enough. Howler's programmatic credential is a service token (`hwl_...`) created under **Settings → Developer**. ```http # Option 1: Dedicated header X-Howler-Service-Token: hwl_abc123... # Option 2: Authorization header Authorization: Bearer hwl_abc123... ``` Discovery is anonymous, JSON-RPC is not. GET /.well-known/agent-card.json and GET /v1/a2a/card are served without a credential, by design - a remote agent has to be able to discover Howler before it holds one. Every POST /v1/a2a JSON-RPC method requires authentication, and an unauthenticated call is refused with a plain HTTP 401 before JSON-RPC runs. The response has no JSON-RPC body, so detect it by the status code. #### 2. Fetch the Agent Card Read `url` out of the response - that is the JSON-RPC endpoint for every method. On this implementation the card is built by `AgentCardBuilder` and its `url` resolves to `/v1/a2a`. A convenience alias serves the identical payload from `/v1/a2a/card`, so the whole surface sits under one prefix. ```bash curl https://howler.dell.com/.well-known/agent-card.json # Then use the card's url for every JSON-RPC call: export A2A_RPC_URL="https://howler.dell.com/v1/a2a" ``` #### 3. Send a message `message/send` creates a real Howler job. The result is a `Task` when the agent started durable work, or a bare `Message` when it could answer immediately - both carry a `kind` discriminator so the union is unambiguous. ```bash curl -X POST "$A2A_RPC_URL" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer hwl_your_token" \ -d '{ "jsonrpc": "2.0", "id": 1, "method": "message/send", "params": { "message": { "kind": "message", "messageId": "msg-9f2c", "role": "user", "parts": [ { "kind": "text", "text": "Fix the null-reference crash in AuthService.Login and open a PR." } ] }, "configuration": { "acceptedOutputModes": ["text/plain", "application/json"], "blocking": false, "historyLength": 10 } } }' ``` Howler responds with the newly created task: ```json { "jsonrpc": "2.0", "id": 1, "result": { "kind": "task", "id": "e7b1c9d4-...", "contextId": "ctx-4a11-...", "status": { "state": "submitted", "timestamp": "2026-07-28T15:04:11Z" } } } ``` Four things are worth knowing about how Howler handles the call. The **task id is the Howler job id**, so an A2A task maps straight onto a job URL. Only `text` parts are read - they are joined into a single prompt, and a message with no text part is rejected with `-32602`. The agent mode is chosen with `metadata["howler.mode"]`, which accepts the skill ids and rejects anything else rather than silently downgrading. And `contextId` is minted if you omit it - pass your own to group related tasks into one conversation. A refusal is not a task. When Howler declines the work outright - active job limit, burst rate limit - no task is created and the error comes back as JSON-RPC -32600 . With no worker connected, dispatch fails with -32603 and the message No Workers available. #### 4. Poll the task Clients that cannot hold a stream open poll `tasks/get` until the state is terminal. An unknown id returns `-32001`. ```bash curl -X POST "$A2A_RPC_URL" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer hwl_your_token" \ -d '{"jsonrpc":"2.0","id":2,"method":"tasks/get","params":{"id":"e7b1c9d4-...","historyLength":5}}' ``` #### Local development The local mock environment runs with PAT bypass, so no credentials are needed: ```powershell scripts/setup-local-mock.ps1 -StartBackend curl http://localhost:5223/.well-known/agent-card.json ``` Tip. PAT bypass only activates when ASPNETCORE_ENVIRONMENT is Local or Development . The -StartBackend flag sets it for you. On Linux or macOS run the script with pwsh and add -Detach to start the backend in the background; -Stop ends it. ## Task lifecycle Source: /docs#a2a-task-lifecycle - Markdown: /llms/a2a-task-lifecycle.md ### Task Lifecycle An inbound A2A message creates a real Howler job, and the A2A `Task` is a projection of that job's lifecycle. Everything a remote agent observes - status transitions, questions, outputs - comes from the underlying job. #### A2A task states `TaskState` has nine values. Four are **terminal** - once a task enters one it emits no further updates and cannot be restarted. | State | Terminal | Meaning | | --- | --- | --- | | `submitted` | No | Received, processing not yet started. | | `working` | No | Actively being processed. | | `input-required` | No | The agent needs more input before it can continue. | | `auth-required` | No | The agent needs authentication before it can continue. | | `completed` | **Yes** | Finished successfully. | | `canceled` | **Yes** | Canceled by the client. | | `failed` | **Yes** | Terminated because of an error. | | `rejected` | **Yes** | The agent declined to process the task. | | `unknown` | No | State not reported. Also the deserialization default. | #### Howler job states → A2A task states | Howler JobStatus | A2A TaskState | Notes | | --- | --- | --- | | `Pending` | `submitted` | Queued, not yet assigned to a worker. | | `Assigned` | `working` | Dispatched to a worker. | | `Running` | `working` | Agent is executing. | | `Resuming` | `working` | Worker reattaching to a live job. | | `WaitingForInput` | `input-required` | A guided job paused for approval or an answer. | | `Completed` | `completed` | Terminal. | | `Failed` | `failed` | Terminal. | | `Archived` | `canceled` | Terminal - an archived job was retired, not finished. | | `Disconnected` | `unknown` | Worker link dropped; may resume, so not terminal. | Two mappings are deliberate. `Archived` maps to `canceled` rather than `completed` because archiving retires a job instead of finishing it - and since `tasks/cancel` archives the job, a task you cancel reads back as `canceled`. `Disconnected` maps to `unknown` because a dropped worker link is recoverable: `failed` would make remote agents abandon jobs that go on to succeed, while `working` would assert progress nobody can confirm. `rejected` and `auth-required` are never produced from job status. Howler refuses work before a job exists, so a rejection is a JSON-RPC error rather than a task, and auth is enforced at the transport layer before dispatch. Branch on terminal, not on names. New non-terminal states can appear as the protocol evolves. The durable client contract is completed | canceled | failed | rejected ends the task; everything else means keep observing. Answering a task is narrower than "not terminal". Input is accepted only for `Running`, `Assigned`, and `WaitingForInput` - the same check the MCP `howler_send_input` tool applies. A `Pending` or `Disconnected` task is non-terminal but cannot yet take a message, and returns `-32600`. #### Answering a guided job A guided Howler job that pauses for approval surfaces as `input-required`, with the question carried in `status.message`. The client answers with another `message/send` that references the same `taskId` and `contextId`; the task then returns to `working`. ```json { "jsonrpc": "2.0", "id": 7, "method": "message/send", "params": { "message": { "kind": "message", "messageId": "msg-b301", "role": "user", "taskId": "e7b1c9d4-...", "contextId": "ctx-4a11-...", "parts": [ { "kind": "text", "text": "Yes, proceed with the refactor and open the PR." } ] } } } ``` #### Artifacts Job outputs - pull request links, generated files, summaries - come back as `Artifact` objects carrying the same `Part` union as a message: `text`, `file` (bytes or URI), and `data` (structured JSON). ```json { "artifactId": "art-pr-1", "name": "pull-request", "description": "PR opened by the Howler job", "parts": [ { "kind": "text", "text": "Fixed the null-reference in AuthService.Login and added a regression test." }, { "kind": "data", "data": { "prUrl": "https://github.com/org/repo/pull/482", "branch": "fix/auth-npe" } } ] } ``` ## Streaming & push Source: /docs#a2a-streaming - Markdown: /llms/a2a-streaming.md ### Streaming & Push Notifications `message/stream` and `tasks/resubscribe` return `text/event-stream` from the same RPC endpoint. The method name alone selects streaming; the `Accept` header is not read. Each SSE `data:` line carries a complete JSON-RPC response envelope whose `result` is one member of the streaming union. Streaming is on. Howler's Agent Card declares capabilities.streaming: true and both methods are available. When you call another agent, check its card before you stream. #### SSE event types | kind | Type | When | | --- | --- | --- | | `task` | `Task` | Usually first - the initial task snapshot. | | `message` | `Message` | An agent message that is not itself a task update. | | `status-update` | `TaskStatusUpdateEvent` | The task's `status.state` changed. Carries `final`. | | `artifact-update` | `TaskArtifactUpdateEvent` | An artifact was produced or extended. Carries `append` and `lastChunk`. | #### A worked stream ```bash curl -N -X POST "$A2A_RPC_URL" \ -H "Content-Type: application/json" \ -H "Accept: text/event-stream" \ -H "Authorization: Bearer hwl_your_token" \ -d '{"jsonrpc":"2.0","id":1,"method":"message/stream","params":{"message":{"kind":"message","messageId":"msg-1","role":"user","parts":[{"kind":"text","text":"Run the tests and fix any failures."}]}}}' ``` `-N` disables curl's buffering, which is required to see events arrive incrementally rather than all at once at the end. ```text data: {"jsonrpc":"2.0","id":1,"result":{"kind":"task","id":"e7b1c9d4","contextId":"ctx-4a11","status":{"state":"submitted"}}} data: {"jsonrpc":"2.0","id":1,"result":{"kind":"status-update","taskId":"e7b1c9d4","contextId":"ctx-4a11","status":{"state":"working"},"final":false}} data: {"jsonrpc":"2.0","id":1,"result":{"kind":"artifact-update","taskId":"e7b1c9d4","contextId":"ctx-4a11","artifact":{"artifactId":"art-pr-1","name":"pull-request","parts":[{"kind":"text","text":"Opened PR #482"}]},"lastChunk":true}} data: {"jsonrpc":"2.0","id":1,"result":{"kind":"status-update","taskId":"e7b1c9d4","contextId":"ctx-4a11","status":{"state":"completed"},"final":true}} ``` #### Client rules | # | Rule | | --- | --- | | 1 | Accumulate artifact chunks by `artifactId`, honouring `append` - true appends parts, false or absent replaces. | | 2 | Stop reading when a `status-update` arrives with `final: true`. The server closes the connection after it. | | 3 | On a dropped connection, call `tasks/resubscribe` with the same `taskId`, then reconcile with `tasks/get` in case events were missed. | `A2AClient` implements exactly this: `SendMessageStreamingAsync` and `ResubscribeTaskAsync` return an `IAsyncEnumerable` of `IA2AStreamEvent`, and terminate the sequence on `final: true` or transport close. #### Push notifications For long-running work a client that cannot hold a stream open registers a webhook instead, and the agent POSTs updates to it. Requires `capabilities.pushNotifications: true`; otherwise the config methods return `-32003`. | Field | Type | Description | | --- | --- | --- | | `url` | string | Required. The callback URL the agent POSTs to. | | `id` | string | Server-generated id for this config, used by `get` and `delete`. | | `token` | string | Client-generated opaque token the agent echoes back, so the client can validate the notification. | | `authentication` | object | `{ schemes, credentials }` - how the agent should authenticate to the callback. | ```json { "jsonrpc": "2.0", "id": 3, "method": "tasks/pushNotificationConfig/set", "params": { "taskId": "e7b1c9d4-...", "pushNotificationConfig": { "url": "https://client.example.com/hooks/a2a", "token": "opaque-client-token", "authentication": { "schemes": ["Bearer"], "credentials": "callback-secret" } } } } ``` A config can also be registered inline on the first `message/send` via `configuration.pushNotificationConfig`. Treat a notification as a signal, not as state. Validate the echoed token before acting, then re-read the authoritative task with tasks/get . ## Calling remote agents Source: /docs#a2a-remote-agents - Markdown: /llms/a2a-remote-agents.md ### Calling Remote A2A Agents The `Howler.A2A` library is the other half of the story: it lets Howler discover and drive **remote** A2A agents over the `JSONRPC` transport, consuming their SSE streams as `IAsyncEnumerable`. #### Registration ```csharp // Program.cs services.AddA2AClient(); ``` This registers a named `HttpClient` (`howler-a2a`) and the singleton `A2AClientFactory`. Auto-redirect is **disabled** on the primary handler, because following a redirect would bypass the SSRF pre-flight check performed against the original URL. #### Client options | Property | Type | Description | | --- | --- | --- | | `BaseUrl` | string | Required. The remote agent's origin (from which the well-known card path is resolved) or the RPC endpoint itself. | | `RpcEndpoint` | string? | Explicit RPC endpoint. When null the client uses the resolved card's `url`, falling back to `BaseUrl`. | | `AllowedHosts` | collection | Hosts exempt from the SSRF private-range check. Supports `*.domain.com` wildcards. | | `Authorization` | AuthenticationHeaderValue? | Attached to every request, per the scheme the remote card declares. | | `DefaultHeaders` | dictionary | Extra headers - `apiKey` schemes with `in: header`, and extension-activation headers. | | `DisableSsrfGuard` | bool | Test-only escape hatch for stubbed transports. Default false. | #### Usage ```csharp public sealed class RemoteAgentCaller(A2AClientFactory factory) { public async Task DelegateAsync(string agentUrl, string prompt, CancellationToken ct) { var client = factory.Create(new A2AClientOptions { BaseUrl = agentUrl, Authorization = new AuthenticationHeaderValue("Bearer", token), }); // 1. Discover. Caches the card and resolves the RPC endpoint from card.url. var card = await client.GetAgentCardAsync(ct); if (card.Capabilities.Streaming != true) { var result = await client.SendMessageAsync(BuildParams(prompt), ct); return result is A2ATask task ? task.Id : null; } // 2. Stream. await foreach (var evt in client.SendMessageStreamingAsync(BuildParams(prompt), ct)) { switch (evt) { case A2ATask t: /* initial snapshot */ break; case TaskStatusUpdateEvent s when s.Status.State.IsTerminal(): return s.TaskId; case TaskArtifactUpdateEvent a: /* accumulate a.Artifact */ break; } } return null; } } ``` Every protocol failure surfaces as an `A2AException` exposing `Code`, `ErrorCode` (a nullable `A2AErrorCode`, null when the agent returned a non-spec code), and the raw `ErrorData` element. #### SSRF protection Remote agent URLs are user-supplied, so **every** outbound URL is validated with the shared `SsrfGuard` before a request is issued - the configured `BaseUrl`, the derived Agent Card URL, and the RPC endpoint advertised by the remote card. A host that resolves to an internal or disallowed address throws `A2AException(InvalidParams)`: ```text Refusing to call 'http://169.254.169.254/...': the host resolves to an internal or disallowed address. ``` Reaching internal agents. Add their hosts to AllowedHosts - never disable the guard. DisableSsrfGuard exists for tests with a stubbed transport and nothing else. ## Method reference Source: /docs#a2a-methods - Markdown: /llms/a2a-methods.md ### Method Reference All ten methods defined by A2A v0.3.0, as modelled in `A2AMethodNames` and implemented on `A2AClient`. #### Supported methods | Method | Params | Result | | --- | --- | --- | | `message/send` | `MessageSendParams` | `Task` (Howler never answers with a bare `Message`) | | `message/stream` | `MessageSendParams` | **SSE** of task / message / status-update / artifact-update | | `tasks/get` | `TaskQueryParams` | `Task` | | `tasks/cancel` | `TaskIdParams` | `Task` | | `tasks/resubscribe` | `TaskIdParams` | **SSE** of update events | | `agent/getAuthenticatedExtendedCard` | - | `AgentCard` | Plus the four push notification config methods, all prefixed `tasks/pushNotificationConfig/` and all taking the task id: | Method | Status on this deployment | Notes | | --- | --- | --- | | `message/send` | **Implemented** | Creates or continues a Howler job. | | `message/stream` | **Implemented** | SSE via `A2AStreamPump`. | | `tasks/get` | **Implemented** | - | | `tasks/cancel` | **Implemented** | Archives the job and broadcasts JOB_CANCEL to the worker. | | `tasks/resubscribe` | **Implemented** | Re-syncs from a fresh snapshot, then follows forward. | | `tasks/pushNotificationConfig/set\|get\|list\|delete` | **Implemented** | SSRF-guarded webhooks, delivered by a background sender. | | `agent/getAuthenticatedExtendedCard` | **Implemented** | - | Unknown methods. A method that is not in this table returns -32601 (Method not found). Nothing currently returns -32004 UnsupportedOperation . | Method | Params | Result | | --- | --- | --- | | `.../set` | `TaskPushNotificationConfig` | `TaskPushNotificationConfig` | | `.../get` | `GetTaskPushNotificationConfigParams` | `TaskPushNotificationConfig` | | `.../list` | `ListTaskPushNotificationConfigParams` | `TaskPushNotificationConfig[]` | | `.../delete` | `DeleteTaskPushNotificationConfigParams` | `{}` | #### Params objects `MessageSendParams` carries the message plus optional send configuration: | Field | Type | Description | | --- | --- | --- | | `message` | `Message` | Required. The message being sent. | | `configuration` | `MessageSendConfiguration` | Optional send options. | | `configuration.acceptedOutputModes` | string[] | Output media types the client accepts. | | `configuration.blocking` | boolean | Accepted and ignored: message/send always returns at once with the task. Poll tasks/get or stream instead. | | `configuration.historyLength` | number | How many recent messages to include in `Task.history`. | | `configuration.pushNotificationConfig` | `PushNotificationConfig` | Register a webhook in the same call. | | `metadata` | object | Arbitrary implementation-defined metadata. | The task-scoped params are smaller: | Type | Shape | | --- | --- | | `TaskQueryParams` | `{ id, historyLength?, metadata? }` | | `TaskIdParams` | `{ id, metadata? }` | | `GetTaskPushNotificationConfigParams` | `{ id, pushNotificationConfigId?, metadata? }` | | `ListTaskPushNotificationConfigParams` | `{ id, metadata? }` | | `DeleteTaskPushNotificationConfigParams` | `{ id, pushNotificationConfigId, metadata? }` | #### The Part union Messages and artifacts both carry an ordered `parts` array. The union is discriminated on `kind`: | kind | Payload | Description | | --- | --- | --- | | `text` | `text: string` | Plain text. | | `file` | `file: FileWithBytes \| FileWithUri` | `{ name?, mimeType?, bytes }` (base64) or `{ name?, mimeType?, uri }`. | | `data` | `data: object` | Structured JSON - the natural shape for machine-readable results. | #### Error codes Standard JSON-RPC 2.0 codes: | Code | Name | Default message | | --- | --- | --- | | `-32700` | ParseError | Invalid JSON payload | | `-32600` | InvalidRequest | Invalid JSON-RPC Request | | `-32601` | MethodNotFound | Method not found | | `-32602` | InvalidParams | Invalid method parameters | | `-32603` | InternalError | Internal server error | A2A-specific codes, allocated in the JSON-RPC implementation-defined server-error range (`-32099` to `-32000`): | Code | Name | Typical cause | | --- | --- | --- | | `-32001` | TaskNotFound | Unknown or expired task id. | | `-32002` | TaskNotCancelable | The task is already in a terminal state. | | `-32003` | PushNotificationNotSupported | The agent does not implement webhooks. | | `-32004` | UnsupportedOperation | Method is valid in the spec but not implemented here. | | `-32005` | ContentTypeNotSupported | A requested input or output media type is unsupported. | | `-32006` | InvalidAgentResponse | The agent produced a malformed result. | | `-32007` | AuthenticatedExtendedCardNotConfigured | No extended card exists. | ```json { "jsonrpc": "2.0", "id": 2, "error": { "code": -32001, "message": "Task not found: e7b1c9d4-..." } } ``` #### Further reading The deeper technical reference - full Agent Card schema, worked request/response pairs for every method, and the source-file map - lives in `docs/howler-a2a-protocol.md`. The normative definitions are in the A2A specification v0.3.0.