Install
Install Goshikq v1.0.1
This is the stable GitHub Release v1.0.1. Python goshikq-ai==1.0.1 and TypeScript @goshikq/sdk@1.0.1 are published. Rust crates are not on crates.io. v1.0.0 remains published. v1.0.0-rc.1 is superseded because it shipped jsonwebtoken 9.3.1 (GHSA-h395-gr6q-cpjc / CVE-2026-25537). v1.0.0-rc.2 remains published.
Install, then run an agent
Choose one tab. Python is selected by default. Language tabs install an SDK and do not start goshikq-server. Operating-system tabs install the v1.0.1 runtime. COMPLETED is not VERIFIED unless the goal predicate accepts authoritative state.
Python SDK
What you install: goshikq-ai 1.0.1 from PyPI. This package does not install or start goshikq-server. Start the standalone runtime first, then run an SDK program against it. CPython 3.11 through 3.14. A finished run can be COMPLETED and still be unverified. VERIFIED requires a goal predicate that accepts authoritative state. goshikq-ai 1.0.1 on PyPI · Installation guide
pip install goshikq-ai==1.0.1After that install, with the runtime already healthy, save the program below as sdk_hello.py and run python sdk_hello.py. No paid model key is required. Expected lines include verification: VERIFIED.
"""Standalone Python SDK example. Run it from any directory after the package is installed.
The package is not on PyPI yet. Install a built wheel, then run this file.
The runtime must already be healthy at GOSHIKQ_RUNTIME_URL (default http://127.0.0.1:7400).
No paid model key is required.
"""
from goshikq_ai import Agent, Goal, Runtime, StateSnapshot, tool
from goshikq_ai.models import MockModel, ModelTurn
from goshikq_ai.state import SnapshotContext
GREETINGS: dict[str, str] = {}
@tool(effect="idempotent_write", idempotent=True, risk="low")
def record_greeting(name: str, message: str) -> dict:
"""Store a greeting for name. Writing the same greeting twice is a no-op."""
GREETINGS[name] = message
return {"stored": True, "name": name}
class GreetingState:
def snapshot(self, context: SnapshotContext) -> StateSnapshot:
return StateSnapshot(state={"greetings": dict(GREETINGS)}, version=str(len(GREETINGS)), source="greetings-memory")
def version(self, resource_id: str) -> str:
return str(len(GREETINGS))
def ada_was_greeted(state: StateSnapshot) -> bool:
greeting = state.get("greetings.Ada")
return isinstance(greeting, str) and "Ada" in greeting
def no_more_than_one_greeting(state: StateSnapshot) -> bool:
greetings = state.get("greetings") or {}
return len(greetings) <= 1
def main() -> None:
agent = Agent(
name="hello-agent",
model=MockModel(
script=[
ModelTurn(tool_calls=[("record_greeting", {"name": "Ada", "message": "Hello, Ada!"})]),
ModelTurn(content="Greeted Ada."),
]
),
instructions="Greet the person named in the input.",
tools=[record_greeting],
)
goal = Goal(
description="Ada has been greeted exactly once",
success=ada_was_greeted,
invariants=[no_more_than_one_greeting],
max_steps=4,
)
result = Runtime(agent, state_provider=GreetingState()).run_sync(goal, input={"name": "Ada"})
print(result.summary())
if not result.verified:
raise SystemExit(1)
if __name__ == "__main__":
main()
TypeScript / JavaScript SDK
What you install: @goshikq/sdk 1.0.1 from npm. This package does not install or start goshikq-server. Start the standalone runtime first. The package is ESM only. Node.js 20+ runs it with node hello.mjs. CommonJS require() is not supported. The published 1.0.1 page is @goshikq/sdk 1.0.1. TypeScript SDK guide
npm install @goshikq/sdk@1.0.1After that install, with the runtime already healthy, save the program below as hello.mjs in a project that depends on the package. Expected lines include verification: VERIFIED.
/**
* Standalone Node.js example. ESM only. Node.js 20+.
* Install @goshikq/sdk first. That package is not on npm yet.
* The runtime must already be healthy at GOSHIKQ_RUNTIME_URL.
*/
import { z } from "zod";
import { Agent, Goal, MockModel, Runtime, StateSnapshot, defineTool } from "@goshikq/sdk";
const greetings = {};
const recordGreeting = defineTool({
name: "record_greeting",
description: "Store a greeting for name.",
schema: z.object({ name: z.string(), message: z.string() }),
jsonSchema: {
type: "object",
properties: { name: { type: "string" }, message: { type: "string" } },
required: ["name", "message"],
additionalProperties: false,
},
effect: "IDEMPOTENT_WRITE",
risk: "low",
idempotent: true,
execute: async ({ name, message }) => {
greetings[name] = message;
return { stored: true, name };
},
});
const agent = new Agent({
name: "hello-agent",
model: new MockModel({
script: [
{ tool_calls: [["record_greeting", { name: "Ada", message: "Hello, Ada!" }]] },
{ content: "Greeted Ada." },
],
}),
instructions: "Greet the person named in the input.",
tools: [recordGreeting],
});
const goal = new Goal({
description: "Ada has been greeted exactly once",
success: (state) => {
const greeting = state.get("greetings.Ada");
return typeof greeting === "string" && greeting.includes("Ada");
},
invariants: [
(state) => {
const stored = state.get("greetings") ?? {};
return Object.keys(stored).length <= 1;
},
],
maxSteps: 4,
});
const runtime = new Runtime(agent, {
stateProvider: {
snapshot: () =>
new StateSnapshot({
state: { greetings: { ...greetings } },
version: String(Object.keys(greetings).length),
source: "greetings-memory",
}),
},
});
const result = await runtime.run(goal, { input: { name: "Ada" }, timeoutMs: 60_000 });
console.log(`status: ${result.status}`);
console.log(`verification: ${result.verificationStatus}`);
if (result.status !== "COMPLETED" || result.verificationStatus !== "VERIFIED") {
process.exit(1);
}
Linux runtime
Recommended install: download the pinned installer, check its SHA256, then run the local file. That is not a remote shell pipe. The script installs both goshikq and goshikq-server from GitHub Release v1.0.1 and stops if SHA256SUMS does not match. It does not install a language SDK. The manual alternative is to download the archive and SHA256SUMS from the release and compare the hash yourself. Installation guide
Install the runtime.
curl -fsSL -o goshikq-install.sh https://raw.githubusercontent.com/goshikavs/goshikq-agent-framework/b830e15efa2f7bd05af0769739c6cab6feb40d97/scripts/install.sh echo "4630175aa8868d58b634df1043abdd0fae425d78c93326401d41e5ed5a752590 goshikq-install.sh" | sha256sum -c - sh goshikq-install.sh --version v1.0.1Use the
export PATHline the script prints, then verify. Expected text:goshikq 1.0.1.goshikq --versionStart the local runtime.
DATABASE_URL=embeddeddownloads PostgreSQL on first start and keeps it under.goshikq/postgresunlessGOSHIKQ_EMBEDDED_PG_DIRis set. That first download needs network access.GOSHIKQ_AUTH_MODE=noneis only for this local process. Production needs a real database URL and real authentication.DATABASE_URL=embedded GOSHIKQ_AUTH_MODE=none GOSHIKQ_BIND=127.0.0.1:7400 goshikq-servercurl -fsS http://127.0.0.1:7400/healthExpected health body includes
"status":"ok"and"version":"1.0.1". Then run thepython3line the installer prints. That file ishello_agent.pynext to the binaries. Expected lines includeverification: VERIFIEDandevidence: greetings-memory@1. ACOMPLETEDstatus withoutVERIFIEDmeans the goal predicate did not accept the snapshot.
Windows runtime
Windows AMD64 is the supported archive. The pinned script checks SHA256SUMS, installs both executables from GitHub Release v1.0.1, and prints a PATH line. It does not install a language SDK. You can instead download the zip and SHA256SUMS from the release and compare the hash yourself. Installation guide
Install the runtime.
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/goshikavs/goshikq-agent-framework/b830e15efa2f7bd05af0769739c6cab6feb40d97/scripts/install.ps1" -OutFile goshikq-install.ps1 $actual = (Get-FileHash .\goshikq-install.ps1 -Algorithm SHA256).Hash.ToLower() if ($actual -ne "75fdf00099a9a464fff1e0d54495037cff2d1dc6046a035ad9df2b5ea5f1822f") { throw "SHA256 mismatch: $actual" } powershell -ExecutionPolicy Bypass -File .\goshikq-install.ps1 -Version v1.0.1Use the PATH line the script prints. Expected text:
goshikq 1.0.1.goshikq --versionStart the runtime. The first embedded database start downloads PostgreSQL. Production must not use
GOSHIKQ_AUTH_MODE=none.$env:DATABASE_URL="embedded" $env:GOSHIKQ_AUTH_MODE="none" $env:GOSHIKQ_BIND="127.0.0.1:7400" goshikq-servercurl.exe -fsS http://127.0.0.1:7400/healthExpected health body includes
"status":"ok"and"version":"1.0.1". Then run thepythonline the installer prints. Expected lines includeverification: VERIFIEDandevidence: greetings-memory@1. ACOMPLETEDstatus withoutVERIFIEDmeans the goal predicate did not accept the snapshot.
macOS runtime
The same pinned installer selects the Apple Silicon or Intel archive from GitHub Release v1.0.1 and checks SHA256SUMS. It installs both executables and does not install a language SDK. You can instead download the archive and SHA256SUMS from the release and compare the hash yourself. Installation guide
Install the runtime.
curl -fsSL -o goshikq-install.sh https://raw.githubusercontent.com/goshikavs/goshikq-agent-framework/b830e15efa2f7bd05af0769739c6cab6feb40d97/scripts/install.sh echo "4630175aa8868d58b634df1043abdd0fae425d78c93326401d41e5ed5a752590 goshikq-install.sh" | shasum -a 256 -c - sh goshikq-install.sh --version v1.0.1Use the printed PATH line. Expected text:
goshikq 1.0.1.goshikq --versionStart the runtime. The first
DATABASE_URL=embeddedstart downloads PostgreSQL into.goshikq/postgres. Production must not useGOSHIKQ_AUTH_MODE=none.DATABASE_URL=embedded GOSHIKQ_AUTH_MODE=none GOSHIKQ_BIND=127.0.0.1:7400 goshikq-servercurl -fsS http://127.0.0.1:7400/healthExpected health body includes
"status":"ok"and"version":"1.0.1". Then run thepython3line the installer prints. Expected lines includeverification: VERIFIEDandevidence: greetings-memory@1. ACOMPLETEDstatus withoutVERIFIEDmeans the goal predicate did not accept the snapshot.
Native archives
The v1.0.1 tag points at commit 0de6528dd8f7f8ee64071332122db3bf0cfb8598. After download, verify:
sha256sum -c SHA256SUMSSHA256SUMS · SPDX SBOM · License inventory · Provenance manifest · Release notes
Per-platform provenance files on the same release are named provenance-linux-amd64.json, provenance-linux-arm64.json, provenance-macos-amd64.json, provenance-macos-arm64.json, provenance-windows-amd64.json, and provenance-windows-arm64.json.
| Platform | Archive | SHA256 |
|---|---|---|
| Linux AMD64 | goshikq-1.0.1-linux-amd64.tar.gz | 71fab88cd1dc944cd8ca43e9ed91f4340cf7a112101ca5def5c4d9335e638bae |
| Linux ARM64 | goshikq-1.0.1-linux-arm64.tar.gz | e767393b5a6b22bfeda3d2ddd7210371e4f6a769c69adf3ece4ac72996e54c5f |
| macOS Intel | goshikq-1.0.1-macos-amd64.tar.gz | 3cb7b7609f02acff79330711f78aba7b5500befa058fc92d3cf5be3cbd5f566b |
| macOS Apple Silicon | goshikq-1.0.1-macos-arm64.tar.gz | 99f8f48121351b5bfe95a051aa68dfcc69d1874493d6c54a710ba4564b69a199 |
| Windows AMD64 | goshikq-1.0.1-windows-amd64.zip | 63aeedf505f592f1c3bbcbbbc4a61c2880403a53f07301ddd475a22d50c551c8 |
| Windows ARM64 (experimental) | goshikq-1.0.1-windows-arm64.zip | 211568f7303d3e044df8fcdc5847eb9eb727f771f58ec7feb2facf0d28fa5fb5 |
Windows ARM64 is experimental and is not a required v1.0 platform. Prefer Windows AMD64, Linux, or macOS. Production must use a real DATABASE_URL and must not use GOSHIKQ_AUTH_MODE=none.
Source
git clone https://github.com/goshikavs/goshikq-agent-framework.gitDevelopment snapshot ZIP
This is the main branch. The immutable release tag is v1.0.1. v1.0.0 remains published.
Python
Published package goshikq-ai==1.0.1. That install does not start the runtime. A source checkout can still use the editable install below.
pip install goshikq-ai==1.0.1
# from a clone: python -m pip install -e sdk/python
# extras (experimental providers): pip install -e "sdk/python[openai]" TypeScript / Bun
Published package @goshikq/sdk@1.0.1. That install does not start the runtime. Editing this repository does not change the already published 1.0.1 tarball. From a clone:
npm install @goshikq/sdk@1.0.1
# from a clone: bun install
# bun --filter @goshikq/sdk testRust runtime from source
cargo run -p goshikq-server
# or: cargo build -p goshikq-server --releaseDocker
Compose file: docker-compose.yml. Postgres, runtime, and Studio images exist in tree. Production must not use GOSHIKQ_AUTH_MODE=none. A published image registry is not claimed.
docker compose up -d postgresWithout Docker: DATABASE_URL=embedded.