actx query
actx query
Section titled “actx query”Execute a CTX query directly from the command line. Useful for development, debugging, and quick one-off operations.
actx query <ctx>Arguments
Section titled “Arguments”| Argument | Required | Description |
|---|---|---|
ctx | ✅ | A CTX statement string (must be quoted in the shell) |
What It Does
Section titled “What It Does”- Loads
.context/actx.yamlconfiguration - Initializes
CryptoManager(Ed25519 keypair) - Initializes storage, memory, and knowledge planes
- Builds a full
Gatewayinstance - Parses the CTX statement
- Signs and writes a sidecar translation
- Processes through the gateway pipeline
- Outputs the structured result
Examples
Section titled “Examples”Search tools
Section titled “Search tools”$ actx query '?t github'📝 Parsed CTX:{ "operator": "?", "plane": "t", "target": "github", "filters": []}
🗣️ Human: Searched for tools matching "github" (Signed: a1b2c3d4...)
📤 Result:{ "ok": true, "op": "?t", "ms": 4, "data": { "results": [...], "count": 5 }}Store a memory
Section titled “Store a memory”actx query '+m "auth-decision" #arch "JWT for API endpoints"'Search knowledge
Section titled “Search knowledge”actx query '?k "authentication" #code @7d ^3'Call a tool
Section titled “Call a tool”actx query '>t github.issues.list state="open" ^5'Output
Section titled “Output”The command outputs three sections:
- Parsed CTX — the typed AST from the parser
- Human translation — the sidecar’s English translation with Ed25519 signature digest
- Gateway result — the structured
GatewayResultfrom processing
- Quote the CTX string in the shell to prevent
>,#,*, and^from being interpreted - The command initializes and shuts down the full gateway for each invocation
- For persistent connections, use
actx startinstead
See Also
Section titled “See Also”- actx start — persistent gateway for multiple queries
- CTX Language — learn the full syntax