Introduction

DeepSeek Harness (DSH) adopts a plugin-based architecture. When building agents, handling financial calculations, unit conversions, and trip planning in daily life is a common requirement. Directly instructing the model in the prompt to perform complex arithmetic is error-prone. dsh-plugin-local-life provides a set of localized calculation tools, encapsulating these capabilities as standard tools for agents to call directly.

What Is This

This is a local-life toolkit maintained by developer 863683348. It provides a set of everyday calculation tools for DeepSeek Harness agents, covering budget planning, bill splitting, price comparison, discount calculation, unit conversion, and trip checklist generation.

Core Features

The plugin provides the following specific capabilities:

  1. Budget planning: Generate a monthly budget plan based on income and amounts or percentages for categories, and calculate the balance.
  2. Bill splitting: Support equal splitting or weighted splitting of bills, with optional tipping and rounding methods.
  3. Unit price comparison: Compare unit prices of different products (for example, per kilogram vs. per 100 grams).
  4. Discount calculation: Calculate percentage or fixed-amount discounts, with support for setting thresholds.
  5. Unit conversion: Support conversions for weight (jin/kg/pound), length (li/km/foot/mile), volume (liter/gallon), and temperature (Celsius/Fahrenheit).
  6. Trip checklist: Generate checklists based on scenarios, supporting city tours, airports, outdoor activities, or road trips.
  7. Expense ledger: Aggregate spending details by category and month.
  8. Loan amortization: Calculate repayment schedules and total interest for equal-installment or equal-principal loans.
  9. Spec-standardized price comparison: Standardize product specifications before comparing unit prices.
  10. Recipe cost: Calculate total cost and per-serving cost based on ingredients.

Installation and Enablement

Install the plugin via the CLI. The local_life tool will be registered globally after installation.

dsh plugin --profile <profile> add dsh-plugin-local-life

After installation is complete, restart the DSH process to use it.

Typical Usage

The plugin functionality can be verified through the following scenarios:

  1. Budget planning: Provide the agent with monthly income and the proportions of various expenses, and request a budget table.
  2. Bill splitting: Enter the total restaurant amount and number of participants, request weighted splitting (for example, by consumption amount), and calculate the final per-person payment including tip.
  3. Price comparison: Enter the prices and specifications of two products (for example, 50 yuan/500 g and 90 yuan/1 kg), and request a comparison of which is more value-for-money.
  4. Unit conversion: Convert 5 jin of meat to kilograms, or 20 degrees Celsius to Fahrenheit.
  5. Trip checklist: Request a travel checklist for a trip starting from an airport.

Notes

  1. Architecture compatibility: The tool architecture is validated based on the @deepseek-ai/dsh-tools value-schema DSL. Early versions used the required field at the output.schema root and disabled nested objects, which could cause DSH startup failure with the error “schema.required is not supported by the value schema DSL.” If you encounter startup issues, uninstall or upgrade the plugin.
  2. Runtime environment: The plugin is implemented in pure logic, has no file system access permissions, execution results are entirely determined by the current DSH process, and there are no side effects.
  3. Source inspection: It is recommended to check the source code and license before installation.

Summary

dsh-plugin-local-life solves common mathematical calculation problems in agents’ daily interactions. It does not depend on external services and provides practical functions such as budgeting, bill splitting, and price comparison through standard tool interfaces. Links to the source code and directory page are as follows: