Drop Felix references; harness stands as a platform on its own
Removes every Felix mention from public-facing surfaces so the framework reads as a standalone agent platform rather than an extracted module. User-visible changes: - HTTP User-Agent on web_fetch / web_search: Felix/1.0 → harness/1.0 - bash tool path-substitution prefix: '[felix]' → '[harness]' - On-disk paths: <workspace>/.felix/ → <workspace>/.harness/ (todos.json + spill/ tree); tests updated in lockstep. - OTel trace attributes: felix.trace_id / felix.total_ms / felix.phase_count → harness.* equivalents. Doc-comment changes: - Examples (lta-agent, data-agent) lose 'non-Felix consumer' framing. - README drops the 'extracted from Felix' lede and the 'What was lifted from Felix' section, replaced with a 'Design' overview that points to developer.md. - Runtime / tool / compaction doc comments rewritten so behaviour notes describe what the harness does without naming the prior origin. - Test-fixture text 'you are felix' → 'you are an assistant'. Verified: zero 'felix' (case-insensitive) in tracked .go / .md files. All 16 packages build and pass tests.
This commit is contained in:
1 parent
8ed38d7b66
commit
123a233cb7
22 files changed
+107
-85
No files matched your search
+1
-1
@@ -268,7 +268,7 @@ func pathSubsNotice(subs [][2]string) string {
|
||||
return ""
|
||||
}
|
||||
var b strings.Builder
|
||||
b.WriteString("[felix] adjusted paths in command (Unicode-whitespace recovery):\n")
|
||||
b.WriteString("[harness] adjusted paths in command (Unicode-whitespace recovery):\n")
|
||||
for _, s := range subs {
|
||||
fmt.Fprintf(&b, " %q -> %q\n", s[0], s[1])
|
||||
}
|
||||
|
||||
+3
-3
@@ -32,7 +32,7 @@ type TodoItem struct {
|
||||
}
|
||||
|
||||
// TodoWriteTool maintains a per-workspace todo list the agent uses to
|
||||
// track multi-step work. Persisted to <Workspace>/.felix/todos.json so
|
||||
// track multi-step work. Persisted to <Workspace>/.harness/todos.json so
|
||||
// it survives across turns within a session and across sessions for
|
||||
// the same workspace.
|
||||
//
|
||||
@@ -175,7 +175,7 @@ func (t *TodoWriteTool) Execute(_ context.Context, input json.RawMessage) (tool.
|
||||
return tool.ToolResult{Output: formatTodos(items)}, nil
|
||||
}
|
||||
|
||||
// load reads the persisted todos from <WorkDir>/.felix/todos.json.
|
||||
// load reads the persisted todos from <WorkDir>/.harness/todos.json.
|
||||
// Missing file → empty list (not an error). Corrupt JSON → error so
|
||||
// the agent knows the file needs manual repair rather than silently
|
||||
// dropping work.
|
||||
@@ -217,7 +217,7 @@ func (t *TodoWriteTool) save(items []TodoItem) error {
|
||||
}
|
||||
|
||||
func (t *TodoWriteTool) todosPath() string {
|
||||
return filepath.Join(t.WorkDir, ".felix", "todos.json")
|
||||
return filepath.Join(t.WorkDir, ".harness", "todos.json")
|
||||
}
|
||||
|
||||
// nextTodoID returns the next sequential id (t1, t2, …) — short and
|
||||
|
||||
@@ -30,7 +30,7 @@ func TestTodoWriteAddReturnsItemAndPersists(t *testing.T) {
|
||||
assert.Contains(t, res.Output, "[ ] t1 — first task")
|
||||
|
||||
// Persisted to disk so a fresh tool instance picks it up.
|
||||
path := filepath.Join(dir, ".felix", "todos.json")
|
||||
path := filepath.Join(dir, ".harness", "todos.json")
|
||||
data, err := os.ReadFile(path)
|
||||
require.NoError(t, err)
|
||||
assert.Contains(t, string(data), "first task")
|
||||
@@ -145,8 +145,8 @@ func TestFormatTodosSortsByStatusThenID(t *testing.T) {
|
||||
|
||||
func TestTodoWriteCorruptStoreSurfacesError(t *testing.T) {
|
||||
dir := t.TempDir()
|
||||
require.NoError(t, os.MkdirAll(filepath.Join(dir, ".felix"), 0o755))
|
||||
require.NoError(t, os.WriteFile(filepath.Join(dir, ".felix", "todos.json"), []byte("{not valid json"), 0o644))
|
||||
require.NoError(t, os.MkdirAll(filepath.Join(dir, ".harness"), 0o755))
|
||||
require.NoError(t, os.WriteFile(filepath.Join(dir, ".harness", "todos.json"), []byte("{not valid json"), 0o644))
|
||||
|
||||
tool := &TodoWriteTool{WorkDir: dir}
|
||||
res, _ := tool.Execute(context.Background(), json.RawMessage(`{"op":"list"}`))
|
||||
|
||||
@@ -79,7 +79,7 @@ func (t *WebFetchTool) Execute(ctx context.Context, input json.RawMessage) (tool
|
||||
return tool.ToolResult{Error: fmt.Sprintf("invalid URL: %v", err)}, nil
|
||||
}
|
||||
|
||||
req.Header.Set("User-Agent", "Felix/1.0 (AI Agent Gateway)")
|
||||
req.Header.Set("User-Agent", "harness/1.0 (Go agent framework)")
|
||||
req.Header.Set("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,text/plain;q=0.8,application/json;q=0.7,*/*;q=0.5")
|
||||
for k, v := range in.Headers {
|
||||
req.Header.Set(k, v)
|
||||
|
||||
@@ -129,7 +129,7 @@ func duckDuckGoSearch(ctx context.Context, query string, maxResults int) ([]sear
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
req.Header.Set("User-Agent", "Felix/1.0 (AI Agent Gateway)")
|
||||
req.Header.Set("User-Agent", "harness/1.0 (Go agent framework)")
|
||||
|
||||
resp, err := http.DefaultClient.Do(req)
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user