Skip to content
Agentmart
Submit a tool

topchester-config

Configure Topchester project and user settings.

Skill by kodi

IndexedMIT★ 3
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/kodi-topchester-config

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Configure Topchester project and user settings. Use when editing or explaining `topchester.jsonc`, `~/.config/topchester/config.jsonc`, model providers, command policy, ignore paths, hooks, project instruction files, or repo-scoped command approvals.

Use cases: writing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/topchester-config

What's inside

Skill name
topchester-config
Description
Configure Topchester project and user settings. Use when editing or explaining `topchester.jsonc`, `~/.config/topchester/config.jsonc`, model providers, command policy, ignore paths, hooks, project instruction files, or repo-scoped command approvals.
License
MIT
Instructions
163 lines in SKILL.md · view on GitHub

Before installing

  • Instructions read files in your home folder (~/.ssh, ~/.aws…)

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Topchester Config

## When to Use

Use when the user asks about Topchester configuration, setup, model routing, provider keys, command approvals, ignore rules, hooks, project instructions, or where a setting should live.

Do not use for ordinary application code unless the task touches Topchester config files or Topchester runtime policy.

## Source Of Truth

Before changing config behavior, inspect the implementation and tests:

- `src/config/index.ts`
- `test/config.test.ts`
- `docs/configuration/config-files.md`
- `docs/configuration/models-and-providers.md`
- `docs/configuration/bash-permissions.md`
- `docs/reference/config-schema.md`
- `docs/reference/cli.md`

Prefer the current code and tests over older docs if they disagree, then update docs when the task changes user-facing behavior.

## File Locations

Topchester loads the base config files in this order. Later base files override earlier files:

1. Built-in defaults.
2. `topchester.jsonc`
3. `~/.config/topchester/config.jsonc`
4. One selected profile: `--config <path>` when supplied, otherwise `TOPCHESTER_CONFIG`.

`--config` and `TOPCHESTER_CONFIG` select the same optional profile slot. If both are set, the CLI path is active and the environment path is shadowed rather than parsed or merged.

Use `topchester.jsonc` for team-shared project policy such as ignore paths, hooks, instruction filenames, and command policy. Use `~/.config/topchester/config.jsonc` for personal provider setup, model choices, and API-key environment names.

Do not put secrets in committed config. Prefer `apiKeyEnv` over `apiKey`.

`.topchester/` is for local state, not runtime configuration. `.agents/topchester/` stores sessions and logs. `topchester-kb/` stores compiled knowledge, not runtime configuration.

## Common Shape

Use JSONC for new examples:

```jsonc
{
  "$schema": "https://topchester.com/schemas/config.v1.json",
  "models": {
    "default": "openrouter/anthropic/claude-sonnet-4.5",
    "fast": "openrouter/google/gemini-3.1-flash-lite",
    "kb.summarize": "openrouter/google/gemini-3.1-flash-lite",
    "choices": ["openrouter/anthropic/claude-sonnet-4.5", "openrouter/google/gemini-3.1-flash-lite"],
  },
  "ignore": {
    "paths": ["generated/**"],
  },
  "tools": {
    "bash": {
      "allowExact": ["pnpm test"],
      "allow": [["node", "scripts/check"]],
      "deny": [["pnpm", "publish"]],
    },
  },
}
```

## Models

Topchester exposes these model slots:

- `default`: main agent work and fallback for unspecified slots.
- `fast`: quick checks and lightweight agent work.
- `kb.summarize`: knowledge-base summarization.
- `choices`: models shown by model-selection UI.

Model refs can be provider-qualified strings such as `openrouter/anthropic/claude-sonnet-4.5`, or objects with `name`, optional `provider`, and optional `toolProtocol`.

Provider config lives in the top-level `providers` object:

```jsonc
{
  "models": {
    "default": "anthropic/claude-sonnet-4.5",
  },
  "providers": {
    "default": "openrouter",
    "openrouter": {
      "type": "openai-compatible",
      "baseURL": "https://openrouter.ai/api/v1",
      "apiKeyEnv": "OPENROUTER_API_KEY",
      "supportsStructuredOutputs": true,
    },
  },
}
```

Valid `toolProtocol` values are `auto`, `native`, `text-json`, and `text-xml`. Valid OpenRouter routing values are `auto`, `force`, and `off`.

## Command Policy

`bash` runs approval-gated shell commands inside the workspace. Use:

- `tools.bash.allowExact` for exact repo-approved commands.
- `tools.bash.allow` for simple argv prefixes.
- `tools.bash.deny` for blocked argv prefixes.

Command policy rules must be simple command prefixes. Do not include shell operators, redirects, globs, multiline commands, absolute paths, or leading/trailing whitespace.

Repo-scoped command approvals are persisted to `topchester.jsonc` under `tools.bash.allowExact`.

## Ignore Paths

`ignore.paths` only affects Knowledge Compiler inventory. Patterns are workspace-relative globs. Absolute paths and `..` traversal are invalid.

Do not hardcode lockfiles as default ignores. If a project wants to ignore lockfiles, keep that decision in project config.

## Hooks

Hooks live under `hooks` and use command handlers:

From kodi/topchester-agent, MIT.

Signals

Stars
3
Forks
0
Open issues
0
Last commit (this folder)
Jul 15, 2026 (3 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from kodi

Cite this page

topchester-config skill. Agent Mart. https://agentmart.dev/skills/kodi-topchester-config (last updated 2026-10-24)