Praktika runs your CI on your own cloud account — typically 3–5× cheaper than a managed CI, and deployed in one command.
You describe the whole project — pipelines and the infrastructure to run them — as plain Python, and Praktika brings it all up for you: runner pools, an orchestrator, artifact/report storage, queues, and secret bindings. No clicking through a console, no per-minute billing, no vendor lock-in.
python -m praktika infrastructure --deploy
- Self-hosted, cost-efficient. It's your cloud account and your instances (spot, autoscaled, scaled-to-zero when idle), so you pay only for raw resources — compute and storage — at cloud prices, typically 3–5× less than a managed CI for an equivalent VM size. And it's all yours: a feature-rich CI stack you own and control, not rented. The model isn't tied to one vendor; AWS is the integration implemented today.
- Deploy the whole project in one command. RunnerPools, an orchestrator
pool, S3 for artifacts/reports, SQS queues, SSM/Secrets Manager bindings —
all declared in
ci/infrastructure/projects.pyand brought up withpraktika infrastructure --deploy. - Declarative pipelines. Jobs, dependencies, artifacts, parametrized runs,
caching, secrets, and reports are plain Python objects in
ci/workflows/*.py. Config errors surface at generation time, not halfway through a CI run. - Structured results, top to bottom. Workflow → job → test all share the
same
Resulttype, so the whole run is one navigable tree — easy to drill into in the HTML report and easy for AI agents to parse and act on. - CI cache that knows which jobs already succeeded and which artifacts can be reused, so unaffected and already-passed jobs are skipped natively and cached jobs reuse their artifacts instead of rebuilding.
- Prebaked images — named runtimes baked into AMIs so instances boot ready to run.
- Docker pull-through proxy for faster, more reliable image pulls that don't hit DockerHub rate limits.
- Dynamic pipelines — the pipeline content can be manipulated at runtime.
Praktika runs its own CI control plane on your cloud: the orchestrator polls workflow queues, dispatches jobs to runner pools, and reports status back to the Git host. GitHub Actions YAML generation exists as a compatibility option, but it is not the primary model.
Today Praktika is developed around GitHub and AWS. The overall model is not conceptually limited to them — those are the integrations implemented so far.
See GETTING_STARTED.md — it walks you through infrastructure configuration and deployment, and writing your first Praktika pipeline.
For deployment security considerations, see SECURITY.md.
praktika/infrastructure/— config components for declaring AWS infrastructure (VPC,Storage,RunnerPool,OrchestratorPool,report_page_config, ...) and thepraktika infrastructure --deploy / --destroy-runtime / --destroy-all / --restart-instancescommands.praktika/orchestrator/— the standalone CI engine: webhook receiver, workflow agent, job agent, the task-shape contract over SQS, and how to run a workflow or a single job locally without AWS.
Native Praktika features
- Declarative jobs and pipelines in plain Python
- Declarative CI infrastructure configuration and deployment
- Built-in CI cache with awareness of successful jobs and reusable artifacts
- Starter hello-world setup with
praktika init, which scaffoldsci/workflows/andci/infrastructure/projects.pyfor a new project - Versioned runtimes via named base virtual environments, with
praktika_controllerselecting the workflow or job runtime and optionally installing Praktika at run time from checked-out source, per pool (ext["runtime_source"]; seepraktika/docs/installing-praktika.md) - HTML CI report page with per-workflow, per-job, and per-test drill-down
- Consistent test Docker image versioning: images rebuild automatically when inputs change, and versions stay pinned to code state across branches
- CI DB integration: job results, test results, timings, and related metadata are written automatically
AI orchestration
- Provider-agnostic AI advisor wired into the orchestrator loop: when a job
result lands, the model gets a snapshot of the run plus the failing job's
Result digest and investigates with sandboxed tools — reading job logs
(allowlisted URLs) and the checked-out PR source (
grep_repo/read_file) — then returns one constrained action:- continue — nothing actionable; let the run proceed
- drop run (
cancel_run) — a failure makes the rest of the run pointless; the orchestrator tears it down - patch (
cancel_and_patch) — a clear, fixable defect: the model's exact edits are applied to the PR, committed and pushed as the GitHub App bot via the Git Data API (verified commit), and the superseded run is cancelled so the fresh run validates the fix
- Durable per-PR sessions persist every turn, decision, edit, and token/cost across CI runs — the AI's memory, so it doesn't retry a fix that already failed
- Bedrock / Anthropic providers (plus a no-op mock); enabled and configured via
Workflow.Config.ai_assist
GitHub side
- Webhook ingestion via AWS Lambda
pull_requestandpushpipeline triggers- Status reporting through the GitHub Checks API
- Cancel and re-run from the GitHub UI:
- Cancel the top-level check to stop an in-flight run.
- Re-run a single failed check re-runs only that job and its failed
downstream, in place on the same run — not the whole workflow. Every other
job keeps its result, and Config Workflow is not re-run (the previous
WORKFLOW_CONFIGis reused). Works whether the run is still going (the live orchestrator picks up the request) or already finished (a fresh orchestrator reopens the run from its persisted state). The re-run is rejected if the PR head has advanced past the check's commit, and fork-PR re-runs require a maintainer. - Re-run all checks re-runs the full workflow.
- GitHub App authentication through a token-broker Lambda
- GitHub Pages publishing for hosted reports
Cloud side (AWS)
- Runner pools based on Auto Scaling Groups, Launch Templates, and EC2 Linux VMs
- An orchestrator pool managed the same way
- Queue-driven autoscaling for runner and orchestrator pools: a scheduled Lambda scales pools up from SQS backlog, and auto-scaled instances scale themselves back in when their queue is idle
- Image Builder pipelines for baking named base runtime environments into AMIs
- SQS queues for workflow triggers and job dispatch
- S3 buckets for artifacts and the HTML report
- SSM Parameter Store and Secrets Manager bindings for workflow secrets
- API Gateway plus Lambda webhook receiver for inbound Git events
- CI DB integration for analytics: every job and test result can be streamed to a CI DB, and Praktika can also provision its own native CI DB component (
Components.CIDBCluster) or use an existing endpoint viaSettings.SECRET_CI_DB_CONNECTION
- Native DockerHub proxy component — stand up an in-VPC DockerHub pull-through cache for runner pools so image pulls stay local and do not depend on the legacy cross-VPC proxy
- Ephemeral merge-commit PR runs — run pull-request CI against an ephemeral merge commit by default instead of the branch head, with an explicit opt-in mode for testing the raw head commit when needed
Execution engine
- Approve and Run alternative for forks in OSS — provide a standalone-engine flow for safely reviewing and explicitly allowing CI runs from forked pull requests
- Re-run all / failed checks (check-suite) — the check-suite "re-run all" button re-runs the whole workflow; scoping it to just the previously-failed set (like the per-check re-run) is not done yet
- One workflow per orchestrator, parallelized — when an event matches
several workflows, dispatch one message (and one GitHub check / instance)
per workflow instead of running them sequentially in a single orchestrator
process. Today they share one process and one exit code, so a single
overall_rchas to collapse all their outcomes (infra failure outranks an ordinary failure) for the controller's retry decision — a temporary hack that goes away once each workflow runs independently. - Config and Finish stages on the orchestrator — run the auto-injected setup/teardown jobs in-process instead of consuming a runner slot
- Native AI code review — a standalone reviewer that reviews the PR diff independently of the advisor and emits structured findings, in a format the advisor can then consume and act on (e.g. surface, drop run, or patch). The reviewer and the advisor stay decoupled — the reviewer produces the result, the advisor decides what to do with it
- Centralized event routing — have MainCI walk every workflow's active triggers (events, branch filters, cron schedules) and publish a routing table the webhook lambda consumes, so the lambda knows which branches to accept, which schedules to fire, and which events to drop without each workflow encoding that in the lambda by hand
- Remove AWS CLI dependency from CI runtime — Praktika runtime code should
use boto3 APIs directly instead of shelling out to
aws
Infrastructure / deployment
- Incremental deploys with component hashes — compute a stable hash for every deployable infrastructure component and persist the deployment manifest in Parameter Store together with the Praktika version used for that deploy. On redeploy, compare the current component hashes with the stored manifest, validate the Praktika version compatibility, and update only the components whose inputs changed so routine deploys complete faster.
Observability
- Log export for orchestrator and runners — live tail and persisted archive, accessible without SSM
- Move AI agent logging and observability into
AIProvider— consolidate AI session logging, turn tracing, usage/cost accounting, and related observability hooks under the provider abstraction instead of spreading them across the advisor/orchestrator flow - Infra watch agent — continuously monitor SQS queues, runner and orchestrator pools, Lambda functions, CI DB, and other managed services; log abnormal state, health regressions, and infrastructure problems for follow-up
Networking
- Private-access gateway (VPN) — reach the HTML report and CI DB when those run on private endpoints; optionally also SSH to runner instances for debugging
- Native DockerHub proxy component — create an in-VPC DockerHub pull-through cache for runner pools so Docker image pulls stay local, avoid DockerHub rate limits, and do not depend on the legacy cross-VPC proxy
Report / UX
- Pre/post-hook results in report — move hook sub-results out of
Result.resultsintoResult.ext.pre_hook_result/Result.ext.post_hook_resultso they are hidden by default and revealed only when the user clicks something like "show infra results"; if any hook result is failed the report page must still surface a Warning note regardless of the toggle state