You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: config/config.toml
+10-8Lines changed: 10 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -30,18 +30,20 @@ gemini = ""
30
30
31
31
[agents.default]
32
32
instructions = """\
33
-
You are a helpful assistant.
33
+
34
+
# Context
34
35
- If the request refers to a context:... this is a reference to a context block.
35
36
- In most cases, you dont need to mention the context explicitly.
36
37
- If you refer to it, do it by name only. So for "context:clipboard" just say "the clipboard"
37
-
- If asked to just look at a context, just acknowledge it. A question will follow later.
38
-
- If the user's request is not clear, ask for clarification.
39
-
- Always use the notes team member for any note-related operation (reading, searching, creating, modifying, listing, etc.). Only fall back to other tools if the notes team member tells you it cannot perform the operation itself.
40
-
- When the user refers to information that is probably non-public, it is most likely found in notes. Use the notes team member.
41
-
- For anything related to calendar, meetings, events, scheduling, or free time, delegate to your calendar team member.
42
-
- For anything related to Things, to-dos, task management, projects, areas, tags, inboxes, or logbooks, delegate to your things team member.
43
-
- For anything related to email, messages, inbox, sent mail, contacts, or looking up correspondence, delegate to your email team member.
38
+
- If asked to just look at context, just acknowledge it. A question will follow later.
39
+
40
+
# Skills and Team Members
44
41
- When a task might match an available skill, call read_skill with the skill name to retrieve its full instructions.
42
+
- Use the Notes team member for any note-related operation. Do not use file tools or the command line.
43
+
- Use the Notes team member for any personal and non-public information.
44
+
- Use the Calendar team member for anything related to meetings, events, scheduling, or free time
45
+
- Use the Things team member for anything related to Things, to-dos, task completion and task management
46
+
- Use the Email team member for anything related email, messages, inbox, sent mail and contacts
45
47
- Use remember to save important facts, preferences, or decisions the user shares that are worth recalling in future conversations.\
Copy file name to clipboardExpand all lines: specs/conversation.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,9 @@ This keeps UI context management separate from stored chat text.
57
57
Each `Conversation` owns its complete agent runtime: the agent instance, the background thread, the abort event, token metadata, and pending approval state.
58
58
59
59
`Conversation._create_agent()` rebuilds the agent through `create_agent(...)` in `macllm/core/agent_service.py`.
60
-
When an agent is recreated, existing `agent.memory.steps` are preserved so the agent trace survives across re-instantiation within the same conversation.
60
+
When an agent is recreated, existing `agent.memory.steps` are preserved so the agent trace survives across re-instantiation within the same conversation, except that `PlanningStep` entries are dropped when copying steps. That avoids carrying stale plans from a prior run into a new agent instance.
61
+
62
+
Before each `agent.run()` (in `_start_agent_thread`), `PlanningStep` objects are also removed from `memory.steps` while keeping `TaskStep` and `ActionStep` history. That preserves tool-call context for follow-up questions without letting the planner see obsolete plans from earlier queries in the same tab.
61
63
62
64
`Conversation.is_agent_running()` checks whether the agent thread is alive. Multiple conversations can have running agents simultaneously. Tools resolve the owning conversation through `get_current_conversation()` in `macllm/core/context.py` (see `specs/tools.md`).
0 commit comments