1919import sys
2020
2121from . import config
22- from .agent_session import AgentSession
2322from .client import Client
23+ from .session import Session
2424from .tools import default_registry
2525
2626
@@ -29,8 +29,8 @@ def make_session(
2929 config_path : str | None = None ,
3030 model : str | None = None ,
3131 stream : bool | None = None ,
32- ) -> AgentSession :
33- """Create an AgentSession from config file + env (no env required).
32+ ) -> Session :
33+ """Create a Session from config file + env (no env required).
3434
3535 The system prompt defaults to the ported main-agent prompt
3636 (config.DEFAULT_AGENT_PROMPT_FILE); the sub-agent prompt always
@@ -71,8 +71,8 @@ def make_session(
7171 # same LLM log file — the TUI advertises the main client's log
7272 # path, and a separate sub-agent log would fragment debugging
7373 subagent_client .log_path = client .log_path
74- from .agent_session import find_skill_dir
7574 from .prompts import assemble_agent_prompt , load_agent_prompt
75+ from .session import find_skill_dir
7676
7777 abs_project = os .path .abspath (project_dir )
7878 skill_dir = find_skill_dir (abs_project , paths .get ("skill_path" ))
@@ -97,7 +97,7 @@ def make_session(
9797 # instead of values drifted by earlier switches.
9898 llm_settings = dict (settings )
9999 llm_settings ["stream" ] = effective_stream
100- return AgentSession (
100+ return Session (
101101 project_dir = abs_project ,
102102 client = client ,
103103 model = model ,
@@ -128,8 +128,8 @@ def make_session_with_mcp(
128128 config_path : str | None = None ,
129129 model : str | None = None ,
130130 stream : bool | None = None ,
131- ) -> AgentSession :
132- """Create an AgentSession and connect its configured MCP servers.
131+ ) -> Session :
132+ """Create a Session and connect its configured MCP servers.
133133
134134 Wraps ``make_session``: the session's MCP servers are connected and
135135 their tools registered before the session is returned (discovery
0 commit comments