Files
imeai-aKode/akode-rs/thread-manager-sample
andrea.difonzo 07ba31d492 Ripristinato akode update verso il Gitea dell'utente (come in 0.9.2, senza il sync del daemon)
Da 9494b768, e1ce139a e 1c278642: crate akode-update (ultima release da
git.difonzo.net/andrea/imeai-aKode, confronto semver, download solo dallo stesso host, verifica
SHA-256, sostituzione atomica), `akode update [--check]`, riga di avviso nella TUI, controllo in
background all'avvio al massimo ogni 24 h (disattivabile con [update] check_on_startup = false;
non installa mai nulla da solo). Nessun contatto con OpenAI o altri domini; il sistema upstream
(curl chatgpt.com/codex/install.sh, npm, brew) resta rimosso. Lasciato fuori l'allineamento del
daemon (95f4ddcd).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-17 14:35:07 +01:00
..

ThreadManager Sample

Small one-shot binary that starts a Codex thread with ThreadManager from akode-core-api, submits a single user turn, and prints the final assistant message.

Authentication uses the configured credential storage under AKODE_HOME, including cli_auth_credentials_store, mcp_oauth_credentials_store, and features.secret_auth_storage. Local managed authentication requirements and auth routing settings are respected. This also applies to cargo run builds. Other execution settings remain the sample's built-in configuration.

cargo run -p akode-thread-manager-sample -- "Say hello"

Use --model to override the configured default model:

cargo run -p akode-thread-manager-sample -- --model gpt-5.2 "Say hello"

The prompt can also be piped through stdin:

printf 'Say hello\n' | cargo run -p akode-thread-manager-sample