Context packs give you a small, ranked starting set for a bugfix or review task — exact matches, key paths, test files, config files, and changed-file signals — without reading full file bodies or spending tokens on unrelated results.
Context packs are bounded envelopes that surface the highest-signal starting points for a given intent. They work through heuristics only — no LLM calls, no embeddings, no symbol graph.
exact_match, test_file, config_file, changed_file)Output is always bounded: the pack never grows unboundedly with repo size.
No LLM inference, no embeddings, no full-file indexing beyond the trigram index.
Run triseek context-pack from any directory inside a repo. The pack is printed to stdout in human-readable form by default, or as JSON with --json.
triseek context-pack "fix the auth timeout bug"
Specify a root explicitly:
triseek context-pack "add retry logic" /path/to/repo
Machine-readable JSON output:
triseek context-pack "review payment flow" --json
Context pack · intent: "fix the auth timeout bug"
──────────────────────────────────────────
1 src/auth/config.rs [exact_match]
12 AuthConfig { timeout: 30, retry_ms: 500 }
2 src/auth/client.rs [exact_match, changed_file]
47 fn connect(cfg: &AuthConfig) -> Result<_>
3 tests/auth_test.rs [test_file]
8 let cfg = AuthConfig::default();
──────────────────────────────────────────
Hints: search_content("AuthConfig"), read src/auth/config.rs
The context_pack MCP tool exposes the same bounded envelope to Claude Code, Codex, and any MCP-capable client. It is the recommended first call for bugfix or review tasks.
{
"intent": "fix the auth timeout bug",
"limit": 10
}
| Field | Type | Description |
|---|---|---|
intent |
string | Free-text description of the bugfix or review task |
limit |
integer | Max entries in the pack (default 10, hard cap 30) |
{
"intent": "fix the auth timeout bug",
"entries": [
{
"path": "src/auth/config.rs",
"rank": 1,
"reasons": ["exact_match"],
"snippet": {
"line": 12,
"text": "AuthConfig { timeout: 30 }"
}
}
],
"hints": [
"search_content(\"AuthConfig\")",
"read src/auth/config.rs"
],
"truncated": false
}
Call context_pack at the start of a session when you have an intent but no specific file in mind. It surfaces the smallest possible starting set so the agent can orient quickly without reading full files or running multiple broad searches. Follow the hints field for the next logical searches.
For general code exploration without a specific intent, use search_content or find_files directly.
Context packs are intentionally heuristic-only in v1. This keeps latency low and output fully deterministic.
search_content for targeted follow-up searchesThe v1 design prioritizes zero-latency, zero-token-cost orientation over deep semantic ranking.
Context packs shipped in TriSeek v0.4.1. The release also extended the real-harness validation to cover context_pack alongside existing CLI and MCP search and memo checks.