Architecture
How the parts of Octryx AI fit together: what runs on the server, what runs on a developer's machine, and how a request moves through the platform.
The parts
| Part | Runs where | What it does |
|---|---|---|
Platform (api) | your server, in Docker Compose or Kubernetes | The web app, the REST API, the MCP server for coding clients, workflows and their checks, Knowledge, the review bot, connections, audit |
| PostgreSQL | next to the platform | All records, and the Knowledge search index |
| Object store | next to the platform (bundled in Compose) or your S3 bucket | The originals of Knowledge sources, uploads and evidence. See Knowledge storage |
migrate, secrets-init | once at each start | Bring the database to the current version; create the keys on the first start. See Upgrade |
Launcher octryx-claude | each developer's machine | Starts Claude Code under the Workspace's rules, and as a device takes the run phases that change and test code. See Launcher and devices |
| Your tools | where they are | Jira, Confluence, GitHub, GitLab, Bitbucket and others, reached through connections |
The platform never builds or tests code itself. That happens on a device, in a clone of the repository, with the developer's own Claude Code. Pushing, opening pull requests and updating tickets happen on the server, so a developer's machine never holds a Git host or Jira credential. See Network and egress.
A run, end to end
- A work item comes in, from Jira, the web app or the chat.
- A workflow is started on it. The platform decides the phases and their checks.
- For a phase that changes code, the platform hands a job to a paired device. The launcher starts Claude Code there in a clone of the repository, with a phase brief.
- Every tool call passes the launcher's check first; every model call passes the platform's gateway with its policy, budget and secret scan.
- After the phase the platform runs its own checks: the declared tests without the agent, the proof that a new test fails on the old code, an independent review. See Evidence and checks.
- The platform pushes the branch, opens the pull request and reports back to the ticket. The review bot reviews the pull request.
- Everything lands in the run's record: phases, evidence, tokens and cost. See Runs and their record.
Inside the platform
The backend is one Python application (backend/app in the repository):
| Area | Owns |
|---|---|
api/routes, web/routers | HTTP: /api/v1 is the API; the web app also uses its own /chat/api routes |
services | Business logic, policies and orchestration |
services/session | A chat or agent turn: preparation, dispatch, completion, and the execution gate |
agent/engine | Dispatch to the model provider, retry, fallback and budget |
agent/core | A turn's context, prompts and the standard loop |
agent/providers | The model providers' clients, such as Bedrock, OpenRouter and Ollama |
tools | Tool definitions, registry, visibility and dispatch, with each tool's risk and approval metadata; deny by default |
A turn goes: route → session dispatch → agent/engine → the turn's execution profile → the execution gate, which never starts the loop for a profile that is not allowed → the standard loop → tool dispatch, where the registry, the visibility rules and the tool access policy decide what may run.
The web app is a React application in frontend/chat. Its look and its rules are in the design guide.
