prompt: name the working directory's task scope; /effort sets the review depth
A session in ~/src/mikronix asked for "open tasks", called task_list without a scope, got the makronix list and answered with it. The system prompt now names the working directory as the default task scope (sp_task_scope_note), so the model says "mikronix" instead of following the busiest scope. tasksd's task_scopes/task_list descriptions now tell it to pass that scope (separate repo, commit 4781f60). /effort (off/low/medium/high/max or 0..12) sets X-Junction-Review-Rounds for this process; unset keeps the router rule. The transport sends the header on every request while set, so one session can run 0, 7 or 12 rounds without a junction config change. /effort alone prints the current value. test_engine: the prompt carries the scope paragraph; /effort maps to 12/2/0 and rejects junk. make check: all tests passed. make check-asan: 41/41 clean.
This commit is contained in:
1 parent
2581885e67
commit
eba6f71a2d
5 files changed
+148
-6
No files matched your search
@@ -276,6 +276,8 @@ int sp_session_folder_history(const char *dir, const char *cwd,
|
||||
*/
|
||||
int sp_session_folder_note(const char *dir, const char *skip_id,
|
||||
struct sp_buf *out);
|
||||
/* a paragraph naming the working directory as the default task scope */
|
||||
int sp_task_scope_note(struct sp_buf *out);
|
||||
/* the working directory a session was started in (meta sidecar) */
|
||||
int sp_session_cwd(const char *dir, const char *id, char *buf, size_t cap);
|
||||
int sp_session_load(const struct sp_session_info *, struct sp_conv *conv,
|
||||
@@ -522,6 +524,9 @@ const volatile int *sp_cancel_flag(void);
|
||||
*/
|
||||
void sp_openai_set_session(const char *id);
|
||||
size_t sp_openai_session_header(const char *url, char *buf, size_t cap);
|
||||
/* /effort: review depth for the next requests; -1 lets the router decide */
|
||||
void sp_openai_set_review_depth(int depth);
|
||||
int sp_openai_review_depth(void);
|
||||
|
||||
/*
|
||||
* One route of an endpoint: the config names the API base (https://host/v1),
|
||||
|
||||
Reference in new issue
Block a user