Every session records the directory it was started in (<id>.meta, cwd=). With that, '-c' means the last session that happened *here*: cd ~/src/splinter && splinter -c A session from another tree is never silently loaded; if nothing happened in this directory yet, it says so and exits. Verified in three directories - two report no session, the one with history resumes. folder_history gives the model the folder's memory instead of a guess: sessions started there, newest first, with turn count and the last question. --mcp-server-listen IP --mcp-listen-port N serves the registry over MCP (newline-delimited JSON-RPC on TCP): initialize, tools/list, tools/call. Read tools are served; mutating and destructive ones are refused unless the server was started with --autonomous - a remote agent does not run shell commands here because it asked nicely. Proven with a real client on 127.0.0.1:8097: handshake answers splinter 0.1.0, tools/list reports 14 tools, tools/call list returns the directory, tools/call run is refused with the authorization message.
15 lines
299 B
C
15 lines
299 B
C
/*
|
|
* splinter -- the folder's memory.
|
|
*
|
|
* Copyright (c) 2026 Konrad Lother
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
#ifndef SPLINTER_FOLDER_H
|
|
#define SPLINTER_FOLDER_H
|
|
|
|
#include "splinter.h"
|
|
|
|
int sp_folder_register(struct sp_registry *, const char *sessions);
|
|
|
|
#endif /* SPLINTER_FOLDER_H */
|