Skip to content

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 ​

PartRuns whereWhat it does
Platform (api)your server, in Docker Compose or KubernetesThe web app, the REST API, the MCP server for coding clients, workflows and their checks, Knowledge, the review bot, connections, audit
PostgreSQLnext to the platformAll records, and the Knowledge search index
Object storenext to the platform (bundled in Compose) or your S3 bucketThe originals of Knowledge sources, uploads and evidence. See Knowledge storage
migrate, secrets-initonce at each startBring the database to the current version; create the keys on the first start. See Upgrade
Launcher octryx-claudeeach developer's machineStarts 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 toolswhere they areJira, 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 ​

  1. A work item comes in, from Jira, the web app or the chat.
  2. A workflow is started on it. The platform decides the phases and their checks.
  3. 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.
  4. Every tool call passes the launcher's check first; every model call passes the platform's gateway with its policy, budget and secret scan.
  5. 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.
  6. The platform pushes the branch, opens the pull request and reports back to the ticket. The review bot reviews the pull request.
  7. 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):

AreaOwns
api/routes, web/routersHTTP: /api/v1 is the API; the web app also uses its own /chat/api routes
servicesBusiness logic, policies and orchestration
services/sessionA chat or agent turn: preparation, dispatch, completion, and the execution gate
agent/engineDispatch to the model provider, retry, fallback and budget
agent/coreA turn's context, prompts and the standard loop
agent/providersThe model providers' clients, such as Bedrock, OpenRouter and Ollama
toolsTool 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.

Octryx AI v0.0.1-alpha · Apache 2.0 · octryx.ai