HD

hwxlr8/dog

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

0 stars 品質 54 トレンド 14

最小限のターミナルコーディングエージェント

概要

プロンプトで名前で画像を添付: @screenshot.png を見て、それを記述します。 Ctrl-Cで実行中のターンを中断します。 Config は、dog.json から読み込みます(-c でパスをオーバーライドします)。 環境変数は最初に読み込まれます。コンフィグファイルが上書きされます。 - OPENAI BASE URL — エンドポイント (maps to model.base url) - OPENAI API KEY — API キー (maps to model.api key) - OPENAI MODEL — モデル名 (maps to model.model) - HARNESS SKILLS DIR — スキルディレクトリ (skills dir) - HARNESS SYSTEM FILE システム プロンプトファイル (system file) - HARNESS TEXTDOWORLDCOMWORDIR - は、HARNESS SKILLS DIR - をコンパクトにしました

概要(AI 翻訳)

最小限のターミナルコーディングエージェント。

##ビルド

要求します:

  • [g++ (C++17)
  • [libcurl

使用法

インタラクティブコマンド

| コマンド | エフェクト | お問い合わせ | [[T2] | リストコマンド | | [/clear | 会話のコンテキストをクリア | | 【[[T4]】 | トグルプラン | | [/exit | 終了(または[T6]) |

プロンプト: [look at @screenshot.png and describe it] で名前で画像を添付します。 Ctrl-Cで実行中のターンを中断します。

設定

Config は [dog.json] から読みます (-c でパスをオーバーライドします)。 環境方針 変数は最初に読み込まれます。 config ファイルが上書きされます。

##例 [[T11]

キー

| キー | デフォルト | 説明 | お問い合わせ | [[T12] | [[T13] | OpenAI対応エンドポイント | | [model.api_key | ※(空)※ | 送信先 [[T15] | | [[T16] | [[T17] | 機種名 | | [[T18] | [500 | リクエストごとに最大工具・試薬のターン | | [[T20] | [128000 | トークンウィンドウ (0 = 不明) | | [model.compact_threshold | [[0.75] | プロンプトトークンがウィンドウのこの分を超えた場合のコンパクト | | [model.compact_keep | [6 | コンパクト化時のメッセージ保存機能 |

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

dog

A minimal terminal coding agent.

Build

make        # produces ./dog
make clean  # remove objects and binary

Requires:

  • g++ (C++17)
  • libcurl

Usage

dog                      # interactive session
dog "fix the bug"        # one-shot (headless), exits after one turn
dog --plan "design X"    # start in plan mode
dog -c myconfig.json     # use an alternate config file

Interactive commands

Command Effect
/help list commands
/clear clear the conversation context
/plan toggle plan mode
/exit quit (or Ctrl-D)

Attach images by name in a prompt: look at @screenshot.png and describe it. Interrupt a running turn with Ctrl-C.

Configuration

Config is read from dog.json (override the path with -c). Environment variables are read first; the config file then overrides them.

Example dog.json

{
  "model": {
    "base_url": "http://localhost:8000/v1",
    "api_key": "...",
    "model": "my-model",
    "max_turns": 500,
    "context_window": 192000,
    "compact_threshold": 0.75,
    "compact_keep": 6
  },
  "skills_dir": "skills",
  "system_file": "SYSTEM.md",
  "mcp": []
}

Keys

Key Default Description
model.base_url http://localhost:8000/v1 OpenAI-compatible endpoint
model.api_key (empty) sent as Authorization: Bearer ...
model.model local-model model name
model.max_turns 500 max tool/agent turns per request
model.context_window 128000 token window (0 = unknown)
model.compact_threshold 0.75 compact when prompt tokens exceed this fraction of the window
model.compact_keep 6 messages kept verbatim when compacting
skills_dir skills directory of SKILL.md skills
system_file SYSTEM.md system prompt file (built-in fallback if missing)
mcp [] MCP servers: { name, transport, command, args, url }

Environment variables

  • OPENAI_BASE_URL — endpoint (maps to model.base_url)
  • OPENAI_API_KEY — API key (maps to model.api_key)
  • OPENAI_MODEL — model name (maps to model.model)
  • HARNESS_SKILLS_DIR — skills directory (skills_dir)
  • HARNESS_SYSTEM_FILE — system prompt file (system_file)
  • HARNESS_CONTEXT_WINDOW — token window (model.context_window)
  • HARNESS_MAX_TURNS — max turns per request (model.max_turns)
  • HARNESS_COMPACT_THRESHOLD — compact threshold (model.compact_threshold)
  • HARNESS_COMPACT_KEEP — messages kept when compacting (model.compact_keep)
GitHub で README 全文を見る

推奨ツール

別のキーワードを試すか、フィルタを外してください。

インストール

npx skillfish add hwxlr8/dog
MCP 初心者?mcpskill.org のガイドから始めましょう →