trace-claude-code
Automatically trace Claude Code conversations to Braintrust for observability. Captures sessions, conversation turns, and tool…
Guide for integrating Agentica SDK with Claude Code CLI proxy
Claude Code
$ npx -y skills add parcadei/Continuous-Claude-v3 --skill agentica-claude-proxy --agent claude-code
Codex
$ npx skills add parcadei/Continuous-Claude-v3 --skill agentica-claude-proxy -a codex -y
Cursor
$ npx skills add parcadei/Continuous-Claude-v3 --skill agentica-claude-proxy -a cursor -y
Gemini CLI
$ npx skills add parcadei/Continuous-Claude-v3 --skill agentica-claude-proxy -a gemini-cli -y
GitHub Copilot
$ npx skills add parcadei/Continuous-Claude-v3 --skill agentica-claude-proxy -a github-copilot -y
OpenCode
$ npx skills add parcadei/Continuous-Claude-v3 --skill agentica-claude-proxy -a opencode -y
Windsurf
$ npx skills add parcadei/Continuous-Claude-v3 --skill agentica-claude-proxy -a windsurf -y
name: agentica-claude-proxy description: Guide for integrating Agentica SDK with Claude Code CLI proxy allowed-tools: [Read, Bash] user-invocable: false
Use this skill when developing or debugging the Agentica-Claude proxy integration.
Agentica Agent → S_M_BASE_URL → Claude Proxy → claude -p → Claude CLI (with tools)
(localhost:2345) (localhost:8080)Claude CLI in `-p` mode restricts file operations. You MUST add:
subprocess.run([
"claude", "-p", prompt,
"--append-system-prompt", system_prompt,
"--allowedTools", "Read", "Write", "Edit", "Bash", # REQUIRED
])Without this, agents will report "permission denied" for Write/Edit operations.
Agentica expects SSE streaming, not plain JSON:
# Response format
yield f"data: {json.dumps(chunk)}\n\n"
yield "data: [DONE]\n\n"Agents MUST return results as Python code blocks with a return statement:
return "your result here"
Agentica's REPL parser extracts code between \`\`\`python and \`\`\`.
Agents will hallucinate success without actually using tools unless you explicitly warn them:
## ANTI-HALLUCINATION WARNING **STOP AND READ THIS CAREFULLY:** You have access to these tools: Read, Write, Edit, Bash When the task asks you to create/modify/run something: 1. FIRST: Actually invoke the tool (Read, Write, Edit, or Bash) 2. SECOND: Wait for the tool result 3. THIRD: Then return your answer based on what actually happened **DO NOT** skip the tool invocation and just claim success! If you didn't invoke a tool, you CANNOT claim the action succeeded.
Both Claude Code and Agentica have sandboxes:
**Solution:** Use project-relative paths like `workspace/` instead of `/tmp/`
cat logs/agent-<N>.log
Note: Logs only show final conversational response, not tool invocations.
curl -s http://localhost:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{"model": "claude", "messages": [{"role": "user", "content": "Create file at workspace/test.txt"}], "stream": false}'# After agent claims to create file ls -la workspace/test.txt cat workspace/test.txt
# Terminal 1: Proxy uv run python scripts/agentica/claude_proxy.py --port 8080 # Terminal 2: Agentica Server cd workspace/agentica-research/agentica-server INFERENCE_ENDPOINT_URL=http://localhost:8080/v1/chat/completions uv run agentica-server --port 2345
S_M_BASE_URL=http://localhost:2345 uv run python your_script.py
curl http://localhost:8080/health # Proxy curl http://localhost:2345/health # Agentica
| Error | Cause | Fix | |-------|-------|-----| | "Permission denied" | Missing --allowedTools | Add `--allowedTools Read Write Edit Bash` | | Agent claims success but file not created | Hallucination | Add anti-hallucination prompt section | | "Cannot access /tmp/..." | Sandbox restriction | Use project-relative paths | | "APIConnectionError" | Wrong response format | Use SSE streaming (data: {...}\n\n) | | "NameError: view_file" | Agent using REPL functions | Add REPL_BASELINE with native tool examples |
A persistent, learning, multi-agent development environment built on Claude Code Continuous Claude transforms Claude Code into a continuously learning system that maintains context across sessions, orchestrates specialized agents, and eliminates wasting
Automatically trace Claude Code conversations to Braintrust for observability. Captures sessions, conversation turns, and tool…
Reference guide for Agentica multi-agent infrastructure APIs
Write reliable prompts for Agentica/REPL agents that avoid LLM instruction ambiguity
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.