Tutorial: Local-first developer flow (Ollama)
Documented for Akmon 2.0.0.
Time estimate: 15-20 minutes
Complexity: Beginner
Who this is for
Developers who want a fully local Akmon workflow with verifiable session evidence.
What you will have at the end
- One interactive local session.
- One equivalent headless JSON run.
- Verified audit/evidence artifacts for review.
Prerequisites
akmon --versionprints2.0.0(or your current build).ollamais installed and running.- You are inside a git repository.
Steps
- Pull a local model and verify Akmon.
ollama pull qwen2.5-coder:7b
akmon --version
- Start interactive mode with a local model and dev policy profile.
cd /path/to/your-repo
akmon --model qwen2.5-coder:7b --policy-profile dev chat
- Run one controlled implementation request.
add validation to the registration handler and update tests
Expected result: Akmon asks for approvals before write actions.
- Run an equivalent headless task for machine-readable artifact output.
akmon --model qwen2.5-coder:7b --yes --output json \
--task "add validation to the registration handler and update tests" \
| tee run.json
- Extract the session ID and verify recorded artifacts.
SESSION_ID="$(jq -r '.session_id' run.json)"
akmon audit verify ".akmon/audit/${SESSION_ID}.jsonl"
akmon evidence verify ".akmon/evidence/${SESSION_ID}.json"
akmon verify "${SESSION_ID}"
What gets recorded in evidence
- Session metadata (session/model/provider context).
- Tool execution and reliability metrics.
- Replay metadata and policy/tool registry hashes.
- Paths to audit/evidence artifacts for review handoff.
How a reviewer validates this
- Confirm
akmon verify <session-id>exits0. - Confirm
akmon audit verifyandakmon evidence verifyboth succeed. - Inspect
run.jsonfields (session_id,status,reliability_metrics,replay_metadata) for expected run characteristics.
Verification
jq '{session_id,status,reliability_metrics,replay_metadata}' run.json
Expected result: JSON object includes non-empty session_id and status.
Troubleshooting
- If Ollama is unavailable, check
ollama psand retry. - If provider resolution is unexpected, run
akmon config explain-provider. - If first local response is slow, warm with
ollama run qwen2.5-coder:7bonce before rerunning.