@tlelabs/raw v0.1.6 MIT Node.js 22.13+

The agent harness you can fork.

The tool loop, context compaction, saved sessions, approvals and a dashboard already work. Every tool, skill, hook and policy is a file you can change, so you build an internal agent or a coding agent by editing parts, not by starting from an empty loop.

npm install -g @tlelabs/raw

Installs the raw command globally. Then run raw config init.

◆ raw · agent raw · model local~/projects/api ❯ Why does the session test time out?◌ Thinking…↳ read_file  tests/session.test.ts✓ read_file  41ms$ bash  npm test -- session✓ bash  2.8s● The fixture never closes its socket, so the  runner waits for the 3 s deadline. Close it  in afterEach. ✓ Done · 6.4s · 2 tools  Context  ▰▰▰▱▱▱▱▱▱▱  ~9.6k / 32k · 30% used↪ raw --continue "Apply the fix"❯ 
Illustrative session. Output format matches Raw's normal terminal view.

Start from a working agent. Make it yours.

  1. CODING AGENT

    raw --agent reviewer

    Your team's conventions, built in

    Write the conventions and review checklist as skills, allow the test command with a rule, and fork edit_file if your repository needs a different edit format.

  2. OPS AGENT

    "effect": "ask"

    Only the commands you approved

    Policy rules allow the read-only commands, ask before a deploy and deny the rest. Hooks log or block every call before it runs.

  3. INTERNAL AGENT

    raw dashboard

    Your systems, without a shell

    Connect internal systems through MCP and variables, select no Bash at all, and hand the team a package they install in one step.

Every part is a file you can change.

models describe how to reach an upstream model. agents pick one model and decide exactly which tools, skills, hooks and variables that run may use. Several agents can share a model and still see different toolsets, and a request carries only what its agent was given.

read_filewrite_fileedit_fileapply_patchbashpowershellprocessview_imagelist_skillsload_skilllist_varsread_vartodoask_user

~/.config/raw/config.json
{
  "default_agent": "raw",
  "models": {
    "local": {
      "provider": "ollama",
      "method": "openai-chat-completions",
      "model_id": "YOUR_INSTALLED_MODEL",
      "base_url": "http://127.0.0.1:11434/v1",
      "context_window_tokens": 32768
    }
  },
  "agents": {
    "raw": {
      "model": "local",
      "tools": {
        "use": ["builtin/read_file", "builtin/bash"],
        "rules": [{ "match": "builtin/bash", "effect": "ask" }]
      },
      "compact": { "trigger_tokens": 24000 }
    }
  }
}

One runtime, three ways in.

  1. TERMINAL

    $ raw "task"

    One-shot runs and a saved REPL

    Stream Markdown answers and tool activity, then pick the session back up with --continue or --resume. Redirected output stays plain for scripts.

  2. DASHBOARD

    $ raw dashboard

    A local browser workspace

    Chat, inspect reasoning and context usage, answer approvals, and manage agents, models, tools, skills, vars, MCP and packages. Setup works without a model connection.

  3. ACP

    $ raw --acp --stdio

    Inside editors and parent agents

    Serve the Agent Client Protocol over stdio or a local WebSocket. Parent agents can drive sessions and register temporary reverse tools.

Raw dashboard showing a chat session with tool activity and the session list
raw dashboard serves this app from your machine. Nothing is hosted.

Bring the model. Raw keeps the budget visible.

Choose the wire API per model; it never follows from the provider name. Raw estimates current context every turn, shows reported input, output and cache reads when the provider supplies them, and compacts older turns automatically before the model's context window fills.

Context and compaction →
Supported API methods
methodtypical service
openai-chat-completionsOpenAI, DeepSeek, OpenRouter, Ollama, compatible gateways
openai-responsesOpenAI
anthropic-messagesAnthropic or compatible gateway
google-generate-contentGemini or compatible gateway

It runs as you.

Tool calls run automatically with your operating-system account's permissions. The working directory resolves relative paths; it is not a sandbox. Give an agent tools.rules toask before or deny specific tools and patterns — -y cannot bypass an explicit ask.

Permissions →
0
complete
1
runtime error
2
invalid input
3
max steps
130
cancelled

Start with one agent and one model.

npx @tlelabs/raw config init