newton-agent
v1.0.3
Published
Phase 1 MVP CLI for Newton academic assistant
Readme
Newton Agent
Newton Agent is a production-ready Node.js CLI assistant for Newton learners. It connects LLMs, MCP tools, and Telegram to generate daily plans, run autonomous monitoring, and answer study queries.
Install
npm install -g newton-agentYou can also run without global install:
npx newton-agentSetup
newton-agent initInit flow will:
- ask provider + API key
- auto-assign default model for that provider
- ask Telegram bot token + chat ID
- configure MCP (Newton by default)
- run setup validation checks (LLM, Telegram, MCP)
Start
newton-agent startThis starts:
- daily summary scheduler
- autonomous monitor
- Telegram listener
If already running, start will fail. Use --restart to replace current session:
newton-agent start --restartMain Commands
newton-agent init- guided setup + validationnewton-agent doctor- full health diagnosticsnewton-agent start- start in backgroundnewton-agent start --foreground --run-now- run in current terminal and trigger daily jobnewton-agent stop- stop all running scheduler sessionsnewton-agent chat- interactive CLI chatnewton-agent monitor-now- run autonomous monitor with live datanewton-agent monitor-now --mock --dry-run- simulate monitor without sending Telegramnewton-agent telegram-listen- run Telegram listener onlynewton-agent mcp-auth --reset- force fresh MCP authentication flownewton-agent state-status- inspect dedupe statenewton-agent state-reset- reset dedupe state
Telegram Usage
Supported commands:
/start/help/today/assignments/attendance/tomorrow
Natural messages also work without /start.
Example Output
📅 TODAY
• GenAI - B: RAG Introduction (08:00)
• DVA - B: Bivariate Analysis (10:00)
🎯 PRIORITY
• SD Lab: Observer pattern assignment (5h left)
• DM Lab: Rules of Inference worksheet (9h left)
🧭 PLAN
• Finish SD Lab first in one deep-work block.
• Revise GenAI notes after class.
⚠️ WARNING
• 1 missed lecture needs review.Doctor Output
newton-agent doctor prints:
STATUS:
- CONFIG: OK
- LLM: OK
- MCP: OK
- TELEGRAM: OK
- SCHEDULER: OKRuntime Files
- Config:
~/.newton-agent/config.json - PID lock:
~/.newton-agent/scheduler.pid - State store:
~/.newton-agent/state.json
Requirements
- Node.js 20+
- Valid provider API key
- Telegram bot token + chat ID
- MCP server available (Newton MCP by default)
