aKode 0.5.0: riepilogo della memoria a inizio sessione, sollecito alle azioni annunciate, daemon allineato al CLI
- ext/memoria: legge una volta per sessione la risorsa memoria://briefing (file di git status, budget di token, timeout breve), accetta solo un blocco <memoria_briefing> chiuso e limitato, lo inserisce dopo le istruzioni del plugin e lo tiene in cache per il thread (prefisso del prompt stabile). Impostazioni [memoria] briefing, briefing_timeout_ms, briefing_max_tokens. - Turno: se il modello chiude con un messaggio che annuncia un'azione senza chiamare strumenti, un solo sollecito per turno ([agent] announce_nudges, predefinito 1, 0 lo disattiva), con avviso visibile e test sui messaggi osservati con Qwen. - Daemon: sync_with_cli confronta l'eseguibile del CLI con il pacchetto del daemon e, se diverso, lo seleziona e riavvia solo quando non ci sono sessioni caricate; altrimenti avviso. Usato all'avvio della TUI, da `akode update`, da install.sh e da `akode app-server daemon update --from-cli --if-idle`. Prima un daemon preparato una volta restava alla versione vecchia (CLI 0.4.0 con app server 0.3.1). - Test: snapshot del doctor indipendenti dalla versione; snapshot della TUI aggiornati alla 0.5.0 e allo schema dei tool appiattiti della 0.4.0. - Versione 0.5.0 e sezione Novità nel README. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -501,6 +501,9 @@ pub struct ConfigToml {
|
||||
/// Settings for the main agent loop (e.g. loop protection).
|
||||
pub agent: Option<AgentToml>,
|
||||
|
||||
/// Settings for the imeAI `memoria` plugin (session-start briefing).
|
||||
pub memoria: Option<MemoriaToml>,
|
||||
|
||||
/// Goal-related settings.
|
||||
pub goals: Option<GoalsToml>,
|
||||
|
||||
@@ -784,6 +787,25 @@ pub struct AgentToml {
|
||||
/// Stop the turn when the model repeats the same tool call and gets the same failure this
|
||||
/// many times in a row. Default: 3. `0` disables the check.
|
||||
pub max_repeated_failures: Option<u32>,
|
||||
/// When the model ends a turn with a message that only announces an action ("Now I'll run
|
||||
/// the tests") without calling any tool, send it one short reminder and let it continue,
|
||||
/// at most this many times per turn. Default: 1. `0` disables the reminder.
|
||||
pub announce_nudges: Option<u32>,
|
||||
}
|
||||
|
||||
/// `[memoria]` table: session-start briefing of the imeAI `memoria` plugin.
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, Default, PartialEq, Eq, JsonSchema)]
|
||||
#[schemars(deny_unknown_fields)]
|
||||
pub struct MemoriaToml {
|
||||
/// Add the memory briefing (preferences, project memories, memories linked to the files in
|
||||
/// `git status`) to the prompt at session start. Default: true. Only used while the
|
||||
/// `memoria` plugin is enabled and its MCP server is ready.
|
||||
pub briefing: Option<bool>,
|
||||
/// Maximum wait for the briefing, in milliseconds; on timeout the session starts without
|
||||
/// it. Default: 3000.
|
||||
pub briefing_timeout_ms: Option<u64>,
|
||||
/// Token budget requested from the server for the briefing. Default: 1500 (300-3000).
|
||||
pub briefing_max_tokens: Option<u32>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, Default, PartialEq, Eq, JsonSchema)]
|
||||
|
||||
Reference in New Issue
Block a user