Skip to content

Runnable kernel CLI with built-in tools#22

Merged
JaimeStill merged 1 commit intomainfrom
15-runnable-kernel-cli
Feb 16, 2026
Merged

Runnable kernel CLI with built-in tools#22
JaimeStill merged 1 commit intomainfrom
15-runnable-kernel-cli

Conversation

@JaimeStill
Copy link
Copy Markdown
Contributor

Summary

Replace the cmd/kernel/main.go stub with a functional CLI entry point that exercises the full agentic loop against a real LLM. Validates the entire kernel stack: agent, session, memory, and tools subsystems working together.

Closes #15

Changes

  • CLI entry point (cmd/kernel/main.go) — flag parsing, config loading, kernel run, formatted output with -verbose logging
  • Built-in tools (cmd/kernel/tools.go) — datetime, read_file, list_directory registered with global tool registry
  • Seed memory (cmd/kernel/memory/identity.md) — exercises the full memory → system prompt composition pipeline
  • Unlimited iterations (kernel/kernel.go) — maxIterations=0 runs until final response or context cancellation
  • Structured logging (kernel/kernel.go) — WithLogger option with *slog.Logger, log points in Run and buildSystemContent
  • ToolCall serialization fix (core/protocol/message.go) — MarshalJSON produces nested API format for provider round-trip fidelity
  • TestsMarshalJSON nested format and round-trip, unlimited iterations, WithLogger log verification

…erialization fix

Replace cmd/kernel stub with functional CLI exercising the full agentic loop
against a real LLM. Add datetime, read_file, and list_directory built-in tools,
seed memory directory, unlimited iterations support (maxIterations=0), and
structured logging via slog. Fix ToolCall MarshalJSON to produce nested API
format for provider round-trip fidelity.

Closes #15
@JaimeStill JaimeStill merged commit b6754c3 into main Feb 16, 2026
2 checks passed
@JaimeStill JaimeStill deleted the 15-runnable-kernel-cli branch February 16, 2026 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Runnable kernel CLI with built-in tools

1 participant