TravelPlanner: A Chinese Travel Planning Agent for DeepSeek Harness

Preface

DeepSeek Harness (DSH) adopts a plugin-based architecture that allows developers to inject tool capabilities into the Agent context. Travel planning is a high-frequency need, but ordinary dialogue models tend to fabricate data such as train schedules, ticket prices, and opening/closing times. TravelPlanner is a Chinese travel planning Agent running inside DSH, maintained by AusertDream. It solves the problems of “outdated information” and “unrealistic plans” by calling data sources in real time and performing hard-constraint checks, ultimately delivering a single-file HTML travel guide.

Core Capabilities

This plugin primarily provides the following features:

  • Real-time data queries: Supports real-time queries for prices and routes from 12306, Fliggy, Tuniu, and Amap, with clearly labeled data sources.
  • Offline travel guide delivery: Outputs a single-file HTML travel guide that supports offline viewing, with inline images and mobile-responsive layouts.
  • Real city navigation: Based on Amap’s real routes, provides subway transfer plans, ticket prices, and travel durations.
  • Accommodation filtering and room types: Supports three-tier hotel price filtering (including a low-price tier) and displays real photos of room types.
  • Hard-constraint verification: Automatically checks constraints such as closure days, reservation release times, last train times, and weather conditions.
  • Budget and charts: Provides itemized budget calculations with ring chart visualization, where each item is traceable to its source.
  • Environment self-check: Detects whether required API keys are configured before delivery, and prompts users if any are missing.

Installation and Configuration

Environment Requirements

Before running, you need to prepare Node.js ≥ 22, Python 3, Git, and related CLI tools.

Installation Steps

Run the following commands in the terminal to install:

# Install data source CLI tools
npm install -g @fly-ai/flyai-cli @amap-lbs/amap-gui tuniu-cli

# Install Python dependencies
python -m pip install pillow

# Clone the repository and run the installation script
git clone https://github.com/AusertDream/TravelPlanner.git
cd TravelPlanner
node scripts/install.mjs

The installation script will automatically handle tool scripts, skill files, and environment self-checks.

Key Configuration

All key configurations are stored in the .env file (typically located at ~/.dsh/preset-assets/travel-planner/.env).

  • Required keys:
    • AMAP_KEY / AMAP_SECURITY_KEY: For Amap POI and city route queries.
    • FLYAI_API_KEY: For real-time pricing of Fliggy flights, hotels, and attraction tickets.
  • Optional keys:
    • GOOGLE_MAPS_API_KEY: Enhanced functionality for embedding Google Maps in the travel guide (auto-degrades when no key is provided).
    • UNSPLASH_ACCESS_KEY: For travel guide images.
    • TUNIU_API_KEY: Tuniu as a secondary data source.

After configuration, you can run node ~/.dsh/preset-assets/travel-planner/doctor.mjs for a self-check.

Usage Examples

Create a new session in DSH, switch to “Travel Planning Assistant” mode, and describe your needs in natural language:

  • “Going from Hangzhou to Xi’an for 4 days during the National Day holiday, two adults and one 6-year-old child, budget of 10,000 yuan, want to see the Terracotta Army.”
  • “Help me check if there are any issues with this itinerary.”
  • “The second day is too rushed, please make it more relaxed.”

The Agent will first confirm necessary information (departure location, dates, number of people, budget) before planning. It only performs queries and planning—it does not make bookings, process payments, or submit identification documents.

Use Cases and Considerations

This plugin is primarily designed for domestic travel planning. Its strengths lie in domestic transportation (12306, Fliggy, Amap) and real city routes; its capabilities for overseas city routes are weaker. The Google Maps API key is optional; in domestic network environments, Amap tiles are typically more stable.

Note: The plugin runs with the permissions of the current DSH process. It is recommended to review the source code and license (MIT) before installation. Keys are only stored in the local .env file and are not written into the code logic.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye