2cc53e86f1
- Made sessionDir parameter required in SessionManager.create(), continueRecent(), and forkFrom() methods. - Added SessionManager.getDefaultSessionDir() static method to explicitly resolve canonical default session directory. - Changed SessionManager.list() signature to accept sessionDir directly instead of computing from cwd. - Fixed SDK-created default sessions to honor configured agentDir for session storage and symlink-equivalent path resolution.
Examples
Example code for omp-coding-agent SDK, hooks, and custom tools.
Directories
sdk/
Programmatic usage via createAgentSession(). Shows how to customize models, prompts, tools, hooks, and session management.
hooks/
Example hooks for intercepting tool calls, adding safety gates, and integrating with external systems.
custom-tools/
Example custom tools that extend the agent's capabilities.