Pular para conteúdo

CLI

semtree CLI - modular Click-based command interface.

Commands

semtree index - index the current project semtree context - print context for a task/query semtree search - search for symbols semtree status - show index stats semtree memory - manage project memory (add/list/remove) semtree setup - set up AI assistant integrations semtree config - show or edit project config

main

main(ctx, root, verbose)

semtree - Semantic code trees for AI assistants.

Index your codebase once. Feed smart, token-efficient context to Claude, Cursor, Copilot, and Codex.

index

index(ctx, force, quiet)

Index the project. Re-runs incrementally by default.

context

context(ctx, query, budget, level, file_filter, output)

Build context for a task and print it.

QUERY is a natural language description of your task.

search

search(ctx, query, kind, limit, as_json)

Search for symbols by name or keyword.

status

status(ctx)

Show index stats and configuration.

memory

memory(ctx)

Manage project memory (rules, references, notes).

memory_add

memory_add(ctx, kind, key, value)

Add or update a memory entry.

KIND: rule | ref | note KEY: short identifier VALUE: the content

memory_list

memory_list(ctx, kind)

List all memory entries.

memory_remove

memory_remove(ctx, kind, key)

Remove a memory entry.

setup

setup(ctx, target, dry_run, host, port)

Set up AI assistant integrations.

Creates config files for Claude Code (.claude/mcp.json), Cursor (.cursor/mcp.json), Copilot (.vscode/settings.json), and Codex (AGENTS.md).

config_cmd

config_cmd(ctx, show, init)

Show or initialize project configuration.