Skip to content
ZX
← Notes

Natural-language task management with Function Calling

What I learned extending an open-source task manager with a DeepSeek-backed agent.

Updated

The starting point was an open-source task-management challenge. The extension adds a natural-language layer: users can query, create, update and complete tasks by talking to an agent rather than filling in forms.

Stack

React and TypeScript on the frontend, Express on the backend, and DeepSeek integrated through Function Calling. Tasks are persisted in JSON, with parent-child status updates handled on the server.

The parts that needed care

Parameter validation. A model can call a tool with plausible-looking but invalid arguments. Server-side validation is the only reliable boundary; the UI cannot be trusted to filter model output.

Destructive actions. Bulk deletion requires explicit confirmation. The agent proposes the action, and the user approves it before anything is removed.

Failure handling. Model timeouts and tool execution errors are normal in this kind of system. Returning a clear, actionable message is better than silently retrying or leaving the interface in a half-updated state.

Takeaway

Function Calling turns a language model into a useful interface only when the underlying operations are well-defined. Most of the work was not in the prompt — it was in making each tool's contract precise and enforcing it on the server.

Source: github.com/xz1028/todo-agent-xiaoming