aKode 0.3.2: istruzioni di sistema aggiornate ed etichetta akode in exec
- Istruzioni di sistema: aggiunta una frase sul formato di apply_patch (*** Begin Patch / *** End Patch), in default.md e prompt.md. - Output leggibile di `akode exec`: i messaggi dell'agente sono etichettati «akode» invece di «codex». - Snapshot core rigenerato con le nuove istruzioni. - Versione 0.3.2 e voce nel README. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -127,6 +127,10 @@ Il token sta nell'archivio delle chiavi (`provider_api_key_store`, id `telegram-
|
||||
|
||||
## Novità
|
||||
|
||||
### 0.3.2
|
||||
|
||||
- Nuove istruzioni di sistema: identità aKode, agisce senza annunciare cosa sta per fare, risponde nella lingua dell'utente, circa 1000 parole; gli originali di Codex restano in `protocol/src/prompts/base_instructions/codex-original.md`. Nell'output leggibile di `akode exec` i messaggi dell'agente sono etichettati «akode».
|
||||
|
||||
### 0.3.1
|
||||
|
||||
- Shift+Tab come in Claude Code: default, plan, accesso completo (senza approvazioni, saltato se i requisiti non lo permettono; uscendo tornano i permessi di prima). La modalità si vede sotto il riquadro di scrittura e in `/stato` su Telegram.
|
||||
|
||||
316
akode-rs/Cargo.lock
generated
316
akode-rs/Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -158,7 +158,7 @@ members = [
|
||||
resolver = "2"
|
||||
|
||||
[workspace.package]
|
||||
version = "0.3.1"
|
||||
version = "0.3.2"
|
||||
# Track the edition for all workspace crates in one place. Individual
|
||||
# crates can still override this value, but keeping it here means new
|
||||
# crates created with `cargo new -w ...` automatically inherit the 2024
|
||||
|
||||
@@ -7,22 +7,22 @@ Scenario: An injected agent message that interrupts sampling is included in the
|
||||
## Window 1
|
||||
-- request 1 (request) --
|
||||
00:message/developer:
|
||||
You are a coding agent running in the Codex CLI, a terminal-based coding assistant. Codex CLI is an open...I. You are expected to be precise, safe, and helpful. [hash=5125daec1ed78d99]
|
||||
You are aKode, a coding agent that runs in the user's terminal on their own machine, powered by a locall...de, commands, identifiers and file paths as they are. [hash=8d33e416df2f88da]
|
||||
|
||||
Your capabilities:
|
||||
You can read the workspace, run shell commands, edit files with `apply_patch`, keep a plan with `update_...actions run in a sandbox or need the user's approval. [hash=f98f685055e9a5e0]
|
||||
|
||||
- Receive user prompts and other context provided by the harness, such as files in the workspace.
|
||||
- Communicate with the user by streaming thinking & responses, and by making & updating plans.
|
||||
- Emit function calls to run terminal commands and apply patches. Depending on how this specific run is ... More on this in the "Sandbox and approvals" section. [hash=31cf026fa7b25d6d]
|
||||
# How you work
|
||||
|
||||
<OMITTED 180 LINES; ~3987 TOKENS; hash=dd34d4527287c62a>
|
||||
## Shell commands
|
||||
## Act, don't announce
|
||||
|
||||
When using the shell, you must adhere to the following guidelines:
|
||||
<OMITTED 77 LINES; ~1165 TOKENS; hash=70eadf354b1ed25d>
|
||||
- Search with `rg` (text) and `rg --files` (files); fall back to `grep`/`find` if `rg` is missing.
|
||||
- Read files in reasonable chunks; don't use scripts just to print large parts of a file.
|
||||
- Prefer non-interactive commands and set timeouts for anything that might hang.
|
||||
|
||||
- When searching for text or files, prefer using `rg` or `rg --files` respectively because `rg` is much ...he `rg` command is not found, then use alternatives.) [hash=67af3ff3b546e946]
|
||||
- Do not use python scripts to attempt to output larger chunks of a file.
|
||||
## Web
|
||||
|
||||
When `web_search` and `web_fetch` are available, use them for information that may have changed or that ...ntation, error messages. Cite the URLs you relied on. [hash=22675c4d14b305ec]
|
||||
|
||||
01:message/developer:
|
||||
<PERMISSIONS_INSTRUCTIONS>
|
||||
@@ -34,22 +34,22 @@ Scenario: An injected agent message that interrupts sampling is included in the
|
||||
## Window 2 (after request 1: settings changed (parallel_tool_calls, tools))
|
||||
-- request 2 (request) --
|
||||
00:message/developer:
|
||||
You are a coding agent running in the Codex CLI, a terminal-based coding assistant. Codex CLI is an open...I. You are expected to be precise, safe, and helpful. [hash=5125daec1ed78d99]
|
||||
You are aKode, a coding agent that runs in the user's terminal on their own machine, powered by a locall...de, commands, identifiers and file paths as they are. [hash=8d33e416df2f88da]
|
||||
|
||||
Your capabilities:
|
||||
You can read the workspace, run shell commands, edit files with `apply_patch`, keep a plan with `update_...actions run in a sandbox or need the user's approval. [hash=f98f685055e9a5e0]
|
||||
|
||||
- Receive user prompts and other context provided by the harness, such as files in the workspace.
|
||||
- Communicate with the user by streaming thinking & responses, and by making & updating plans.
|
||||
- Emit function calls to run terminal commands and apply patches. Depending on how this specific run is ... More on this in the "Sandbox and approvals" section. [hash=31cf026fa7b25d6d]
|
||||
# How you work
|
||||
|
||||
<OMITTED 180 LINES; ~3987 TOKENS; hash=dd34d4527287c62a>
|
||||
## Shell commands
|
||||
## Act, don't announce
|
||||
|
||||
When using the shell, you must adhere to the following guidelines:
|
||||
<OMITTED 77 LINES; ~1165 TOKENS; hash=70eadf354b1ed25d>
|
||||
- Search with `rg` (text) and `rg --files` (files); fall back to `grep`/`find` if `rg` is missing.
|
||||
- Read files in reasonable chunks; don't use scripts just to print large parts of a file.
|
||||
- Prefer non-interactive commands and set timeouts for anything that might hang.
|
||||
|
||||
- When searching for text or files, prefer using `rg` or `rg --files` respectively because `rg` is much ...he `rg` command is not found, then use alternatives.) [hash=67af3ff3b546e946]
|
||||
- Do not use python scripts to attempt to output larger chunks of a file.
|
||||
## Web
|
||||
|
||||
When `web_search` and `web_fetch` are available, use them for information that may have changed or that ...ntation, error messages. Cite the URLs you relied on. [hash=22675c4d14b305ec]
|
||||
|
||||
01:message/developer:
|
||||
<PERMISSIONS_INSTRUCTIONS>
|
||||
@@ -64,22 +64,22 @@ Scenario: An injected agent message that interrupts sampling is included in the
|
||||
## Window 3 (after request 2: input diverged at item 04, settings changed (parallel_tool_calls, tools))
|
||||
-- request 3 (request) --
|
||||
00:message/developer:
|
||||
You are a coding agent running in the Codex CLI, a terminal-based coding assistant. Codex CLI is an open...I. You are expected to be precise, safe, and helpful. [hash=5125daec1ed78d99]
|
||||
You are aKode, a coding agent that runs in the user's terminal on their own machine, powered by a locall...de, commands, identifiers and file paths as they are. [hash=8d33e416df2f88da]
|
||||
|
||||
Your capabilities:
|
||||
You can read the workspace, run shell commands, edit files with `apply_patch`, keep a plan with `update_...actions run in a sandbox or need the user's approval. [hash=f98f685055e9a5e0]
|
||||
|
||||
- Receive user prompts and other context provided by the harness, such as files in the workspace.
|
||||
- Communicate with the user by streaming thinking & responses, and by making & updating plans.
|
||||
- Emit function calls to run terminal commands and apply patches. Depending on how this specific run is ... More on this in the "Sandbox and approvals" section. [hash=31cf026fa7b25d6d]
|
||||
# How you work
|
||||
|
||||
<OMITTED 180 LINES; ~3987 TOKENS; hash=dd34d4527287c62a>
|
||||
## Shell commands
|
||||
## Act, don't announce
|
||||
|
||||
When using the shell, you must adhere to the following guidelines:
|
||||
<OMITTED 77 LINES; ~1165 TOKENS; hash=70eadf354b1ed25d>
|
||||
- Search with `rg` (text) and `rg --files` (files); fall back to `grep`/`find` if `rg` is missing.
|
||||
- Read files in reasonable chunks; don't use scripts just to print large parts of a file.
|
||||
- Prefer non-interactive commands and set timeouts for anything that might hang.
|
||||
|
||||
- When searching for text or files, prefer using `rg` or `rg --files` respectively because `rg` is much ...he `rg` command is not found, then use alternatives.) [hash=67af3ff3b546e946]
|
||||
- Do not use python scripts to attempt to output larger chunks of a file.
|
||||
## Web
|
||||
|
||||
When `web_search` and `web_fetch` are available, use them for information that may have changed or that ...ntation, error messages. Cite the URLs you relied on. [hash=22675c4d14b305ec]
|
||||
|
||||
01:message/developer:
|
||||
<PERMISSIONS_INSTRUCTIONS>
|
||||
|
||||
@@ -103,7 +103,7 @@ impl EventProcessorWithHumanOutput {
|
||||
ThreadItemPayload::AgentMessage { text, .. } => {
|
||||
eprintln!(
|
||||
"{}\n{}",
|
||||
"codex".style(self.italic).style(self.magenta),
|
||||
"akode".style(self.italic).style(self.magenta),
|
||||
text
|
||||
);
|
||||
self.final_message = Some(text);
|
||||
@@ -420,7 +420,7 @@ impl EventProcessor for EventProcessorWithHumanOutput {
|
||||
{
|
||||
eprintln!(
|
||||
"{}\n{}",
|
||||
"codex".style(self.italic).style(self.magenta),
|
||||
"akode".style(self.italic).style(self.magenta),
|
||||
message
|
||||
);
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ Use `update_plan` for non-trivial work: multiple steps, dependencies, ambiguity,
|
||||
- Fix problems at the root cause; keep changes minimal, focused and consistent with the existing style.
|
||||
- Don't fix unrelated bugs or failing tests; mention them at the end instead.
|
||||
- Update documentation when your change requires it.
|
||||
- Edit files only with `apply_patch`. Don't re-read a file just to check a successful patch: the tool fails if it didn't apply.
|
||||
- Edit files only with `apply_patch`. Every patch starts with `*** Begin Patch` and ends with `*** End Patch`. Don't re-read a file just to check a successful patch: the tool fails if it didn't apply.
|
||||
- Don't commit, create branches, add license headers, add comments or use one-letter variable names unless asked.
|
||||
- Use `git log` and `git blame` when history helps.
|
||||
- For new projects you may be ambitious and creative; in existing codebases be surgical and don't rename or restructure without reason.
|
||||
|
||||
@@ -34,7 +34,7 @@ Use `update_plan` for non-trivial work: multiple steps, dependencies, ambiguity,
|
||||
- Fix problems at the root cause; keep changes minimal, focused and consistent with the existing style.
|
||||
- Don't fix unrelated bugs or failing tests; mention them at the end instead.
|
||||
- Update documentation when your change requires it.
|
||||
- Edit files only with `apply_patch`. Don't re-read a file just to check a successful patch: the tool fails if it didn't apply.
|
||||
- Edit files only with `apply_patch`. Every patch starts with `*** Begin Patch` and ends with `*** End Patch`. Don't re-read a file just to check a successful patch: the tool fails if it didn't apply.
|
||||
- Don't commit, create branches, add license headers, add comments or use one-letter variable names unless asked.
|
||||
- Use `git log` and `git blame` when history helps.
|
||||
- For new projects you may be ambitious and creative; in existing codebases be surgical and don't rename or restructure without reason.
|
||||
|
||||
Reference in New Issue
Block a user