I've been thinking about hooking up DeepSeek-TUI (the terminal-based interface for DeepSeek models) as a specialized agent inside OpenClaw – specifically to handle coding tasks autonomously.
The idea would be: OpenClaw orchestrates the agent loop, but when a coding subtask comes up (write a function, refactor a module, fix a bug), it delegates to DeepSeek-TUI, which has direct file system access and can read/write code locally.
Has anyone actually configured this? If so:
· How did you handle authentication / session management?
· Did you run into issues with context windows or token limits for larger codebases?
· How do you prevent the agent from going off the rails (e.g., rewriting more than intended)?
And more generally – is this even smart?
Potential upsides I see:
· DeepSeek's strong coding performance + low cost
· TUI mode gives it direct file editing capability (no brittle API wrappers)
· OpenClaw handles task planning and error recovery
Potential downsides:
· TUI wasn't built for agentic loops – might break with parallel requests or long-running sessions
· Security risks: giving a terminal-bound LLM write access to your codebase
· OpenClaw's agent protocol might not map cleanly to TUI's interactive REPL style
Curious if anyone has tried this or has strong opinions on why it's genius / terrible.
Thanks!