Get started¶
This guide takes a Git repository from installation to its first ortak-published branch.
Requirements¶
Use a macOS or Linux checkout with:
- a Git repository that has at least one commit
- a local trunk branch such as
mainormaster - a Git remote if you plan to push published branches
Install ortak¶
The installer selects the release for your operating system and architecture,
checks its SHA-256 digest, and writes the binary to ~/.local/bin.
Choose another directory or pin a release when needed:
ORTAK_INSTALL_DIR="$HOME/bin" curl -fsSL https://github.com/yibudak/ortak/raw/main/install.sh | sh
ORTAK_VERSION=v0.3.0 curl -fsSL https://github.com/yibudak/ortak/raw/main/install.sh | sh
Build from source instead:
Initialize the checkout¶
Run init at the repository root:
The command creates:
.ortak/db.sqlitefor sessions, edit ownership, messages, and errors.ortak/shadow/for the private edit historyortak.tomlfor workspace settings
ortak detects the trunk branch during initialization. Check
publish.base_branch if the detected
branch does not match your workflow.
Start the daemon¶
The detached process watches the checkout and writes its PID and log under
.ortak/.
The status output should start with daemon: running. Stop it with:
Connect an agent¶
Start a new agent session after installation. The plugin loads its hooks at session startup.
Start work¶
The SessionStart hook reports the session's current ortak-N identity. Confirm
it when needed:
Codex and other harnesses that do not export CLAUDE_CODE_SESSION_ID pass their
harness session ID:
Record one sentence that tells the other sessions what you will change:
Run other agents from the same checkout. Check the shared state with:
Keep the checkout stable
Do not run git add, commit, checkout, switch, stash, or branch
while sessions share the workspace. Those commands operate on the whole
checkout. Read-only Git commands remain safe.
Publish the first task¶
Rehearse the publish before creating anything:
Create and push the branch:
ortak prints the matching gh pr create or tea pr create command after a
successful push. See Publish work for exclusions,
stacked branches, and amendments.
Update ortak¶
The command checks the latest release and updates stale binary and plugin components. Restart active agent sessions after a plugin update.