Skip to content
Back to skills

Chat Agents

ASecurity

"Build, use, and troubleshoot Khoj chat, conversation sessions,

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 8, 2026
toolsdockerapi

Works with

  • api

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill chat-agents --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Chat Agents?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Chat Agents
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-chat-agents/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-chat-agents)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: chat-agents
description: "Build, use, and troubleshoot Khoj chat, conversation sessions,
  agents, commands, model providers, streaming, and chat tools."
disable-model-invocation: true
metadata:
  disco-role: operating
license: AGPL 3.0
---

# Khoj Chat and Agents

Use this sub-skill when working on Khoj chat behavior, `/api/chat`, `/api/agents`, conversation sessions, chat commands, streaming events, agent configuration, model-provider routing, voice/image/code/research/operator features, or conversation sharing/history/file filters.

## Start Here

- Use `references/chat-api.md` for REST and WebSocket chat endpoints, `ChatRequestBody`, stream events, sessions, history, sharing, titles, message deletion, and conversation file filters.
- Use `references/agent-configuration.md` for `/api/agents`, `ModifyAgentBody`, `ModifyHiddenAgentBody`, privacy levels, tool/output options, hidden agents, file knowledge bases, and chat model selection.
- Use `references/tools-and-commands.md` for slash commands, automatic tool selection, command prerequisites, output modes, and tool failure behavior.
- Use `references/troubleshooting.md` for missing chat model/API key, unsafe prompts, rate limits, local provider mismatches, unavailable web/code/image/voice/operator services, and share-domain errors.
- Use `scripts/inspect_chat_schema.py` to print chat/agent Pydantic schemas, agent enum choices, conversation commands, and stream event names without starting the Khoj server.

## Boundaries

- This sub-skill owns chat request/response behavior, conversation and sharing APIs, agents, tools, model-provider checks, voice response, image/diagram output, code/research/operator routing, and chat-specific troubleshooting.
- Route raw content ingestion, parsing, indexing, and `/api/content` behavior to `content-indexing`.
- Route semantic search internals, query filters, embeddings, reranking, and `/api/search` to `search-retrieval`; chat can use file/query filters, but the search implementation lives there.
- Route scheduled automations, reminders, and memory API behavior to `automations-memory`.
- Route server startup, auth, CORS/host configuration, admin setup, Docker, and broad deployment diagnostics to `deployment-api`.

## Safe Workflow

1. Identify whether the task is chat transport, command/tool selection, agent configuration, model-provider setup, conversation metadata, or feature troubleshooting.
2. Inspect the schema with the bundled helper when payload fields or option values are uncertain; do not import `khoj.main` or run `khoj --help` for schema-only checks.
3. For behavior changes, keep tool prerequisites explicit: chat model/API setup is required for all chat, and `/online`, `/code`, `/image`, `/diagram`, `/research`, `/operator`, and voice each have additional service requirements.
4. For agent changes, distinguish user-facing public/private/protected agents from per-conversation hidden agents, and distinguish agent input tools from chat-only slash commands.
5. For verification, prefer small authenticated API calls or focused unit tests around route/helper behavior; avoid starting browsers, sandboxes, external model calls, or long research/operator runs unless the user explicitly requests operational validation.

## Evidence Basis

This guidance is distilled from Khoj chat and agent routes, conversation helpers, tool processors, model-provider docs, operator notes, and focused tests covering online chat, agent updates, and conversation utilities. It is self-contained for future coding agents and does not require reading original repo docs or tests at runtime.

Files in this skill

  • SKILL.md3.5 KB
  • references/agent-configuration.md9.4 KB
  • references/chat-api.md9.3 KB
  • references/tools-and-commands.md12.3 KB
  • references/troubleshooting.md13.5 KB
  • scripts/inspect_chat_schema.py2.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.