The aico history
commands are a powerful feature for controlling the context sent to the AI. Every time you run aico ask
or aico edit
, your entire active conversation history is sent along with your new prompt. This is how the AI "remembers" what you've discussed, such as a plan you created in a previous step.
However, as a conversation gets longer, the context can become very large. This has two main effects:
- It increases cost and token usage. More history means a larger payload for the API call.
- It can distract the AI. Early brainstorming or corrected mistakes might not be relevant to the current task, but the AI will still see them.
The aico history
subgroup lets you solve this by telling aico
: "For the next prompt, only use the conversation starting from this specific point." The older messages are not deleted; they are simply ignored for future API calls until you decide otherwise.