# estimateTokens

**Kind:** Function

**Source:** [`atloria-monorepo/libs/agent-core/src/context/context-manager.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/libs/agent-core/src/context/context-manager.ts#L50)

Estimate tokens from string length (rough: ~4 chars per token).

## Signature

```ts
function estimateTokens(text: string): number
```

## Parameters

| Name | Type |
|---|---|
| `text` | `string` |

**Returns:** `number`
