Files
Kigi-CLI/crates/codegen/kigi-tui/docs/user-guide
雷电芽衣 5f7416f3ef fix(permissions): native path deny/ask rules apply to the file the tool opens
Edit/Read/Grep rules matched only the raw argument string, so a workspace
symlink (or a quoted, `~`, `./`, `..`, or absolute spelling) reached a
denied file. The policy now resolves the path exactly as the tools do
(sanitize, expand `~`, display-cwd remap, join to the requesting session's
cwd), follows symlinks parent-first, and re-checks deny/ask rules on the
opened path and its target as absolute, `./`-relative and relative
spellings. Escalation only: no allow is granted through a link. A link
that cannot be followed forces a prompt that survives YOLO, auto mode and
the session edit grant, with event reason `unresolved_link`.

Permission requests now carry the requesting tool's cwd and display cwd
so a child worktree session sharing its parent's handle is checked where
it runs.

Ported from upstream 1.0.14 (grok-build permission/policy.rs symlink
re-check), reshaped for Kigi's lexical rule matcher.

Claude-Session: https://claude.ai/code/session_01RUqV8HVGXcAETyYbZ2tPQ4
2026-09-13 05:48:06 -04:00
..

Kigi User Guide

Learn how to install, configure, and extend Kigi, the terminal-based AI coding assistant from SpaceXAI.


Tier 1: Essential User Docs

Start here. These guides cover what you need on your first day.

# Document Description
1 Getting Started Installation, first launch, authentication, basic interaction, and key concepts
2 Authentication Browser login, API keys, OIDC/SSO, external auth providers, and device-code flow
3 Keyboard Shortcuts Reference for every key binding and mouse action in the TUI
4 Slash Commands Every / command for sessions, models, memory, hooks, and plugins
5 Configuration config.toml, pager.toml, environment variables, and file locations

Tier 2: Core Feature Docs

Customize and extend Kigi.

# Document Description
6 Theming and Appearance Themes, the /theme command, pager.toml, and color-support detection
7 MCP Servers External tool integrations through the Model Context Protocol
8 Skills Reusable prompt packages in the SKILL.md format
9 Plugins Bundle and share skills, commands, agents, hooks, and MCP servers
10 Hooks Lifecycle scripts and HTTP callbacks for pre- and post-tool-use events
11 Custom Models Bring-your-own-key, Ollama, and OpenAI-compatible endpoints
12 Project Rules (AGENTS.md) Per-directory AGENTS.md instructions and their precedence
13 Memory Cross-session knowledge persistence with /flush, /dream, and hybrid search

Tier 3: Advanced Usage Docs

Automate, script, and integrate Kigi with other systems.

# Document Description
14 Headless Mode and Scripting kigi -p, output formats, CI/CD integration, and piping
15 Agent Mode and IDE Integration ACP stdio transport, WebSocket relay, and SDK integration
16 Subagents and Personas Parallel child sessions, agent types, personas, and capability modes
17 Session Management Save, load, resume, rewind, compact, and the session persistence format
18 Sandbox Mode OS-level filesystem and network isolation profiles
19 Plan Mode Structured planning, plan-file edits, and approval before coding
20 Background Tasks and Monitoring background: true, /loop, monitor, and Ctrl+G to demote
21 Terminal Support and Troubleshooting tmux, SSH, truecolor, clipboard, and OSC 52
22 Permissions and Safety Controls dontAsk mode, auto-approved tools, the safe-bash list, and restrictive PreToolUse hooks (such as git/gh-only)