Skip to main content
The Agent API controls the Squasher Agent for one project. Read requests need the automations:read permission. Changes need automations:write.

Settings

The response has a settings object. Send only the fields that you want to change:
An unknown field returns 400. A request with no valid value returns 422. The old auto_fix value project_policy is still accepted and is stored as draft_on_high_confidence.

Memory

The list includes project entries and organization entries. To add an entry, send: When a rule matches a setting, the setting changes too. The response shows the changed settings in settings_applied, or null. DELETE retires the entry. The agent does not use it again.

Memory files

Memory is a set of Markdown files with one note on each - line. Each line ends with a tag such as [id:3f9a2c1b agent 2026-10-20]. Paths under org/ are shared by every project in the organization. The file decides the kind: rules.md holds rules, preferences.md holds preferences, incidents/ holds incident notes, and every other file holds facts.
  • GET .../files lists the files with their note counts, or returns one file with ?path=. Every response has commit, the current commit number.
  • GET .../search returns the lines that match q, like grep -i. Add path to search one folder.
  • PUT .../files replaces one file as one commit:
Keep a line’s tag to edit that note. A line without a tag adds a note. A line that you remove retires its note. The response has the stored file, the new commit, and rejected: the lines that were refused, each with a reason (changed_since_read, over_cap, index_full, contains_secret, and others). An invalid path returns 422.
  • GET .../commits lists the newest commits (limit, at most 100; path for one file). Each commit names its author and shows every note before and after the change.
  • POST .../commits/{commit_id}/revert undoes a commit with a new commit. A note that changed again after that commit stays as it is and is listed in conflicts.

Skills

The list includes project skills and organization skills. When a project skill and an organization skill have the same name, the project skill is used. A POST with a name that exists updates that skill. Organization skills also need the project:write permission. A name that is reserved for the agent returns 409.

Conversations

Lists the last 100 conversations: Slack threads, dashboard chats, investigations, and pull request reviews.

CLI

Use squasher agent for the same endpoints: settings get|update, memory list|create|delete|files|grep|write|log|revert, skills list|save|delete, and conversations. Deletes ask for confirmation; pass --yes in scripts.

MCP

MCP Code Mode can read all of these endpoints. It can also change settings, add memory, write memory files, and revert memory commits. It cannot delete memory entries by ID or change skills. To set up recurring work, it creates and updates automations. See MCP.