ctxt
Work with the ctxt CLI — an agentic context brain for capture, search, and composition on top of dPKMS (decentralized personal knowledge substrate). Automatically applies when: task involves capturing content, searching knowledge, composing briefs/plans, or managing focus profiles via the ctxt CLI. Use when: capturing content to knowledge base, running semantic search, generating compositions, managing config/profiles, or operating the dPKMS background worker. Description checklist: - [x] What it does: context-as-a-service CLI for humans and AI agents - [x] When to auto-activate: any ctxt/dpkms CLI operation - [x] Key surfaces: capture, search, compose, config, registry, entity - [x] Local-first, offline-capable, scriptable
- License 许可
- AGPL-3.0
- 最近更新
- 2026-11-09
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- ctxt
- description
- Work with the ctxt CLI — an agentic context brain for capture, search, and composition on top of dPKMS (decentralized personal knowledge substrate). Automatically applies when: task involves capturing content, searching knowledge, composing briefs/plans, or managing focus profiles via the ctxt CLI. Use when: capturing content to knowledge base, running semantic search, generating compositions, managing config/profiles, or operating the dPKMS background worker. Description checklist: - [x] What it does: context-as-a-service CLI for humans and AI agents - [x] When to auto-activate: any ctxt/dpkms CLI operation - [x] Key surfaces: capture, search, compose, config, registry, entity - [x] Local-first, offline-capable, scriptable
02 资源文件 500
- 参考文档.12fc.json188 B
- 其他.conversations.mods7 B
- 参考文档.devcontainer/devcontainer.json1.6 KB
- 参考文档.devcontainer/docker-compose.yml2.5 KB
- 其他.devcontainer/Dockerfile3.7 KB
- 参考文档.devcontainer/README.md2.1 KB
- 其他.dockerignore195 B
- 其他.env.example2.9 KB
- 其他.githooks/pre-commit1.4 KB
- 其他.githooks/pre-push444 B
- 参考文档.github/catalog.schema.json2.0 KB
- 其他.github/CODEOWNERS9 B
- 参考文档.github/dependabot.yml739 B
- 参考文档.github/ISSUE_TEMPLATE/bug_report.yml2.2 KB
- 参考文档.github/ISSUE_TEMPLATE/config.yml360 B
- 参考文档.github/PULL_REQUEST_TEMPLATE.md3.0 KB
- 参考文档.github/workflows/ben.yml3.6 KB
- 参考文档.github/workflows/ci.yml15.2 KB
- 参考文档.github/workflows/docker.yml2.2 KB
- 参考文档.github/workflows/eva-contracts.yml3.1 KB
- 参考文档.github/workflows/lateral-eval.yml4.2 KB
- 参考文档.github/workflows/release-notes-check.yml1.1 KB
- 参考文档.github/workflows/release.yml3.9 KB
- 脚本.github/workflows/scripts/lateral_eval_compare.py3.0 KB
- 参考文档.github/workflows/trivy.yml4.8 KB
- 参考文档.github/workflows/vuln-scan.yml3.6 KB
- 其他.gitignore7.5 KB
- 其他.gitleaks.toml8.1 KB
- 其他.gitleaksignore9.8 KB
- 参考文档.golangci.yml8.5 KB
- 参考文档.goreleaser.yaml4.9 KB
- 其他.nancy-ignore1.3 KB
- 参考文档.pre-commit-config.yaml3.5 KB
- 其他.verifynoleak.allow93 B
- 其他api/proto/dpkms.proto7.7 KB
- 参考文档CLAUDE.md1.2 KB
- 脚本cmd/ben-adapter-ctxt-recall/main_test.go3.7 KB
- 脚本cmd/ben-adapter-ctxt-recall/main.go10.5 KB
- 脚本cmd/ctxt/cmd/analyze_auth_test.go4.0 KB
- 脚本cmd/ctxt/cmd/analyze_failover_test.go6.9 KB
- 脚本cmd/ctxt/cmd/analyze_integration_test.go1.4 KB
- 脚本cmd/ctxt/cmd/analyze_test.go8.7 KB
- 脚本cmd/ctxt/cmd/analyze.go11.2 KB
- 脚本cmd/ctxt/cmd/audit.go7.8 KB
- 脚本cmd/ctxt/cmd/auth_test.go8.0 KB
- 脚本cmd/ctxt/cmd/auth.go21.7 KB
- 脚本cmd/ctxt/cmd/baseline_probe_test.go4.2 KB
- 脚本cmd/ctxt/cmd/blob_wiring_test.go1.3 KB
- 脚本cmd/ctxt/cmd/capture_browser_select_test.go2.9 KB
- 脚本cmd/ctxt/cmd/capture_browser_select.go3.6 KB
- 脚本cmd/ctxt/cmd/capture_browsers_test.go5.8 KB
- 脚本cmd/ctxt/cmd/capture_browsers.go7.2 KB
- 脚本cmd/ctxt/cmd/capture_e2e_test.go11.1 KB
- 脚本cmd/ctxt/cmd/capture_endpoints_e2e_test.go5.6 KB
- 脚本cmd/ctxt/cmd/capture_endpoints_test.go11.1 KB
- 脚本cmd/ctxt/cmd/capture_history_e2e_test.go26.4 KB
- 脚本cmd/ctxt/cmd/capture_history.go24.0 KB
- 脚本cmd/ctxt/cmd/capture_no_fallback_e2e_test.go7.9 KB
- 脚本cmd/ctxt/cmd/capture_schedule_agent_test.go5.9 KB
- 脚本cmd/ctxt/cmd/capture_schedule_agent.go12.2 KB
- 脚本cmd/ctxt/cmd/capture_schedule_binpath_test.go1.5 KB
- 脚本cmd/ctxt/cmd/capture_schedule_select_test.go7.1 KB
- 脚本cmd/ctxt/cmd/capture_schedule_test.go16.9 KB
- 脚本cmd/ctxt/cmd/capture_schedule.go18.0 KB
- 脚本cmd/ctxt/cmd/capture_tabs_e2e_test.go20.2 KB
- 脚本cmd/ctxt/cmd/capture_tabs_select_e2e_test.go6.2 KB
- 脚本cmd/ctxt/cmd/capture_tabs.go14.1 KB
- 脚本cmd/ctxt/cmd/capture_test.go12.0 KB
- 脚本cmd/ctxt/cmd/capture.go13.8 KB
- 脚本cmd/ctxt/cmd/classify_cgo.go1019 B
- 脚本cmd/ctxt/cmd/classify_test.go1.1 KB
- 脚本cmd/ctxt/cmd/classify.go4.2 KB
- 脚本cmd/ctxt/cmd/completion_test.go2.4 KB
- 脚本cmd/ctxt/cmd/completion.go1.9 KB
- 脚本cmd/ctxt/cmd/compose_test.go2.5 KB
- 脚本cmd/ctxt/cmd/compose.go6.1 KB
- 脚本cmd/ctxt/cmd/config_redact_test.go4.4 KB
- 脚本cmd/ctxt/cmd/config_restore_test.go1.2 KB
- 脚本cmd/ctxt/cmd/config_test.go12.8 KB
- 脚本cmd/ctxt/cmd/config_write_layer_test.go15.2 KB
- 脚本cmd/ctxt/cmd/config.go22.7 KB
- 脚本cmd/ctxt/cmd/confirm_gate_test.go7.5 KB
- 脚本cmd/ctxt/cmd/cursor.go9.9 KB
- 脚本cmd/ctxt/cmd/datadir_test.go1.6 KB
- 脚本cmd/ctxt/cmd/dedup_wiring_test.go1.4 KB
- 脚本cmd/ctxt/cmd/delete_test.go10.4 KB
- 脚本cmd/ctxt/cmd/delete.go16.1 KB
- 脚本cmd/ctxt/cmd/directopen_gate_test.go8.6 KB
- 脚本cmd/ctxt/cmd/directopen_refusal_test.go2.3 KB
- 脚本cmd/ctxt/cmd/directopen_refusal.go2.6 KB
- 脚本cmd/ctxt/cmd/doctor_test.go2.8 KB
- 脚本cmd/ctxt/cmd/doctor.go4.7 KB
- 脚本cmd/ctxt/cmd/dpkms_fixture_test.go4.3 KB
- 脚本cmd/ctxt/cmd/edit_test.go7.0 KB
- 脚本cmd/ctxt/cmd/edit.go3.6 KB
- 脚本cmd/ctxt/cmd/embedding_resolve.go547 B
- 脚本cmd/ctxt/cmd/embeddings_journey_e2e_test.go34.4 KB
- 脚本cmd/ctxt/cmd/embeddings_journey_pg_test.go2.7 KB
- 脚本cmd/ctxt/cmd/embeddings_lifecycle_test.go29.2 KB
- 脚本cmd/ctxt/cmd/embeddings_lifecycle.go19.0 KB
- 脚本cmd/ctxt/cmd/embeddings_migrate_test.go14.4 KB
- 脚本cmd/ctxt/cmd/embeddings_migrate.go8.0 KB
- 脚本cmd/ctxt/cmd/embeddings_provider_test.go8.3 KB
- 脚本cmd/ctxt/cmd/embeddings_register_e2e_test.go4.3 KB
- 脚本cmd/ctxt/cmd/embeddings_register_test.go21.4 KB
- 脚本cmd/ctxt/cmd/embeddings.go23.6 KB
- 脚本cmd/ctxt/cmd/enqueue.go1.9 KB
- 脚本cmd/ctxt/cmd/entities_exit_e2e_test.go1.8 KB
- 脚本cmd/ctxt/cmd/entities_test.go7.7 KB
- 脚本cmd/ctxt/cmd/entities.go8.1 KB
- 脚本cmd/ctxt/cmd/errenvelope_test.go8.8 KB
- 脚本cmd/ctxt/cmd/errenvelope.go5.5 KB
- 脚本cmd/ctxt/cmd/exitcode_test.go5.5 KB
- 脚本cmd/ctxt/cmd/exitcode.go9.3 KB
- 脚本cmd/ctxt/cmd/export_test.go1.9 KB
- 脚本cmd/ctxt/cmd/export.go1.7 KB
- 脚本cmd/ctxt/cmd/feed_test.go6.4 KB
- 脚本cmd/ctxt/cmd/feed.go8.8 KB
- 脚本cmd/ctxt/cmd/find_api_test.go7.9 KB
- 脚本cmd/ctxt/cmd/find_exit_e2e_test.go2.7 KB
- 脚本cmd/ctxt/cmd/find_explain_test.go4.9 KB
- 脚本cmd/ctxt/cmd/find_graph_export_test.go9.8 KB
- 脚本cmd/ctxt/cmd/find_graph_export.go3.0 KB
- 脚本cmd/ctxt/cmd/find_graph_parity_test.go7.8 KB
- 脚本cmd/ctxt/cmd/find_graph_test.go16.0 KB
- 脚本cmd/ctxt/cmd/find_graph_viewer_test.go14.4 KB
- 脚本cmd/ctxt/cmd/find_graph_viewer.go8.2 KB
- 脚本cmd/ctxt/cmd/find_graph.go10.2 KB
- 脚本cmd/ctxt/cmd/find_request_test.go11.5 KB
- 脚本cmd/ctxt/cmd/find_semantic_test.go9.2 KB
- 脚本cmd/ctxt/cmd/find_test.go3.1 KB
- 脚本cmd/ctxt/cmd/find.go18.6 KB
- 脚本cmd/ctxt/cmd/flags_reset.go968 B
- 脚本cmd/ctxt/cmd/help_flags_test.go444 B
- 脚本cmd/ctxt/cmd/help_stale_config_name_test.go1.4 KB
- 脚本cmd/ctxt/cmd/helpers_test.go2.7 KB
- 脚本cmd/ctxt/cmd/helpers.go14.2 KB
- 脚本cmd/ctxt/cmd/hints_test.go4.0 KB
- 脚本cmd/ctxt/cmd/hints.go3.4 KB
- 脚本cmd/ctxt/cmd/import_batch_test.go7.5 KB
- 脚本cmd/ctxt/cmd/import_batch.go7.7 KB
- 脚本cmd/ctxt/cmd/import_bookmarks.go4.5 KB
- 脚本cmd/ctxt/cmd/import_chrome_test.go2.3 KB
- 脚本cmd/ctxt/cmd/import_chrome.go182 B
- 脚本cmd/ctxt/cmd/import_discord_test.go5.3 KB
- 脚本cmd/ctxt/cmd/import_discord.go4.2 KB
- 脚本cmd/ctxt/cmd/import_dropbox_test.go7.7 KB
- 脚本cmd/ctxt/cmd/import_dropbox.go6.6 KB
- 脚本cmd/ctxt/cmd/import_edge_test.go1.8 KB
- 脚本cmd/ctxt/cmd/import_edge.go182 B
- 脚本cmd/ctxt/cmd/import_email_test.go5.5 KB
- 脚本cmd/ctxt/cmd/import_email.go8.0 KB
- 脚本cmd/ctxt/cmd/import_evernote_test.go3.8 KB
- 脚本cmd/ctxt/cmd/import_evernote.go5.6 KB
- 脚本cmd/ctxt/cmd/import_exit_e2e_test.go2.4 KB
- 脚本cmd/ctxt/cmd/import_firefox_test.go1.9 KB
- 脚本cmd/ctxt/cmd/import_firefox.go195 B
- 脚本cmd/ctxt/cmd/import_gdrive_test.go4.8 KB
- 脚本cmd/ctxt/cmd/import_gdrive.go8.0 KB
- 脚本cmd/ctxt/cmd/import_github_test.go5.6 KB
- 脚本cmd/ctxt/cmd/import_github.go6.0 KB
- 脚本cmd/ctxt/cmd/import_linkedin.go6.3 KB
- 脚本cmd/ctxt/cmd/import_logseq.go5.1 KB
- 脚本cmd/ctxt/cmd/import_notion_test.go4.4 KB
- 脚本cmd/ctxt/cmd/import_notion.go6.0 KB
- 脚本cmd/ctxt/cmd/import_obsidian.go4.5 KB
- 脚本cmd/ctxt/cmd/import_onedrive_test.go7.0 KB
- 脚本cmd/ctxt/cmd/import_onedrive.go11.2 KB
- 脚本cmd/ctxt/cmd/import_pinboard_test.go5.5 KB
- 脚本cmd/ctxt/cmd/import_pinboard.go7.8 KB
- 脚本cmd/ctxt/cmd/import_raindrop_test.go4.4 KB
- 脚本cmd/ctxt/cmd/import_raindrop.go6.3 KB
- 脚本cmd/ctxt/cmd/import_safari_test.go1.9 KB
- 脚本cmd/ctxt/cmd/import_safari.go182 B
- 脚本cmd/ctxt/cmd/import_server_endpoint_test.go12.1 KB
- 脚本cmd/ctxt/cmd/import_slack_test.go6.0 KB
- 脚本cmd/ctxt/cmd/import_slack.go5.2 KB
- 脚本cmd/ctxt/cmd/import_twitter.go4.6 KB
- 脚本cmd/ctxt/cmd/import.go1.2 KB
- 脚本cmd/ctxt/cmd/inbox_test.go13.4 KB
- 脚本cmd/ctxt/cmd/inbox.go11.5 KB
- 脚本cmd/ctxt/cmd/index.go4.0 KB
- 脚本cmd/ctxt/cmd/ingest_test.go1.0 KB
- 脚本cmd/ctxt/cmd/ingest.go7.4 KB
- 脚本cmd/ctxt/cmd/initconfig_test.go4.4 KB
- 脚本cmd/ctxt/cmd/instance.go10.1 KB
- 脚本cmd/ctxt/cmd/job_test.go5.5 KB
- 脚本cmd/ctxt/cmd/job.go9.0 KB
- 脚本cmd/ctxt/cmd/keychain_guard_test.go822 B
- 脚本cmd/ctxt/cmd/lateral_bus_test.go1.1 KB
- 脚本cmd/ctxt/cmd/lateral_eval.go5.8 KB
- 脚本cmd/ctxt/cmd/lateral.go11.4 KB
- 脚本cmd/ctxt/cmd/link_exit_e2e_test.go2.6 KB
- 脚本cmd/ctxt/cmd/link_golden_test.go2.1 KB
- 脚本cmd/ctxt/cmd/link_test.go9.3 KB
- 脚本cmd/ctxt/cmd/link.go8.4 KB
- 脚本cmd/ctxt/cmd/list_bridge_test.go3.7 KB
- 脚本cmd/ctxt/cmd/list_rows_test.go5.1 KB
- 脚本cmd/ctxt/cmd/list_test.go2.4 KB
- 脚本cmd/ctxt/cmd/list.go14.7 KB
- 脚本cmd/ctxt/cmd/local_only_test.go1.5 KB
- 脚本cmd/ctxt/cmd/local_only.go1.2 KB
- 脚本cmd/ctxt/cmd/log_test.go5.3 KB
- 脚本cmd/ctxt/cmd/log.go4.0 KB
- 脚本cmd/ctxt/cmd/multiserver_failover_test.go3.9 KB
- 脚本cmd/ctxt/cmd/named_endpoint_test.go13.6 KB
- 脚本cmd/ctxt/cmd/object_reads_test.go17.3 KB
- 脚本cmd/ctxt/cmd/offline_paths_test.go5.3 KB
- 脚本cmd/ctxt/cmd/offline_test.go1.3 KB
- 脚本cmd/ctxt/cmd/page_index_stats_test.go12.3 KB
- 脚本cmd/ctxt/cmd/page.go6.1 KB
- 脚本cmd/ctxt/cmd/principal.go21.1 KB
- 脚本cmd/ctxt/cmd/profile_resolve_test.go5.4 KB
- 脚本cmd/ctxt/cmd/profile_resolve.go1.3 KB
- 脚本cmd/ctxt/cmd/profile_schema_test.go4.7 KB
- 脚本cmd/ctxt/cmd/profile_schema.go16.2 KB
- 脚本cmd/ctxt/cmd/profile_test.go5.5 KB
- 脚本cmd/ctxt/cmd/profile.go15.6 KB
- 脚本cmd/ctxt/cmd/pty_darwin_test.go1.0 KB
- 脚本cmd/ctxt/cmd/pty_linux_test.go747 B
- 脚本cmd/ctxt/cmd/pty_other_test.go248 B
- 脚本cmd/ctxt/cmd/registry_auth_test.go11.8 KB
- 脚本cmd/ctxt/cmd/registry_entitlements_test.go1.4 KB
- 脚本cmd/ctxt/cmd/registry_pending_test.go7.6 KB
- 脚本cmd/ctxt/cmd/registry_pending.go7.8 KB
- 脚本cmd/ctxt/cmd/registry_test.go17.8 KB
- 脚本cmd/ctxt/cmd/registry.go42.1 KB
- 脚本cmd/ctxt/cmd/remind.go5.8 KB
- 脚本cmd/ctxt/cmd/removed_forwarders_test.go2.5 KB
- 脚本cmd/ctxt/cmd/reprocess_test.go3.4 KB
- 脚本cmd/ctxt/cmd/reprocess.go2.3 KB
- 脚本cmd/ctxt/cmd/resolve_test.go12.3 KB
- 脚本cmd/ctxt/cmd/resolve.go8.6 KB
- 脚本cmd/ctxt/cmd/resurface.go6.5 KB
- 脚本cmd/ctxt/cmd/root_test.go6.0 KB
- 脚本cmd/ctxt/cmd/root.go20.7 KB
- 脚本cmd/ctxt/cmd/server_endpoint.go3.5 KB
- 脚本cmd/ctxt/cmd/server_flag_test.go1.3 KB
- 脚本cmd/ctxt/cmd/setup_test.go7.2 KB
- 脚本cmd/ctxt/cmd/setup.go9.1 KB
- 脚本cmd/ctxt/cmd/share_audience.go10.6 KB
- 脚本cmd/ctxt/cmd/share_grant.go12.0 KB
- 脚本cmd/ctxt/cmd/share_manage_test.go11.4 KB
- 脚本cmd/ctxt/cmd/share_policy.go9.4 KB
- 脚本cmd/ctxt/cmd/share_preview_audit_test.go4.7 KB
- 脚本cmd/ctxt/cmd/share_preview.go8.0 KB
- 脚本cmd/ctxt/cmd/share.go5.1 KB
- 脚本cmd/ctxt/cmd/shell_gate_test.go5.1 KB
- 脚本cmd/ctxt/cmd/shell_test.go233 B
- 脚本cmd/ctxt/cmd/shell.go2.4 KB
- 脚本cmd/ctxt/cmd/show_test.go5.1 KB
- 脚本cmd/ctxt/cmd/show.go5.1 KB
- 脚本cmd/ctxt/cmd/sideeffect_guard_test.go740 B
- 脚本cmd/ctxt/cmd/stats_test.go1.2 KB
- 脚本cmd/ctxt/cmd/stats.go5.2 KB
- 脚本cmd/ctxt/cmd/status_test.go5.7 KB
- 脚本cmd/ctxt/cmd/status.go7.8 KB
- 脚本cmd/ctxt/cmd/storage_open_exit_e2e_test.go1.3 KB
- 脚本cmd/ctxt/cmd/strict_validation_test.go3.0 KB
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-journey/http-0be28eec.req.yaml189 B
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-journey/http-0be28eec.resp.yaml31.5 KB
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-journey/http-2d96a388.req.yaml196 B
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-journey/http-2d96a388.resp.yaml48.9 KB
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-journey/http-30a90e8e.req.yaml285 B
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-journey/http-30a90e8e.resp.yaml9.6 KB
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-journey/http-314348ba.req.yaml292 B
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-journey/http-314348ba.resp.yaml12.7 KB
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-journey/http-4875ad93.req.yaml299 B
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-journey/http-4875ad93.resp.yaml12.7 KB
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-journey/http-534ecf38.req.yaml842 B
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-journey/http-534ecf38.resp.yaml12.7 KB
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-journey/http-5597dd73.req.yaml296 B
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-journey/http-5597dd73.resp.yaml9.6 KB
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-journey/http-5fc56f4c.req.yaml323 B
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-journey/http-5fc56f4c.resp.yaml12.7 KB
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-journey/http-6c2ac631.req.yaml312 B
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-journey/http-6c2ac631.resp.yaml12.7 KB
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-journey/http-7d0237a4.req.yaml835 B
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-journey/http-7d0237a4.resp.yaml9.6 KB
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-journey/http-8231981b.req.yaml297 B
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-journey/http-8231981b.resp.yaml12.7 KB
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-journey/http-85c74673.req.yaml306 B
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-journey/http-85c74673.resp.yaml9.6 KB
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-journey/http-b139aa5a.req.yaml303 B
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-journey/http-b139aa5a.resp.yaml12.7 KB
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-journey/http-c9a827ac.req.yaml290 B
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-journey/http-c9a827ac.resp.yaml9.6 KB
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-journey/http-d2fcf0ea.req.yaml292 B
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-journey/http-d2fcf0ea.resp.yaml9.6 KB
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-journey/http-dc8ba335.req.yaml305 B
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-journey/http-dc8ba335.resp.yaml9.6 KB
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-journey/http-f63eb14e.req.yaml316 B
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-journey/http-f63eb14e.resp.yaml9.6 KB
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-migrate/http-0be28eec.req.yaml189 B
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-migrate/http-0be28eec.resp.yaml31.5 KB
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-migrate/http-229d50ad.req.yaml304 B
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-migrate/http-229d50ad.resp.yaml12.7 KB
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-migrate/http-2d96a388.req.yaml196 B
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-migrate/http-2d96a388.resp.yaml48.9 KB
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-migrate/http-41760e11.req.yaml299 B
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-migrate/http-41760e11.resp.yaml9.5 KB
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-migrate/http-4875ad93.req.yaml299 B
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-migrate/http-4875ad93.resp.yaml12.7 KB
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-migrate/http-5597dd73.req.yaml296 B
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-migrate/http-5597dd73.resp.yaml9.6 KB
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-migrate/http-6c2ac631.req.yaml312 B
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-migrate/http-6c2ac631.resp.yaml12.7 KB
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-migrate/http-8231981b.req.yaml297 B
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-migrate/http-8231981b.resp.yaml12.7 KB
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-migrate/http-b139aa5a.req.yaml303 B
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-migrate/http-b139aa5a.resp.yaml12.7 KB
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-migrate/http-c7fa2f70.req.yaml8.3 KB
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-migrate/http-c7fa2f70.resp.yaml241 B
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-migrate/http-c9a827ac.req.yaml290 B
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-migrate/http-c9a827ac.resp.yaml9.6 KB
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-migrate/http-d2fcf0ea.req.yaml292 B
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-migrate/http-d2fcf0ea.resp.yaml9.6 KB
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-migrate/http-dc8ba335.req.yaml305 B
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-migrate/http-dc8ba335.resp.yaml9.6 KB
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-register/http-26135865.req.yaml199 B
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-register/http-26135865.resp.yaml251 B
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-register/http-2d96a388.req.yaml196 B
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-register/http-2d96a388.resp.yaml48.9 KB
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-register/http-4875ad93.req.yaml299 B
- 参考文档cmd/ctxt/cmd/testdata/cassettes/embeddings-register/http-4875ad93.resp.yaml12.7 KB
- 参考文档cmd/ctxt/cmd/testdata/cassettes/find-query-path/http-2d96a388.req.yaml192 B
- 参考文档cmd/ctxt/cmd/testdata/cassettes/find-query-path/http-2d96a388.resp.yaml48.9 KB
- 参考文档cmd/ctxt/cmd/testdata/cassettes/find-query-path/http-42428b2b.req.yaml303 B
- 参考文档cmd/ctxt/cmd/testdata/cassettes/find-query-path/http-42428b2b.resp.yaml12.8 KB
- 其他cmd/ctxt/cmd/testdata/find/empty-explain.json.golden287 B
- 其他cmd/ctxt/cmd/testdata/find/empty-hybrid.json.golden287 B
- 其他cmd/ctxt/cmd/testdata/find/empty-hybrid.txt.golden70 B
- 其他cmd/ctxt/cmd/testdata/find/empty.json.golden173 B
- 其他cmd/ctxt/cmd/testdata/find/explain.json.golden1.6 KB
- 其他cmd/ctxt/cmd/testdata/find/explain.txt.golden301 B
- 其他cmd/ctxt/cmd/testdata/find/facets.json.golden1.1 KB
- 其他cmd/ctxt/cmd/testdata/find/facets.txt.golden1.2 KB
- 其他cmd/ctxt/cmd/testdata/find/filter.json.golden205 B
- 其他cmd/ctxt/cmd/testdata/find/fts.json.golden589 B
- 其他cmd/ctxt/cmd/testdata/find/fts.txt.golden1.2 KB
- 其他cmd/ctxt/cmd/testdata/find/hybrid.json.golden1.1 KB
- 其他cmd/ctxt/cmd/testdata/find/hybrid.txt.golden1.3 KB
- 其他cmd/ctxt/cmd/testdata/find/vector.json.golden621 B
- 其他cmd/ctxt/cmd/testdata/link_list.golden710 B
- 脚本cmd/ctxt/cmd/testenv_test.go6.9 KB
- 脚本cmd/ctxt/cmd/testhelpers_test.go5.1 KB
- 脚本cmd/ctxt/cmd/tui_test.go1.8 KB
- 脚本cmd/ctxt/cmd/tui.go2.8 KB
- 脚本cmd/ctxt/cmd/ui_test.go8.7 KB
- 脚本cmd/ctxt/cmd/ui.go8.0 KB
- 脚本cmd/ctxt/cmd/upgrade_banner_test.go5.9 KB
- 脚本cmd/ctxt/cmd/upgrade_banner.go501 B
- 脚本cmd/ctxt/cmd/upgrade_dpkms_test.go11.6 KB
- 脚本cmd/ctxt/cmd/upgrade_dpkms.go24.8 KB
- 脚本cmd/ctxt/cmd/upgrade_plan_schema_test.go5.4 KB
- 脚本cmd/ctxt/cmd/upgrade_status_exit_e2e_test.go2.5 KB
- 脚本cmd/ctxt/cmd/upgrade_status_server_url_test.go4.4 KB
- 脚本cmd/ctxt/cmd/upgrade.go6.1 KB
- 脚本cmd/ctxt/cmd/uri_test.go3.4 KB
- 脚本cmd/ctxt/cmd/uri.go4.0 KB
- 脚本cmd/ctxt/cmd/url_redact_test.go6.4 KB
- 脚本cmd/ctxt/cmd/usage_unknown_test.go4.2 KB
- 脚本cmd/ctxt/cmd/usage_unknown.go7.5 KB
- 脚本cmd/ctxt/cmd/version_test.go1.6 KB
- 脚本cmd/ctxt/cmd/version.go1021 B
- 脚本cmd/ctxt/cmd/watch_ingest.go1.7 KB
- 脚本cmd/ctxt/cmd/watch_status.go5.2 KB
- 脚本cmd/ctxt/cmd/watch_test.go12.2 KB
- 脚本cmd/ctxt/cmd/watch.go13.7 KB
- 脚本cmd/ctxt/main.go754 B
- 其他cmd/ctxt/templates/com.contexthelp.ctxt.capture.plist878 B
- 脚本cmd/ctxt/templates/templates.go514 B
- 参考文档cmd/dpkms/AGENTS.md2.9 KB
- 脚本cmd/dpkms/cmd/api_client_decode_test.go4.5 KB
- 脚本cmd/dpkms/cmd/api_client_policy_test.go2.6 KB
- 脚本cmd/dpkms/cmd/api_client.go14.1 KB
- 脚本cmd/dpkms/cmd/auth_test.go5.2 KB
- 脚本cmd/dpkms/cmd/auth.go4.5 KB
- 脚本cmd/dpkms/cmd/backup_test.go899 B
- 脚本cmd/dpkms/cmd/backup.go8.5 KB
- 脚本cmd/dpkms/cmd/blob_wiring_test.go1.3 KB
- 脚本cmd/dpkms/cmd/completion_test.go2.4 KB
- 脚本cmd/dpkms/cmd/completion.go2.0 KB
- 脚本cmd/dpkms/cmd/config_validate.go3.7 KB
- 脚本cmd/dpkms/cmd/config.go1.1 KB
- 脚本cmd/dpkms/cmd/daemon_unix.go237 B
- 脚本cmd/dpkms/cmd/daemon_windows.go423 B
- 脚本cmd/dpkms/cmd/datadir_test.go3.7 KB
- 脚本cmd/dpkms/cmd/dedup_wiring_test.go1.4 KB
- 脚本cmd/dpkms/cmd/default_registry_test.go861 B
- 脚本cmd/dpkms/cmd/detector.go8.6 KB
- 脚本cmd/dpkms/cmd/dev_removed_test.go882 B
- 脚本cmd/dpkms/cmd/dev.go6.0 KB
- 脚本cmd/dpkms/cmd/direct_open_test.go11.0 KB
- 脚本cmd/dpkms/cmd/doctor.go6.1 KB
- 脚本cmd/dpkms/cmd/dryrun_test.go8.2 KB
- 脚本cmd/dpkms/cmd/embedding_resolve.go2.0 KB
- 脚本cmd/dpkms/cmd/embedding_test.go1.7 KB
- 脚本cmd/dpkms/cmd/embeddings_migrate.go1.3 KB
- 脚本cmd/dpkms/cmd/entitlement_test.go6.0 KB
- 脚本cmd/dpkms/cmd/entitlement.go11.5 KB
- 脚本cmd/dpkms/cmd/errenvelope_test.go7.0 KB
- 脚本cmd/dpkms/cmd/errenvelope.go13.2 KB
- 脚本cmd/dpkms/cmd/healthcheck_test.go4.3 KB
- 脚本cmd/dpkms/cmd/healthcheck.go5.3 KB
- 脚本cmd/dpkms/cmd/help_flags_test.go445 B
- 脚本cmd/dpkms/cmd/help_stale_config_name_test.go1.1 KB
- 脚本cmd/dpkms/cmd/helpers.go9.1 KB
- 脚本cmd/dpkms/cmd/housekeeping_blob_test.go8.8 KB
- 脚本cmd/dpkms/cmd/housekeeping_test.go7.2 KB
- 脚本cmd/dpkms/cmd/housekeeping.go27.0 KB
- 脚本cmd/dpkms/cmd/initconfig_test.go4.9 KB
- 脚本cmd/dpkms/cmd/install_launchd_binpath_test.go1.8 KB
- 脚本cmd/dpkms/cmd/install_launchd_test.go7.5 KB
- 脚本cmd/dpkms/cmd/install_launchd.go16.6 KB
- 脚本cmd/dpkms/cmd/installdeps.go5.7 KB
- 脚本cmd/dpkms/cmd/instance_access_test.go8.2 KB
- 脚本cmd/dpkms/cmd/instance_access.go5.2 KB
- 脚本cmd/dpkms/cmd/jobs.go7.7 KB
- 脚本cmd/dpkms/cmd/key.go5.4 KB
- 脚本cmd/dpkms/cmd/maintenance_open.go3.0 KB
- 脚本cmd/dpkms/cmd/offline_test.go5.6 KB
- 脚本cmd/dpkms/cmd/pipeline_create_test.go2.4 KB
- 脚本cmd/dpkms/cmd/pipeline.go16.2 KB
- 脚本cmd/dpkms/cmd/ps.go5.1 KB
- 脚本cmd/dpkms/cmd/reboot.go1.2 KB
- 脚本cmd/dpkms/cmd/reprocess.go1.3 KB
- 脚本cmd/dpkms/cmd/reproject_test.go1.7 KB
- 脚本cmd/dpkms/cmd/reproject.go2.0 KB
- 脚本cmd/dpkms/cmd/restore_blobs_test.go2.2 KB
- 脚本cmd/dpkms/cmd/restore_config_test.go4.4 KB
- 脚本cmd/dpkms/cmd/restore.go4.2 KB
- 脚本cmd/dpkms/cmd/root_test.go5.5 KB
- 脚本cmd/dpkms/cmd/root.go14.1 KB
- 脚本cmd/dpkms/cmd/secret_test.go3.2 KB
- 脚本cmd/dpkms/cmd/secret.go7.8 KB
- 脚本cmd/dpkms/cmd/serve_components_test.go8.3 KB
- 脚本cmd/dpkms/cmd/serve_components.go4.3 KB
- 脚本cmd/dpkms/cmd/serve_dblock_test.go5.5 KB
- 脚本cmd/dpkms/cmd/serve_integration_test.go2.6 KB
- 脚本cmd/dpkms/cmd/serve_listen.go3.0 KB
- 脚本cmd/dpkms/cmd/serve_port_test.go14.9 KB
- 脚本cmd/dpkms/cmd/serve_settings_test.go5.3 KB
- 脚本cmd/dpkms/cmd/serve_shutdown_test.go2.2 KB
- 脚本cmd/dpkms/cmd/serve_storage_snapshot_test.go2.0 KB
- 脚本cmd/dpkms/cmd/serve_storage_test.go3.3 KB
- 脚本cmd/dpkms/cmd/serve_storage.go3.4 KB
- 脚本cmd/dpkms/cmd/serve.go27.1 KB
- 脚本cmd/dpkms/cmd/server_endpoint_test.go6.8 KB
- 脚本cmd/dpkms/cmd/server_endpoint.go2.2 KB
- 脚本cmd/dpkms/cmd/session_test.go5.4 KB
- 脚本cmd/dpkms/cmd/session.go7.2 KB
- 脚本cmd/dpkms/cmd/shutdown.go2.2 KB
- 脚本cmd/dpkms/cmd/signal_target_test.go4.6 KB
- 脚本cmd/dpkms/cmd/testenv_test.go1.2 KB
- 脚本cmd/dpkms/cmd/testhelpers_test.go1.2 KB
- 脚本cmd/dpkms/cmd/upgrade_banner_test.go5.4 KB
- 脚本cmd/dpkms/cmd/upgrade_banner.go209 B
- 脚本cmd/dpkms/cmd/upgrade.go3.9 KB
- 脚本cmd/dpkms/cmd/url_redact_test.go2.9 KB
- 脚本cmd/dpkms/cmd/version_test.go3.4 KB
- 脚本cmd/dpkms/cmd/version.go451 B
- 脚本cmd/dpkms/main.go862 B
- 参考文档cmd/dpkms/README.md2.2 KB
- 其他cmd/dpkms/templates/com.contexthelp.dpkms.plist829 B
- 其他cmd/dpkms/templates/dpkms.service397 B
- 脚本cmd/dpkms/templates/templates.go468 B
- 脚本cmd/headless-chrome/main_test.go1.6 KB
- 脚本cmd/headless-chrome/main.go3.9 KB
- 参考文档config/config.example.yaml10.8 KB
- 参考文档config/config.minimal.yaml1.1 KB
- 参考文档contracts/embeddings-list.eva.yaml2.6 KB
- 参考文档contracts/healthz.eva.yaml3.7 KB
- 参考文档contracts/search-staleness.eva.yaml2.0 KB
- 参考文档contracts/upgrade-status.eva.yaml2.2 KB
- 参考文档CONTRIBUTING.md8.1 KB
- 参考文档DEVELOPING.md17.3 KB
- 参考文档docker-compose.dev.yml1.6 KB
- 参考文档docker-compose.yml6.6 KB
- 其他docker/.env.dev.example1.7 KB
- 其他docker/.env.prod.example2.5 KB
- 其他docker/air.toml822 B
- 其他docker/caddy/Caddyfile854 B
- 参考文档docker/config.docker.yaml959 B
- 参考文档docker/dpkms-auth.example.yaml1.9 KB
- 参考文档docker/dpkms-local.example.yaml2.2 KB
- 其他Dockerfile2.9 KB
- 参考文档docs/ambient.md8.0 KB
- 参考文档docs/analysis/2026-03-13-gemini-pov.md3.7 KB
- 参考文档docs/analysis/2026-03-13-glm-pov.md23.1 KB
- 参考文档docs/MEMORY-RESEARCH-SUMMARY-2026-02.md11.3 KB
- 参考文档docs/README.md26.3 KB
- 参考文档docs/ROADMAP.md8.3 KB
- 参考文档docs/SECURITY.md29.9 KB
- 参考文档INSTALL.md8.8 KB
- 许可证LICENSE33.8 KB
- 其他Makefile32.8 KB
- 参考文档PROPOSAL.md10.0 KB
- 参考文档README.md3.2 KB
- 参考文档Taskfile.yml28.2 KB
03 SKILL.md 正文
ctxt CLI Skill
Teach an LLM agent to operate ctxt and dpkms effectively.
Follow exactly; do not improvise flags or subcommand names.
Level 1 — Essentials (start here)
What is ctxt?
Two binaries, one system:
| Binary | Role | Key concern |
|---|---|---|
ctxt |
User-facing brain | capture, search, compose, profiles |
dpkms |
Infrastructure substrate | server, jobs, storage, graph |
All ingestion is async: ctxt enqueues a job → dpkms serve runs the pipeline →
knowledge object is stored → available for search/compose.
Install
brew install contexthelp
# or
curl -sL https://context.help/install.sh | bash
Start the worker (required before any pipeline runs)
dpkms serve
Capture content (most common operation)
# Bare invocation → reads clipboard
ctxt
# Inline text
ctxt "The API rate limit is 1000 req/min" --hints "#api #limits"
# Piped stdin
echo "Fix signup flow" | ctxt --mention "@product.auth"
# From file
ctxt analyze --file notes.md --type text
# URL (auto-detected)
ctxt "https://example.com/blog/post"
Search
# Semantic (NLQ)
ctxt find "rate limiting strategies"
# No query → clipboard
ctxt find
# With profile lens
ctxt find "auth issues" --profile engineer
Compose
ctxt make brief --tag api --since 2026-01-01
ctxt make plan --mention "@product.auth"
ctxt make summary --profile founder
ctxt make draft --output report.md
Level 2 — Common Workflows
Workflow: capture → wait → inspect
# Capture and block until processed
ctxt "content here" --wait
# Returns knowledge object ID
# Open the result
ctxt open <id>
# Or list recent
ctxt list --limit 10 --sort recent
Workflow: triage inbox
# Capture to inbox (deferred processing)
ctxt analyze "rough idea" --inbox
# See what's pending
ctxt inbox list
# Promote to pipeline
ctxt inbox triage <id> --pipeline text.long
# Discard noise
ctxt inbox discard <id>
Workflow: query by filter
# By tag
ctxt list --tag api,security
# By mention
ctxt list --mention "@product.auth"
# By type + date window
ctxt list --type url --after 2026-01-01 --before 2026-03-01
# AST query
ctxt list --q "tag:api AND mention:@stripe.api"
# JSON output for scripting
ctxt list --json | jq '.[] | .id'
Workflow: entity graph exploration
ctxt entity list
ctxt entity show stripe.api
ctxt entity search "payment"
ctxt entity backlinks stripe.api # what references this entity?
Workflow: registry management
ctxt registry list
ctxt registry add core https://registries.context.help/core
ctxt registry sync core
ctxt registry info core
Level 3 — Reference
Full command map
| Command | Purpose |
|---|---|
ctxt [content] |
Capture (default; clipboard fallback) |
ctxt analyze |
Explicit capture alias |
ctxt inbox list/triage/discard/clear |
Inbox triage |
ctxt job list/status/retry/cancel |
Job queue ops (over the API) |
ctxt list |
Query knowledge objects |
ctxt find <query> |
Semantic search |
ctxt open <id> |
Show object detail |
ctxt edit --id <id> |
Edit object metadata |
ctxt delete |
Remove objects |
ctxt make <type> |
Generate compositions |
ctxt profile list/view/create/rm/set/unset |
Focus profiles |
ctxt config show/path/validate/edit |
Config ops |
ctxt registry list/add/remove/info/sync |
Registry ops |
ctxt entity list/show/search/backlinks |
Entity ops |
dpkms secret get/set/list |
Secrets backend |
ctxt uri register |
Register ctxt:// OS handler |
dpkms serve |
Start worker + REST/gRPC |
dpkms housekeeping vacuum/reindex/compact/prune |
DB maintenance |
analyze flags
| Flag | Description |
|---|---|
--type <text|url|image|audio|video|feed|auto> |
Input type override |
--hint "<#h1 #h2>" |
Influence tagging hints |
--mention "<@slug1 @slug2>" |
Attach explicit mentions |
--file <path> |
Read from file |
--profile <name> |
Focus profile |
--pipeline <name> |
Force pipeline |
--raw |
Disable AI; store as-is |
--wait |
Block until job completes |
--inbox |
Defer to inbox |
--output <json|yaml|id> |
Output format |
list/find flags
| Flag | Description |
|---|---|
--type <type> |
Filter by object type |
--tag <t1,t2> |
Filter by tags |
--hint <#h> |
Filter by hints |
--mention <@slug> |
Filter by mention |
--after / --before <ISO> |
Date window |
--profile <name> |
Profile lens |
--q "<query>" |
AST query |
--limit <n> |
Max results |
--sort <recent|match|score|weight|view> |
Sort order |
--json / --yaml |
Machine output |
make types
| Type | Output |
|---|---|
brief |
Executive brief |
plan |
Action plan |
summary |
Summary |
draft |
Publish-ready draft |
Exit codes
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | General error |
| 2 | Invalid flags/input |
| 3 | Storage error |
| 4 | Registry error |
| 5 | Pipeline failure |
| 6 | Agent config error |
| 7 | Job execution error |
Environment variables
| Variable | Purpose |
|---|---|
CTXT_CONFIG |
Config path override |
CTXT_DATA_DIR |
Data directory override |
CTXT_PROFILE |
Default focus profile |
DPKMS_DATA_DIR |
dPKMS data directory |
DPKMS_WORKERS |
Worker thread count |
Conventions
Mention syntax
Entities are referenced with @namespace.slug:
@product.auth # entity "auth" in namespace "product"
@stripe.api # entity "api" in namespace "stripe"
Use in --mention flags and --q AST queries.
Hint syntax
Hints are #tag-prefixed freeform influence signals (not formal tags):
--hints "#ux #mobile #p1"
Clipboard fallback
ctxt, ctxt analyze, ctxt find, and ctxt open all fall back to the
system clipboard when no content/query/ID argument is given.
Two-phase ingestion
ctxt analyze returns a Job ID immediately.
Use --wait to block and get the Knowledge Object ID.
Or poll: ctxt job status <job-id>.
Config validation
Before running in CI or agent context:
ctxt config validate --check-secrets
Glossary
| Term | Meaning |
|---|---|
| Knowledge Object | Core data unit; produced from any input by a pipeline |
| Mention | @namespace.slug reference to a canonical entity |
| Entity | Canonical concept with stable ID, aliases, relationships |
| Focus Profile | Role/project lens affecting ranking, pipelines, surfacing |
| Pipeline | Named sequence of steps transforming input → knowledge object |
| Registry | Decentralized source of entity definitions / knowledge packs |
| Job | Durable unit of async background work |
| Inbox | Staging area for deferred-triage captures |
| Hint | #tag-shaped signal influencing AI enrichment |
Agent Patterns
Pattern: capture + extract ID for downstream use
id=$(ctxt "content" --wait --output id)
ctxt open "$id" --json | jq '.mentions'
Pattern: search → compose
# Find relevant objects, compose brief
ctxt find "auth rate limiting" --limit 20 --json > /tmp/results.json
ctxt make brief --tag auth --mention "@product.auth" --output /tmp/brief.md
Pattern: scripted batch capture
while IFS= read -r line; do
ctxt "$line" --hints "#batch #import" --raw
done < items.txt
Pattern: agent worldview via profile
# All operations scoped to a profile
export CTXT_PROFILE=research
ctxt find "LLM memory approaches"
ctxt make summary --since 2026-02-01
Anti-Patterns
- Never skip
dpkms serve— pipelines do not run without the worker. - Never use
--rawwhen enrichment is needed; it bypasses AI entirely. - Never assume synchronous processing; use
--waitorctxt job status. - Never pass secrets on CLI:
dpkms secret set KEYtakes the value from stdin,--from-fileor--prompt, never an argument. - Never filter with both
--tagand--qcontaining tag filters simultaneously (they compound; can produce unexpectedly narrow results).
04 同仓库更多 Skills
tokenizer-step
Mock step
my-extractor
Mock step
ctxt-knowledge-retrieval
Train and prompt AI agents to use ctxt for deterministic knowledge retrieval with semantic fallback, provenance tracking, and reusable memory capture. Use when building agent loops over ctxt, debugging weak retrieval quality, or sharing insights, trial-and-error outcomes, and decisions across agents and sessions.
pii-mask
Masks email addresses and phone numbers in captured text