Skip to main content

ADK agent which help in analysing currently running multiagent app

Project description

PyPI version

self code adk

Agent which can read code of currently running application and help analyzing it. Its main purpose is to assist in debugging the whole application by enabling the agent, defined as a developer and multi-agent expert, to read the entire codebase.

usage

install the package

uv add self-code-adk

import it

from self_code_adk.agent import SelfCodeAgent

And add new sub agent

sub_agents=[gardener, weather],
+# include self_code_agent only for development purposes
+if dev_mode: 
+   self_code_agent=SelfCodeAgent("gemini-2.5-flash-preview-04-17")
+   sub_agents.append(self_code_agent)
root_agent = Agent(
    name="my-fancy-agen",
    model="gemini-2.5-flash-preview-04-17",
    description=("root agent which acts as coordinator"),
    instruction=(
        """
        blah   
        """
    ),
    sub_agents=sub_agent,
)

Security considerations

self-code-adk has access to app code and whole filesystem. It states a security risk and should never be run in production. It is designed purerly for local testing within trusted input.

Note: if instructed in malicious way, it can read any file. For example /etc/shadow. Even if LLM will reject request initialy, there is no secondary protection in place.

How it works

In short it is an agent with 2 tools:

  1. find possible root directory with app code.
  2. read the content of repository

Thats is all. LLM with instruction takes care of rest.

design

self-code is just an agent which can access the code. It can be plugged into an multiagent app and then app relevant questions will be delegated on demand.

design

sample chat

Here is screenshot of sample chat of multiagent app. App contains few agents, and one of them is returning capital cities for a country using a tool. Once asked, self-code agent reads and provides feedback on code quality.

sample chat

idea definition

medium

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

self_code_adk-0.1.7.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

self_code_adk-0.1.7-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file self_code_adk-0.1.7.tar.gz.

File metadata

  • Download URL: self_code_adk-0.1.7.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.7.1

File hashes

Hashes for self_code_adk-0.1.7.tar.gz
Algorithm Hash digest
SHA256 ca6b60991c690e7f6b97b9f21a9010bb6419919bcbf977b9e612f8c84b2f8f87
MD5 821b7754b400c23a7f5ff6e98719e571
BLAKE2b-256 9717139db39db54ef0cc0e072d7867fa0ba8c34b2dccd0686d5663e541b456cc

See more details on using hashes here.

File details

Details for the file self_code_adk-0.1.7-py3-none-any.whl.

File metadata

File hashes

Hashes for self_code_adk-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 c56fd81b46118b7fcba458563309ef904d98f9dd889d149f5108f099cd0de1c7
MD5 b73b8a0d1547fc98e298a7eb4f8fc384
BLAKE2b-256 5b590af277c070b88e424b6695a3caa9c19f33a50b609ff70136af3b35d893ff

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page