File tree Expand file tree Collapse file tree 3 files changed +21
-2
lines changed
Expand file tree Collapse file tree 3 files changed +21
-2
lines changed Original file line number Diff line number Diff line change 1+ .PHONY : chat logs
2+
3+ install :
4+ uv sync && uv run pre-commit install
5+
6+ chat :
7+ uv run chat
8+
9+ logs :
10+ uv run textual console -x SYSTEM -x EVENT -x DEBUG -x INFO
Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ This tool is for those who wish for slightly more control over their MCP servers
1515This app uses [ uv] ( https://github.com/astral-sh/uv ) for package management so first install that. Then:
1616
1717- ` git clone https://github.com/damassi/agent-chat-cli-python.git `
18- - ` uv sync `
19- - ` uv run chat`
18+ - ` make install `
19+ - ` make chat`
2020
2121Additional MCP servers are configured in ` agent-chat-cli.config.yaml ` and prompts added within the ` prompts ` folder.
2222
Original file line number Diff line number Diff line change 1+ import logging
12import asyncio
3+
24from textual .app import App , ComposeResult
35from textual .containers import VerticalScroll
46from textual .binding import Binding
7+ from textual .logging import TextualHandler
58
69from agent_chat_cli .components .header import Header
710from agent_chat_cli .components .chat_history import ChatHistory , MessagePosted
1417
1518load_dotenv ()
1619
20+ logging .basicConfig (
21+ level = "NOTSET" ,
22+ handlers = [TextualHandler ()],
23+ )
24+
1725
1826class AgentChatCLIApp (App ):
1927 CSS_PATH = "utils/styles.tcss"
@@ -37,6 +45,7 @@ def compose(self) -> ComposeResult:
3745 yield UserInput (query = self .agent_loop .query )
3846
3947 async def on_mount (self ) -> None :
48+ logging .debug ("Starting agent loop..." )
4049 asyncio .create_task (self .agent_loop .start ())
4150
4251 async def on_message_posted (self , event : MessagePosted ) -> None :
You can’t perform that action at this time.
0 commit comments