Getting Started¶
Requirements¶
- Python 3.11+
- uv
Install¶
Operator-friendly installs (one command, predictable upgrades):
# Preferred (isolated tool install)
uv tool install runform-akc
# Upgrade later
uv tool upgrade runform-akc
# Alternative (also isolated)
pipx install runform-akc
# Upgrade later
pipx upgrade runform-akc
Optional: install a prebuilt standalone binary from GitHub Releases (no Python env):
curl -fsSL https://raw.githubusercontent.com/nonameuserd/runform/main/scripts/install-akc.sh | sh
~/.local/bin/akc --help
From source (contributors / editable dev):
git clone https://github.com/nonameuserd/runform.git
cd runform
uv sync
Useful extras:
uv sync --extra dev
uv sync --extra ingest-all
uv sync --extra mcp-serve
uv sync --extra vectorstore-pg
uv sync --extra delivery-providers
After uv sync, either activate the virtualenv or use uv run:
source .venv/bin/activate # Windows: .venv\Scripts\activate
akc --help
Bootstrap a project¶
Create .akc/project.json and the default local compile policy stub:
akc init
Useful variant for an existing repository:
akc init --detect
That also writes .akc/project_profile.json with detected toolchain and repository metadata.
That profile feeds existing-codebase compile behavior such as native toolchain resolution and practical backend runtime selection. It does not, by itself, guarantee authoritative backend materialization: AKC still requires runtime/language alignment, required native validation commands, repo anchors, and materializer support before treating generated execution workspaces as authoritative.
Safe local demo¶
This path stays local and avoids working-tree writes.
# 1. Index local docs with a deterministic offline embedder
akc ingest \
--tenant-id demo \
--connector docs \
--input ./docs \
--embedder hash \
--index-backend sqlite
# 2. Compile into artifacts only
akc compile \
--tenant-id demo \
--repo-id runform \
--outputs-root ./out \
--artifact-only
# 3. Verify artifacts
akc verify \
--tenant-id demo \
--repo-id runform \
--outputs-root ./out
# 4. Open the local viewer
akc view \
--tenant-id demo \
--repo-id runform \
--outputs-root ./out \
web
akc compile defaults to scoped_apply, so --artifact-only is the safest starting point for docs, demos, and CI.
Hosted LLM compile¶
Compile, living, and assistant now support hosted LLM backends, but offline remains the default.
Hosted generation is explicit:
export OPENAI_API_KEY=...
akc compile \
--tenant-id demo \
--repo-id runform \
--outputs-root ./out \
--artifact-only \
--llm-backend openai \
--llm-model gpt-4.1 \
--llm-allow-network
If you select openai, anthropic, or gemini without --llm-allow-network, AKC fails closed before making any outbound request.
Git-aware scoped apply¶
AKC's Git integration is part of the scoped_apply compile path. When your --apply-scope-root points at a Git working tree, AKC can create a topic branch and commit the applied patch for that run.
akc compile \
--tenant-id demo \
--repo-id runform \
--outputs-root ./out \
--compile-realization-mode scoped_apply \
--apply-scope-root "$PWD" \
--git-branch-per-run \
--git-commit
Current behavior:
- branch name format is
akc/compile/<patch_sha_prefix> - commits stage only the patch-touched paths, not the whole repository
- rollback snapshots of touched files are written under
.akc/rollback/by default - if Git integration is requested but
gitis missing or the scope root is not a Git repo, compile records a fail-closed denial instead of applying anyway
Environment model¶
AKC currently exposes two related environment models:
- operator/runtime safety profiles use
dev,staging, andprod - compile-time delivery plans use
local,staging, andproduction
For the full mapping, promotion defaults, and delivery-lane behavior, see environment-model.md.
Validation-backed verify¶
If you have a validator registry under configs/validation/validator_bindings.v1.yaml, you can execute observability and mobile validators during verify:
akc verify \
--tenant-id demo \
--repo-id runform \
--outputs-root ./out \
--execute-validators
Use .akc/project.json to point at a non-default registry:
{
"validation": {
"bindings_path": "configs/validation/validator_bindings.v1.yaml"
}
}
Common commands¶
Ingest repository code¶
akc ingest \
--tenant-id demo \
--connector codebase \
--input . \
--embedder hash \
--index-backend sqlite
Supported connectors today:
docscodebaseopenapislackdiscordtelegramwhatsappmcp
For copy-paste akc ingest examples (including flags for Slack, Discord, Telegram, WhatsApp, and MCP), see the repository’s examples/README.md.
Supported index backends today:
memorysqlitepgvector
Assistant mode¶
Single-turn planning:
akc assistant --mode plan -p "show me the next command to inspect the latest compile outputs"
Interactive loop:
akc assistant
Weighted memory is opt-in. Enable it globally with:
export AKC_WEIGHTED_MEMORY_ENABLED=1
You can also enable it per invocation with memory flags such as --memory-policy-path, --memory-pin, --memory-boost, or --memory-budget-tokens.
Assistant can also use a hosted planner with the same shared flags:
akc assistant \
--llm-backend openai \
--llm-model gpt-4.1-mini \
--llm-allow-network \
-p "show recent compile runs"
MCP server¶
Install the extra first:
uv sync --extra mcp-serve
Then run the read-only MCP server:
akc mcp serve
akc mcp serve supports stdio, streamable-http, and sse transports.
Runtime surfaces¶
The runtime subtree operates on emitted runtime bundles:
akc runtime --help
akc runtime coordination-plan --bundle /path/to/runtime_bundle.json
Primary runtime subcommands:
startcoordination-planstopstatuseventsreconcilecheckpointreplayautopilot
See runtime-execution.md for runtime routing, adapters, reconcile, and autopilot details.
Viewer¶
The viewer is local-first and read-only:
akc view --tenant-id demo --repo-id runform --outputs-root ./out tui
akc view --tenant-id demo --repo-id runform --outputs-root ./out web
akc view --tenant-id demo --repo-id runform --outputs-root ./out export
See viewer.md and viewer-trust-boundary.md.
Progressive adoption¶
AKC supports a practical adoption ladder:
- Observer:
akc init --detectandakc ingest --connector codebase - Advisor:
akc compile --artifact-only - Copilot:
akc compile --compile-realization-mode scoped_apply --apply-scope-root ... - Compiler/Autonomy: runtime, living recompile, and autopilot workflows after policy and operational gates are in place
For first use in a real repository, start with Observer or Advisor.